X3D Model Documentation: Basin.x3d

  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='titlecontent='Basin.x3d'/>
  6            <meta name='descriptioncontent='A basin for the kitchen.'/>
  7            <meta name='creatorcontent='Baris Aktop'/>
  8            <meta name='createdcontent='8 September 2002'/>
  9            <meta name='modifiedcontent='20 October 2019'/>
 10            <meta name='identifiercontent='https://savage.nps.edu/Savage/Buildings/HouseBarisAktop/Basin.x3d'/>
 11            <meta name='generatorcontent='X3D-Edit 3.2, https://savage.nps.edu/X3D-Edit'/>
 12            <meta name='licensecontent='../../license.html'/>
 13       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top Index for DEF nodes: basin, fountain, fountainapp, fountaintrans, nowater, open, water, waterflow, wood
-->
 14       <Scene>
 15            <WorldInfo title='Basin.x3d'/>
 16            <Group>
 17                 <Transform scale='0.5 0.5 0.5'>
 18                      <Transform>
 19                           <Shape>
 20                                <Extrusion creaseAngle='3.14crossSection='-1 0.9 -0.95 0.95 -0.9 1 0.9 1 0.95 0.95 1 0.9 1 -0.9 0.95 -0.95 0.9 -1 -0.9 -1 -0.95 -0.95 -1 -0.9 -1 0.9endCap='falsescale='1 1 1.05 1.05 1.1 1.1 1.15 1.15 1.2 1.2 1.25 1.25 1.35 1.35 1.5 1.5solid='falsespine='0 0 0 0 0.05 0 0 0.1 0 0 0.15 0 0 0.2 0 0 0.8 0 0 0.85 0 0 0.9 0'/>
 21 
                              <!-- Appearance basin is a DEF node that has 3 USE nodes: USE_1, USE_2, USE_3 -->
                              <Appearance DEF='basin'>
 22                                     <Material diffuseColor='0.9 0.9 0.9shininess='0.8'/>
 23                                </Appearance>
 24                           </Shape>
 25                      </Transform>
 26                      <Transform translation='0 -0.02 0'>
 27                           <Shape>
 28                                <Cylinder height='0.05radius='0.15'/>
 29                                <Appearance>
 30                                     <Material diffuseColor='0.3 0.3 0.3'/>
 31                                </Appearance>
 32                           </Shape>
 33                      </Transform>
 34                      <Transform rotation='0 1 0 1.57translation='0 0.015 0'>
 35                           <Shape>
 36                                <Box size='0.03 0.03 0.3'/>
 37                                <Appearance USE='basin'/>
 38                           </Shape>
 39                      </Transform>
 40                      <Transform translation='0 0.015 0'>
 41                           <Shape>
 42                                <Box size='0.03 0.03 0.3'/>
 43                                <Appearance USE='basin'/>
 44                           </Shape>
 45                      </Transform>
 46                 </Transform>
 47            </Group>
 48            <Group>
 49                 <Transform translation='0 0.25 0'>
 50                      <Shape>
 51                           <Appearance>
 52                                <Material diffuseColor='0.8 0.6 0'/>
 53                                <ImageTexture DEF='wood'   url=' "wood.jpg " "https://savage.nps.edu/Savage/Buildings/HouseBarisAktop/wood.jpg " '/>
 54                           </Appearance>
 55                           <Extrusion convex='falsecrossSection='0.75 -0.7 0.725 -0.725 0.7 -0.75 -0.7 -0.75 -0.725 -0.725 -0.75 -0.7 -0.75 0.7 -0.725 0.725 -0.7 0.75 0.7 0.75 0.725 0.725 0.75 0.7 0.75 -0.695 1.5 -1 1.5 1 -1.5 1 -1.5 -1 1.495 -1 0.75 -0.7solid='falsespine='0 0 0 0 0.2 0'/>
 56                      </Shape>
 57                 </Transform>
 58            </Group>
 59            <Group>
 60                 <Transform translation='0 0.4 -0.7'>
 61                      <Shape>
 62                           <Appearance USE='basin'/>
 63                           <Extrusion creaseAngle='3.14crossSection='-0.25 -0.05 0.25 -0.05 0.25 0.05 -0.25 0.05 -0.25 -0.05scale='1 1 1 1 0.9 0.9 0.8 0.8solid='falsespine='0 0 0 0 0.03 0 0 0.04 0 0 0.05 0'/>
 64                      </Shape>
 65 
                    <!-- ROUTE information for fountaintrans node:  [from fountain.rotation_changed to set_rotation ] -->
                    <Transform DEF='fountaintransrotation='1 0 0 0.5scale='0.05 0.05 0.05translation='0 0.03 0'>
 66                           <Shape>
 67                                <Extrusion creaseAngle='3.14crossSection='1 0 0.92 -0.38 0.71 -0.71 0.38 -0.92 0 -1 -0.38 -0.92 -0.71 -0.71 -0.92 -0.38 -1 0 -0.92 0.38 -0.71 0.71 -0.38 0.92 0 1 0.38 0.92 0.71 0.71 0.92 0.38 1 0endCap='falsespine='0 0 0 0 5 0 0 6.76 0.16 0 7.42 0.58 0 7.84 1.24 0 8 2 0 7.84 2.76 0 7.42 3.42 0 6.76 3.84'/>
 68 
                              <!-- Appearance fountainapp is a DEF node that has 2 USE nodes: USE_1, USE_2 -->
                              <Appearance DEF='fountainapp'>
 69                                     <Material diffuseColor='0.95 0.95 0.95shininess='1'/>
 70                                </Appearance>
 71                           </Shape>
 72 
                         <!-- ROUTE information for fountain node:  [from rotation_changed to fountaintrans.set_rotation ] -->
                         <SphereSensor DEF='fountaindescription='click and drag to rotate'/>
 73                           < ROUTE  fromNode='fountain' fromField='rotation_changed' toNode='fountaintrans' toField='set_rotation'/>
 74                      </Transform>
 75                      <Transform translation='-0.15 0.05 0'>
 76                           <Shape>
 77 
                              <!-- Sphere open is a DEF node that has 1 USE node: USE_1 -->
                              <Sphere DEF='openradius='0.05'/>
 78                                <Appearance USE='fountainapp'/>
 79                           </Shape>
 80                           <Sound maxBack='30maxFront='30minBack='10minFront='10'>
 81 
                              <!-- ROUTE information for waterflow node:  [from water.touchTime to set_startTime ] [from nowater.touchTime to set_stopTime ] -->
                              <AudioClip DEF='waterflowdescription='water flowloop='truestartTime='-1'   url=' "waterflow.wav" "https://savage.nps.edu/Savage/Buildings/HouseBarisAktop/waterflow.wav" '/>
 82                           </Sound>
 83 
                         <!-- ROUTE information for water node:  [from touchTime to waterflow.set_startTime ] -->
                         <TouchSensor DEF='waterdescription='touch to start water sound'/>
 84                           < ROUTE  fromNode='water' fromField='touchTime' toNode='waterflow' toField='set_startTime'/>
 85                      </Transform>
 86                      <Transform translation='0.15 0.05 0'>
 87                           <Shape>
 88                                <Sphere USE='open'/>
 89                                <Appearance USE='fountainapp'/>
 90                           </Shape>
 91 
                         <!-- ROUTE information for nowater node:  [from touchTime to waterflow.set_stopTime ] -->
                         <TouchSensor DEF='nowaterdescription='touch to silence water sound'/>
 92                           < ROUTE  fromNode='nowater' fromField='touchTime' toNode='waterflow' toField='set_stopTime'/>
 93                      </Transform>
 94                 </Transform>
 95            </Group>
 96       </Scene>
 97  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top Index for DEF nodes: basin, fountain, fountainapp, fountaintrans, nowater, open, water, waterflow, wood
-->
X3D Tooltips element index: Appearance, AudioClip, Box, Cylinder, Extrusion, Group, head, ImageTexture, Material, meta, ROUTE, Scene, Shape, Sound, Sphere, SphereSensor, TouchSensor, Transform, WorldInfo, X3D, plus documentation for accessType definitions, type definitions, XML data types, and field types

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.

nowater
TouchSensor
touchTime
SFTime

ROUTE
event to
(1)
waterflow
AudioClip
set_stopTime
SFTime

water
TouchSensor
touchTime
SFTime

ROUTE
event to
(1)
waterflow
AudioClip
set_startTime
SFTime

fountain
SphereSensor
rotation_changed
SFRotation

ROUTE
event to
(1)
fountaintrans
Transform
set_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://savage.nps.edu/Savage/Buildings/HouseBarisAktop/BasinIndex.html -->
<!-- Version control at
https://gitlab.nps.edu/Savage/Savage/Buildings/HouseBarisAktop/Basin.x3d -->

<!-- Color-coding legend: X3D terminology <X3dNode  DEF='idNamefield='value'/> matches XML terminology <XmlElement  DEF='idNameattribute='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. -->