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/osganimate/osganimate.cpp

    r5910 r6051  
    234234    viewer.setSceneData(rootnode); 
    235235 
    236     return viewer.run(); 
    237 } 
     236    viewer.setCameraManipulator(new osgGA::TrackballManipulator()); 
     237 
     238    viewer.realize(); 
     239 
     240    double simulationTime = 100.0; 
     241     
     242    while (!viewer.done()) 
     243    { 
     244        viewer.frame(simulationTime); 
     245        simulationTime -= 0.01; 
     246    } 
     247}