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='direction.x3d'/> |
6 | <meta name='MovingImage' content='direction-movie.mpg'/> |
7 | <meta name='reference' content='http://www.nist.gov/vrml.html'/> |
8 | <meta name='reference' content='http://www.itl.nist.gov/div897/ctg/vrml/vrml.html'/> |
9 | <meta name='creator' content='http://www.itl.nist.gov/div897/ctg/vrml/members.html'/> |
10 | <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. '/> |
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='Test direction. A Sound node can have its "direction" field changed by clicking on any of the 3 buttons in the left portion of this world. Each will change a Sound ellipsoids orientation along one of the 3 axies (X, Y or Z). As a result, sound audibility should be confined to the inner portion of the particular ellipsoid that is aligned with the Sounds direction. Clicking on a button, and then using the worlds Viewpoints to navigate in and out of the 3 ellipsoids should verify that a Sound is audible only along its current "direction" ellipsoid.'/> |
17 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/ConformanceNist/Sounds/Sound/direction.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='direction.x3d'/> |
24 |
<!-- ROUTE information for OUTSIDEMAXFRONT node:
[from isBound to SOUND_SCRIPT.printOutsideMaxFront
]
-->
<Viewpoint DEF='OUTSIDEMAXFRONT' description='FRONT: Outside maxFront (no sound)' position='0 0 60'/> |
25 |
<!-- ROUTE information for BETWEENFRONT node:
[from isBound to SOUND_SCRIPT.printBetweenFront
]
-->
<Viewpoint DEF='BETWEENFRONT' description='Just inside max ellipsoid (max sound)' position='0 0 14'/> |
26 |
<!-- ROUTE information for OUTSIDEMAXRIGHT node:
[from isBound to SOUND_SCRIPT.printOutsideMaxRight
]
-->
<Viewpoint DEF='OUTSIDEMAXRIGHT' description='RIGHT: Outside max ellipsoid, (no sound)' orientation='0 1 0 1.57' position='60 0 0'/> |
27 |
<!-- ROUTE information for BETWEENRIGHT node:
[from isBound to SOUND_SCRIPT.printBetweenRight
]
-->
<Viewpoint DEF='BETWEENRIGHT' description='Just inside max ellipsoid, (max sound)' orientation='0 1 0 1.57' position='14 0 0'/> |
28 |
<!-- ROUTE information for OUTSIDEMAXTOP node:
[from isBound to SOUND_SCRIPT.printOutsideMaxTop
]
-->
<Viewpoint DEF='OUTSIDEMAXTOP' description='TOP: Outside max ellipsoid, (no sound)' orientation='1 0 0 -1.57' position='0 60 0'/> |
29 |
<!-- ROUTE information for BETWEENTOP node:
[from isBound to SOUND_SCRIPT.printBetweenTop
]
-->
<Viewpoint DEF='BETWEENTOP' description='Just inside max ellipsoid, (max sound)' orientation='1 0 0 -1.57' position='0 14 0'/> |
30 |
<!-- ROUTE information for PROX_SENSOR node:
[from position_changed to TRANS1.set_translation
]
[from orientation_changed to TRANS1.set_rotation
]
[from position_changed to DIRECTION_X_TRANS.set_translation
]
[from orientation_changed to DIRECTION_X_TRANS.set_rotation
]
[from position_changed to DIRECTION_Y_TRANS.set_translation
]
[from orientation_changed to DIRECTION_Y_TRANS.set_rotation
]
[from position_changed to Z_TRANS.set_translation
]
[from orientation_changed to Z_TRANS.set_rotation
]
-->
<ProximitySensor DEF='PROX_SENSOR' size='1000 1000 1000'/> |
31 | |
32 | <AudioClip description='chimes' loop='true' url=' "chimes.wav" "https://www.web3d.org/x3d/content/examples/ConformanceNist/Sounds/AudioClip/chimes.wav" '/> |
33 | </Sound> |
34 | <Transform> |
35 | <Transform scale='9 6.7 6.7' translation='6 0 0'> |
36 | <Shape> |
37 | <Appearance> |
38 | <Material/> |
39 | </Appearance> |
40 | <IndexedLineSet colorPerVertex='false' colorIndex='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0' coordIndex='0 1 2 -1 2 1 3 -1 2 3 4 -1 4 3 5 -1 4 5 6 -1 6 5 7 -1 6 7 8 -1 8 7 9 -1 8 9 10 -1 1 11 3 -1 3 11 12 -1 3 12 5 -1 5 12 13 -1 5 13 7 -1 7 13 14 -1 7 14 9 -1 11 15 12 -1 12 15 16 -1 12 16 13 -1 13 16 17 -1 13 17 14 -1 15 18 16 -1 16 18 19 -1 16 19 17 -1 19 18 20 -1 10 9 21 -1 21 9 22 -1 21 22 23 -1 23 22 24 -1 23 24 25 -1 25 24 26 -1 25 26 27 -1 27 26 28 -1 27 28 29 -1 9 14 22 -1 22 14 30 -1 22 30 24 -1 24 30 31 -1 24 31 26 -1 26 31 32 -1 26 32 28 -1 14 17 30 -1 30 17 33 -1 30 33 31 -1 31 33 34 -1 31 34 32 -1 17 19 33 -1 33 19 35 -1 33 35 34 -1 35 19 20 -1 10 36 8 -1 8 36 37 -1 8 37 6 -1 6 37 38 -1 6 38 4 -1 4 38 39 -1 4 39 2 -1 2 39 40 -1 2 40 0 -1 36 41 37 -1 37 41 42 -1 37 42 38 -1 38 42 43 -1 38 43 39 -1 39 43 44 -1 39 44 40 -1 41 45 42 -1 42 45 46 -1 42 46 43 -1 43 46 47 -1 43 47 44 -1 45 48 46 -1 46 48 49 -1 46 49 47 -1 49 48 50 -1 29 51 27 -1 27 51 52 -1 27 52 25 -1 25 52 53 -1 25 53 23 -1 23 53 54 -1 23 54 21 -1 21 54 36 -1 21 36 10 -1 51 55 52 -1 52 55 56 -1 52 56 53 -1 53 56 57 -1 53 57 54 -1 54 57 41 -1 54 41 36 -1 55 58 56 -1 56 58 59 -1 56 59 57 -1 57 59 45 -1 57 45 41 -1 58 60 59 -1 59 60 48 -1 59 48 45 -1 48 60 50 -1 61 62 63 -1 63 62 64 -1 63 64 65 -1 65 64 66 -1 65 66 67 -1 67 66 68 -1 67 68 69 -1 69 68 1 -1 69 1 0 -1 62 70 64 -1 64 70 71 -1 64 71 66 -1 66 71 72 -1 66 72 68 -1 68 72 11 -1 68 11 1 -1 70 73 71 -1 71 73 74 -1 71 74 72 -1 72 74 15 -1 72 15 11 -1 73 75 74 -1 74 75 18 -1 74 18 15 -1 18 75 20 -1 29 28 76 -1 76 28 77 -1 76 77 78 -1 78 77 79 -1 78 79 80 -1 80 79 81 -1 80 81 82 -1 82 81 62 -1 82 62 61 -1 28 32 77 -1 77 32 83 -1 77 83 79 -1 79 83 84 -1 79 84 81 -1 81 84 70 -1 81 70 62 -1 32 34 83 -1 83 34 85 -1 83 85 84 -1 84 85 73 -1 84 73 70 -1 34 35 85 -1 85 35 75 -1 85 75 73 -1 75 35 20 -1 0 40 69 -1 69 40 86 -1 69 86 67 -1 67 86 87 -1 67 87 65 -1 65 87 88 -1 65 88 63 -1 63 88 89 -1 63 89 61 -1 40 44 86 -1 86 44 90 -1 86 90 87 -1 87 90 91 -1 87 91 88 -1 88 91 92 -1 88 92 89 -1 44 47 90 -1 90 47 93 -1 90 93 91 -1 91 93 94 -1 91 94 92 -1 47 49 93 -1 93 49 95 -1 93 95 94 -1 95 49 50 -1 61 89 82 -1 82 89 96 -1 82 96 80 -1 80 96 97 -1 80 97 78 -1 78 97 98 -1 78 98 76 -1 76 98 51 -1 76 51 29 -1 89 92 96 -1 96 92 99 -1 96 99 97 -1 97 99 100 -1 97 100 98 -1 98 100 55 -1 98 55 51 -1 92 94 99 -1 99 94 101 -1 99 101 100 -1 100 101 58 -1 100 58 55 -1 94 95 101 -1 101 95 60 -1 101 60 58 -1 60 95 50 -1'> |
41 |
<!-- Coordinate
SpherePoints is a DEF node that has 2 USE nodes: USE_1, USE_2 --> <Coordinate DEF='SpherePoints' point='1 0 0 0.970142 0.242536 0 0.970142 0 0.242536 0.904534 0.301511 0.301511 0.83205 0 0.5547 0.666667 0.333333 0.666667 0.5547 0 0.83205 0.301511 0.301511 0.904534 0.242536 0 0.970142 0 0.242536 0.970142 0 0 1 0.83205 0.5547 0 0.666667 0.666667 0.333333 0.333333 0.666667 0.666667 0 0.5547 0.83205 0.5547 0.83205 0 0.301511 0.904534 0.301511 0 0.83205 0.5547 0.242536 0.970142 0 0 0.970142 0.242536 0 1 0 -0.242536 0 0.970142 -0.301511 0.301511 0.904534 -0.5547 0 0.83205 -0.666667 0.333333 0.666667 -0.83205 0 0.5547 -0.904534 0.301511 0.301511 -0.970142 0 0.242536 -0.970142 0.242536 0 -1 0 0 -0.333333 0.666667 0.666667 -0.666667 0.666667 0.333333 -0.83205 0.5547 0 -0.301511 0.904534 0.301511 -0.5547 0.83205 0 -0.242536 0.970142 0 0 -0.242536 0.970142 0.301511 -0.301511 0.904534 0.666667 -0.333333 0.666667 0.904534 -0.301511 0.301511 0.970142 -0.242536 0 0 -0.5547 0.83205 0.333333 -0.666667 0.666667 0.666667 -0.666667 0.333333 0.83205 -0.5547 0 0 -0.83205 0.5547 0.301511 -0.904534 0.301511 0.5547 -0.83205 0 0 -0.970142 0.242536 0.242536 -0.970142 0 0 -1 0 -0.970142 -0.242536 0 -0.904534 -0.301511 0.301511 -0.666667 -0.333333 0.666667 -0.301511 -0.301511 0.904534 -0.83205 -0.5547 0 -0.666667 -0.666667 0.333333 -0.333333 -0.666667 0.666667 -0.5547 -0.83205 0 -0.301511 -0.904534 0.301511 -0.242536 -0.970142 0 0 0 -1 0 0.242536 -0.970142 0.242536 0 -0.970142 0.301511 0.301511 -0.904534 0.5547 0 -0.83205 0.666667 0.333333 -0.666667 0.83205 0 -0.5547 0.904534 0.301511 -0.301511 0.970142 0 -0.242536 0 0.5547 -0.83205 0.333333 0.666667 -0.666667 0.666667 0.666667 -0.333333 0 0.83205 -0.5547 0.301511 0.904534 -0.301511 0 0.970142 -0.242536 -0.970142 0 -0.242536 -0.904534 0.301511 -0.301511 -0.83205 0 -0.5547 -0.666667 0.333333 -0.666667 -0.5547 0 -0.83205 -0.301511 0.301511 -0.904534 -0.242536 0 -0.970142 -0.666667 0.666667 -0.333333 -0.333333 0.666667 -0.666667 -0.301511 0.904534 -0.301511 0.904534 -0.301511 -0.301511 0.666667 -0.333333 -0.666667 0.301511 -0.301511 -0.904534 0 -0.242536 -0.970142 0.666667 -0.666667 -0.333333 0.333333 -0.666667 -0.666667 0 -0.5547 -0.83205 0.301511 -0.904534 -0.301511 0 -0.83205 -0.5547 0 -0.970142 -0.242536 -0.301511 -0.301511 -0.904534 -0.666667 -0.333333 -0.666667 -0.904534 -0.301511 -0.301511 -0.333333 -0.666667 -0.666667 -0.666667 -0.666667 -0.333333 -0.301511 -0.904534 -0.301511'/> |
42 |
<!-- Color
ELLIPSOID1COLOR is a DEF node that has 1 USE node: USE_1 --> <Color DEF='ELLIPSOID1COLOR' color='1 0 0'/> |
43 | </IndexedLineSet> |
44 | </Shape> |
45 | </Transform> |
46 | </Transform> |
47 | <Transform DEF='TRANS2'> |
48 | <Transform scale='6.7 9 6.7' translation='0 6 0'> |
49 | <Shape> |
50 | <Appearance> |
51 | <Material/> |
52 | </Appearance> |
53 | <IndexedLineSet colorPerVertex='false' colorIndex='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0' coordIndex='0 1 2 -1 2 1 3 -1 2 3 4 -1 4 3 5 -1 4 5 6 -1 6 5 7 -1 6 7 8 -1 8 7 9 -1 8 9 10 -1 1 11 3 -1 3 11 12 -1 3 12 5 -1 5 12 13 -1 5 13 7 -1 7 13 14 -1 7 14 9 -1 11 15 12 -1 12 15 16 -1 12 16 13 -1 13 16 17 -1 13 17 14 -1 15 18 16 -1 16 18 19 -1 16 19 17 -1 19 18 20 -1 10 9 21 -1 21 9 22 -1 21 22 23 -1 23 22 24 -1 23 24 25 -1 25 24 26 -1 25 26 27 -1 27 26 28 -1 27 28 29 -1 9 14 22 -1 22 14 30 -1 22 30 24 -1 24 30 31 -1 24 31 26 -1 26 31 32 -1 26 32 28 -1 14 17 30 -1 30 17 33 -1 30 33 31 -1 31 33 34 -1 31 34 32 -1 17 19 33 -1 33 19 35 -1 33 35 34 -1 35 19 20 -1 10 36 8 -1 8 36 37 -1 8 37 6 -1 6 37 38 -1 6 38 4 -1 4 38 39 -1 4 39 2 -1 2 39 40 -1 2 40 0 -1 36 41 37 -1 37 41 42 -1 37 42 38 -1 38 42 43 -1 38 43 39 -1 39 43 44 -1 39 44 40 -1 41 45 42 -1 42 45 46 -1 42 46 43 -1 43 46 47 -1 43 47 44 -1 45 48 46 -1 46 48 49 -1 46 49 47 -1 49 48 50 -1 29 51 27 -1 27 51 52 -1 27 52 25 -1 25 52 53 -1 25 53 23 -1 23 53 54 -1 23 54 21 -1 21 54 36 -1 21 36 10 -1 51 55 52 -1 52 55 56 -1 52 56 53 -1 53 56 57 -1 53 57 54 -1 54 57 41 -1 54 41 36 -1 55 58 56 -1 56 58 59 -1 56 59 57 -1 57 59 45 -1 57 45 41 -1 58 60 59 -1 59 60 48 -1 59 48 45 -1 48 60 50 -1 61 62 63 -1 63 62 64 -1 63 64 65 -1 65 64 66 -1 65 66 67 -1 67 66 68 -1 67 68 69 -1 69 68 1 -1 69 1 0 -1 62 70 64 -1 64 70 71 -1 64 71 66 -1 66 71 72 -1 66 72 68 -1 68 72 11 -1 68 11 1 -1 70 73 71 -1 71 73 74 -1 71 74 72 -1 72 74 15 -1 72 15 11 -1 73 75 74 -1 74 75 18 -1 74 18 15 -1 18 75 20 -1 29 28 76 -1 76 28 77 -1 76 77 78 -1 78 77 79 -1 78 79 80 -1 80 79 81 -1 80 81 82 -1 82 81 62 -1 82 62 61 -1 28 32 77 -1 77 32 83 -1 77 83 79 -1 79 83 84 -1 79 84 81 -1 81 84 70 -1 81 70 62 -1 32 34 83 -1 83 34 85 -1 83 85 84 -1 84 85 73 -1 84 73 70 -1 34 35 85 -1 85 35 75 -1 85 75 73 -1 75 35 20 -1 0 40 69 -1 69 40 86 -1 69 86 67 -1 67 86 87 -1 67 87 65 -1 65 87 88 -1 65 88 63 -1 63 88 89 -1 63 89 61 -1 40 44 86 -1 86 44 90 -1 86 90 87 -1 87 90 91 -1 87 91 88 -1 88 91 92 -1 88 92 89 -1 44 47 90 -1 90 47 93 -1 90 93 91 -1 91 93 94 -1 91 94 92 -1 47 49 93 -1 93 49 95 -1 93 95 94 -1 95 49 50 -1 61 89 82 -1 82 89 96 -1 82 96 80 -1 80 96 97 -1 80 97 78 -1 78 97 98 -1 78 98 76 -1 76 98 51 -1 76 51 29 -1 89 92 96 -1 96 92 99 -1 96 99 97 -1 97 99 100 -1 97 100 98 -1 98 100 55 -1 98 55 51 -1 92 94 99 -1 99 94 101 -1 99 101 100 -1 100 101 58 -1 100 58 55 -1 94 95 101 -1 101 95 60 -1 101 60 58 -1 60 95 50 -1'> |
54 | <Coordinate USE='SpherePoints'/> |
55 |
<!-- Color
ELLIPSOID2COLOR is a DEF node that has 1 USE node: USE_1 --> <Color DEF='ELLIPSOID2COLOR' color='0 1 0'/> |
56 | </IndexedLineSet> |
57 | </Shape> |
58 | </Transform> |
59 | </Transform> |
60 | <Transform DEF='TRANS3'> |
61 | <Transform scale='6.7 6.7 9' translation='0 0 6'> |
62 | <Shape> |
63 | <Appearance> |
64 | <Material/> |
65 | </Appearance> |
66 | <IndexedLineSet colorPerVertex='false' colorIndex='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0' coordIndex='0 1 2 -1 2 1 3 -1 2 3 4 -1 4 3 5 -1 4 5 6 -1 6 5 7 -1 6 7 8 -1 8 7 9 -1 8 9 10 -1 1 11 3 -1 3 11 12 -1 3 12 5 -1 5 12 13 -1 5 13 7 -1 7 13 14 -1 7 14 9 -1 11 15 12 -1 12 15 16 -1 12 16 13 -1 13 16 17 -1 13 17 14 -1 15 18 16 -1 16 18 19 -1 16 19 17 -1 19 18 20 -1 10 9 21 -1 21 9 22 -1 21 22 23 -1 23 22 24 -1 23 24 25 -1 25 24 26 -1 25 26 27 -1 27 26 28 -1 27 28 29 -1 9 14 22 -1 22 14 30 -1 22 30 24 -1 24 30 31 -1 24 31 26 -1 26 31 32 -1 26 32 28 -1 14 17 30 -1 30 17 33 -1 30 33 31 -1 31 33 34 -1 31 34 32 -1 17 19 33 -1 33 19 35 -1 33 35 34 -1 35 19 20 -1 10 36 8 -1 8 36 37 -1 8 37 6 -1 6 37 38 -1 6 38 4 -1 4 38 39 -1 4 39 2 -1 2 39 40 -1 2 40 0 -1 36 41 37 -1 37 41 42 -1 37 42 38 -1 38 42 43 -1 38 43 39 -1 39 43 44 -1 39 44 40 -1 41 45 42 -1 42 45 46 -1 42 46 43 -1 43 46 47 -1 43 47 44 -1 45 48 46 -1 46 48 49 -1 46 49 47 -1 49 48 50 -1 29 51 27 -1 27 51 52 -1 27 52 25 -1 25 52 53 -1 25 53 23 -1 23 53 54 -1 23 54 21 -1 21 54 36 -1 21 36 10 -1 51 55 52 -1 52 55 56 -1 52 56 53 -1 53 56 57 -1 53 57 54 -1 54 57 41 -1 54 41 36 -1 55 58 56 -1 56 58 59 -1 56 59 57 -1 57 59 45 -1 57 45 41 -1 58 60 59 -1 59 60 48 -1 59 48 45 -1 48 60 50 -1 61 62 63 -1 63 62 64 -1 63 64 65 -1 65 64 66 -1 65 66 67 -1 67 66 68 -1 67 68 69 -1 69 68 1 -1 69 1 0 -1 62 70 64 -1 64 70 71 -1 64 71 66 -1 66 71 72 -1 66 72 68 -1 68 72 11 -1 68 11 1 -1 70 73 71 -1 71 73 74 -1 71 74 72 -1 72 74 15 -1 72 15 11 -1 73 75 74 -1 74 75 18 -1 74 18 15 -1 18 75 20 -1 29 28 76 -1 76 28 77 -1 76 77 78 -1 78 77 79 -1 78 79 80 -1 80 79 81 -1 80 81 82 -1 82 81 62 -1 82 62 61 -1 28 32 77 -1 77 32 83 -1 77 83 79 -1 79 83 84 -1 79 84 81 -1 81 84 70 -1 81 70 62 -1 32 34 83 -1 83 34 85 -1 83 85 84 -1 84 85 73 -1 84 73 70 -1 34 35 85 -1 85 35 75 -1 85 75 73 -1 75 35 20 -1 0 40 69 -1 69 40 86 -1 69 86 67 -1 67 86 87 -1 67 87 65 -1 65 87 88 -1 65 88 63 -1 63 88 89 -1 63 89 61 -1 40 44 86 -1 86 44 90 -1 86 90 87 -1 87 90 91 -1 87 91 88 -1 88 91 92 -1 88 92 89 -1 44 47 90 -1 90 47 93 -1 90 93 91 -1 91 93 94 -1 91 94 92 -1 47 49 93 -1 93 49 95 -1 93 95 94 -1 95 49 50 -1 61 89 82 -1 82 89 96 -1 82 96 80 -1 80 96 97 -1 80 97 78 -1 78 97 98 -1 78 98 76 -1 76 98 51 -1 76 51 29 -1 89 92 96 -1 96 92 99 -1 96 99 97 -1 97 99 100 -1 97 100 98 -1 98 100 55 -1 98 55 51 -1 92 94 99 -1 99 94 101 -1 99 101 100 -1 100 101 58 -1 100 58 55 -1 94 95 101 -1 101 95 60 -1 101 60 58 -1 60 95 50 -1'> |
67 | <Coordinate USE='SpherePoints'/> |
68 |
<!-- Color
ELLIPSOID3COLOR is a DEF node that has 1 USE node: USE_1 --> <Color DEF='ELLIPSOID3COLOR' color='0 0 1'/> |
69 | </IndexedLineSet> |
70 | </Shape> |
71 | </Transform> |
72 | </Transform> |
73 |
<!-- ROUTE information for DIRECTION_X_TRANS node:
[from PROX_SENSOR.position_changed to set_translation
]
[from PROX_SENSOR.orientation_changed to set_rotation
]
-->
<Transform DEF='DIRECTION_X_TRANS'> |
74 |
<!-- ROUTE information for TOUCHX node:
[from isActive to SOUND_SCRIPT.colorEllipse1
]
-->
<TouchSensor DEF='TOUCHX' description='touch to activate X'/> |
75 | <Transform translation='-3 1.5 -5'> |
76 | <Shape> |
77 | <Appearance> |
78 | |
79 | </Appearance> |
80 | <Box DEF='X' size='1.5 1 0.1'/> |
81 | </Shape> |
82 | <Transform translation='-0.55 0 0.2'> |
83 | <Shape> |
84 | <Appearance> |
85 | <Material ambientIntensity='1' diffuseColor='0 0 0'/> |
86 | </Appearance> |
87 | <Text string='"Direction" "X-axis"'> |
88 | <FontStyle size='0.35'/> |
89 | </Text> |
90 | </Shape> |
91 | </Transform> |
92 | </Transform> |
93 | <TimeSensor DEF='XTIMER'/> |
94 | <ColorInterpolator DEF='XFLASH' key='0 0.5 1' keyValue='1 0 0 1 1 1 1 0 0'/> |
95 | </Transform> |
96 |
<!-- ROUTE information for DIRECTION_Y_TRANS node:
[from PROX_SENSOR.position_changed to set_translation
]
[from PROX_SENSOR.orientation_changed to set_rotation
]
-->
<Transform DEF='DIRECTION_Y_TRANS'> |
97 | <Transform translation='-3 0 -5'> |
98 |
<!-- ROUTE information for TOUCHY node:
[from isActive to SOUND_SCRIPT.colorEllipse2
]
-->
<TouchSensor DEF='TOUCHY' description='touch to activate Y'/> |
99 | <Shape> |
100 | <Appearance> |
101 | |
102 | </Appearance> |
103 | <Box DEF='Y' size='1.5 1 0.1'/> |
104 | </Shape> |
105 | <Transform translation='-0.55 0 0.2'> |
106 | <Shape> |
107 | <Appearance> |
108 | <Material ambientIntensity='1' diffuseColor='0 0 0'/> |
109 | </Appearance> |
110 | <Text string='"Direction" "Y-axis"'> |
111 | <FontStyle size='0.35'/> |
112 | </Text> |
113 | </Shape> |
114 | </Transform> |
115 | </Transform> |
116 | <TimeSensor DEF='YTIMER'/> |
117 | <ColorInterpolator DEF='YFLASH' key='0 0.5 1' keyValue='0 1 0 1 1 1 0 1 0'/> |
118 | </Transform> |
119 |
<!-- ROUTE information for Z_TRANS node:
[from PROX_SENSOR.position_changed to set_translation
]
[from PROX_SENSOR.orientation_changed to set_rotation
]
-->
<Transform DEF='Z_TRANS'> |
120 | <Transform translation='-3 -1.5 -5'> |
121 |
<!-- ROUTE information for TOUCHZ node:
[from isActive to SOUND_SCRIPT.colorEllipse3
]
-->
<TouchSensor DEF='TOUCHZ' description='touch to activate Z'/> |
122 | <Shape> |
123 | <Appearance> |
124 | |
125 | </Appearance> |
126 | <Box DEF='Z' size='1.5 1 0.1'/> |
127 | </Shape> |
128 | <Transform translation='-0.55 0 0.2'> |
129 | <Shape> |
130 | <Appearance> |
131 | <Material ambientIntensity='1' diffuseColor='0 0 0'/> |
132 | </Appearance> |
133 | <Text string='"Direction" "Z-axis"'> |
134 | <FontStyle size='0.35'/> |
135 | </Text> |
136 | </Shape> |
137 | </Transform> |
138 | </Transform> |
139 | <TimeSensor DEF='ZTIMER'/> |
140 | <ColorInterpolator DEF='ZFLASH' key='0 0.5 1' keyValue='0 0 1 1 1 1 0 0 1'/> |
141 | </Transform> |
142 |
<!-- ROUTE information for TRANS1 node:
[from PROX_SENSOR.position_changed to set_translation
]
[from PROX_SENSOR.orientation_changed to set_rotation
]
-->
<Transform DEF='TRANS1'> |
143 | <Transform translation='-0.2 -0.15 -0.5'> |
144 | <Shape> |
145 | <Appearance> |
146 | <Material diffuseColor='1 1 1'/> |
147 | </Appearance> |
148 |
<!-- Text
TYPESTRING1 is a DEF node that has 1 USE node: USE_1 -->
<Text DEF='TYPESTRING1' string='"message from Script is inserted here"'> |
149 | <FontStyle size='0.025' style='BOLD'/> |
150 | </Text> |
151 | </Shape> |
152 | </Transform> |
153 | </Transform> |
154 |
<!-- ROUTE information for SOUND_SCRIPT node:
[from OUTSIDEMAXFRONT.isBound to printOutsideMaxFront
]
[from BETWEENFRONT.isBound to printBetweenFront
]
[from OUTSIDEMAXRIGHT.isBound to printOutsideMaxRight
]
[from BETWEENRIGHT.isBound to printBetweenRight
]
[from OUTSIDEMAXTOP.isBound to printOutsideMaxTop
]
[from BETWEENTOP.isBound to printBetweenTop
]
[from TOUCHX.isActive to colorEllipse1
]
[from TOUCHY.isActive to colorEllipse2
]
[from TOUCHZ.isActive to colorEllipse3
]
-->
<Script DEF='SOUND_SCRIPT' directOutput='true' url=' "direction.js" "https://www.web3d.org/x3d/content/examples/ConformanceNist/Sounds/Sound/direction.js" '> |
155 | <field name='typestring1' type='SFNode' accessType='initializeOnly'> |
156 | <Text USE='TYPESTRING1'/> |
157 | </field> |
158 | <field name='printOutsideMaxFront' type='SFBool' accessType='inputOnly'/> |
159 | <field name='printJustOutsideMaxFront' type='SFBool' accessType='inputOnly'/> |
160 | <field name='printBetweenFront' type='SFBool' accessType='inputOnly'/> |
161 | <field name='printMinFront' type='SFBool' accessType='inputOnly'/> |
162 | <field name='printMinCenterFront' type='SFBool' accessType='inputOnly'/> |
163 | <field name='printOutsideMaxRight' type='SFBool' accessType='inputOnly'/> |
164 | <field name='printJustOutsideMaxRight' type='SFBool' accessType='inputOnly'/> |
165 | <field name='printBetweenRight' type='SFBool' accessType='inputOnly'/> |
166 | <field name='printMinRight' type='SFBool' accessType='inputOnly'/> |
167 | <field name='printMinCenterRight' type='SFBool' accessType='inputOnly'/> |
168 | <field name='printOutsideMaxRear' type='SFBool' accessType='inputOnly'/> |
169 | <field name='printJustOutsideMaxRear' type='SFBool' accessType='inputOnly'/> |
170 | <field name='printBetweenRear' type='SFBool' accessType='inputOnly'/> |
171 | <field name='printMinRear' type='SFBool' accessType='inputOnly'/> |
172 | <field name='printMinCenterRear' type='SFBool' accessType='inputOnly'/> |
173 | <field name='printOutsideMaxLeft' type='SFBool' accessType='inputOnly'/> |
174 | <field name='printJustOutsideMaxLeft' type='SFBool' accessType='inputOnly'/> |
175 | <field name='printBetweenLeft' type='SFBool' accessType='inputOnly'/> |
176 | <field name='printMinLeft' type='SFBool' accessType='inputOnly'/> |
177 | <field name='printMinCenterLeft' type='SFBool' accessType='inputOnly'/> |
178 | <field name='printOutsideMaxBottom' type='SFBool' accessType='inputOnly'/> |
179 | <field name='printJustOutsideMaxBottom' type='SFBool' accessType='inputOnly'/> |
180 | <field name='printBetweenBottom' type='SFBool' accessType='inputOnly'/> |
181 | <field name='printMinBottom' type='SFBool' accessType='inputOnly'/> |
182 | <field name='printMinCenterBottom' type='SFBool' accessType='inputOnly'/> |
183 | <field name='printOutsideMaxTop' type='SFBool' accessType='inputOnly'/> |
184 | <field name='printJustOutsideMaxTop' type='SFBool' accessType='inputOnly'/> |
185 | <field name='printBetweenTop' type='SFBool' accessType='inputOnly'/> |
186 | <field name='printMinTop' type='SFBool' accessType='inputOnly'/> |
187 | <field name='printMinCenterTop' type='SFBool' accessType='inputOnly'/> |
188 | <field name='outsideMaxFrontString' type='MFString' value='"FRONT VIEW: Outside maxFront (no sound)"' accessType='initializeOnly'/> |
189 | <field name='justOutsideMaxFrontString' type='MFString' value='"Just outside maxFront (no sound)"' accessType='initializeOnly'/> |
190 | <field name='betweenFrontString' type='MFString' value='"Midway between ellipsoids(max sound -10dB)"' accessType='initializeOnly'/> |
191 | <field name='minFrontString' type='MFString' value='"At minFront (max sound)"' accessType='initializeOnly'/> |
192 | <field name='minCenterFrontString' type='MFString' value='"At ellipsoid center (max sound)"' accessType='initializeOnly'/> |
193 | <field name='outsideMaxRightString' type='MFString' value='"RIGHT VIEW: Outside max ellipsoid (no sound)"' accessType='initializeOnly'/> |
194 | <field name='justOutsideMaxRightString' type='MFString' value='"Just outside max ellipsoid (no sound)"' accessType='initializeOnly'/> |
195 | <field name='betweenRightString' type='MFString' value='"Midway between ellipsoids (max sound -10dB)"' accessType='initializeOnly'/> |
196 | <field name='minRightString' type='MFString' value='"At min ellipsoid (max sound)"' accessType='initializeOnly'/> |
197 | <field name='minCenterRightString' type='MFString' value='"At ellipsoid center (max sound)"' accessType='initializeOnly'/> |
198 | <field name='outsideMaxRearString' type='MFString' value='"REAR VIEW: Outside maxBack (no sound)"' accessType='initializeOnly'/> |
199 | <field name='justOutsideMaxRearString' type='MFString' value='"Just outside maxBack (no sound)"' accessType='initializeOnly'/> |
200 | <field name='betweenRearString' type='MFString' value='"Midway between maxBack and minBack (max sound -10dB)"' accessType='initializeOnly'/> |
201 | <field name='minRearString' type='MFString' value='"At minBack (max sound)"' accessType='initializeOnly'/> |
202 | <field name='minCenterRearString' type='MFString' value='"At ellipsoid center (max sound)"' accessType='initializeOnly'/> |
203 | <field name='outsideMaxLeftString' type='MFString' value='"LEFT VIEW: Outside max ellipsoid (no sound)"' accessType='initializeOnly'/> |
204 | <field name='justOutsideMaxLeftString' type='MFString' value='"Just outside max ellipsoid (no sound)"' accessType='initializeOnly'/> |
205 | <field name='betweenLeftString' type='MFString' value='"Midway between ellipsoids (max sound -10dB)"' accessType='initializeOnly'/> |
206 | <field name='minLeftString' type='MFString' value='"At min ellipsoid (max sound)"' accessType='initializeOnly'/> |
207 | <field name='minCenterLeftString' type='MFString' value='"At ellipsoid center (max sound)"' accessType='initializeOnly'/> |
208 | <field name='outsideMaxTopString' type='MFString' value='"TOP VIEW: Outside max ellipsoid (no sound)"' accessType='initializeOnly'/> |
209 | <field name='justOutsideMaxTopString' type='MFString' value='"Just outside max ellipsoid (no sound)"' accessType='initializeOnly'/> |
210 | <field name='betweenTopString' type='MFString' value='"Midway between ellipsoids (max sound -10dB)"' accessType='initializeOnly'/> |
211 | <field name='minTopString' type='MFString' value='"[At min ellipsoid (max sound)"' accessType='initializeOnly'/> |
212 | <field name='minCenterTopString' type='MFString' value='"At ellipsoid center (max sound)"' accessType='initializeOnly'/> |
213 | <field name='outsideMaxBottomString' type='MFString' value='"BOTTOM VIEW: Outside max ellipsoid (no sound)"' accessType='initializeOnly'/> |
214 | <field name='justOutsideMaxBottomString' type='MFString' value='"Just outside max ellipsoid (no sound)"' accessType='initializeOnly'/> |
215 | <field name='betweenBottomString' type='MFString' value='"Midway between ellipsoids (max sound -10dB)"' accessType='initializeOnly'/> |
216 | <field name='minBottomString' type='MFString' value='"At min ellipsoid (max sound)"' accessType='initializeOnly'/> |
217 | <field name='xMaterial' type='SFNode' accessType='initializeOnly'> |
218 | <Material USE='XMATERIAL'/> |
219 | </field> |
220 | <field name='yMaterial' type='SFNode' accessType='initializeOnly'> |
221 | <Material USE='YMATERIAL'/> |
222 | </field> |
223 | <field name='zMaterial' type='SFNode' accessType='initializeOnly'> |
224 | <Material USE='ZMATERIAL'/> |
225 | </field> |
226 | <field name='sound1' type='SFNode' accessType='initializeOnly'> |
227 | <Sound USE='SOUND1'/> |
228 | </field> |
229 | <field name='ellipsoid1Color' type='SFNode' accessType='initializeOnly'> |
230 | <Color USE='ELLIPSOID1COLOR'/> |
231 | </field> |
232 | <field name='ellipsoid2Color' type='SFNode' accessType='initializeOnly'> |
233 | <Color USE='ELLIPSOID2COLOR'/> |
234 | </field> |
235 | <field name='ellipsoid3Color' type='SFNode' accessType='initializeOnly'> |
236 | <Color USE='ELLIPSOID3COLOR'/> |
237 | </field> |
238 | <field name='white' type='MFColor' value='1 1 1' accessType='initializeOnly'/> |
239 | <field name='red' type='MFColor' value='1 0 0' accessType='initializeOnly'/> |
240 | <field name='green' type='MFColor' value='0 1 0' accessType='initializeOnly'/> |
241 | <field name='blue' type='MFColor' value='0 0 1' accessType='initializeOnly'/> |
242 | <field name='sfWhite' type='SFColor' value='1 1 1' accessType='initializeOnly'/> |
243 | <field name='sfRed' type='SFColor' value='1 0 0' accessType='initializeOnly'/> |
244 | <field name='sfGreen' type='SFColor' value='0 1 0' accessType='initializeOnly'/> |
245 | <field name='sfBlue' type='SFColor' value='0 0 1' accessType='initializeOnly'/> |
246 | <field name='colorEllipse1' type='SFBool' accessType='inputOnly'/> |
247 | <field name='colorEllipse2' type='SFBool' accessType='inputOnly'/> |
248 | <field name='colorEllipse3' type='SFBool' accessType='inputOnly'/> |
249 | <field name='xAxis' type='SFVec3f' value='1 0 0' accessType='initializeOnly'/> |
250 | <field name='yAxis' type='SFVec3f' value='0 1 0' accessType='initializeOnly'/> |
251 | <field name='zAxis' type='SFVec3f' value='0 0 1' accessType='initializeOnly'/> |
252 | </Script> |
253 | < ROUTE fromNode='OUTSIDEMAXFRONT' fromField='isBound' toNode='SOUND_SCRIPT' toField='printOutsideMaxFront'/> |
254 | < ROUTE fromNode='BETWEENFRONT' fromField='isBound' toNode='SOUND_SCRIPT' toField='printBetweenFront'/> |
255 | < ROUTE fromNode='OUTSIDEMAXRIGHT' fromField='isBound' toNode='SOUND_SCRIPT' toField='printOutsideMaxRight'/> |
256 | < ROUTE fromNode='BETWEENRIGHT' fromField='isBound' toNode='SOUND_SCRIPT' toField='printBetweenRight'/> |
257 | < ROUTE fromNode='OUTSIDEMAXTOP' fromField='isBound' toNode='SOUND_SCRIPT' toField='printOutsideMaxTop'/> |
258 | < ROUTE fromNode='BETWEENTOP' fromField='isBound' toNode='SOUND_SCRIPT' toField='printBetweenTop'/> |
259 | < ROUTE fromNode='PROX_SENSOR' fromField='position_changed' toNode='TRANS1' toField='set_translation'/> |
260 | < ROUTE fromNode='PROX_SENSOR' fromField='orientation_changed' toNode='TRANS1' toField='set_rotation'/> |
261 | < ROUTE fromNode='PROX_SENSOR' fromField='position_changed' toNode='DIRECTION_X_TRANS' toField='set_translation'/> |
262 | < ROUTE fromNode='PROX_SENSOR' fromField='orientation_changed' toNode='DIRECTION_X_TRANS' toField='set_rotation'/> |
263 | < ROUTE fromNode='PROX_SENSOR' fromField='position_changed' toNode='DIRECTION_Y_TRANS' toField='set_translation'/> |
264 | < ROUTE fromNode='PROX_SENSOR' fromField='orientation_changed' toNode='DIRECTION_Y_TRANS' toField='set_rotation'/> |
265 | < ROUTE fromNode='PROX_SENSOR' fromField='position_changed' toNode='Z_TRANS' toField='set_translation'/> |
266 | < ROUTE fromNode='PROX_SENSOR' fromField='orientation_changed' toNode='Z_TRANS' toField='set_rotation'/> |
267 | < ROUTE fromNode='TOUCHX' fromField='isActive' toNode='SOUND_SCRIPT' toField='colorEllipse1'/> |
268 | < ROUTE fromNode='TOUCHY' fromField='isActive' toNode='SOUND_SCRIPT' toField='colorEllipse2'/> |
269 | < ROUTE fromNode='TOUCHZ' fromField='isActive' toNode='SOUND_SCRIPT' toField='colorEllipse3'/> |
270 | </Scene> |
271 | </X3D> |
Event Graph ROUTE Table entries with 17 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.
TOUCHX
TouchSensor isActive SFBool |
SOUND_SCRIPT
Script colorEllipse1 SFBool |
TOUCHY
TouchSensor isActive SFBool |
SOUND_SCRIPT
Script colorEllipse2 SFBool |
TOUCHZ
TouchSensor isActive SFBool |
SOUND_SCRIPT
Script colorEllipse3 SFBool |
PROX_SENSOR
ProximitySensor position_changed SFVec3f |
TRANS1
Transform set_translation SFVec3f |
|
PROX_SENSOR
ProximitySensor orientation_changed SFRotation |
TRANS1
Transform set_rotation SFRotation |
|
PROX_SENSOR
ProximitySensor position_changed SFVec3f |
DIRECTION_X_TRANS
Transform set_translation SFVec3f |
|
PROX_SENSOR
ProximitySensor orientation_changed SFRotation |
DIRECTION_X_TRANS
Transform set_rotation SFRotation |
|
PROX_SENSOR
ProximitySensor position_changed SFVec3f |
DIRECTION_Y_TRANS
Transform set_translation SFVec3f |
|
PROX_SENSOR
ProximitySensor orientation_changed SFRotation |
DIRECTION_Y_TRANS
Transform set_rotation SFRotation |
|
PROX_SENSOR
ProximitySensor position_changed SFVec3f |
Z_TRANS
Transform set_translation SFVec3f |
|
PROX_SENSOR
ProximitySensor orientation_changed SFRotation |
Z_TRANS
Transform set_rotation SFRotation |
<!--
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. -->