htmlAnimation4.x3d
Submitted by Leonard Daly on Sun, 01/10/2016 - 21:45
This is the X3D code for htmlAnimation4.x3d. This is also used htmlAnimation7.x3d by changing the 4 to 7 in cycleInterval. There are other minor but important changes from other incarnations of the animated basic scene having to do with assigning IDs to various tags and setting the enabled field to FALSE.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "http://www.web3d.org/specifications/x3d-3.3.dtd"> <X3D profile='Immersive' version='3.3' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='http://www.web3d.org/specifications/x3d-3.2.xsd'> <head> <meta content='animatedBasic.x3d' name='title'/> <meta content='Animated Basic test scene' name='description'/> <meta content='Leonard Daly' name='creator'/> <meta content='2016-01-07' name='created'/> <meta content='2016-01-07' name='modified'/> <meta content='Copyright 2014, Daly Realism' name='rights'/> <meta content='Creative Commons - Attribution, Share-Alike V4 (CC-BY-SA)' name='accessRights'/> <meta content='http://creativecommons.org/licenses/by-sa/4.0/legalcode' name='license'/> </head> <Scene> <Transform DEF='BoxOrbitor'> <Transform translation='-2 0 0'> <Shape> <Box size='2 2 2'></Box> <Appearance> <Material diffuseColor="1 0 0"></Material> </Appearance> </Shape> </Transform> </Transform> <Transform DEF='ConeLocator' translation='-2 2 0'> <Shape> <Cone height='2' bottomRadius='1'></Cone> <Appearance> <Material diffuseColor="1 1 0"></Material> </Appearance> </Shape> </Transform> <Transform translation='2 0 0'> <Shape> <Sphere radius='1'></Sphere> <Appearance> <Material diffuseColor="0 0 1"></Material> </Appearance> </Shape> </Transform> <Transform translation='0 0 -3'> <Shape> <Cylinder height='2' radius='1'></Cylinder> <Appearance> <Material DEF='CylinderColor' id='CylinderColor' class='CylinderColor' diffuseColor="0 1 0"></Material> </Appearance> </Shape> </Transform> <TimeSensor DEF='Timer' class='Timer' startTime='1' stopTime='0' enabled='FALSE' loop='TRUE' cycleInterval='4'></TimeSensor> <PositionInterpolator DEF='MoverCone' key='0 .5 1' keyValue='-2 2 0, -2 -2 0, -2 2 0'></PositionInterpolator> <ROUTE fromNode='Timer' fromField='fraction_changed' toNode='MoverCone' toField='set_fraction'></ROUTE> <ROUTE fromNode='MoverCone' fromField='value_changed' toNode='ConeLocator' toField='translation'></ROUTE> <OrientationInterpolator DEF='OrbitorBox' key='0 .5 1' keyValue='0 1 0 0, 0 1 0 3.14, 0 1 0 6.28'></OrientationInterpolator> <ROUTE fromNode='Timer' fromField='fraction_changed' toNode='OrbitorBox' toField='set_fraction'></ROUTE> <ROUTE fromNode='OrbitorBox' fromField='value_changed' toNode='BoxOrbitor' toField='rotation'></ROUTE> </Scene> </X3D>