Hi John,

I have a camera postdraw callback on a View's camera. I want to do some OpenGL drawing via glBegin()/glEnd() and then take a screen capture. The screen capture works but the custom drawing isn't in there. It's on the screen though. I try to do glDrawBuffer( GL_BACK ) to force it into the same buffer as the camera, but no good. Any ideas?

Wow, you're really putting osgViewer through its paces aren't you :-)

I've never tried doing what you're doing, so I can only suggest that you try some other way of doing your OpenGL drawing. There are a few different ways of doing OpenGL inside OSG, some may not work in given usage models...

Have you tried a custom drawable? Possibly putting the custom drawable on a geode that is child of a postdraw camera, and then using the finaldraw callback on your main camera instead of the postdraw callback to take your screen capture...

Sorry I can't be of more help.

J-S
--
______________________________________________________
Jean-Sebastien Guay    [EMAIL PROTECTED]
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to