| 1 |
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://www.web3d.org/specifications/x3d-3.3.dtd">
|
| 3 | <!-- XML declaration encoding must have all-capital letters for UTF-8 --> |
| 4 | <!-- Test case: <?xml version="1.0" encoding="utf-8"?> --> |
| 5 | <!-- DOCTYPE final forms: --> |
| 6 | <!-- <!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 4.0//EN" "https://www.web3d.org/specifications/x3d-4.0.dtd>" --> |
| 7 | <!-- <!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://www.web3d.org/specifications/x3d-3.3.dtd>" --> |
| 8 | <!-- <!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.2//EN" "https://www.web3d.org/specifications/x3d-3.2.dtd>" --> |
| 9 | <!-- <!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.1//EN" "https://www.web3d.org/specifications/x3d-3.1.dtd>" --> |
| 10 | <!-- <!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "https://www.web3d.org/specifications/x3d-3.0.dtd>" --> |
| 11 | <!-- DOCTYPE transitional forms (3.0 and 3.1 only): --> |
| 12 | <!-- <!DOCTYPE X3D PUBLIC "https://www.web3d.org/specifications/x3d-3.0.dtd" "file:///www.web3d.org/TaskGroups/x3d/translation/x3d-3.0.dtd>" --> |
| 13 | <!-- <!DOCTYPE X3D PUBLIC "https://www.web3d.org/specifications/x3d-3.1.dtd" "file:///www.web3d.org/TaskGroups/x3d/translation/x3d-3.1.dtd>" --> |
| 14 | <X3D profile='Immersive' version='3.3' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.3.xsd'> |
| 15 | <head> |
| 16 | <meta name='title' content=' TestDoctype.x3d '/> |
| 17 | <meta name='creator' content='Don Brutzman'/> |
| 18 | <meta name='created' content='14 July 2000'/> |
| 19 | <meta name='modified' content='21 January 2020'/> |
| 20 | <meta name='description' content='A simple X3D scene to test XML declaration and DOCTYPE declaration syntax.'/> |
| 21 | <meta name='identifier' content=' https://www.web3d.org/x3d/content/examples/Basic/development/TestDoctype.x3d '/> |
| 22 | <meta name='generator' content='X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit'/> |
| 23 | <meta name='license' content='../license.html'/> |
| 24 | </head> |
| 25 | <Scene> |
| 26 | <WorldInfo info='"Basic examples archive for development"' title='TestDoctype.x3d checks XML declaration and DOCTYPE syntax'/> |
| 27 | <Viewpoint description='Hello, world' orientation='0 1 0 3.14159' position='0 0 -8'/> |
| 28 |
<!-- ROUTE information for EarthCoordinateSystem node:
[from SpinThoseThings.value_changed to rotation
]
-->
<Transform DEF='EarthCoordinateSystem'> |
| 29 | <Transform DEF='SimpleGeoStationarySatellite' rotation='1 0 0 .3' scale='0.1 0.3 0.1' translation='0 0 5'> |
| 30 | <Shape> |
| 31 | <Appearance DEF='TEXT_MATERIAL'> |
| 32 | <Material diffuseColor='0.9 0.1 0.1'/> |
| 33 | </Appearance> |
| 34 | <Text string='"TestDoctype.x3d"'> |
| 35 | <FontStyle justify='"MIDDLE" "MIDDLE"' size='3'/> |
| 36 | </Text> |
| 37 | </Shape> |
| 38 | </Transform> |
| 39 | <Group DEF='MiniWorld'> |
| 40 | <Shape> |
| 41 | <Appearance> |
| 42 |
<ImageTexture
url=' "earth-topo.png
" "earth-topo.gif
" "https://www.web3d.org/x3d/content/earth-topo.png
" "https://www.web3d.org/x3d/content/earth-topo.gif
" '/>
|
| 43 | <Material emissiveColor='.05 .05 .1'/> |
| 44 | </Appearance> |
| 45 | <Sphere/> |
| 46 | </Shape> |
| 47 | </Group> |
| 48 | </Transform> |
| 49 |
<!-- ROUTE information for OrbitalTimeInterval node:
[from fraction_changed to SpinThoseThings.set_fraction
]
-->
<TimeSensor DEF='OrbitalTimeInterval' cycleInterval='20.0' loop='true'/> |
| 50 |
<!-- ROUTE information for SpinThoseThings node:
[from OrbitalTimeInterval.fraction_changed to set_fraction
]
[from value_changed to EarthCoordinateSystem.rotation
]
-->
<OrientationInterpolator DEF='SpinThoseThings' key='0.00 0.25 0.50 0.75 1.00' keyValue='0 1 0 0 0 1 0 1.57079 0 1 0 3.14159 0 1 0 4.7123889 0 1 0 6.2831852'/> |
| 51 | < ROUTE fromNode='OrbitalTimeInterval' fromField='fraction_changed' toNode='SpinThoseThings' toField='set_fraction'/> |
| 52 | < ROUTE fromNode='SpinThoseThings' fromField='value_changed' toNode='EarthCoordinateSystem' toField='rotation'/> |
| 53 | </Scene> |
| 54 | </X3D> |
Event Graph ROUTE Table entries with 2 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.
|
OrbitalTimeInterval
TimeSensor fraction_changed SFFloat |
SpinThoseThings
OrientationInterpolator set_fraction SFFloat |
then
|
SpinThoseThings
OrientationInterpolator value_changed SFRotation |
EarthCoordinateSystem
Transform rotation SFRotation |
<!--
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.
-->