<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "http://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 =' http://www.web3d.org/specifications/x3d-3.3.xsd '>
<head>
<meta name='titlecontent='ViewFrustumExample.x3d'/>
<meta name='descriptioncontent='Display view frustum associated with a given pair of Viewpoint and NavigationInfo nodes, illustrating ProtoInstance reuse of a separately declared prototype.'/>
<meta name='creatorcontent='Don Brutzman'/>
<meta name='translatedcontent='16 August 2008'/>
<meta name='modifiedcontent='15 April 2017'/>
<meta name='referencecontent='ViewFrustumPrototype.x3d'/>
<meta name='drawingcontent='ViewFrustumComputation.png'/>
<meta name='Imagecontent='ViewFrustumOverheadView.png'/>
<meta name='Imagecontent='ViewFrustumObliqueView.png'/>
<meta name='Imagecontent='ViewpointCalculator.png'/>
<meta name='Imagecontent='ViewpointCalculatorComposed.png'/>
<meta name='subjectcontent='view culling frustum'/>
<meta name='identifiercontent=' http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter14Prototypes/ViewFrustumExample.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../license.html'/>
</head>
<!--

Index for ExternProtoDeclare definition : ViewFrustum

Index for DEF nodes : CoordinateAxes, GridXZ

Index for Viewpoint images : Viewpoint_1, Viewpoint_2, Viewpoint_3, Viewpoint_4, Viewpoint_5
-->
<Scene>
<Viewpoint description='ViewFrustum from above, looking downorientation='1 0 0 -1.57position='0 40 0'/>
<Viewpoint description='ViewFrustum from point of view'/>
<Viewpoint description='ViewFrustum behind point of viewposition='0 0 15'/>
<Viewpoint description='ViewFrustum oblique side vieworientation='0.8005 0.5926 0.0898 -0.3743position='-5 5 20'/>
<NavigationInfo type='"EXAMINE" "FLY" "ANY"'/>
<ExternProtoDeclare name='ViewFrustumappinfo='Display view frustum associated with a given pair of Viewpoint NavigationInfo nodes'
  url=' "ViewFrustumPrototype.x3d#ViewFrustum" "http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter14Prototypes/ViewFrustumPrototype.x3d#ViewFrustum" "ViewFrustumPrototype.wrl#ViewFrustum" "http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter14Prototypes/ViewFrustumPrototype.wrl#ViewFrustum" '>
<field name='ViewpointNodetype='SFNodeaccessType='initializeOnly'
 appinfo='required: insert Viewpoint DEF or USE node for view of interest'/>

<field name='NavigationInfoNodetype='SFNodeaccessType='initializeOnly'
 appinfo='required: insert NavigationInfo DEF or USE node of interest'/>

<field name='visibletype='SFBoolaccessType='inputOutput'
 appinfo='whether or not frustum geometry is rendered'/>

<field name='lineColortype='SFColoraccessType='inputOutput'
 appinfo='RGB color of ViewFrustum outline, default value 0.9 0.9 0.9'/>

<field name='frustumColortype='SFColoraccessType='inputOutput'
 appinfo='RGB color of ViewFrustum hull geometry, default value 0.8 0.8 0.8'/>

<field name='transparencytype='SFFloataccessType='inputOutput'
 appinfo='transparency of ViewFrustum hull geometry, default value 0.5'/>

<field name='aspectRatiotype='SFFloataccessType='inputOutput'
 appinfo='assumed ratio height/width, default value 0.75'/>

<field name='tracetype='SFBoolaccessType='initializeOnly'
 appinfo='debug support, default false'/>
</ExternProtoDeclare>
<!-- Example use -->
<ProtoInstance name='ViewFrustum'>
<fieldValue name='ViewpointNode'>
<!-- prefer empty description to prevent entry in player's ViewpointList -->
<Viewpoint description='ViewFrustum ViewpointNode'/>
</fieldValue>
<fieldValue name='NavigationInfoNode'>
<NavigationInfo visibilityLimit='15'/>
</fieldValue>
<fieldValue name='visiblevalue='true'/>
<fieldValue name='lineColorvalue='0.9 0.9 0.9'/>
<fieldValue name='frustumColorvalue='0.8 0.8 0.8'/>
<fieldValue name='transparencyvalue='0.75'/>
<fieldValue name='tracevalue='true'/>
</ProtoInstance>
<!-- Visualization assists -->
<Inline DEF='GridXZ'
  url=' "../../Savage/Tools/Authoring/GridXZ_20x20Fixed.x3d" "https://savage.nps.edu/Savage/Tools/Authoring/GridXZ_20x20Fixed.x3d" '/>

<Transform scale='5 5 5'> </Transform>
</Scene>
</X3D>
<!--

Index for ExternProtoDeclare definition : ViewFrustum

Index for DEF nodes : CoordinateAxes, GridXZ

Index for Viewpoint images : Viewpoint_1, Viewpoint_2, Viewpoint_3, Viewpoint_4, Viewpoint_5
-->

<!-- Color key: <X3dNode DEF='idName' field='value'/> matches <XmlElement DEF='idName' attribute='value'/>
(Light blue background: behavior node) (Grey background: inserted documentation) (Magenta background: X3D Extensibility)
    <Prototype name='ProtoName'> <field name='fieldName'/> </Prototype> -->

<!-- Additional help information about X3D scenes: X3D Resources, X3D Scene Authoring Hints and X3D Tooltips -->