Hi Wally,

have a look at the code path of the example:

osgprerender --image cow.osg

It already has a spinning cow and copies the image back in the callback. What you have to add is just the image write e.g.

osgDB::writeImageFile(*myIm, "im.jpg");

and maybe some manual stepping.

If you feel more adventurous, have a look at the osgscreencapture example.

jp

Wally Atkins wrote:
I am interested in creating a small OSG programs that will read in a model of 
whatever type and then render screen captures that would mimic a 360 rotation 
around the model. I would imagine this would be rather simple to write but my 
days of writing C++ are rusty at best and my initial attempts have proved to be 
fruitless (got a bunch of gray screen captures).

The basic idea is that I could run a command line program with one argument 
(the path to the model) and have that do the stepping, say 36 steps of 10 
degrees each, taking a screen capture at each step and outputting the sequence 
to JPG or PNG (i.e. model01.png, model02.png, ...).

Are there any kind souls out there that could help me with such a task or know 
of something that already may do such a thing?

Thanks in advance for your help,
Wally Atkins

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=16101#16101





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support.

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to