<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN"   "http://www.web3d.org/specifications/x3d-3.0.dtd">
<X3D profile='Immersiveversion='3.0xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation=' http://www.web3d.org/specifications/x3d-3.0.xsd '>
<head>
<meta name='titlecontent='ViewPositionOrientationExample.x3d'/>
<meta name='authorscontent='Leonard Daly and Don Brutzman'/>
<meta name='translatorcontent='Don Brutzman'/>
<meta name='createdcontent='1 November 2000'/>
<meta name='modifiedcontent='5 October 2005'/>
<meta name='descriptioncontent='As user navigates, display local position and orientation in the console output window. Various other output formats also available.'/>
<meta name='referencecontent=' http://www.realism.com/Web3D/Examples#WhereAmI '/>
<meta name='referencecontent=' http://www.realism.com/vrml/Example/WhereAmI/WhereAmI_Proto.wrl '/>
<meta name='identifiercontent='https://savage.nps.edu/Savage/Tools/Authoring/ViewPositionOrientationExample.x3d'/>
<meta name='identifiercontent=' http://www.web3d.org/x3d/content/examples/Basic/course/ViewPositionOrientationExample.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.2, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent='../license.html'/>
</head>
<!--

Index for ExternProtoDeclare definition: ViewPositionOrientation
Index for DEF node: CoordinateAxes
Index for Viewpoint image: Viewpoint_1
-->
<Scene>
<!-- Copy the ExternProtoDeclare and ProtoInstance for ViewPositionOrientation at the top of your scene graph to add this functionality into other worlds. -->
<ExternProtoDeclare name='ViewPositionOrientation'
  url=' "../../Tools/Authoring/ViewPositionOrientationPrototype.wrl#ViewPositionOrientation" "/www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/ViewPositionOrientationPrototype.wrl#ViewPositionOrientation" "https://savage.nps.edu/Savage/Tools/Authoring/ViewPositionOrientationPrototype.wrl#ViewPositionOrientation" "../../Tools/Authoring/ViewPositionOrientationPrototype.x3d#ViewPositionOrientation" "/www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/ViewPositionOrientationPrototype.x3d#ViewPositionOrientation" "https://savage.nps.edu/Savage/Tools/Authoring/ViewPositionOrientationPrototype.x3d#ViewPositionOrientation" "file:///c:/www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/ViewPositionOrientationPrototype.wrl#ViewPositionOrientation" '>
<field name='enabledtype='SFBoolaccessType='inputOutput'
 appinfo='Whether or not ViewPositionOrientation sends output to console.'/>
<field name='traceEnabledtype='SFBoolaccessType='initializeOnly'
 appinfo='Output internal trace messages for debugging this node - developer use only can be ignored.'/>
<field name='set_traceEnabledtype='SFBoolaccessType='inputOnly'
 appinfo='Ability to turn output tracing on/off at runtime.'/>
<field name='position_changedtype='SFVec3faccessType='outputOnly'
 appinfo='Output local position.'/>
<field name='orientation_changedtype='SFRotationaccessType='outputOnly'
 appinfo='Output local orientation.'/>
<field name='outputViewpointStringtype='MFStringaccessType='outputOnly'
 appinfo='MFString value of new Viewpoint for example: <Viewpoint position="20 15 20" orientation="-0.516 0.83 0.212 0.9195"/>'/>
</ExternProtoDeclare>
<ProtoInstance name='ViewPositionOrientationcontainerField='children'>
<fieldValue name='enabledvalue='true'/>
</ProtoInstance>
<!-- The rest of this example scene follows. -->
<Transform rotation='0 1 0 0.78translation='20 15 20'>
<Viewpoint description='ViewPositionOrientationorientation='1 0 0 -0.5position='0 0 0'/>
</Transform>
<Billboard>
<Transform translation='0 4 2'>
<Shape>
<Text string='"Open Browser Console output window" "and navigate to see changing values" "for view position and orientation"solid='true'>
<FontStyle justify='"MIDDLE" "MIDDLE"'/>
</Text>
<Appearance>
<Material diffuseColor='0.4 0.8 0.6shininess='0.8'/>
</Appearance>
</Shape>
</Transform>
<Transform translation='0 4 1.8'>
<Shape>
<Box size='14 4 0.1'/>
<Appearance>
<Material diffuseColor='1 1 1'/>
</Appearance>
</Shape>
</Transform>
</Billboard>
<Inline
  url=' "GridXZ_20x20Fixed.wrl" "https://savage.nps.edu/Savage/Tools/Authoring/GridXZ_20x20Fixed.wrl" "GridXZ_20x20Fixed.x3d" "https://savage.nps.edu/Savage/Tools/Authoring/GridXZ_20x20Fixed.x3d" '/>
<Transform scale='11 11 11'> </Transform>
</Scene>
</X3D>
<!--

Index for ExternProtoDeclare definition: ViewPositionOrientation
Index for DEF node: CoordinateAxes
Index for Viewpoint image: Viewpoint_1
-->

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