Files
OpenSceneGraph/examples
Robert Osfield 1402583d17 From Wang Rui, "Attachment is an example of rendering 3D scenes to high resolution screenshots.
I uses a queue of Camera objects to do offscreen rendering with the Camera::attach() function. The entire picture is split into many tiles and it will take a few seconds while attaching and detaching cameras with tiles. You may select to output every tile as an image file, or combine them together to create a large poster, for example, a 12800 x 9600 image.

Start the program like this:

./osgposter --output-poster --poster output.bmp --tilesize 800 600 --finalsize 8000 6000 cow.osg

Adjust the scene camera to a suitable position and press 'p' or 'P' on the keyboard. Wait until sub-cameras dispatching is finished. And the poster file will be created while closing window. A 8000 x 6000 output.bmp will be created to show a fine-printed cow. :)

The command below may also help:

./osgposter --help
 "
2010-12-13 13:37:37 +00:00
..
2010-03-25 14:12:28 +00:00
2009-01-07 11:24:47 +00:00
2009-01-07 11:24:47 +00:00
2009-09-04 09:11:49 +00:00
2009-10-16 17:22:20 +00:00
2010-11-22 11:22:03 +00:00
2009-01-08 12:47:20 +00:00
2009-02-03 15:28:53 +00:00
2008-07-12 11:19:25 +00:00
2008-10-27 10:40:13 +00:00
2009-12-15 14:45:33 +00:00
2010-06-03 15:04:58 +00:00
2010-11-22 11:22:03 +00:00
2010-11-22 11:22:03 +00:00
2008-12-18 13:56:30 +00:00
2010-03-11 10:17:50 +00:00
2010-11-22 11:22:03 +00:00
2008-12-18 13:56:30 +00:00
2008-12-18 13:56:30 +00:00