X3D Model Documentation: TestImages.x3d

  1  <?xml version="1.0" encoding="UTF-8"?>
  2  <!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.2//EN" "https://www.web3d.org/specifications/x3d-3.2.dtd">
  3  <X3D profile='Immersive' version='3.2 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.2.xsd'>
  4       <head>
  5            <component level='1name='DIS'/>
  6            <meta name='titlecontent='TestImages.x3d'/>
  7            <meta name='creatorcontent='Don Brutzman'/>
  8            <meta name='createdcontent='20 January 2009'/>
  9            <meta name='modifiedcontent='20 October 2019'/>
 10            <meta name='descriptioncontent='Verify renderability of png image textures using a Box.'/>
 11            <meta name='referencecontent='TestCube.x3d'/>
 12            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/Basic/DistributedInteractiveSimulation/TestImages.x3d'/>
 13            <meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
 14            <meta name='licensecontent='../license.html'/>
 15       </head>
<!--

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

<!-- to top Index for DEF nodes: BoxSwitcher, Clock, Sequencer, UnitBox

Index for Viewpoint nodes: Viewpoint_1, Viewpoint_2, Viewpoint_3, Viewpoint_4, Viewpoint_5, Viewpoint_6
-->
 16       <Scene>
 17            <WorldInfo title='TestImages.x3d'/>
 18            <Background skyColor='0.8 0.8 0.9'/>
 19            <Viewpoint description='Front vieworientation='0 1 0 1.57position='8 0 0'/>
 20 
          <!-- ROUTE information for BoxSwitcher node:  [from Sequencer.value_changed to whichChoice ] -->
          <Switch DEF='BoxSwitcherwhichChoice='-1'>
 21                 <Shape>
 22 
                    <!-- Box UnitBox is a DEF node that has 5 USE nodes: USE_1, USE_2, USE_3, USE_4, USE_5 -->
                    <Box DEF='UnitBox'/>
 23                      <Appearance>
 24                           <ImageTexture   url=' "images/front.png " "https://www.web3d.org/x3d/content/examples/Basic/DistributedInteractiveSimulation/images/front.png " '/>
 25                      </Appearance>
 26                 </Shape>
 27                 <Shape>
 28                      <Box USE='UnitBox'/>
 29                      <Appearance>
 30                           <ImageTexture   url=' "images/back.png " "https://www.web3d.org/x3d/content/examples/Basic/DistributedInteractiveSimulation/images/back.png " '/>
 31                      </Appearance>
 32                 </Shape>
 33                 <Shape>
 34                      <Box USE='UnitBox'/>
 35                      <Appearance>
 36                           <ImageTexture   url=' "images/left.png " "https://www.web3d.org/x3d/content/examples/Basic/DistributedInteractiveSimulation/images/left.png " '/>
 37                      </Appearance>
 38                 </Shape>
 39                 <Shape>
 40                      <Box USE='UnitBox'/>
 41                      <Appearance>
 42                           <ImageTexture   url=' "images/right.png " "https://www.web3d.org/x3d/content/examples/Basic/DistributedInteractiveSimulation/images/right.png " '/>
 43                      </Appearance>
 44                 </Shape>
 45                 <Shape>
 46                      <Box USE='UnitBox'/>
 47                      <Appearance>
 48                           <ImageTexture   url=' "images/top.png " "https://www.web3d.org/x3d/content/examples/Basic/DistributedInteractiveSimulation/images/top.png " '/>
 49                      </Appearance>
 50                 </Shape>
 51                 <Shape>
 52                      <Box USE='UnitBox'/>
 53                      <Appearance>
 54                           <ImageTexture   url=' "images/bottom.png " "https://www.web3d.org/x3d/content/examples/Basic/DistributedInteractiveSimulation/images/bottom.png " '/>
 55                      </Appearance>
 56                 </Shape>
 57            </Switch>
 58 
          <!-- ROUTE information for Clock node:  [from fraction_changed to Sequencer.set_fraction ] -->
          <TimeSensor DEF='ClockcycleInterval='12loop='true'/>
 59 
          <!-- ROUTE information for Sequencer node:  [from Clock.fraction_changed to set_fraction ] [from value_changed to BoxSwitcher.whichChoice ] -->
          <IntegerSequencer DEF='Sequencerkey='0 0.1667 0.3333 0.5 0.6667 0.8333 1keyValue='0 1 2 3 4 5 0'/>
 60            < ROUTE  fromNode='Clock' fromField='fraction_changed' toNode='Sequencer' toField='set_fraction'/>
 61            < ROUTE  fromNode='Sequencer' fromField='value_changed' toNode='BoxSwitcher' toField='whichChoice'/>
 62            <Viewpoint description='Back vieworientation='0 1 0 -1.57position='-8 0 0'/>
 63            <Viewpoint description='Left viewposition='0 0 8'/>
 64            <Viewpoint description='Right vieworientation='0 1 0 3.1416position='0 0 -8'/>
 65            <Viewpoint description='Top vieworientation='1 0 0 -1.57position='0 8 0'/>
 66            <Viewpoint description='Bottom vieworientation='1 0 0 1.57position='0 -8 0'/>
 67       </Scene>
 68  </X3D>
<!--

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

<!-- to top Index for DEF nodes: BoxSwitcher, Clock, Sequencer, UnitBox

Index for Viewpoint nodes: Viewpoint_1, Viewpoint_2, Viewpoint_3, Viewpoint_4, Viewpoint_5, Viewpoint_6
-->
X3D Tooltips element index: Appearance, Background, Box, component, head, ImageTexture, IntegerSequencer, meta, ROUTE, Scene, Shape, Switch, TimeSensor, Viewpoint, 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.

Clock
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(1)
Sequencer
IntegerSequencer
set_fraction
SFFloat
then
 
 
 
Sequencer
IntegerSequencer
value_changed
SFInt32

ROUTE
event to
(2)
BoxSwitcher
Switch
whichChoice
SFInt32
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/DistributedInteractiveSimulation/TestImagesIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Basic/DistributedInteractiveSimulation/TestImages.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. -->