TimeSensor nodes produce clock events that can drive event-producing interpolators for animating position, orientation and scale.
The TimeSensor node is similar to a stop watch: you control the start and stop time, it generates time events while running.
It can loop forever, or run through only one cycle and stop.
To animate a scene, route time events into other nodes.
PositionInterpolator can convert time events into 3D position or scale values.
OrientationInterpolator can animate rotation values.
ColorInterpolator can animate color values, and ScalarInterpolator can animate transparency values.
These X3D scenes are adapted directly from the
original VRML 2.0 Sourcebook chapter examples.
Also available:
Introduction to VRML97 SIGGRAPH98 course notes.
|