#X3D V3.0 utf8
# X3D-to-ClassicVRML XSL translation autogenerated by X3dToVrml97.xslt
# https://www.web3d.org/x3d/content/X3dToVrml97.xslt
# Generated using XSLT processor: Saxonica
PROFILE Immersive
# [X3D] version=3.0
# [X3D] noNamespaceSchemaLocation=https://www.web3d.org/specifications/x3d-3.0.xsd
# [head]
META "title" "create_vrml_from_url_viewpoint.x3d"
META "Image" "create_vrml_from_url_viewpoint-front.jpg"
META "reference" "http://www.nist.gov/vrml.html"
META "reference" "http://www.itl.nist.gov/div897/ctg/vrml/vrml.html"
META "creator" "http://www.itl.nist.gov/div897/ctg/vrml/members.html"
META "disclaimer" "This file was provided by the National Institute of Standards and Technology, and is part of the X3D Conformance Test Suite, available at http://www.nist.gov/vrml.html The information contained within this file is provided for use in establishing conformance to the ISO VRML97 Specification. Conformance to this test does not imply recommendation or endorsement by the National Institute of Standards and Technology (NIST). This software can be redistributed and/or modified freely provided that any derivative works bear some notice that they are derived from it, and any modified versions bear some notice that they have been modified."
META "reference" "Original NIST Conformance Testing Group, https://www.itl.nist.gov/div897/ctg/vrml"
META "reference" "Interactive Conformance Testing for VRML, Mary Brady and Lynn Rosenthal, NIST, created 8 September 2010 and updated 25 August 2016, https://www.nist.gov/itl/ssd/information-systems-group/interactive-conformance-testing-vrml"
META "info" "Correct definition and compliance of this conformance scene is maintained by the X3D Working Group, https://www.web3d.org/working-groups/x3d"
### Info:
META "translator" "Michael Kass NIST, Don Brutzman NPS"
META "translated" "21 January 2001"
META "error" "problem in external .js script"
### Error:
META "modified" "28 August 2023"
META "description" "Test that a Viewpoint genereated by CreateVrmlFromUrl should not be bound. A Viewpoint node is introduced into this world via the createVrmlFromURL containing a REAR view Viewpoint node. Because the Viewpoint node is introduced via a createVrmlFromURL method, it should not be bound to the top of the stack. As a result, the default frontal Viewpoint values should be used by the browser, and the viewer should have a FRONT view of the cube geometry."
META "identifier" "https://www.web3d.org/x3d/content/examples/ConformanceNist/BindableNodes/Viewpoint/create_vrml_from_url_viewpoint.x3d"
META "generator" "Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html"
META "generator" "X3D-Edit 4.0, https://savage.nps.edu/X3D-Edit"
META "license" "../../license.html"
# [Scene] ========== ========== ==========
WorldInfo {
title "create_vrml_from_url_viewpoint.x3d"
}
NavigationInfo {
type [ "EXAMINE" ]
}
Background {
groundAngle [ 1.57 ]
groundColor [ 0 0.5 0 0 0.5 0 ]
skyColor [ 0 0 1 ]
}
DEF PROX_SENSOR ProximitySensor {
size 100 100 100
}
Shape {
appearance Appearance {
material Material {
}
texture ImageTexture {
url [ "front.jpg" "https://www.web3d.org/x3d/content/examples/ConformanceNist/BindableNodes/Viewpoint/front.jpg" ]
}
}
geometry IndexedFaceSet {
coordIndex [ 0 1 2 3 -1 ]
texCoordIndex [ 0 1 2 3 -1 ]
coord DEF CUBE Coordinate {
point [ -1 -1 1 1 -1 1 1 1 1 -1 1 1 1 1 -1 -1 1 -1 -1 -1 -1 1 -1 -1 ]
}
texCoord DEF SQUARE TextureCoordinate {
point [ 0 0 1 0 1 1 0 1 ]
}
}
}
Shape {
appearance Appearance {
material Material {
}
texture ImageTexture {
url [ "right.jpg" "https://www.web3d.org/x3d/content/examples/ConformanceNist/BindableNodes/Viewpoint/right.jpg" ]
}
}
geometry IndexedFaceSet {
coordIndex [ 1 7 4 2 -1 ]
texCoordIndex [ 0 1 2 3 -1 ]
coord USE CUBE
texCoord USE SQUARE
}
}
Shape {
appearance Appearance {
material Material {
}
texture ImageTexture {
url [ "rear.jpg" "https://www.web3d.org/x3d/content/examples/ConformanceNist/BindableNodes/Viewpoint/rear.jpg" ]
}
}
geometry IndexedFaceSet {
coordIndex [ 7 6 5 4 -1 ]
texCoordIndex [ 0 1 2 3 -1 ]
coord USE CUBE
texCoord USE SQUARE
}
}
Shape {
appearance Appearance {
material Material {
}
texture ImageTexture {
url [ "left.jpg" "https://www.web3d.org/x3d/content/examples/ConformanceNist/BindableNodes/Viewpoint/left.jpg" ]
}
}
geometry IndexedFaceSet {
coordIndex [ 0 3 5 6 -1 ]
texCoordIndex [ 1 2 3 0 -1 ]
coord USE CUBE
texCoord USE SQUARE
}
}
Shape {
appearance Appearance {
material Material {
}
texture ImageTexture {
url [ "top.jpg" "https://www.web3d.org/x3d/content/examples/ConformanceNist/BindableNodes/Viewpoint/top.jpg" ]
}
}
geometry IndexedFaceSet {
coordIndex [ 3 2 4 5 -1 ]
texCoordIndex [ 0 1 2 3 -1 ]
coord USE CUBE
texCoord USE SQUARE
}
}
Shape {
appearance Appearance {
material Material {
}
texture ImageTexture {
url [ "bottom.jpg" "https://www.web3d.org/x3d/content/examples/ConformanceNist/BindableNodes/Viewpoint/bottom.jpg" ]
}
}
geometry IndexedFaceSet {
coordIndex [ 0 6 7 1 -1 ]
texCoordIndex [ 3 0 1 2 -1 ]
coord USE CUBE
texCoord USE SQUARE
}
}
DEF TRANS Transform {
}
DEF MYSCRIPT Script {
initializeOnly SFNode myself USE MYSCRIPT
url [ ]
initializeOnly SFNode root USE TRANS
inputOnly SFBool trigger_event
directOutput TRUE
url [ "create_vrml_from_url_viewpoint.js" "https://www.web3d.org/x3d/content/examples/ConformanceNist/BindableNodes/Viewpoint/create_vrml_from_url_viewpoint.js"
]
}
ROUTE PROX_SENSOR.isActive TO MYSCRIPT.trigger_event