osgprerender example touches on this. ultimately you can
use an osg::Image (property of cameranode) and copy the
texture pixels to the image, modify them in the post-draw
callback and put the image to a projection node, overlaying
what you would normally see. It affects your frame rate,
but i can confirm that it works. Can give more details if
you need ...
-charlie
DANIEL BASS wrote:
When doing render-to-texture, the camera post-draw callback appears to
be called AFTER the
rendered camera image is copied to the texture. Is there a way to get
a callback that occurs
between the completion of the camera rendering and the copy to texture.
That is, I want to
draw some overlay stuff on the rendered geometry before the buffer is
copied to texture.
Thanks,
--daniel
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/