On 08/02/2011 07:44 AM, Martin Haffner wrote:
Hi,
Guys, you are great! Thanks to both of you for your good explanations! :D
Another little question: I guess a Camera::DrawCallback is a callback that gets
added to a osg::Camera and that gets called (operator()) every time the camera
renders the scene?
Correct. Also, note that there are four different places to attach
Camera::DrawCallbacks (Initial, PreDraw, PostDraw, and Final). Which
one you use will depend on what you're doing in the callback.
For example, a FinalDrawCallback is a good place to capture the image of
what the camera just drew. This is what the osgscreencapture example
demonstrates.
--"J"
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org