{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Immersive",
    "@version":"3.3",
    "@xsd:noNamespaceSchemaLocation":"https://www.web3d.org/specifications/x3d-3.3.xsd",
    "JSON schema":"https://www.web3d.org/specifications/x3d-4.0-JSONSchema.autogenerated.json",
    "head": {
        "meta": [
          {
            "@name":"title",
            "@content":"ViewFrustumExample.x3d"
          },
          {
            "@name":"description",
            "@content":"Display view frustum associated with a given pair of Viewpoint and NavigationInfo nodes, illustrating ProtoInstance reuse of a separately declared prototype."
          },
          {
            "@name":"creator",
            "@content":"Don Brutzman"
          },
          {
            "@name":"translated",
            "@content":"16 August 2008"
          },
          {
            "@name":"modified",
            "@content":"20 October 2019"
          },
          {
            "@name":"reference",
            "@content":"ViewFrustumPrototype.x3d"
          },
          {
            "@name":"drawing",
            "@content":"ViewFrustumComputation.png"
          },
          {
            "@name":"Image",
            "@content":"ViewFrustumOverheadView.png"
          },
          {
            "@name":"Image",
            "@content":"ViewFrustumObliqueView.png"
          },
          {
            "@name":"Image",
            "@content":"ViewpointCalculator.png"
          },
          {
            "@name":"Image",
            "@content":"ViewpointCalculatorComposed.png"
          },
          {
            "@name":"subject",
            "@content":"view culling frustum"
          },
          {
            "@name":"identifier",
            "@content":"https://X3dGraphics.com/examples/X3dForWebAuthors/Chapter14Prototypes/ViewFrustumExample.x3d"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit"
          },
          {
            "@name":"license",
            "@content":"../license.html"
          },
          {
            "@name":"translated",
            "@content":"25 April 2023"
          },
          {
            "@name":"generator",
            "@content":"X3dToJson.xslt, https://www.web3d.org/x3d/stylesheets/X3dToJson.html"
          },
          {
            "@name":"reference",
            "@content":"X3D JSON encoding: https://www.web3d.org/wiki/index.php/X3D_JSON_Encoding"
          }
        ]
    },
    "Scene": {
        "-children":[
          { "WorldInfo":
            {
              "@title":"ViewFrustumExample.x3d"
            }
          },
          { "Viewpoint":
            {
              "@description":"ViewFrustum from above, looking down",
              "@orientation":[1,0,0,-1.57],
              "@position":[0,40,0]
            }
          },
          { "Viewpoint":
            {
              "@description":"ViewFrustum from point of view"
            }
          },
          { "Viewpoint":
            {
              "@description":"ViewFrustum behind point of view",
              "@position":[0,0,15]
            }
          },
          { "Viewpoint":
            {
              "@description":"ViewFrustum oblique side view",
              "@orientation":[0.8005,0.5926,0.0898,-0.3743],
              "@position":[-5,5,20]
            }
          },
          { "NavigationInfo":
            {
              "@type":"\"EXAMINE\" \"FLY\" \"ANY\""
            }
          },
          { "ExternProtoDeclare":
            {
              "@name":"ViewFrustum",
              "@appinfo":"Display view frustum associated with a given pair of Viewpoint NavigationInfo nodes",
              "@url":["ViewFrustumPrototype.x3d#ViewFrustum","https://X3dGraphics.com/examples/X3dForWebAuthors/Chapter14Prototypes/ViewFrustumPrototype.x3d#ViewFrustum","ViewFrustumPrototype.wrl#ViewFrustum","https://X3dGraphics.com/examples/X3dForWebAuthors/Chapter14Prototypes/ViewFrustumPrototype.wrl#ViewFrustum"],
              "field": [
                {
                  "@name":"ViewpointNode",
                  "@accessType":"initializeOnly",
                  "@appinfo":"required: insert Viewpoint DEF or USE node for view of interest",
                  "@type":"SFNode"
                },
                {
                  "@name":"NavigationInfoNode",
                  "@accessType":"initializeOnly",
                  "@appinfo":"required: insert NavigationInfo DEF or USE node of interest",
                  "@type":"SFNode"
                },
                {
                  "@name":"visible",
                  "@accessType":"inputOutput",
                  "@appinfo":"whether or not frustum geometry is rendered",
                  "@type":"SFBool"
                },
                {
                  "@name":"lineColor",
                  "@accessType":"inputOutput",
                  "@appinfo":"RGB color of ViewFrustum outline, default value 0.9 0.9 0.9",
                  "@type":"SFColor"
                },
                {
                  "@name":"frustumColor",
                  "@accessType":"inputOutput",
                  "@appinfo":"RGB color of ViewFrustum hull geometry, default value 0.8 0.8 0.8",
                  "@type":"SFColor"
                },
                {
                  "@name":"transparency",
                  "@accessType":"inputOutput",
                  "@appinfo":"transparency of ViewFrustum hull geometry, default value 0.5",
                  "@type":"SFFloat"
                },
                {
                  "@name":"aspectRatio",
                  "@accessType":"inputOutput",
                  "@appinfo":"assumed ratio height/width, default value 0.75",
                  "@type":"SFFloat"
                },
                {
                  "@name":"trace",
                  "@accessType":"initializeOnly",
                  "@appinfo":"debug support, default false",
                  "@type":"SFBool"
                }
              ]
            }
          },
          {
            "#comment":"Example use"
          },
          { "ProtoInstance":
            {
              "@name":"ViewFrustum",
              "fieldValue": [
                {
                  "@name":"ViewpointNode",
                  "-children":[
                    {
                      "#comment":"prefer empty description to prevent entry in player's ViewpointList"
                    },
                    { "Viewpoint":
                      {
                        "@description":"ViewFrustum ViewpointNode"
                      }
                    }
                  ]
                },
                {
                  "@name":"NavigationInfoNode",
                  "-children":[
                    { "NavigationInfo":
                      {
                        "@visibilityLimit":15
                      }
                    }
                  ]
                },
                {
                  "@name":"visible",
                  "@value":true
                },
                {
                  "@name":"lineColor",
                  "@value":[0.9,0.9,0.9]
                },
                {
                  "@name":"frustumColor",
                  "@value":[0.8,0.8,0.8]
                },
                {
                  "@name":"transparency",
                  "@value":0.75
                },
                {
                  "@name":"trace",
                  "@value":true
                }
              ]
            }
          },
          {
            "#comment":"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],
              "-children":[
                { "Inline":
                  {
                    "@DEF":"CoordinateAxes",
                    "@url":["../Chapter03Grouping/CoordinateAxes.x3d","https://X3dGraphics.com/examples/X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.x3d"]
                  }
                }
              ]
            }
          }
        ]
    }
  }
}