Hi Jerome, When you say you want to know the time of rendering, do you mean the time in seconds since the start of the viewers frame loop? Time of day?
Also how do you want to use the time? This is important to know as depending upon what task you have there are different ways to get the time in the more convenient way for that task - for instance update, event, cull and draw callbacks, or in the main loop. As a point of reference the OSG maintains an osg::FrameStamp object in the Viewer that is update once each frame by viewer.advance() and this FrameStamp is passed to all scene graph traversals. Robert. On 25 June 2012 05:29, J.YoungStone <[email protected]> wrote: > Hi, nice to meet you all. > > I'm beginner in OSG. > > I'm reading <OpenSceneGraph 3.0 Beginner's Guide> and > practicing the example in this book. > > Here are very simple example. > > #include <osgDB/ReadFile> > #include <osgViewer/Viewer> > > > Code: > int main( int argc, char** argv ) > { > osg::ref_ptr<osg::Node> root = osgDB::readNodeFile( "cessna.osg" ); > > osgViewer::Viewer viewer; > viewer.setSceneData( root.get() ); > > return viewer.run(); > } > > > > With this code, > I want to know the time of rendering. [Exclamation] > Are there some methods for this in OSG itself? > > If anyone knows please let me know. > ... > > Thank you! > > Cheers, > J.YoungStone > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=48466#48466 > > > > > > _______________________________________________ > 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

