MovingBox.x3d

From Web3D.org
Revision as of 23:39, 29 July 2008 by Ahudson (Talk | contribs) (MovingBox)

Jump to: navigation, search

MovingBox

Test of an animated box using a looped TimeSensor driving a PositionInterpolator.

<?xml version='1.0' encoding='UTF-8'?>
<X3D profile='Interactive' version='3.0'>
<head>
</head>
<Scene>
      <Viewpoint description='V1'></Viewpoint>
      <Viewpoint description='V2'></Viewpoint>
      <TimeSensor DEF='TS' loop='true' cycleInterval='10.0'></TimeSensor>
      <Transform DEF='TG' rotation='0.0 1.0 0.0 0.78'>
         <Shape>
            <Appearance>
               <Material diffuseColor='1.0 0.0 0.0'></Material>
            </Appearance>
            <Box></Box>
         </Shape>
      </Transform>
      <PositionInterpolator DEF='PI' key='0.0 ,0.25 ,0.5 ,0.75 ,1.0' keyValue='0.0 0.0 0.0 ,-1.0 0.0 0.0 ,-1.0 1.0 0.0 ,0.0 1.0 0.0 ,0.0 0.0 0.0'></PositionInterpolator>
   <ROUTE fromNode='TS' fromField='fraction_changed' toNode='PI' toField='set_fraction'></ROUTE>
   <ROUTE fromNode='PI' fromField='value_changed' toNode='TG' toField='translation'></ROUTE>
</Scene>
</X3D>

Browser Results

Browser Version Result Notes
BS Contact 7.107 Expected
FreeWRL Untested
Octaga 2.2.0.12 Expected
Instant Reality 2.0.0_beta4 Expected
Vivaty 2.1 Expected
Xj3D 2_M1_DEV_2008-06_02 Expected