X3D Model Documentation: Figure28_2AnchorLoadAnotherWorld.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='Figure28_2AnchorLoadAnotherWorld.x3d'/>
  6            <meta name='creatorcontent='Figure 28.2, The VRML 2.0 Sourcebook, Copyright [1997] By Andrea L. Ames, David R. Nadeau, and John L. Moreland'/>
  7            <meta name='referencecontent='http://www.wiley.com/legacy/compbooks/vrml2sbk/ch28/28fig02.htm'/>
  8            <meta name='translatorcontent='Don Brutzman'/>
  9            <meta name='createdcontent='6 October 2000'/>
 10            <meta name='modifiedcontent='20 October 2019'/>
 11            <meta name='descriptioncontent='Anchor parameter/target demonstrations: click left text to load another scene in the same window, or click right text to load another scene in a new window.'/>
 12            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter28Anchor/Figure28_2AnchorLoadAnotherWorld.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: BackingBoxForText, LEFT_CORNER_DEF_NAME, RIGHT_CORNER_DEF_NAME, TextAppearance, TextFontStyle

Index for Viewpoint nodes: Viewpoint_1, LEFT_CORNER_DEF_NAME, RIGHT_CORNER_DEF_NAME
-->
 16       <Scene>
 17            <WorldInfo title='Figure28_2AnchorLoadAnotherWorld.x3d'/>
 18            <Viewpoint description='Forward viewposition='0 1.6 5'/>
 19            <Viewpoint DEF='RIGHT_CORNER_DEF_NAMEdescription='Right corner vieworientation='0 1 0 0.611position='3.5 1.6 3.5'/>
 20            <Viewpoint DEF='LEFT_CORNER_DEF_NAMEdescription='Left corner vieworientation='0 1 0 -0.611position='-3.5 1.6 3.5'/>
 21            <NavigationInfo avatarSize='2 1 0.5headlight='falsespeed='2type='"EXAMINE" "WALK" "ANY"'/>
 22            <Inline   url=' "../Chapter25LevelOfDetail/Figure25_12DungeonRoomsWithSlidingDoors.x3d" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter25LevelOfDetail/Figure25_12DungeonRoomsWithSlidingDoors.x3d" "../Chapter25LevelOfDetail/Figure25_12DungeonRoomsWithSlidingDoors.wrl" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter25LevelOfDetail/Figure25_12DungeonRoomsWithSlidingDoors.wrl" '/>
 23            <Anchor description='Replace this scene by loading a new world'   url=' "../../Basic/course/HelloX3dAuthors.x3d" "https://www.web3d.org/x3d/content/examples/Basic/course/HelloX3dAuthors.x3d" "../../Basic/course/HelloX3dAuthors.wrl" "https://www.web3d.org/x3d/content/examples/Basic/course/HelloX3dAuthors.wrl" '>
 24                 <Transform translation='-1.75 0.6 0.15'>
 25                      <Collision enabled='false'>
 26                           <Shape>
 27                                <Text string='"Click for" "new world in" "same window"'>
 28 
                                   <!-- FontStyle TextFontStyle is a DEF node that has 1 USE node: USE_1 -->
                                   <FontStyle DEF='TextFontStylejustify='"MIDDLE" "MIDDLE"size='0.2'/>
 29                                </Text>
 30 
                              <!-- Appearance TextAppearance is a DEF node that has 1 USE node: USE_1 -->
                              <Appearance DEF='TextAppearance'>
 31                                     <Material diffuseColor='0.1 0.8 0.8emissiveColor='0 0.4 0.4shininess='0.4specularColor='0.8 0.8 0.8'/>
 32                                </Appearance>
 33                           </Shape>
 34 
                         <!-- Transform BackingBoxForText is a DEF node that has 1 USE node: USE_1 -->
                         <Transform DEF='BackingBoxForTexttranslation='0 -0.175 -0.1'>
 35                                <Shape>
 36                                     <Box size='1.2 0.75 0.02'/>
 37                                     <Appearance>
 38                                          <Material diffuseColor='0.9 0.9 0.9emissiveColor='0.9 0.9 0.9'/>
 39                                     </Appearance>
 40                                </Shape>
 41                           </Transform>
 42                      </Collision>
 43                 </Transform>
 44            </Anchor>
 45            <!-- Anchor parameter target=_blank launches browser results into a new window -->
 46            <Anchor description='Pop up a new world in a different windowparameter='"target=_blank"'   url=' "../../Basic/course/HelloX3dAuthors.x3d" "https://www.web3d.org/x3d/content/examples/Basic/course/HelloX3dAuthors.x3d" "../../Basic/course/HelloX3dAuthors.wrl" "https://www.web3d.org/x3d/content/examples/Basic/course/HelloX3dAuthors.wrl" '>
 47                 <Transform translation='1.75 0.6 0.15'>
 48                      <Collision enabled='false'>
 49                           <Shape>
 50                                <Text string='"Click for" "new world in" "new window"'>
 51                                     <FontStyle USE='TextFontStyle'/>
 52                                </Text>
 53                                <Appearance USE='TextAppearance'/>
 54                           </Shape>
 55                           <Transform USE='BackingBoxForText'/>
 56                      </Collision>
 57                 </Transform>
 58            </Anchor>
 59       </Scene>
 60  </X3D>
<!--

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

<!-- to top Index for DEF nodes: BackingBoxForText, LEFT_CORNER_DEF_NAME, RIGHT_CORNER_DEF_NAME, TextAppearance, TextFontStyle

Index for Viewpoint nodes: Viewpoint_1, LEFT_CORNER_DEF_NAME, RIGHT_CORNER_DEF_NAME
-->
X3D Tooltips element index: Anchor, Appearance, Box, Collision, FontStyle, head, Inline, Material, meta, NavigationInfo, Scene, Shape, Text, Transform, Viewpoint, 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='Replace this scene by loading a new world' 
User-interaction hint for this node. 


Anchor
description='Pop up a new world in a different window' 
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/Chapter28Anchor/Figure28_2AnchorLoadAnotherWorldIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter28Anchor/Figure28_2AnchorLoadAnotherWorld.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. -->