| 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='title' content=' ViewFrustumExample.x3d '/> |
| 6 | <meta name='description' content='Display view frustum associated with a given pair of Viewpoint and NavigationInfo nodes, illustrating ProtoInstance reuse of a separately declared prototype.'/> |
| 7 | <meta name='creator' content='Don Brutzman'/> |
| 8 | <meta name='translated' content='16 August 2008'/> |
| 9 | <meta name='modified' content='20 October 2019'/> |
| 10 | <meta name='reference' content=' ViewFrustumPrototype.x3d '/> |
| 11 | <meta name='drawing' content='ViewFrustumComputation.png'/> |
| 12 |
<meta name='Image' content='ViewFrustumOverheadView.png' />
|
| 13 |
<meta name='Image' content='ViewFrustumObliqueView.png' />
|
| 14 |
<meta name='Image' content='ViewpointCalculator.png' />
|
| 15 |
<meta name='Image' content='ViewpointCalculatorComposed.png' />
|
| 16 | <meta name='subject' content='view culling frustum'/> |
| 17 | <meta name='identifier' content=' https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter14Prototypes/ViewFrustumExample.x3d '/> |
| 18 | <meta name='generator' content='X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit'/> |
| 19 | <meta name='license' content='../license.html'/> |
| 20 | </head> |
| 21 | <Scene> |
| 22 | <WorldInfo title='ViewFrustumExample.x3d'/> |
| 23 | <Viewpoint description='ViewFrustum from above, looking down' orientation='1 0 0 -1.57' position='0 40 0'/> |
| 24 | <Viewpoint description='ViewFrustum from point of view'/> |
| 25 | <Viewpoint description='ViewFrustum behind point of view' position='0 0 15'/> |
| 26 | <Viewpoint description='ViewFrustum oblique side view' orientation='0.8005 0.5926 0.0898 -0.3743' position='-5 5 20'/> |
| 27 | <NavigationInfo type='"EXAMINE" "FLY" "ANY"'/> |
| 28 | <ExternProtoDeclare name='ViewFrustum' appinfo='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='ViewpointNode' type='SFNode' accessType='initializeOnly'
appinfo='required: insert Viewpoint DEF or USE node for view of interest'/> |
| 30 |
<field name='NavigationInfoNode' type='SFNode' accessType='initializeOnly'
appinfo='required: insert NavigationInfo DEF or USE node of interest'/> |
| 31 |
<field name='visible' type='SFBool' accessType='inputOutput'
appinfo='whether or not frustum geometry is rendered'/> |
| 32 |
<field name='lineColor' type='SFColor' accessType='inputOutput'
appinfo='RGB color of ViewFrustum outline, default value 0.9 0.9 0.9'/> |
| 33 |
<field name='frustumColor' type='SFColor' accessType='inputOutput'
appinfo='RGB color of ViewFrustum hull geometry, default value 0.8 0.8 0.8'/> |
| 34 |
<field name='transparency' type='SFFloat' accessType='inputOutput'
appinfo='transparency of ViewFrustum hull geometry, default value 0.5'/> |
| 35 |
<field name='aspectRatio' type='SFFloat' accessType='inputOutput'
appinfo='assumed ratio height/width, default value 0.75'/> |
| 36 |
<field name='trace' type='SFBool' accessType='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='visible' value='true'/> |
| 48 | <fieldValue name='lineColor' value='0.9 0.9 0.9'/> |
| 49 | <fieldValue name='frustumColor' value='0.8 0.8 0.8'/> |
| 50 | <fieldValue name='transparency' value='0.75'/> |
| 51 | <fieldValue name='trace' value='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 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.
| line 39
ProtoInstance ViewFrustum |
No direct ROUTE connection found for events to/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. |
<!--
Color-coding 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>
-->
<!--
For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints.
-->