Hello Adam,

I have a somewhat strange question.  I want to render a scene to a frame buffer 
object to create an image.  I have that part working.  Now I want to make no 
windows or anything show up while I do the rendering.  I know this is a bit 
strange, but it would really help.  Basically it would do everything in the 
background and the user would be left with an image.

It's not strange, it's a very useful feature. The trick is that you need to create a pbuffer graphics context, and assign that to your viewer's camera. That will make all rendering happen strictly offscreen, no viewer window will show up.

Check the archives or the headers for how to create a pbuffer, essentially you just need to set traits.pbuffer = true when creating a graphics context.

Hope this helps,

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