X3D Model Documentation: TestDoctype.x3d

  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='titlecontent='TestDoctype.x3d'/>
 17            <meta name='creatorcontent='Don Brutzman'/>
 18            <meta name='createdcontent='14 July 2000'/>
 19            <meta name='modifiedcontent='21 January 2020'/>
 20            <meta name='descriptioncontent='A simple X3D scene to test XML declaration and DOCTYPE declaration syntax.'/>
 21            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/Basic/development/TestDoctype.x3d'/>
 22            <meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
 23            <meta name='licensecontent='../license.html'/>
 24       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->

<!-- to top Index for DEF nodes: EarthCoordinateSystem, MiniWorld, OrbitalTimeInterval, SimpleGeoStationarySatellite, SpinThoseThings, TEXT_MATERIAL

Index for Viewpoint node: Viewpoint_1
-->
 25       <Scene>
 26            <WorldInfo info='"Basic examples archive for development"title='TestDoctype.x3d checks XML declaration and DOCTYPE syntax'/>
 27            <Viewpoint description='Hello, worldorientation='0 1 0 3.14159position='0 0 -8'/>
 28 
          <!-- ROUTE information for EarthCoordinateSystem node:  [from SpinThoseThings.value_changed to rotation ] -->
          <Transform DEF='EarthCoordinateSystem'>
 29                 <Transform DEF='SimpleGeoStationarySatelliterotation='1 0 0 .3scale='0.1 0.3 0.1translation='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='OrbitalTimeIntervalcycleInterval='20.0loop='true'/>
 50 
          <!-- ROUTE information for SpinThoseThings node:  [from OrbitalTimeInterval.fraction_changed to set_fraction ] [from value_changed to EarthCoordinateSystem.rotation ] -->
          <OrientationInterpolator DEF='SpinThoseThingskey='0.00 0.25 0.50 0.75 1.00keyValue='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 shows event connections.
-->

<!-- to top Index for DEF nodes: EarthCoordinateSystem, MiniWorld, OrbitalTimeInterval, SimpleGeoStationarySatellite, SpinThoseThings, TEXT_MATERIAL

Index for Viewpoint node: Viewpoint_1
-->
X3D Tooltips element index: Appearance, FontStyle, Group, head, ImageTexture, Material, meta, OrientationInterpolator, ROUTE, Scene, Shape, Sphere, Text, TimeSensor, Transform, Viewpoint, WorldInfo, X3D, accessType and type, XML data types, field types
 55  <!-- this comment which appears after the X3D element is typically ignored by conversions -->

Event Graph ROUTE Table 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

ROUTE
event to
(1)
SpinThoseThings
OrientationInterpolator
set_fraction
SFFloat
then
 
 
 
SpinThoseThings
OrientationInterpolator
value_changed
SFRotation

ROUTE
event to
(2)
EarthCoordinateSystem
Transform
rotation
SFRotation
Additional guidance on X3D animation can be found in the 10-Step Animation Design Process and Event Tracing hint sheets. Have fun with X3D! 😀

-->
<!-- Online at
https://www.web3d.org/x3d/content/examples/Basic/development/TestDoctypeIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Basic/development/TestDoctype.x3d -->

<!-- Color 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)
-->

to top <!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->