Re: Post Draw Callback

New Message Reply Date view Thread view Subject view Author view

Don Burns (don_burns++at++peru.engr.sgi.com)
Wed, 20 Oct 1999 14:40:43 -0700 (PDT)


On Oct 20, 3:50pm, Acosta, Mark W wrote:
> Subject: Post Draw Callback
> Hello everyone,
>
> I have a problem that I need an answer to quick. I have a post
> traversal draw callback near the top of my scene graph that does some opengl
> drawing that needs to be done after everything in the scene graph has been
> drawn. It seems that the callback is called BEFORE everything in the scene
> is draw. I'm not sure why this is happening. Anyone have any ideas??? TIA.
>
> Mark Acosta
> Texaco

Mark,

Create a draw bin for every channel that will traverse the pfNode that you want
to be drawn last. (int bin = pfChannel->getFreeBin()). Tell the channel you
want 'bin' to be drawn last: pfChannle->setBinOrder( bin, bin ). Find all
pfGeosets under your pfNode and set their draw bin to 'bin'.

Note that you will need to take care that pfChannel->getFreeBin() returns the
same number for all channels since pfGeosets do not distinguish between
channels for their draw bins. How to do this is left as an exercise to the
reader.

-don


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Wed Oct 20 1999 - 14:40:49 PDT

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