X3D Model Documentation: AnchorComparison.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='AnchorComparison.x3d'/>
  6            <meta name='descriptioncontent='Anchor-node examples comparing HTML page launch, shifting Viewpoints, and loading another X3D scene.'/>
  7            <meta name='creatorcontent='Leonard Daly and Don Brutzman'/>
  8            <meta name='createdcontent='21 April 2011'/>
  9            <meta name='modifiedcontent='20 October 2019'/>
 10            <meta name='Imagecontent='AnchorComparisonFrontViewpoint.png'/>
 11            <meta name='Imagecontent='AnchorComparisonObliqueViewpoint.png'/>
 12            <meta name='referencecontent='Show Anchor link to Monterey Bay Aquarium web site for Kelp Forest exhibit'/>
 13            <meta name='referencecontent='http://www.mbayaq.org/efc/kelp.asp'/>
 14            <meta name='referencecontent='https://www.web3d.org/x3d/content/examples/X3dResources.html'/>
 15            <meta name='rightscontent='Copyright (c) 2005, Daly Realism and Don Brutzman'/>
 16            <meta name='subjectcontent='X3D book, X3D graphics, X3D-Edit, http://www.x3dGraphics.com'/>
 17            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter04ViewingNavigation/AnchorComparison.x3d'/>
 18            <meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
 19            <meta name='licensecontent='../license.html'/>
 20       </head>
<!--

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

<!-- to top Index for DEF nodes: AnchorExample, AnchorMessage2, AnchorMessage3, AngledView, Autumn11, FrontView, LocalFontStyle, TransparentBoxForEasierUserSelection

Index for Viewpoint nodes: AngledView, FrontView
-->
 21       <Scene>
 22            <WorldInfo title='AnchorComparison.x3d'/>
 23            <Viewpoint DEF='FrontViewdescription='Front view Anchor textposition='0 0 8'/>
 24            <Viewpoint DEF='AngledViewdescription='Side view Anchor textorientation='0 1 0 0.7854position='6 0 6'/>
 25            <Transform translation='0 2 0'>
 26                 <!-- First Anchor loads a web page -->
 27                 <Anchor DEF='AnchorExampledescription='Aquarium Exhibit Web Siteparameter='"target=_blank"'   url=' "http://www.montereybayaquarium.org/efc/kelp.asp" '>
 28                      <Shape>
 29                           <Text string='"Click orange text to launch" "Monterey Bay Aquarium" "kelp forest HTML page"'>
 30 
                              <!-- FontStyle LocalFontStyle is a DEF node that has 2 USE nodes: USE_1, USE_2 -->
                              <FontStyle DEF='LocalFontStylejustify='"MIDDLE" "MIDDLE"size='0.6'/>
 31                           </Text>
 32                           <Appearance>
 33                                <Material DEF='Autumn11ambientIntensity='0.25641diffuseColor='0.795918 0.273554 0.006861shininess='1specularColor='0.48655 0.319155 0.444036'>
 34                                     <!-- Universal Media Library: Autumn 11 -->
 35                                </Material>
 36                           </Appearance>
 37                      </Shape>
 38                      <!-- Add transparent geometry over the text to make clicking (i.e. Anchor selection) easier -->
 39 
                    <!-- Shape TransparentBoxForEasierUserSelection is a DEF node that has 2 USE nodes: USE_1, USE_2 -->
                    <Shape DEF='TransparentBoxForEasierUserSelection'>
 40                           <Box size='6 2 0.02'/>
 41                           <Appearance>
 42                                <Material transparency='1'/>
 43                           </Appearance>
 44                      </Shape>
 45                 </Anchor>
 46            </Transform>
 47            <!-- Second Anchor brings user to a different viewpoint -->
 48            <Transform translation='0 -0.25 0'>
 49                 <Anchor description='Move view to diagonal Viewpoint'   url=' "#AngledView" '>
 50                      <Shape DEF='AnchorMessage2'>
 51                           <Text string='"Click yellow text to move" "to a diagonal Viewpoint"'>
 52                                <FontStyle USE='LocalFontStyle'/>
 53                           </Text>
 54                           <Appearance>
 55                                <Material ambientIntensity='0.25641diffuseColor='0.222308 0.15428 0shininess='0.02specularColor='0.678571 0.661796 0.528818'>
 56                                     <!-- Universal Media Library: Metals 16 -->
 57                                </Material>
 58                           </Appearance>
 59                      </Shape>
 60                      <Shape USE='TransparentBoxForEasierUserSelection'/>
 61                 </Anchor>
 62            </Transform>
 63            <!-- Third Anchor Launches Kelp Forest scene -->
 64            <Transform translation='0 -2 0'>
 65                 <Anchor   url=' "../Chapter03Grouping/CoordinateAxes.x3d" "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.x3d" "../Chapter03Grouping/CoordinateAxes.wrl" "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.wrl" '>
 66                      <Shape DEF='AnchorMessage3'>
 67                           <Text string='"Click green text to load X3D" "CoordinateAxes.x3d scene"'>
 68                                <FontStyle USE='LocalFontStyle'/>
 69                           </Text>
 70                           <Appearance>
 71                                <Material ambientIntensity='0.25diffuseColor='0.315389 0.544 0.258052shininess='0.5specularColor='0.456 0.456 0.456'>
 72                                     <!-- Universal Media Library: Autumn 28 -->
 73                                </Material>
 74                           </Appearance>
 75                      </Shape>
 76                      <Shape USE='TransparentBoxForEasierUserSelection'/>
 77                 </Anchor>
 78            </Transform>
 79       </Scene>
 80  </X3D>
<!--

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

<!-- to top Index for DEF nodes: AnchorExample, AnchorMessage2, AnchorMessage3, AngledView, Autumn11, FrontView, LocalFontStyle, TransparentBoxForEasierUserSelection

Index for Viewpoint nodes: AngledView, FrontView
-->
X3D Tooltips element index: Anchor, Appearance, Box, FontStyle, head, Material, meta, 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='Move view to diagonal Viewpoint' 
User-interaction hint for this node. 

AnchorExample
Anchor
description='Aquarium Exhibit Web Site' 
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/X3dForWebAuthors/Chapter04ViewingNavigation/AnchorComparisonIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter04ViewingNavigation/AnchorComparison.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. -->