1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "https://www.web3d.org/specifications/x3d-3.0.dtd">
|
3 | <X3D profile='Immersive' version='3.0' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.0.xsd'> |
4 | <head> |
5 | <meta name='title' content='set_groundcolor2.x3d'/> |
6 | <meta name='reference' content='http://www.nist.gov/vrml.html'/> |
7 | <meta name='reference' content='http://www.itl.nist.gov/div897/ctg/vrml/vrml.html'/> |
8 | <meta name='creator' content='http://www.itl.nist.gov/div897/ctg/vrml/members.html'/> |
9 | <meta name='disclaimer' content='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. '/> |
10 | <meta name='reference' content='Original NIST Conformance Testing Group, https://www.itl.nist.gov/div897/ctg/vrml'/> |
11 | <meta name='reference' content='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'/> |
12 | <meta name='info' content='Correct definition and compliance of this conformance scene is maintained by the X3D Working Group, https://www.web3d.org/working-groups/x3d'/> |
13 | <meta name='translator' content='Michael Kass NIST, Don Brutzman NPS'/> |
14 | <meta name='translated' content='21 January 2001'/> |
15 | <meta name='modified' content='28 August 2023'/> |
16 | <meta name='description' content='This test adresses the ability of a browser to associate different ground colors with a set of different groundangles defined in the grondangle field. Four Background node are defined in the local coordinate system. All of them belong to the same grouping node (Group node). The test is started by clicking on the text as indicated when the test is first loaded. After clicking on the appropriate color name, the test should generate a ground color of variations of the same color (the one clicked on). This is done by specifying number different ground color angles. The sky should be the same color regardless of the ground color and the region where the sky and the ground meet should be white, this is done to convey the idea of a horizon. There are five colors and four angles defined.'/> |
17 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/ConformanceNist/BindableNodes/Background/set_groundcolor2.x3d'/> |
18 | <meta name='generator' content='Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html'/> |
19 | <meta name='generator' content='X3D-Edit 4.0, https://savage.nps.edu/X3D-Edit'/> |
20 | <meta name='license' content='../../license.html'/> |
21 | </head> |
22 | <Scene> |
23 | <WorldInfo title='set_groundcolor2.x3d'/> |
24 | <NavigationInfo headlight='false' type='"EXAMINE" "WALK" "FLY" "ANY"'/> |
25 | <Group> |
26 | <Viewpoint DEF='the-view' description='Front View' position='0 0 20'/> |
27 | </Group> |
28 |
<!-- ROUTE information for browns node:
[from color-back1.value_out to set_bind
]
-->
<Background DEF='browns' groundAngle='1.35 1.45 1.52 1.57' groundColor='0.64705 0.1647 0.1647 0.69803 0.13333 0.13333 0.82352 0.41176 0.11764 0.82352 0.70588 0.54901 1 1 1' skyColor='0.52941 0.80784 0.92156'/> |
29 |
<!-- ROUTE information for greens node:
[from color-back2.value_out to set_bind
]
-->
<Background DEF='greens' groundAngle='1.35 1.45 1.52 1.57' groundColor='0.13333 0.54509 0.13333 0.60392 0.80392 0.19607 0.67843 0.8745 0.18431 0.4196 0.55686 0.13725 1 1 1' skyColor='0.52941 0.80784 0.92156'/> |
30 |
<!-- ROUTE information for salmons node:
[from color-back3.value_out to set_bind
]
-->
<Background DEF='salmons' groundAngle='1.35 1.45 1.52 1.57' groundColor='0.91372 0.58823 0.47843 0.98039 0.50196 0.44705 1 0.62745 0.47843 1 0.64705 0 1 1 1' skyColor='0.52941 0.80784 0.92156'/> |
31 |
<!-- ROUTE information for oranges node:
[from color-back4.value_out to set_bind
]
-->
<Background DEF='oranges' groundAngle='1.35 1.45 1.52 1.57' groundColor='0.91372 0.58823 0.47843 1 0.64705 0 1 0.54901 0 1 0.49803 0.31372 1 1 1' skyColor='0.52941 0.80784 0.92156'/> |
32 | <Transform translation='0 0 10'> |
33 | <Transform scale='0.02 0.02 0.02' translation='-5.4 2.4 0'> |
34 | <Shape> |
35 | <Appearance> |
36 | <Material ambientIntensity='1' diffuseColor='0 1 0' emissiveColor='0 1 0'/> |
37 | </Appearance> |
38 | <Text string='"CLICK BELOW TO SELECT GROUND COLOR"'> |
39 | |
40 | </Text> |
41 | </Shape> |
42 | </Transform> |
43 | <Transform scale='0.02 0.02 0.02' translation='-5.4 1.5 0'> |
44 | <Shape> |
45 |
<!-- Appearance
the-appearance is a DEF node that has 3 USE nodes: USE_1, USE_2, USE_3 -->
<Appearance DEF='the-appearance'> |
46 | <Material ambientIntensity='1' diffuseColor='0 0 1' emissiveColor='0 0 1'/> |
47 | </Appearance> |
48 | <Text string='"Browns"'> |
49 | <FontStyle USE='the-style'/> |
50 | </Text> |
51 | </Shape> |
52 |
<!-- ROUTE information for the-touch1 node:
[from isActive to color-back1.value_in
]
-->
<TouchSensor DEF='the-touch1' description='touch to activate'/> |
53 | </Transform> |
54 | <Transform scale='0.02 0.02 0.02' translation='-5.4 0.8 0'> |
55 | <Shape> |
56 | <Appearance USE='the-appearance'/> |
57 | <Text string='"Greens"'> |
58 | <FontStyle USE='the-style'/> |
59 | </Text> |
60 | </Shape> |
61 |
<!-- ROUTE information for the-touch2 node:
[from isActive to color-back2.value_in
]
-->
<TouchSensor DEF='the-touch2' description='touch to activate'/> |
62 | </Transform> |
63 | <Transform scale='0.02 0.02 0.02' translation='1 1.5 0'> |
64 | <Shape> |
65 | <Appearance USE='the-appearance'/> |
66 | <Text string='"Salmons"'> |
67 | <FontStyle USE='the-style'/> |
68 | </Text> |
69 | </Shape> |
70 |
<!-- ROUTE information for the-touch3 node:
[from isActive to color-back3.value_in
]
-->
<TouchSensor DEF='the-touch3' description='touch to activate'/> |
71 | </Transform> |
72 | <Transform scale='0.02 0.02 0.02' translation='1 0.8 0'> |
73 | <Shape> |
74 | <Appearance USE='the-appearance'/> |
75 | <Text string='"Oranges"'> |
76 | <FontStyle USE='the-style'/> |
77 | </Text> |
78 | </Shape> |
79 |
<!-- ROUTE information for the-touch4 node:
[from isActive to color-back4.value_in
]
-->
<TouchSensor DEF='the-touch4' description='touch to activate'/> |
80 | </Transform> |
81 | </Transform> |
82 |
<!-- ROUTE information for color-back1 node:
[from the-touch1.isActive to value_in
]
[from value_out to browns.set_bind
]
-->
<Script DEF='color-back1'> |
83 | <field name='value_in' type='SFBool' accessType='inputOnly'/> |
84 | <field name='value_out' type='SFBool' accessType='outputOnly'/> |
<![CDATA[
ecmascript: function value_in (the_value) { if (the_value == true) { value_out = true; } else { value_out = true; } }
]]>
|
|
86 | </Script> |
87 |
<!-- ROUTE information for color-back2 node:
[from the-touch2.isActive to value_in
]
[from value_out to greens.set_bind
]
-->
<Script DEF='color-back2'> |
88 | <field name='value_in' type='SFBool' accessType='inputOnly'/> |
89 | <field name='value_out' type='SFBool' accessType='outputOnly'/> |
<![CDATA[
ecmascript: function value_in (the_value) { if (the_value == true) { value_out = true; } else { value_out = true; } }
]]>
|
|
91 | </Script> |
92 |
<!-- ROUTE information for color-back3 node:
[from the-touch3.isActive to value_in
]
[from value_out to salmons.set_bind
]
-->
<Script DEF='color-back3'> |
93 | <field name='value_in' type='SFBool' accessType='inputOnly'/> |
94 | <field name='value_out' type='SFBool' accessType='outputOnly'/> |
<![CDATA[
ecmascript: function value_in (the_value) { if (the_value == true) { value_out = true; } else { value_out = true; } }
]]>
|
|
96 | </Script> |
97 |
<!-- ROUTE information for color-back4 node:
[from the-touch4.isActive to value_in
]
[from value_out to oranges.set_bind
]
-->
<Script DEF='color-back4'> |
98 | <field name='value_in' type='SFBool' accessType='inputOnly'/> |
99 | <field name='value_out' type='SFBool' accessType='outputOnly'/> |
<![CDATA[
ecmascript: function value_in (the_value) { if (the_value == true) { value_out = true; } else { value_out = true; } }
]]>
|
|
101 | </Script> |
102 | < ROUTE fromNode='the-touch1' fromField='isActive' toNode='color-back1' toField='value_in'/> |
103 | < ROUTE fromNode='the-touch2' fromField='isActive' toNode='color-back2' toField='value_in'/> |
104 | < ROUTE fromNode='the-touch3' fromField='isActive' toNode='color-back3' toField='value_in'/> |
105 | < ROUTE fromNode='the-touch4' fromField='isActive' toNode='color-back4' toField='value_in'/> |
106 | < ROUTE fromNode='color-back1' fromField='value_out' toNode='browns' toField='set_bind'/> |
107 | < ROUTE fromNode='color-back2' fromField='value_out' toNode='greens' toField='set_bind'/> |
108 | < ROUTE fromNode='color-back3' fromField='value_out' toNode='salmons' toField='set_bind'/> |
109 | < ROUTE fromNode='color-back4' fromField='value_out' toNode='oranges' toField='set_bind'/> |
110 | </Scene> |
111 | </X3D> |
Event Graph ROUTE Table entries with 8 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.
the-touch1
TouchSensor isActive SFBool |
color-back1
Script value_in SFBool |
then
|
color-back1
Script value_out SFBool |
browns
Background set_bind SFBool |
the-touch2
TouchSensor isActive SFBool |
color-back2
Script value_in SFBool |
then
|
color-back2
Script value_out SFBool |
greens
Background set_bind SFBool |
the-touch3
TouchSensor isActive SFBool |
color-back3
Script value_in SFBool |
then
|
color-back3
Script value_out SFBool |
salmons
Background set_bind SFBool |
the-touch4
TouchSensor isActive SFBool |
color-back4
Script value_in SFBool |
then
|
color-back4
Script value_out SFBool |
oranges
Background set_bind SFBool |
<!--
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)
-->
<!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->