Hi Darin, You can easily create 360 degree image captures in your app by just creating a series of slave cameras that each take around a 90 degree portion of the view, the viewports for the cameras can be side by side so you don't see the seem. Alternatively you can render the slave cameras to a cubemap than have final pass where you render this texture - this enables you to do full dome projection with distortion correction.
It just so happens that the OSG already support full dome projection with distortion correction just do: viewer cow.osg --3d-sd This option calls the View::setUpViewFor3DSphericalDisplay(...), and if you have a look inside src/osgViewer/Viewer.cpp you'll find the implementation for it. It creates 7 slave cameras - 6 for the cube map and one for the final distortion correction pass. If you just want to do this all off screen then you you just use a pbuffer for graphics context rather than a conventional window. Also in your case you should be able to simplify the code from the 3DSphericalDisplay() example as you probably can get away with no distortion correction. Robert. On Wed, Jan 13, 2010 at 8:40 PM, Darin Kwasniewski <[email protected]> wrote: > Hi, > > Does there exist the capability utilizing the osg libraries to create the > JPG/PNG without running the viewer, i.e. without displaying the viewer > window. Is there an alternative to creating an image from the screen (and > then writing it to the file), or is running the viewer a necessity to > accomplish the rotation and image creation? > > Thank you! > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=22574#22574 > > > > > > _______________________________________________ > 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

