X3D Model Documentation: KelpBulb.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  <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'>
  4       <head>
  5            <meta name='titlecontent='KelpBulb.x3d'/>
  6            <meta name='descriptioncontent='One leaf of Kelp moving around a Bulb. Cycle time is 11 seconds, which is twice the cycle time of tank surface motion.'/>
  7            <meta name='creatorcontent='Joseph Cannon, Dan DeVos'/>
  8            <meta name='createdcontent='25 September 1998'/>
  9            <meta name='modifiedcontent='20 October 2019'/>
 10            <meta name='referencecontent='KelpPrototype.x3d'/>
 11            <meta name='referencecontent='http://faculty.nps.edu/brutzman/kelp'/>
 12            <meta name='referencecontent='KelpForestDesignPaperWeb3dSymposiumFebruary2002.pdf'/>
 13            <meta name='referencecontent='https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/KelpForestDesignPaperWeb3dSymposiumFebruary2002.pdf'/>
 14            <meta name='referencecontent='https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/Teaching3d-KelpForestCaseStudy.pdf'/>
 15            <meta name='accessRightscontent='All content has permissions for free use. Please provide credit to the Naval Postgraduate School (NPS) Modeling Virtual Environments and Simulation (MOVES) Institute.'/>
 16            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/KelpBulb.x3d'/>
 17            <meta name='generatorcontent='Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html'/>
 18            <meta name='licensecontent='../license.html'/>
 19       </head>
<!--

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

<!-- to top Index for DEF nodes: ANIMATOR, BLADE_MOTION, BLADE_SHAPE, Bulb, HighResolutionLeaf, Leaf, LowResolutionLeaf, Stem, stipeColor
-->
 20       <Scene>
 21            <WorldInfo title='KelpBulb.x3d'/>
 22            <Group>
 23                 <Group>
 24                      <Transform rotation='0.0 0.0 1.0 1.5707'>
 25                           <Shape DEF='Stem'>
 26                                <Appearance>
 27 
                                   <!-- Material stipeColor is a DEF node that has 1 USE node: USE_1 -->
                                   <Material DEF='stipeColordiffuseColor='0.882 0.757 0.184'/>
 28                                </Appearance>
 29                                <Cylinder height='2.5radius='0.15'/>
 30                           </Shape>
 31                      </Transform>
 32                      <Transform scale='0.75 0.6 0.6translation='1.8 0.0 0.0'>
 33                           <Shape DEF='Bulb'>
 34                                <Appearance>
 35                                     <Material USE='stipeColor'/>
 36                                </Appearance>
 37                                <Sphere/>
 38                           </Shape>
 39                      </Transform>
 40                 </Group>
 41                 <LOD DEF='Leafrange='90'>
 42                      <Transform>
 43                           <Shape DEF='HighResolutionLeaf'>
 44                                <Appearance>
 45                                     <Material diffuseColor='0.694 0.525 0.176'/>
 46                                </Appearance>
 47 
                              <!-- ROUTE information for BLADE_SHAPE node:  [from BLADE_MOTION.value_changed to set_spine ] -->
                              <Extrusion DEF='BLADE_SHAPEbeginCap='falsecreaseAngle='1.57crossSection='0.06 1.0 0.06 -1.0 -0.06 -1.0 -0.06 1.0endCap='falseorientation='0.0 1.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 1.0 0.0 0.2 0.0 1.0 0.0 0.9 0.0 1.0 0.0 0.45 0.0 1.0 0.0 0.0scale='1.0 0.1 1.0 0.3 1.0 0.55 1.0 0.75 1.0 0.4 1.0 0.01solid='falsespine='1.9 0.0 0.0 2.5 0.0 0.0 4.0 0.0 0.0 7.0 0.0 0.0 16.0 0.0 0.0 21.0 0.0 0.0'/>
 48                           </Shape>
 49                      </Transform>
 50                      <Transform translation='1.0 0.0 0.0'>
 51                           <Shape DEF='LowResolutionLeaf'>
 52                                <Appearance>
 53                                     <Material diffuseColor='0.694 0.525 0.176'/>
 54                                </Appearance>
 55                                <IndexedFaceSet solid='falsecoordIndex='1 0 9 -1 2 1 9 8 -1 3 2 8 7 -1 4 3 7 6 -1 5 4 6'>
 56                                     <Coordinate point='0.0 0.0 0.0 1.0 0.5 0.0 4.0 1.1 0.0 7.0 1.5 0.0 16.0 0.8 0.0 21.0 0.0 0.0 16.0 -0.8 0.0 7.0 -1.5 0.0 4.0 -1.1 0.0 1.0 -0.5 0.0'/>
 57                                </IndexedFaceSet>
 58                           </Shape>
 59                      </Transform>
 60                 </LOD>
 61            </Group>
 62 
          <!-- ROUTE information for ANIMATOR node:  [from fraction_changed to BLADE_MOTION.set_fraction ] -->
          <TimeSensor DEF='ANIMATORcycleInterval='11.0loop='true'/>
 63 
          <!-- ROUTE information for BLADE_MOTION node:  [from ANIMATOR.fraction_changed to set_fraction ] [from value_changed to BLADE_SHAPE.set_spine ] -->
          <CoordinateInterpolator DEF='BLADE_MOTIONkey='0.0 0.25 0.5 0.75 1.0keyValue='1.9 0.0 0.0 2.5 0.0 0.0 4.0 0.0 0.0 7.0 0.0 0.0 16.0 0.0 0.0 21.0 0.0 0.0 1.9 0.0 0.0 2.5 0.6 0.0 4.0 1.0 0.0 7.0 3.0 0.0 16.0 3.5 0.0 21.0 0.0 0.0 1.9 0.0 0.0 2.5 0.0 0.0 4.0 0.0 0.0 7.0 0.0 0.0 16.0 0.6 0.0 21.0 2.0 0.0 1.9 0.0 0.0 2.5 -0.6 0.0 4.0 -1.0 0.0 7.0 -3.0 0.0 16.0 -3.5 0.0 21.0 0.0 0.0 1.9 0.0 0.0 2.5 0.0 0.0 4.0 0.0 0.0 7.0 0.0 0.0 16.0 0.0 0.0 21.0 0.0 0.0'/>
 64            < ROUTE  fromNode='ANIMATOR' fromField='fraction_changed' toNode='BLADE_MOTION' toField='set_fraction'/>
 65            < ROUTE  fromNode='BLADE_MOTION' fromField='value_changed' toNode='BLADE_SHAPE' toField='set_spine'/>
 66       </Scene>
 67  </X3D>
<!--

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

<!-- to top Index for DEF nodes: ANIMATOR, BLADE_MOTION, BLADE_SHAPE, Bulb, HighResolutionLeaf, Leaf, LowResolutionLeaf, Stem, stipeColor
-->
X3D Tooltips element index: Appearance, Coordinate, CoordinateInterpolator, Cylinder, Extrusion, Group, head, IndexedFaceSet, LOD, Material, meta, ROUTE, Scene, Shape, Sphere, TimeSensor, Transform, WorldInfo, X3D, accessType and type, XML data types, field types

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.

ANIMATOR
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(1)
BLADE_MOTION
CoordinateInterpolator
set_fraction
SFFloat
then
 
 
 
BLADE_MOTION
CoordinateInterpolator
value_changed
MFVec3f

ROUTE
event to
(2)
BLADE_SHAPE
Extrusion
set_spine
MFVec3f
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/X3dForWebAuthors/KelpForestExhibit/KelpBulbIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/KelpBulb.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. -->