Re: [osg-users] request new frame manually
On 27 February 2012 12:51, Andrey Ibe wrote: > Thank you, Robert! > > it worked well. > > for the record, the correct call is made on osg::View > Code: > _view->requestRedraw() > > > I am puzzled how i could have missed the method in the sources :? It'll be easier to miss features when they are provided via base classes that aren't always obvious. The various ages of different components and maintaining backwards compatibility of the OSG components complicates some of the inheritance more than would be otherwise expected. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] request new frame manually
Thank you, Robert! it worked well. for the record, the correct call is made on osg::View Code: _view->requestRedraw() I am puzzled how i could have missed the method in the sources :? Cheers, Andrey -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=45791#45791 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] request new frame manually
Hi Audrey, I haven't tried exactly what you are doing but you could try : _viewer->requestRedraw(); This method is inherited from osgGA::GUIActionAdapter. Robert. On 26 February 2012 15:31, Andrey Ibe wrote: > Hello world! > > Until recently i had been using > > Code: > _viewer->setRunFrameScheme(osgViewer::ViewerBase::CONTINUOUS); > > but then i switched to > Code: > _viewer->setRunFrameScheme(osgViewer::ViewerBase::ON_DEMAND); > > and now i have a minor problem with window refresh. > > This should be fairly simple to do, i think, i just can't find the proper > method to do so - how do i request a osg::View to refresh ? (or it's camera, > or whole composite viewer - i don't care) i've been searching the > documentation as well as this forum with no success. > > There is a GLUT method that i am familiar with - glutPostRedisplay() - is > there any OSG equivalent? > > I am running some lengthy ray tracing computation and when it finishes, i > need the window that the result is displayed in to refresh. > > Thank you in advance! > > Cheers, > Andrey > > -- > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=45774#45774 > > > > > > ___ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] request new frame manually
Hello world! Until recently i had been using Code: _viewer->setRunFrameScheme(osgViewer::ViewerBase::CONTINUOUS); but then i switched to Code: _viewer->setRunFrameScheme(osgViewer::ViewerBase::ON_DEMAND); and now i have a minor problem with window refresh. This should be fairly simple to do, i think, i just can't find the proper method to do so - how do i request a osg::View to refresh ? (or it's camera, or whole composite viewer - i don't care) i've been searching the documentation as well as this forum with no success. There is a GLUT method that i am familiar with - glutPostRedisplay() - is there any OSG equivalent? I am running some lengthy ray tracing computation and when it finishes, i need the window that the result is displayed in to refresh. Thank you in advance! Cheers, Andrey -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=45774#45774 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org