Hi Bob,
The viewer only renders a frame when you call viewer.frame(). If you are
calling the convenience function viewer.run() then just replace this run
call with the constuent parts of Viewer::run() i.e.
while(!viewer.done())
{
viewer.advance();
viewer.eventTraversal();
viewer.updateTraversal();
viewer.renderingTraversals();
}
Robert.
On Mon, Apr 6, 2009 at 6:56 PM, Bob Youmans <[email protected]> wrote:
> Hello osg-list,
>
>
>
> I’d like to find the best way to adapt osg::viewer to control its
> rendering: in one case I want the usual case where viewer->run is doing its
> thing at 60 fps. But, then, I have other GUI windows (MFC-based) and I want
> to stop the viewer, and then render a single frame, all using the same
> geometry. What’s the best approach for such a design? Can I (using the
> examples for MFC) call viewer->stopThreads and then “manually” render a
> single frame, and then call run, startThreads, etc. subsequently, and
> repeat this as often as I like?
>
>
>
> Thanks,
>
> Bob
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org