POV-Ray : Newsgroups : povray.newusers : Backface culling? Server Time
29 Jul 2024 16:26:30 EDT (-0400)
  Backface culling? (Message 1 to 5 of 5)  
From: tahoma
Subject: Backface culling?
Date: 30 May 2005 10:01:56
Message: <opsrldl5ojx5erxw@buddie.egoof>
My (or better my scene's) situation is as follows:
I have a room with some mirrors in it. When the camera is located above  
the roof of the room, i cannot look in because of the roof. So i removed  
the roof from the scene and everything looked pretty well at the first  
glance. But at closer inspection the mirrors do not mirror the roof  
anymore (because it has been removed).

Is there a possibility to enable backface-culling relative to some vector  
(in my case the eyevector)? So i could look through the roof and it would  
be mirrored correctly. If backface-culling is not the way to go, can i  
assign different textures for each side of a triangle in a mesh? I tried  
to duplicate the mesh with different triangle orientations and normals but  
i've got some strange visual problems then.

Regards,
Jan


Post a reply to this message

From: Daniel Hulme
Subject: Re: Backface culling?
Date: 30 May 2005 10:12:30
Message: <20050530151229.27d7d5cb@dh286.pem.cam.ac.uk>
> Is there a possibility to enable backface-culling relative to some
> vector   (in my case the eyevector)? So i could look through the roof

No, backface culling is for polygon scan-conversion only. The effect you
want can be achieved by adding the "no_image" keyword to the roof
object. This lets you see through the roof but it will still cast
shadows (unless no_shadow is also used) and will still appear in
reflections (unless no_reflection is also used). Section 3.4.9.7 of the
manual describes it further.

Daniel

-- 
Now  as he walked by the sea  of Galilee,  he saw  Simon and Andrew  his
brother casting a spam into the net:  for they were phishers.  And Jesus
said unto them, Come ye after me, and I will make you to become phishers
of men.  And  straightway  they forsook  their  nets,  and followed him.


Post a reply to this message

From: Warp
Subject: Re: Backface culling?
Date: 30 May 2005 10:37:56
Message: <429b2544@news.povray.org>
Daniel Hulme <pho### [at] isticorg> wrote:
> The effect you
> want can be achieved by adding the "no_image" keyword to the roof
> object.

  Another possibility is to use interior_texture.

-- 
                                                          - Warp


Post a reply to this message

From: tahoma
Subject: Re: Backface culling?
Date: 30 May 2005 10:42:31
Message: <opsrlfhsfyx5erxw@buddie.egoof>
Great, thank you. It workes as expected (typo, Section 2.4.9.7).

I asked for backface culling because i'm using a mesh. The general case  
could be called back pigment culling or something like that. Two sided  
textures would be nice, too, because if i want the backside of the roof to  
be semitransparent, i have to pass the no_image flag either to the  
frontside or the backside depending on what side is visible. It is  
possible in my roof example, but for more complex meshes or even csg  
objects it can be quite difficult to achieve that result.

>> Is there a possibility to enable backface-culling relative to some
>> vector   (in my case the eyevector)? So i could look through the roof
>
> No, backface culling is for polygon scan-conversion only. The effect you
> want can be achieved by adding the "no_image" keyword to the roof
> object. This lets you see through the roof but it will still cast
> shadows (unless no_shadow is also used) and will still appear in
> reflections (unless no_reflection is also used). Section 3.4.9.7 of the
> manual describes it further.
>
> Daniel


Post a reply to this message

From: Daniel Hulme
Subject: Re: Backface culling?
Date: 30 May 2005 10:53:15
Message: <20050530155315.645a716b@dh286.pem.cam.ac.uk>
>   Another possibility is to use interior_texture.
Yes, that is a more general solution. I considered mentioning it in my
reply but if the roof is a closed mesh rather than just being a thin
tent shape it won't have the desired effect. In this case,
interior_texture won't suffice for what tahoma calls "backface textures"
either, and it would also be necessary to give the vertices on the top
and those on the bottom (of the roof) different textures (and
interior_texture s) too.

Daniel

-- 
Now  as he walked by the sea  of Galilee,  he saw  Simon and Andrew  his
brother casting a spam into the net:  for they were phishers.  And Jesus
said unto them, Come ye after me, and I will make you to become phishers
of men.  And  straightway  they forsook  their  nets,  and followed him.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.