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

    r5927 r6051  
    4242                if (_firstTime==0.0)  
    4343                { 
    44                     _firstTime = frameStamp->getReferenceTime(); 
     44                    _firstTime = frameStamp->getSimulationTime(); 
    4545                } 
    4646                 
    47                 double phase = (frameStamp->getReferenceTime()-_firstTime)/_period; 
     47                double phase = (frameStamp->getSimulationTime()-_firstTime)/_period; 
    4848                phase -= floor(phase); 
    4949                phase *= (2.0 * osg::PI);