Hi Tomas,

- I tried to use the ScreenCaptureHandler, but this doesn't allow me to achieve 
what I want (I want to record several frames during a given period) because of 
the fact that it only takes screenshots when you press a key.

First of all, in the SVN version of the ScreenCaptureHandler, it has a mode that allows continuous capture (with a way to stop it of course). In osgviewer you can even try it out, pressing 'c' (lowercase) will capture a single frame and pressing 'C' will start/stop continuous capture.

If you're not using the SVN OSG and can't upgrade, then you can override the ScreenCaptureHandler class and make the changes I made (look at the code in SVN and do the same in your overridden class). I think the basic idea was, in the overridden handle() method, on FRAME events, call addCallbackToViewer(). But look at the code in SVN to be sure, it's been a while.

I really am starting to be in a rush for this project, and getting depressed by 
the complexity of getting a simple shot of the view.

Well, OpenGL and OSG are complex. But you're right, this was a very common request, which is why I tried to make the ScreenCaptureHandler easy to use and flexible.

Hope this helps,

J-S
--
______________________________________________________
Jean-Sebastien Guay    [email protected]
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to