| 1 |
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "https://www.web3d.org/specifications/x3d-3.0.dtd">
|
| 3 | <X3D profile='Immersive' version='3.0' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.0.xsd'> |
| 4 | <head> |
| 5 | <meta name='title' content=' IkeaRockingHorse.x3d '/> |
| 6 | <meta name='description' content='X3D example Model of an Ikea Rocking Horse'/> |
| 7 | <meta name='created' content='3 March 2004'/> |
| 8 | <meta name='modified' content='20 October 2019'/> |
| 9 | <meta name='creator' content='Vaughn Pangelinan'/> |
| 10 | <meta name='identifier' content=' https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/IkeaRockingHorse.x3d '/> |
| 11 | <meta name='generator' content='X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit'/> |
| 12 | <meta name='license' content='../license.html'/> |
| 13 | </head> |
| 14 | <Scene> |
| 15 | <WorldInfo title='IkeaRockingHorse.x3d'/> |
| 16 | <Viewpoint DEF='HorseViewRight' description='See Horse Straight On' fieldOfView='1.4' position='0 12 22'/> |
| 17 | <Transform rotation='1 0 0 -1.57'> |
| 18 | <Transform> |
| 19 |
<!-- ROUTE information for RockingHorseTransform node:
[from HorsePlaneSensor.translation_changed to set_translation
]
-->
<Transform DEF='RockingHorseTransform'> |
| 20 |
<!-- ROUTE information for AutoRotateTransform node:
[from HorsePathInterpolator.value_changed to set_rotation
]
-->
<Transform DEF='AutoRotateTransform' center='0 50 0'> |
| 21 | <Viewpoint DEF='HorseViewOverhead' description='Rock With Horse From Overhead' fieldOfView='1.1' position='0 0 40'/> |
| 22 |
<!-- ROUTE information for HorsePlaneSensor node:
[from translation_changed to RockingHorseTransform.set_translation
]
-->
<PlaneSensor DEF='HorsePlaneSensor' description='Moves Horse around Floor' maxPosition='15 15' minPosition='-15 -15'/> |
| 23 | < ROUTE fromNode='HorsePlaneSensor' fromField='translation_changed' toNode='RockingHorseTransform' toField='set_translation'/> |
| 24 | <Transform rotation='1 0 0 1.57' translation='0 2 2'> |
| 25 | <Group> |
| 26 | <Transform scale='1.5 1 1' translation='0 0 6'> |
| 27 | |
| 28 | <Extrusion convex='false' creaseAngle='.785' crossSection='-2 -1 2 -1 2 1 -2 1 -2 -1' scale='.2 1 .6 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 .6 1 .2 1' solid='false' spine='-15 2.6 0 -14 2.25 0 -13 1.89 0 -12 1.6 0 -11 1.3 0 -10 1.08 0 -9 0.86 0 -8 0.66 0 -7 0.51 0 -6 0.39 0 -5 0.3 0 -4 0.19 0 -3 0.13 0 -2 0.07 0 -1 0.04 0 0 0 0 1 0.04 0 2 0.07 0 3 0.13 0 4 0.19 0 5 0.3 0 6 0.39 0 7 0.51 0 8 0.66 0 9 0.86 0 10 1.08 0 11 1.3 0 12 1.6 0 13 1.89 0 14 2.25 0 15 2.6 0'/> |
| 29 | <Appearance> |
| 30 | |
| 31 | </Appearance> |
| 32 | </Shape> |
| 33 | </Transform> |
| 34 | <Transform scale='1.5 1 1' translation='0 0 -6'> |
| 35 | <Shape USE='Rocker'/> |
| 36 | </Transform> |
| 37 | <Transform translation='-8 1.75 0'> |
| 38 |
<!-- Shape
RockerCrossBar is a DEF node that has 1 USE node: USE_1 -->
<Shape DEF='RockerCrossBar'> |
| 39 | <Appearance> |
| 40 | <Material USE='Wood'/> |
| 41 | </Appearance> |
| 42 | <Box size='4 .75 12'/> |
| 43 | </Shape> |
| 44 | </Transform> |
| 45 | <Transform translation='8 1.75 0'> |
| 46 | <Shape USE='RockerCrossBar'/> |
| 47 | </Transform> |
| 48 | <Transform translation='8 1.75 4'> |
| 49 |
<!-- Shape
RockerHindLeg is a DEF node that has 1 USE node: USE_1 -->
<Shape DEF='RockerHindLeg'> |
| 50 | <Appearance> |
| 51 | <Material DEF='NewGreen' diffuseColor='.1 .6 .1'/> |
| 52 | </Appearance> |
| 53 | <Extrusion convex='false' creaseAngle='.785' crossSection='-2 -.5 2 -.5 2 .5 -2 .5 -2 -.5' scale='1 1 .9 1 .8 1 .75 1 .8 1 .9 1 1 1 1 1' solid='false' spine='0 0 0 0 1 0 0 2 0 0 3 0 0 4 0 0 5 0 0 6 0 0 12 0'/> |
| 54 | </Shape> |
| 55 | </Transform> |
| 56 | <Transform translation='8 1.75 -4'> |
| 57 | <Shape USE='RockerHindLeg'/> |
| 58 | </Transform> |
| 59 | <Transform scale='1 1 .5' translation='3 14.25 0'> |
| 60 | <Shape DEF='RockerSeat'> |
| 61 | <Appearance> |
| 62 | <Material DEF='NewBlue' diffuseColor='.1 .1 .6'/> |
| 63 | </Appearance> |
| 64 | <Cylinder height='1' radius='12'/> |
| 65 | </Shape> |
| 66 | </Transform> |
| 67 | <Transform translation='-9.99 1.75 0'> |
| 68 | <Shape DEF='HorseFront'> |
| 69 | <Appearance> |
| 70 | <Material DEF='NewRed' diffuseColor='.7 .1 .1'/> |
| 71 | </Appearance> |
| 72 | <Extrusion convex='false' creaseAngle='.785' crossSection='0 0 3.75 0.28125 5.90625 2.625 7.21875 6.65625 7.78125 15.65625 5.15625 22.6875 4.40625 23.625 4.125 23.8125 3.46875 24 2.71875 23.8125 1.78125 22.875 0.75 20.90625 -3.5625 16.78125 -4.40625 15 -4.3125 13.125 -3.46875 11.90625 -1.96875 11.625 -0.46875 12.28125 0.9375 13.03125 1.875 13.03125 2.4375 12.46875 2.25 5.71875 1.40625 3.09375 0.46875 1.40625 0 0.5625 0 0' solid='false' spine='0 0 .5 0 0 -.5'/> |
| 73 | </Shape> |
| 74 | </Transform> |
| 75 | <Transform rotation='0 0 1 3.14' scale='1 1 1.35' translation='10 19.8 3.6'> |
| 76 | <Transform rotation='0 1 0 1.57'> |
| 77 | <Transform rotation='1 0 0 .3'> |
| 78 | <Shape DEF='SeatBack'> |
| 79 | <Appearance> |
| 80 | <Material DEF='NewYellow' diffuseColor='.8 .8 .1'/> |
| 81 | </Appearance> |
| 82 | <Extrusion convex='false' creaseAngle='.785' crossSection='0 6 0 1.976470588 0.635294118 0.988235294 1.270588235 0.423529412 2.117647059 0.070588235 2.752941176 0 3.6 0.211764706 4.376470588 0.705882353 4.870588235 1.482352941 5.082352941 2.258823529 5.082352941 6 0 6' solid='false' spine='0 0 .5 0 0 -.5'/> |
| 83 | </Shape> |
| 84 | </Transform> |
| 85 | </Transform> |
| 86 | </Transform> |
| 87 | <Transform rotation='1 0 0 1.57' translation='-6.5 24 0'> |
| 88 | <Shape DEF='RockerHandle'> |
| 89 | <Appearance> |
| 90 | <Material USE='Wood'/> |
| 91 | </Appearance> |
| 92 | <Cylinder height='10' radius='.75'/> |
| 93 | </Shape> |
| 94 | </Transform> |
| 95 | <Transform rotation='1 0 0 1.57' translation='-8.5 21 0'> |
| 96 | <Shape DEF='RockerEye'> |
| 97 | <Appearance> |
| 98 | <Material diffuseColor='0.1 0.1 0.1'/> |
| 99 | </Appearance> |
| 100 | <Cylinder height='1.01' radius='.75'/> |
| 101 | </Shape> |
| 102 | </Transform> |
| 103 | </Group> |
| 104 | </Transform> |
| 105 | </Transform> |
| 106 |
<!-- ROUTE information for CLOCK node:
[from fraction_changed to HorsePathInterpolator.set_fraction
]
-->
<TimeSensor DEF='CLOCK' cycleInterval='2' loop='true'/> |
| 107 |
<!-- ROUTE information for HorsePathInterpolator node:
[from CLOCK.fraction_changed to set_fraction
]
[from value_changed to AutoRotateTransform.set_rotation
]
-->
<OrientationInterpolator DEF='HorsePathInterpolator' key='0.0 0.125 0.25 0.375 0.5 0.625 0.75 0.875 1.0' keyValue='0.0 1.0 0.0 0.0 0.0 1.0 0.0 .04 0.0 1.0 0.0 .08 0.0 1.0 0.0 .04 0.0 1.0 0.0 0.0 0.0 1.0 0.0 -.04 0.0 1.0 0.0 -.08 0.0 1.0 0.0 -.04 0.0 1.0 0.0 0.0'/> |
| 108 | < ROUTE fromNode='CLOCK' fromField='fraction_changed' toNode='HorsePathInterpolator' toField='set_fraction'/> |
| 109 | < ROUTE fromNode='HorsePathInterpolator' fromField='value_changed' toNode='AutoRotateTransform' toField='set_rotation'/> |
| 110 | </Transform> |
| 111 | </Transform> |
| 112 | </Transform> |
| 113 | </Scene> |
| 114 | </X3D> |
Event Graph ROUTE Table entries with 3 ROUTE connections total, showing X3D event-model relationships for this scene.
Each row shows an event cascade that may occur during a single timestamp interval between frame renderings, as part of the X3D execution model.
|
CLOCK
TimeSensor fraction_changed SFFloat |
HorsePathInterpolator
OrientationInterpolator set_fraction SFFloat |
then
|
HorsePathInterpolator
OrientationInterpolator value_changed SFRotation |
AutoRotateTransform
Transform set_rotation SFRotation |
|
HorsePlaneSensor
PlaneSensor translation_changed SFVec3f |
RockingHorseTransform
Transform set_translation SFVec3f |
<!--
Color-coding legend: X3D terminology
<X3dNode
DEF='idName' field='value'/>
matches XML terminology
<XmlElement
DEF='idName' attribute='value'/>
(Light-blue background: event-based behavior node or statement)
(Grey background inside box: inserted documentation)
(Magenta background: X3D Extensibility)
-->
<!--
For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints.
-->