Re: [osg-users] start/stop viewer

2009-04-07 Thread Robert Osfield
think of it? Thanks, bob *From:* osg-users-boun...@lists.openscenegraph.org [mailto: osg-users-boun...@lists.openscenegraph.org] *On Behalf Of *Robert Osfield *Sent:* Monday, April 06, 2009 2:37 PM *To:* OpenSceneGraph Users *Subject:* Re: [osg-users] start/stop viewer Hi Bob

Re: [osg-users] start/stop viewer

2009-04-07 Thread Thibault Genessay
...@lists.openscenegraph.org] On Behalf Of Robert Osfield Sent: Monday, April 06, 2009 2:37 PM To: OpenSceneGraph Users Subject: Re: [osg-users] start/stop viewer Hi Bob, The viewer only renders a frame when you call viewer.frame().  If you are calling the convenience function viewer.run

[osg-users] start/stop viewer

2009-04-06 Thread Bob Youmans
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

Re: [osg-users] start/stop viewer

2009-04-06 Thread Robert Osfield
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();

Re: [osg-users] start/stop viewer

2009-04-06 Thread Bob Youmans
...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert Osfield Sent: Monday, April 06, 2009 2:37 PM To: OpenSceneGraph Users Subject: Re: [osg-users] start/stop viewer Hi Bob, The viewer only renders a frame when you call viewer.frame(). If you are calling