Show
Ignore:
Timestamp:
01/25/07 13:02:51 (8 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/osgparametric/osgparametric.cpp

    r5983 r6051  
    8383    { 
    8484        const osg::FrameStamp* fs = nv->getFrameStamp(); 
    85         float value = sinf(fs->getReferenceTime()); 
     85        float value = sinf(fs->getSimulationTime()); 
    8686        uniform->set(osg::Vec4(value,-value,-value,value)); 
    8787    }