On 08/03/2011 04:58 AM, Martin Haffner wrote:
Ok, but what do these 4 types exactly mean? I guess a PreDraw callback gets called BEFORE the camera renderes and PostDraw AFTER the camera has been rendered its subtree. But what means Initial? And whats the difference between PostDraw and Final?
You can see how the process is carried out by tracing through the code in osgUtil::RenderStage::draw(). Essentially, the Initial callback is called before any of the camera's pre-render stages are run, while the PreDraw callback happens immediately before the camera's own scene is drawn. Similarly, the PostDraw callback happens immediately after the camera's own scene is drawn, and the Final callback happens after any post-render stages are drawn.
--"J" _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org