Show
Ignore:
Timestamp:
01/25/07 13:02:51 (7 years ago)
Author:
robert
Message:

Added osg::FrameStamp::set/getSimulationTime().

Added setting of osg_SimulationTime and osg_DeltaSimulationTime to the uniforms set by SceneView?

Added frame(double simulationTime) and advance(double simulationTime) parameters to
osgViewer::SimpleViewer?, Vewer and CompositeViewer?.

Updated various examples and Nodes to use SimulationTime? where appropriate.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgfxbrowser/osgfxbrowser.cpp

    r5923 r6051  
    3535        osg::MatrixTransform *xform = dynamic_cast<osg::MatrixTransform *>(node); 
    3636        if (xform && enabled_) { 
    37             double t = nv->getFrameStamp()->getReferenceTime(); 
     37            double t = nv->getFrameStamp()->getSimulationTime(); 
    3838            xform->setMatrix(osg::Matrix::rotate(t, osg::Vec3(0, 0, 1))); 
    3939        }