#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 Interactive
# [X3D] version=3.0
# [X3D] noNamespaceSchemaLocation=https://www.web3d.org/specifications/x3d-3.0.xsd
# [head]
META "title" "hierarchy.x3d"
META "MovingImage" "hierarchy-movie.mpg"
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 "modified" "28 August 2023"
META "description" "Test of a ScalarInterpolator node to continue to generate and receive events when outside the Transform hierarchy. A Switch node is the parent of a ScalarInterpolator node that changes the illumination of a Cylinder geometry by a PointLight. The ScalarInterpolator has been \"switched out\" by setting the whichChoice field to -1. The result should be, the ScalarInterpolator should continue send and receive events, and animate the illumination of the Cylinder geometry."
META "identifier" "https://www.web3d.org/x3d/content/examples/ConformanceNist/Interpolators/ScalarInterpolator/hierarchy.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 "hierarchy.x3d"
}
NavigationInfo {
headlight FALSE
type [ "EXAMINE" "WALK" "FLY" "ANY" ]
}
Background {
groundColor [ 0 0 0 ]
skyColor [ 0.2 0.2 0.2 ]
}
DEF TIME TimeSensor {
cycleInterval 5
loop TRUE
}
Switch {
whichChoice -1
children [
DEF SCALAR_INTERPOLATOR ScalarInterpolator {
key [ 0 0.25 0.5 0.75 1 ]
keyValue [ 0 0.5 1 0.5 0 ]
}
]
}
Group {
children [
DEF TRANS Transform {
children [
Shape {
appearance Appearance {
material Material {
}
}
geometry Cylinder {
}
}
Transform {
translation 0 0 4
children [
DEF LIGHT SpotLight {
beamWidth 1.570796
cutOffAngle .785398
}
### Warning: SpotLight node location and radius are affected by translation and scaling of parent-hierarchy
]
}
]
}
]
}
ROUTE TIME.fraction_changed TO SCALAR_INTERPOLATOR.set_fraction
ROUTE SCALAR_INTERPOLATOR.value_changed TO LIGHT.intensity