value_changed.x3d

X_ITE X3D Player   Test of a PositionInterpolators ability to set its initial "value_changed" field to the correct value prior to receiving any events. Two PositionInterpolator node are associated with two seperate Box geometry. The PositionInterpolator associated with the Box on the left has a keyValue of 0 0 -4, while the PositionInterpolator associated with the right Box has the default of no keyValues, or [ ]. As a result, the PositionInterpolator on the left should initialize its "value_changed" field to the value of its first keyValue, or 0 0 4. Because no keyValues are provided to the right PositionInterpolator, it should initialize its "value_changed" field to the SFVec3f default value of 0 0 0. A Script node reads this value for each PositionInterpolator, and will translate the associated Box by a value equal to its initially read "value_changed" SFVec3f value when the geometry is indicated by the pointing device. When the pointing device passes over the left Box, it should translate by a value of 0 0 4 (move forward) each time it is indicated,then return to its original position when no longer indicated. When the pointing device passes over the right Box, it should translate to a value of 0 0 0 (it should NOT MOVE).

Display error: X3D model not shown.

Your HTML browser does not appear to support all features required by the X_ITE X3D player!

Original X3D scene: value_changed.x3d

X_ITE Console