X3D Model Documentation: WhereAmIPrototype.x3d go to online X3D Example Archives model page

  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='https://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.3.xsd'>
  4       <head>
  5            <meta name='title' content=' WhereAmIPrototype.x3d '/>
  6            <meta name='description' content='Prototype node declaration for displaying current viewpoint location and orientation in the player console.'/>
  7            <meta name='creator' content='Leonard Daly and Don Brutzman'/>
  8            <meta name='created' content='1 January 1999'/>
  9            <meta name='translated' content='5 May 2006'/>
 10            <meta name='modified' content='2 March 2026'/>
 11            <meta name='reference' content=' WhereAmIExample.x3d '/>
 12            <meta name='reference' content=' https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/ViewPositionOrientationExample.x3d '/>
 13            <meta name='reference' content=' https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/ViewPositionOrientationPrototype.x3d '/>
 14            <meta name='reference' content='https://X3dGraphics.com'/>
 15            <meta name='reference' content=' https://www.web3d.org/x3d/content/examples/X3dResources.html '/>
 16            <meta name='subject' content='X3D book, X3D graphics, X3D-Edit, http://www.x3dGraphics.com'/>
 17            <meta name='rights' content='Copyright 1999, 2006, Daly Realism, Inc.'/>
 18            <meta name='identifier' content=' https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter14Prototypes/WhereAmIPrototype.x3d '/>
 19            <meta name='generator' content='X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit'/>
 20            <meta name='license' content='../license.html'/>
 21       </head>
<!--

Event Graph ROUTE Table shows event connections.

--> <!-- to top DEF nodes index: WhereDump, WhereSensor

Index for Viewpoint node: Viewpoint_1

Index for ProtoDeclare definition: WhereAmI

-->
 22       <Scene>
 23            <WorldInfo title='WhereAmIPrototype.x3d'/>
 24            <ProtoDeclare name='WhereAmI' appinfo='Prototype node for displaying current viewpoint location and orientation'>
 25                 <!-- No ProtoInterface fields are needed for this prototype -->
 26                 <ProtoBody>
 27 
                    <!-- ROUTE information for WhereSensor node:  [from orientation_changed to WhereDump.orientation ] [from position_changed to WhereDump.position ] -->
                    <ProximitySensor DEF='WhereSensor' size='100000 100000 100000'/>
 28                      <!-- no geometry is rendered in the current scene by the prototype -->
 29 
 30                           <field name='position' type='SFVec3f' accessType='inputOnly'/>
 31                           <field name='orientation' type='SFRotation' accessType='inputOnly'/>
 32                      </Script>
 33                      < ROUTE  fromNode='WhereSensor' fromField='orientation_changed' toNode='WhereDump' toField='orientation'/>
 34                      < ROUTE  fromNode='WhereSensor' fromField='position_changed' toNode='WhereDump' toField='position'/>
 35                 </ProtoBody>
 36            </ProtoDeclare>
 37            <!-- ProtoInstance instantiates (creates) a new node using the ProtoDeclare prototype definition -->
 38            <ProtoInstance name='WhereAmI'/>
 39            <Viewpoint description='WhereAmI prototype test'/>
 40            <Shape>
 41                 <Text string='"Check X3D console" "while navigating for" "current viewpoint" "position, orientation"'>
 42                      <FontStyle justify='"MIDDLE" "MIDDLE"'/>
 43                 </Text>
 44                 <Appearance>
 45                      <Material ambientIntensity='0.23' diffuseColor='0.5 0.243312 0.127417' emissiveColor='0.015957 0.015957 0.015957' shininess='0.03' specularColor='0.276596 0.055086 0.01524'/>
 46                 </Appearance>
 47            </Shape>
 48       </Scene>
 49  </X3D>
<!--

Event Graph ROUTE Table shows event connections.

--> <!-- to top DEF nodes index: WhereDump, WhereSensor

Index for Viewpoint node: Viewpoint_1

Index for ProtoDeclare definition: WhereAmI

-->

X3D Tooltips element index: to top Appearance, field, FontStyle, head, Material, meta, ProtoBody, ProtoDeclare, ProtoInstance, ProximitySensor, ROUTE, Scene, Script, Shape, Text, Viewpoint, WorldInfo, X3D,
plus documentation for accessType definitions, type definitions, XML data types, and field types

🔖   Event Graph ROUTE Table entries with 2 ROUTE connections, showing X3D event-model relationships for this scene.

Each row with a ROUTE statement shows an event cascade that may occur during a single timestamp interval between frame renderings, performed as part of the X3D execution model.

WhereSensor
ProximitySensor
orientation_changed
SFRotation
→
ROUTE
event to
(1)
WhereDump
Script
orientation
SFRotation
WhereSensor
ProximitySensor
position_changed
SFVec3f
→
ROUTE
event to
(1)
WhereDump
Script
position
SFVec3f

      WhereDump
Script
No direct ROUTE connection found for events to/from this node.
This node is part of the WhereAmI ProtoDeclare prototype declaration.
This Script has no direct access to other nodes. 

line 38
ProtoInstance
WhereAmI
No direct ROUTE connection found for events to/from this node.
This ProtoInstance contains SFNode/MFNode fieldValue declarations with
direct access to other nodes, and thus has potential to produce run-time animation. 


Additional guidance on X3D animation can be found in the 10-Step Animation Design Process and Event Tracing hint sheets.
Have fun with X3D! 😀

-->
go to online X3D Example Archives model page <!-- Online at
https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter14Prototypes/WhereAmIPrototypeIndex.html -->
<!-- SourceForge version control Version control at    
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter14Prototypes/WhereAmIPrototype.x3d -->

<!-- Color-coding 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)
    <ProtoInstance name='ProtoName'> <field name='fieldName'/> </ProtoInstance> -->

to top <!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->