Callbacks

New Message Reply Date view Thread view Subject view Author view

Patrick Bouchaud (galaad++at++graal.neu.sgi.com)
Thu, 6 Jul 1995 16:09:15 -0600


ON THE ONE HAND, in the performer's FAQ it is said that the node's draw
callbacks are executed in the draw process - which is one frame delayed
relatively to the cull process.

ON THE OTHER HAND, in the pfTravNodeFunc() man page, the pseudo-code showing
the evaluation order of the callbacks shows the following order, assuming the
cullResult is PFIS_MAYBE :

preCullCallback->Cull->preDrawCallback->evaluateNodeAndItsChildren->postDrawCallback->postCullCallback
:

which seems to indicate that the postCullCallback is executed after all the
draw callbacks.

Shall I then assume that the postCullCallback is executed in the draw process ?

What I'd like to be told (but which doesn't seem to be the case !) is that the
pre/post-Cull-Callback() occure for each associated Node within the Cull
Process, out of which the node is in some way registered in a list for the
Drawing Process. Then, in the Drawing Process, each referenced node calls its
pre-draw-callback(), then draws itself, then calls its post-draw-callback()
(the 2 last operations being conditioned by the flag returned by the
pre-draw-callback()) : only then could i really customize my drawing !

Is there something I misunderstood ?


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:39 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.