Lance R. Marrou (marrou++at++vsl.ist.ucf.edu)
Mon, 13 Mar 1995 23:41:00 -0500 (EST)
...
> So, given that the return value from the draw callbacks are ignored, how
> can I tell Performer that in the pre-callback I will be drawing myself
> (for example) pfLightPoint since I cannot prevent Performer from drawing
> the node using PFTRAV_PRUNE ? For sure I can draw in my own way a
> pfLightPoint node but at the same time I cannot tell Performer not to
> draw it since it is not looking at the return value PFTRAV_PRUNE from
> the pre-callback !
...
There are two options I see. One is not to use the pfLightPoint node, or
basically no node with implicit geometry. If you have an empty pfDCS, pfGroup,
etc. then you will have no problems. If you must have the geometry, then
insert a node (a pfGroup) above it which has the callbacks. Then just turn
off the draw mask of the child. The parent's functions will get called and its
children will not be displayed. Of course, either method fails if you need to
perform some draw specific test in the pre-draw callback to determine if the
node should be drawn (or at least the rest of it). However, in this case, you
might consider a 1 frame delay and do the test for the next frame by setting
some flag.
______________________________________________________________________________
/\ ______ /\____ ______ ______ E-mail: marrou++at++vsl.ist.ucf.edu
Visual / / / _ / / __ // ____// ____/ VSL: (407)658-5073
Systems / /__ / /_/ / / / / // /___ / __/_ R. Marrou Fax: (407)658-5059
Lab /____//____/\\/_/ /_//_____//_____/ http://www.vsl.ist.ucf.edu/~marrou
"Reap the whirlwind." "We don't need no thought control."
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:04 PDT