Robert Webb (robertw++at++wormald.COM.AU)
Thu, 20 Jul 1995 11:50:43 +1000 (EST)
By default, pfLayer nodes (as loaded from a multigen model, in our case) use
PFDECAL_BASE_DISPLACE, which uses the GL displacepolygon() function.
How do I make them all use PFDECAL_BASE_STENCIL instead? The obvious thing
to try would be:
pfDecal(PFDECAL_BASE_STENCIL);
pfOverride(PFSTATE_DECAL, PF_ON);
But this stops Performer from ever calling pfDecal again, which means it
won't call pfDecal(PFDECAL_LAYER) for the decal layers in each pfLayer node,
so you end up with just lots of flickering polygons (because everything in
the scene graph is treated as base geometry!).
Do I have to traverse the whole scene graph and individually change the type
of decaling used for each pfLayer node I come across? (Everything I want to
do these days seems to require traversing the whole scene graph :-(. ).
Thanks,
Rob.
------------------------------------------------------------------------------
_
|_) _ |_ _ ._ _|_ \ / _ |_ |_ robertw++at++wormald.com.au
| \(_)|_)(/_| |_ \/\/ (/_|_)|_)o
"Informer, you no say daddy me Snow me I'll go blame, a licky boom boom down"
- Snow.
------------------------------------------------------------------------------
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:41 PDT