Hi John,
I thought some of this sounded a little familiar. I found a discussion not too
long relative to this. See the thread entitled Rendering to a image file.
Here's a link to the specific post:
http://thread.gmane.org/gmane.comp.graphics.openscenegraph.user/28011/focus=28014
What Robert suggests (and as Jean-Sebastien suggests) is using the final draw
callback to make sure that the extra OpenGL rendering is done before taking the
screen capture.
chuck
-Original Message-
From: [EMAIL PROTECTED] [mailto:osg-users-
[EMAIL PROTECTED] On Behalf Of Jean-Sébastien Guay
Sent: Wednesday, June 25, 2008 2:14 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] Camera PostDraw Callback w/ OpenGL calls.
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
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org