Hello all, I am relatively new to OSG and I am trying to create my own dataset with it. I need to render a high amount of scenes and save them as .jpg in a folder. The problem is that the scenes are saved as images after the viewer is closed manually. I would like to exit the viewer automatically after the scene is created so that it can be saved as .jpg in the folder.
The part of the code, where I get the scene and run the viewer is as follows: viewer4.getCamera()->setViewport(new osg::Viewport(0, 0, 2*width, 2*height)); viewer4.addEventHandler(new WindowResizeViewportHandler); viewer4.getCamera()->setClearColor(osg::Vec4(1.0f,1.0f,1.0f,1.0f)); viewer4.setSceneData(scene.get()); viewer4.run(); I would be very glad if anyone can help me with this issue. Best Regards, Diclehan Ulucan -- You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/a00dceb5-d699-4cfd-88db-4750e7e5ebe9n%40googlegroups.com.
