Difference between revisions of "MovingBox.x3d"

From Web3D.org
Jump to: navigation, search
(MovingBox)
(correct versions - final Flux is 2.1, final Vivaty is 1.0)
 
Line 53: Line 53:
 
| 2.0.0_beta4
 
| 2.0.0_beta4
 
| Expected  
 
| Expected  
|
 
 
|  
 
|  
 
|-
 
|-
| Vivaty
+
| Flux
 
| 2.1
 
| 2.1
 +
| Expected
 +
|
 +
|-
 +
| Vivaty
 +
| 1.0
 
| Expected
 
| Expected
 
|
 
|

Latest revision as of 19:09, 11 September 2011

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
Flux 2.1 Expected
Vivaty 1.0 Expected
Xj3D 2_M1_DEV_2008-06_02 Expected