Re: Stencilling and Shadow Volumes within Performer
Angus Dorbie (angus++at++division.demon.co.uk)
Fri, 17 Feb 1995 11:44:47 +0000
Hi Kathy,
perhaps you haven't sorted the stencil operation with the rest of the
scene geometry. You must perform the stenciling last and adding it to the scene
graph last may not guarantee the drawing order. Your geosets also need to be
drawn correctly relative to each other so it might be worth performing the
entire shadowing operation as a callback to a transparent geoset which will be
sorted last(ish) in the scene (if you have sorting on), with three explicit
calls to pfDrawGSet(). You could even perform the shadowing after you call
pfDraw() to ensure the whole thing is done last but this means you'll have to
position the shadow using the GL.
Also when you perform your stenciling it might be worth overriding some state
information such as DECAL.
Just some suggestions.
Angus.
This archive was generated by hypermail 2.0b2
on Mon Aug 10 1998 - 17:50:58 PDT