<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://www.web3d.org/specifications/x3d-3.3.dtd">
<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 ' >
<head>
<meta name='titlecontent=' WhereAmIPrototype.x3d '/>
<meta name='descriptioncontent='Prototype node declaration for displaying current viewpoint location and orientation in the player console.'/>
<meta name='creatorcontent='Leonard Daly and Don Brutzman'/>
<meta name='createdcontent='1 January 1999'/>
<meta name='translatedcontent='5 May 2006'/>
<meta name='modifiedcontent='20 October 2019'/>
<meta name='referencecontent=' WhereAmIExample.x3d '/>
<meta name='referencecontent=' https://savage.nps.edu/Savage/Tools/Authoring/ViewPositionOrientationExample.x3d '/>
<meta name='referencecontent=' https://savage.nps.edu/Savage/Tools/Authoring/ViewPositionOrientationPrototype.x3d '/>
<meta name='referencecontent=' https://X3dGraphics.com '/>
<meta name='referencecontent=' https://www.web3d.org/x3d/content/examples/X3dResources.html '/>
<meta name='subjectcontent=' X3D book, X3D graphics, X3D-Edit, http://www.x3dGraphics.com '/>
<meta name='rightscontent='Copyright 1999, 2006, Daly Realism, Inc.'/>
<meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter14Prototypes/WhereAmIPrototype.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../license.html'/>
</head>
<!--

to top <!-- Event Graph ROUTE Table shows event connections -->
 
<!-- Index for DEF nodes: WhereDump, WhereSensor

Index for Viewpoint node: Viewpoint_1

Index for ProtoDeclare definition: WhereAmI
-->
<Scene>
<WorldInfo title='WhereAmIPrototype.x3d'/>
<ProtoDeclare name='WhereAmIappinfo='Prototype node for displaying current viewpoint location and orientation' >
<!-- No ProtoInterface fields are needed for this prototype -->
<ProtoBody>
<!-- ROUTE information for WhereSensor node:  [from orientation_changed to WhereDump.orientation ] [from position_changed to WhereDump.position ] -->
<ProximitySensor DEF='WhereSensorsize='100000 100000 100000'/>

<!-- no geometry is rendered in the current scene by the prototype -->
<field name='positiontype='SFVec3faccessType='inputOnly'/>
<field name='orientationtype='SFRotationaccessType='inputOnly'/>
</Script>
< ROUTE  fromNode=' WhereSensor' fromField='orientation_changed' toNode=' WhereDump' toField='orientation'/>
< ROUTE  fromNode=' WhereSensor' fromField='position_changed' toNode=' WhereDump' toField='position'/>
</ProtoBody>
</ProtoDeclare>
<!-- ProtoInstance instantiates (creates) a new node using the ProtoDeclare prototype definition -->
<ProtoInstance name='WhereAmI'/>
<Viewpoint description='WhereAmI prototype test'/>
<Shape>
<Text string='"Check X3D console" "while navigating for" "current viewpoint" "position, orientation"'>
<FontStyle justify='"MIDDLE" "MIDDLE"'/>
</Text>
<Appearance>
<Material ambientIntensity='0.23diffuseColor='0.5 0.243312 0.127417emissiveColor='0.015957 0.015957 0.015957shininess='0.03specularColor='0.276596 0.055086 0.01524'/>
</Appearance>
</Shape>
</Scene>
</X3D>
<!--

to top <!-- Event Graph ROUTE Table shows event connections -->
 
<!-- Index for DEF nodes: WhereDump, WhereSensor

Index for Viewpoint node: Viewpoint_1

Index for ProtoDeclare definition: WhereAmI
-->

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

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



ProtoInstance
WhereAmI
No ROUTE connection found for output from this node.
Contains SFNode/MFNode field with indirect access to other nodes. 


-->

<!-- Online at
https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter14Prototypes/WhereAmIPrototypeIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter14Prototypes/WhereAmIPrototype.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)
    <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. -->