Hi Manu, Use a PBuffer rather than a FBO, or if you need the advanced RTT features only supported by FBO use a pbuffer context with a FBO.
Robert. On Thu, Apr 30, 2009 at 4:11 PM, Emmanuel Roche <[email protected]> wrote: > Hi all, > > A shader OpenGL context related question now: > > suppose I want to pre-compute a few textures. > > - I can create the shader programs, > - prepare the textures and attach them to a camera object, > - create a viewer, set its camera > - and ask the camera to render to a frame buffer object. > > then what is the best setting so that I DON'T see the viewer window when I > call viewer->frame() ?? > > if I call viewer->setUpViewInWindow(-1, -1, 1, 1); for instance, can I > still render my texture properly ? (I guess so if I set the camera viewport > to the correct size, am I wrong ?) > > Or maybe there is a way to "hide" the window properly ? > > regards, > Manu. > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

