Jeff S
09-01-2006, 12:45 PM
Hi everyone,
I'm having some issues adding a "cap" to objects I have clipped (i.e. not exposing the inside). I've been working through some examples with the stencil functions, and there are a couple of things I don't fully understand:
First, I've read some examples where to create the cap, a quad is rendered using some set of vertices. I'm not exactly sure where those vertices come from or a good way to create them.
Second, it seems like I need to re-render the object for each clipping plane (I am trying to slice a wedge out of a sphere, which would be the intersection of two clipping planes). The problem is that parts of the objects that are not clipped are rendered twice and this gives a "thicker" look at some parts of the object.
Thank you all very much - any help would be appreciated.
Jeff
I'm having some issues adding a "cap" to objects I have clipped (i.e. not exposing the inside). I've been working through some examples with the stencil functions, and there are a couple of things I don't fully understand:
First, I've read some examples where to create the cap, a quad is rendered using some set of vertices. I'm not exactly sure where those vertices come from or a good way to create them.
Second, it seems like I need to re-render the object for each clipping plane (I am trying to slice a wedge out of a sphere, which would be the intersection of two clipping planes). The problem is that parts of the objects that are not clipped are rendered twice and this gives a "thicker" look at some parts of the object.
Thank you all very much - any help would be appreciated.
Jeff