Aaron M. Hightower (aaron++at++skips.dseg.ti.com)
Wed, 17 Nov 93 00:39:28 CST
Is there a way to do this with
pfNodeTravFuncs(mygroup,
PFTRAV_DRAW,
my_gl_func_to_color_everything_black,
if_this_thing_says_ok,
NULL,
NULL);
I haven't tried it, but I expect the GeoSet to override any color or
texture that I use to turn this black (since I looked at the pfPrint of
the group and found per vertex color and texture Attributes on the
pfGeoSet level of the group model that I want to turn black).
If I do lighting hacks (like a light with a color of black),
I am assuming that I will have to re-enable the lighting in the post callback.
We would ultimately like to be able to have some kind of pfSwitch that
handles this by managing two Groups each with its own color settings,
or else some way that implements this as part of the scene database.
Anyway, we have not come up with a clear cut solution, and just thought
that someone might know of a way to implement this type of thing.
Anyone have a good method in performer? Also we have the same need for
switching textures (IE having two textures that we can switch between
at sim time).
Thanks,
Aaron Hightower
-----------------------------------------------------------------------------
Aaron Hightower :: Texas Instruments aaron++at++dseg.ti.com
Visualization and Simulation Technology Development (214)575-6759 (w)
What did you dream? It's alright, we told you what to dream. -Pink Floyd
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:06 PDT