X3D Model Documentation: AnchorExample.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='Interactive' 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='AnchorExample.x3d'/>
  6            <meta name='descriptioncontent='Simple anchor example illustrates the use of an Anchor link around the shapes used to build a door. Clicking on the door jumps you to a new world, the Stairway.'/>
  7            <meta name='creatorcontent='David R. Nadeau'/>
  8            <meta name='translatorcontent='Don Brutzman'/>
  9            <meta name='createdcontent='1 July 1998'/>
 10            <meta name='translatedcontent='2 February 2014'/>
 11            <meta name='modifiedcontent='1 September 2023'/>
 12            <meta name='referencecontent='Stairway.x3d'/>
 13            <meta name='referencecontent='originals/anchor.wrl'/>
 14            <meta name='referencecontent='http://www.siggraph.org/s98'/>
 15            <meta name='referencecontent='http://www.siggraph.org/s98/conference/courses/18.html'/>
 16            <meta name='referencecontent='http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/slides/mt0095.htm'/>
 17            <meta name='referencecontent='http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/vrml97.htm'/>
 18            <meta name='referencecontent='https://www.web3d.org/x3d/content/examples/X3dResources.html'/>
 19            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/AnchorExample.x3d'/>
 20            <meta name='generatorcontent='Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html'/>
 21            <meta name='generatorcontent='X3D-Edit, https://savage.nps.edu/X3D-Edit'/>
 22            <meta name='licensecontent='../license.html'/>
 23       </head>
<!--

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

<!-- to top Index for DEF node: Stair
-->
 24       <Scene>
 25            <!-- Things to experiment with: -->
 26            <!-- Change the anchor's URL to point to one of your own worlds. -->
 27            <!-- Add more doors and stairs. Add walls, floor, ceiling, etc. -->
 28            <WorldInfo title='AnchorExample.x3d'/>
 29            <Transform translation='0.0 -2.5 0.0'>
 30 
               <!-- Shape Stair is a DEF node that has 2 USE nodes: USE_1, USE_2 -->
               <Shape DEF='Stair'>
 31                      <Appearance>
 32                           <Material diffuseColor='1.0 1.0 1.0'/>
 33                      </Appearance>
 34                      <Box size='4.0 0.25 1.0'/>
 35                 </Shape>
 36                 <Transform translation='0.0 0.5 -1.0'>
 37                      <Shape USE='Stair'/>
 38                 </Transform>
 39                 <Transform translation='0.0 1.0 -2.0'>
 40                      <Shape USE='Stair'/>
 41                 </Transform>
 42                 <Transform translation='0.0 4.125 -2.6'>
 43                      <Anchor description='Twisty Stairs'   url=' "Stairway.x3d" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/Stairway.x3d" "Stairway.wrl" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/Stairway.wrl" '>
 44                           <Shape>
 45                                <Appearance>
 46                                     <Material diffuseColor='0.6 0.4 0.0'/>
 47                                </Appearance>
 48                                <Box size='3.0 6.0 0.2'/>
 49                           </Shape>
 50                           <Transform translation='1.18 -0.0 0.2'>
 51                                <Shape>
 52                                     <Appearance>
 53                                          <Material diffuseColor='0.3 0.3 0.3'/>
 54                                     </Appearance>
 55                                     <Sphere radius='0.15'/>
 56                                </Shape>
 57                           </Transform>
 58                      </Anchor>
 59                 </Transform>
 60            </Transform>
 61       </Scene>
 62  </X3D>
<!--

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

<!-- to top Index for DEF node: Stair
-->
X3D Tooltips element index: Anchor, Appearance, Box, head, Material, meta, Scene, Shape, Sphere, Transform, WorldInfo, X3D, accessType and type, XML data types, field types

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


Anchor
description='Twisty Stairs' 
User-interaction hint for this node. 
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/Vrml2Sourcebook/Siggraph98Course/AnchorExampleIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/AnchorExample.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. -->