Hi Neil, Just use a an pbuffer or fbo of the desired size, render to it and then do an image->.readPixels(...) to grab the data, then osgDB::writeImageFile(..) to write it out.
Robet. On 11/10/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi All, Sorry if this has been covered a lot before, but could someone tell me whether it is possible to generate a snapshot of the current view, but at a resolution not linked to screen res. Essentially I can create a snap shot of the rendered scenegraph using the code in the examples, however I need to generate an image at a far higher resolution. To this end I created my on RenderSurface, assigned it to the cameras, ran the render cycle, and saved the resultant image back to file, but its empty. What I didn't do was create/assign a window to the rendersurface, as I don't really want to do that as it would imply that I'm going to get screen resolution, and not the size I want. Any help would be appreciated. Regards NEil. _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
