X3D Model Documentation: ViewFrustumExample.x3d

  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='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.3.xsd'>
  4       <head>
  5            <meta name='titlecontent='ViewFrustumExample.x3d'/>
  6            <meta name='descriptioncontent='Display view frustum associated with a given pair of Viewpoint and NavigationInfo nodes, illustrating ProtoInstance reuse of a separately declared prototype.'/>
  7            <meta name='creatorcontent='Don Brutzman'/>
  8            <meta name='translatedcontent='16 August 2008'/>
  9            <meta name='modifiedcontent='20 October 2019'/>
 10            <meta name='referencecontent='ViewFrustumPrototype.x3d'/>
 11            <meta name='drawingcontent='ViewFrustumComputation.png'/>
 12            <meta name='Imagecontent='ViewFrustumOverheadView.png'/>
 13            <meta name='Imagecontent='ViewFrustumObliqueView.png'/>
 14            <meta name='Imagecontent='ViewpointCalculator.png'/>
 15            <meta name='Imagecontent='ViewpointCalculatorComposed.png'/>
 16            <meta name='subjectcontent='view culling frustum'/>
 17            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter14Prototypes/ViewFrustumExample.x3d'/>
 18            <meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
 19            <meta name='licensecontent='../license.html'/>
 20       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->

<!-- to top Index for DEF nodes: CoordinateAxes, GridXZ

Index for Viewpoint nodes: Viewpoint_1, Viewpoint_2, Viewpoint_3, Viewpoint_4, Viewpoint_5

Index for ExternProtoDeclare definition: ViewFrustum
-->
 21       <Scene>
 22            <WorldInfo title='ViewFrustumExample.x3d'/>
 23            <Viewpoint description='ViewFrustum from above, looking downorientation='1 0 0 -1.57position='0 40 0'/>
 24            <Viewpoint description='ViewFrustum from point of view'/>
 25            <Viewpoint description='ViewFrustum behind point of viewposition='0 0 15'/>
 26            <Viewpoint description='ViewFrustum oblique side vieworientation='0.8005 0.5926 0.0898 -0.3743position='-5 5 20'/>
 27            <NavigationInfo type='"EXAMINE" "FLY" "ANY"'/>
 28            <ExternProtoDeclare name='ViewFrustumappinfo='Display view frustum associated with a given pair of Viewpoint NavigationInfo nodes'   url=' "ViewFrustumPrototype.x3d#ViewFrustum" "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter14Prototypes/ViewFrustumPrototype.x3d#ViewFrustum" "ViewFrustumPrototype.wrl#ViewFrustum" "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter14Prototypes/ViewFrustumPrototype.wrl#ViewFrustum" '>
 29                 <field name='ViewpointNodetype='SFNodeaccessType='initializeOnly'
                appinfo='required: insert Viewpoint DEF or USE node for view of interest'/>
 30                 <field name='NavigationInfoNodetype='SFNodeaccessType='initializeOnly'
                appinfo='required: insert NavigationInfo DEF or USE node of interest'/>
 31                 <field name='visibletype='SFBoolaccessType='inputOutput'
                appinfo='whether or not frustum geometry is rendered'/>
 32                 <field name='lineColortype='SFColoraccessType='inputOutput'
                appinfo='RGB color of ViewFrustum outline, default value 0.9 0.9 0.9'/>
 33                 <field name='frustumColortype='SFColoraccessType='inputOutput'
                appinfo='RGB color of ViewFrustum hull geometry, default value 0.8 0.8 0.8'/>
 34                 <field name='transparencytype='SFFloataccessType='inputOutput'
                appinfo='transparency of ViewFrustum hull geometry, default value 0.5'/>
 35                 <field name='aspectRatiotype='SFFloataccessType='inputOutput'
                appinfo='assumed ratio height/width, default value 0.75'/>
 36                 <field name='tracetype='SFBoolaccessType='initializeOnly'
                appinfo='debug support, default false'/>
 37            </ExternProtoDeclare>
 38            <!-- Example use -->
 39            <ProtoInstance name='ViewFrustum'>
 40                 <fieldValue name='ViewpointNode'>
 41                      <!-- prefer empty description to prevent entry in player's ViewpointList -->
 42                      <Viewpoint description='ViewFrustum ViewpointNode'/>
 43                 </fieldValue>
 44                 <fieldValue name='NavigationInfoNode'>
 45                      <NavigationInfo visibilityLimit='15'/>
 46                 </fieldValue>
 47                 <fieldValue name='visiblevalue='true'/>
 48                 <fieldValue name='lineColorvalue='0.9 0.9 0.9'/>
 49                 <fieldValue name='frustumColorvalue='0.8 0.8 0.8'/>
 50                 <fieldValue name='transparencyvalue='0.75'/>
 51                 <fieldValue name='tracevalue='true'/>
 52            </ProtoInstance>
 53            <!-- Visualization assists -->
 54            <Inline DEF='GridXZ'   url=' "../../Savage/Tools/Authoring/GridXZ_20x20Fixed.x3d" "https://savage.nps.edu/Savage/Tools/Authoring/GridXZ_20x20Fixed.x3d" '/>
 55            <Transform scale='5 5 5'>
 56                 <Inline DEF='CoordinateAxes'   url=' "../Chapter03Grouping/CoordinateAxes.x3d" "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.x3d" '/>
 57            </Transform>
 58       </Scene>
 59  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->

<!-- to top Index for DEF nodes: CoordinateAxes, GridXZ

Index for Viewpoint nodes: Viewpoint_1, Viewpoint_2, Viewpoint_3, Viewpoint_4, Viewpoint_5

Index for ExternProtoDeclare definition: ViewFrustum
-->
X3D Tooltips element index: ExternProtoDeclare, field, fieldValue, head, Inline, meta, NavigationInfo, ProtoInstance, Scene, Transform, Viewpoint, WorldInfo, X3D, accessType and type, XML data types, field types

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


ProtoInstance
ViewFrustum
No ROUTE connection found for output events 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! 😀

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