From: Andy Bailey (andrew++at++scs.leeds.ac.uk)
Date: 03/09/2000 02:54:10
Hi,
I have been playing around with modifying a model's colours in a draw
callback (thanks Eric!). I have been able to alter the material of one
my clones successfully, leaving the others at their original state. My
aim is to only alter the material of some of the polygons in my model,
in fact I want to only change the white coloured polygons. In the model
itself these white polygons are not all in the same group or object
which complicates things. Is it possible in the draw callback to
interrogate all the child pfGeoStates and see if the colour is white
then change the material?
I have used the pfTraverser to get the current node being traversed, but
can I then step through all the children of that node to do the "is the
colour white" test? I just don't think is it very efficient this way and
think there must be a better was to do it.
thanks,
Andy Bailey
This archive was generated by hypermail 2b29 : Thu Mar 09 2000 - 03:03:04 PST