<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.1//EN"   "http://www.web3d.org/specifications/x3d-3.1.dtd">
<X3D profile='Immersiveversion='3.1xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation=' http://www.web3d.org/specifications/x3d-3.1.xsd '>
<head>
<meta name='titlecontent='WhereAmI.x3d'/>
<meta name='descriptioncontent='PROTO for displaying current viewpoint location'/>
<meta name='creatorcontent='Leonard Daly and Don Brutzman'/>
<meta name='createdcontent='1 January 1999'/>
<meta name='translatedcontent='5 May 2006'/>
<meta name='modifiedcontent='13 March 2008'/>
<meta name='referencecontent=' http://X3dGraphics.com '/>
<meta name='referencecontent=' http://www.web3d.org/x3d/content/examples/X3dResources.html '/>
<meta name='rightscontent='Copyright 1999, 2006, Daly Realism, Inc.'/>
<meta name='subjectcontent=' X3D book, X3D graphics, X3D-Edit, http://www.x3dGraphics.com '/>
<meta name='identifiercontent=' http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter14-Prototypes/WhereAmI.x3d '/>
<meta name='generatorcontent='X3D-Edit, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent='../license.html'/>
</head>
<!--

Index for ProtoDeclare definition: WhereAmI
Index for DEF nodes: WhereDump, WhereSensor
Index for Viewpoint image: Viewpoint_1
-->
<Scene>
<ProtoDeclare name='WhereAmI'>
<!-- No ProtoInterface fields are needed for this prototype -->
<ProtoBody>
<!-- WhereSensor ROUTEs:  [from orientation_changed to WhereDump.orientation ] [from position_changed to WhereDump.position ] -->
<ProximitySensor DEF='WhereSensorsize='100000 100000 100000'/>
<!-- WhereDump ROUTEs:  [from WhereSensor.orientation_changed to orientation ] [from WhereSensor.position_changed to position ] -->
<Script DEF='WhereDump'
  url=' "WhereAmI.js" "../Chapter14-Prototypes/WhereAmI.js" "http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter14-Prototypes/WhereAmI.js" '>
<field name='positiontype='SFVec3faccessType='inputOnly'/>
<field name='orientationtype='SFRotationaccessType='inputOnly'/>
</Script>
<ROUTE fromNode='WhereSensorfromField='orientation_changedtoNode='WhereDumptoField='orientation'/>
<ROUTE fromNode='WhereSensorfromField='position_changedtoNode='WhereDumptoField='position'/>
</ProtoBody>
</ProtoDeclare>
<!-- ProtoInstance instantiates (creates) a new node using the ProtoDeclare prototype definition -->
<ProtoInstance name='WhereAmIcontainerField='children'/>
<Viewpoint description='WhereAmI prototype test'/>
<Shape>
<Text string='"Check X3D console" "while navigating for" "current viewpoint values"solid='true'>
<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>
<!--

Index for ProtoDeclare definition: WhereAmI
Index for DEF nodes: WhereDump, WhereSensor
Index for Viewpoint image: Viewpoint_1
-->

<!-- Tag color codes: <Node DEF='idName' attribute='value'/> <Prototype name='ProtoName'> <field name='fieldName'/> </Prototype> -->