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='CoordinateAxesX3dDIS.x3d'/> |
6 | <meta name='creator' content='Don Brutzman'/> |
7 | <meta name='created' content='14 July 2000'/> |
8 | <meta name='modified' content='20 October 2019'/> |
9 | <meta name='description' content='X Y Z axis arrows and labels in X3D and DIS coordinate systems. See CoordinateAxesExample for use as an Inline coordinate-system reference frame.'/> |
10 | <meta name='reference' content='https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.x3d'/> |
11 | <meta name='reference' content='https://savage.nps.edu/Savage/Tools/Authoring/CoordinateAxes.x3d'/> |
12 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/Basic/DistributedInteractiveSimulation/CoordinateAxesX3dDIS.x3d'/> |
13 | <meta name='generator' content='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/> |
14 | <meta name='license' content='../license.html'/> |
15 | </head> |
16 | <Scene> |
17 | <!-- Invoke CoordinateAxes in other scenes as an Inline child inside a scaling Transform node, at the topmost level of the scene graph. --> |
18 | <!-- This NavigationInfo allows examine mode and will be overridden by any parent scene. --> |
19 | <!-- Each arrow goes from +1m to -1m to allow linear scaling to fit a scene --> |
20 | <!-- Note each label rotates about the scene's vertical Y axis for consistency, enabling local orientation by user --> |
21 | <WorldInfo title='CoordinateAxesX3dDIS.x3d'/> |
22 | <Group> |
23 | <!-- Vertical Y arrow and label --> |
24 | <Group DEF='ArrowGreen'> |
25 | <Shape> |
26 |
<!-- Cylinder
ArrowCylinder is a DEF node that has 2 USE nodes: USE_1, USE_2 --> <Cylinder DEF='ArrowCylinder' radius='.025' top='false'/> |
27 | |
28 | <Material diffuseColor='.1 .6 .1' emissiveColor='.05 .2 .05'/> |
29 | </Appearance> |
30 | </Shape> |
31 | <Transform translation='0 1 0'> |
32 | <Shape> |
33 | |
34 | <Appearance USE='Green'/> |
35 | </Shape> |
36 | </Transform> |
37 | </Group> |
38 | <Transform translation='0 1.5 0'> |
39 | <Billboard> |
40 | <Shape> |
41 |
<!-- Appearance
LABEL_APPEARANCE is a DEF node that has 2 USE nodes: USE_1, USE_2 -->
<Appearance DEF='LABEL_APPEARANCE'> |
42 | <Material diffuseColor='1 1 .3' emissiveColor='.33 .33 .1'/> |
43 | </Appearance> |
44 | <Text string='"Up" "+Y X3D" "-Z DIS"'> |
45 |
<!-- FontStyle
LABEL_FONT is a DEF node that has 2 USE nodes: USE_1, USE_2 --> <FontStyle DEF='LABEL_FONT' family='"SANS"' justify='"MIDDLE" "MIDDLE"' size='.2'/> |
46 | </Text> |
47 | </Shape> |
48 | </Billboard> |
49 | </Transform> |
50 | </Group> |
51 | <Transform rotation='0 0 1 -1.57079'> |
52 | <!-- Horizontal X arrow and label --> |
53 | <Group> |
54 | <Group DEF='ArrowRed'> |
55 | <Shape> |
56 | <Cylinder USE='ArrowCylinder'/> |
57 | |
58 | <Material diffuseColor='.7 .1 .1' emissiveColor='.33 0 0'/> |
59 | </Appearance> |
60 | </Shape> |
61 | <Transform translation='0 1 0'> |
62 | <Shape> |
63 | <Cone USE='ArrowCone'/> |
64 | <Appearance USE='Red'/> |
65 | </Shape> |
66 | </Transform> |
67 | </Group> |
68 | <Transform rotation='0 0 1 1.57079' translation='-0.05 1.1 0'> |
69 | <!-- note label rotated back to original coordinate frame --> |
70 | <Billboard> |
71 | <Shape> |
72 | <Appearance USE='LABEL_APPEARANCE'/> |
73 | <Text string='"North" "+X X3D" "+X DIS"'> |
74 | <FontStyle USE='LABEL_FONT'/> |
75 | </Text> |
76 | </Shape> |
77 | </Billboard> |
78 | </Transform> |
79 | </Group> |
80 | </Transform> |
81 | <Transform rotation='1 0 0 1.57079'> |
82 | <!-- Perpendicular Z arrow and label, note right-hand rule --> |
83 | <Group> |
84 | <Group DEF='ArrowBlue'> |
85 | <Shape> |
86 | <Cylinder USE='ArrowCylinder'/> |
87 | |
88 | <Material diffuseColor='.3 .3 1' emissiveColor='.1 .1 .33'/> |
89 | </Appearance> |
90 | </Shape> |
91 | <Transform translation='0 1 0'> |
92 | <Shape> |
93 | <Cone USE='ArrowCone'/> |
94 | <Appearance USE='Blue'/> |
95 | </Shape> |
96 | </Transform> |
97 | </Group> |
98 | <Transform rotation='1 0 0 -1.57079' translation='0 1.1 -0.05'> |
99 | <!-- note label rotated back to original coordinate frame --> |
100 | <Billboard> |
101 | <Shape> |
102 | <Appearance USE='LABEL_APPEARANCE'/> |
103 | <Text string='"East" "+Z X3D" "+Y DIS"'> |
104 | <FontStyle USE='LABEL_FONT'/> |
105 | </Text> |
106 | </Shape> |
107 | </Billboard> |
108 | </Transform> |
109 | </Group> |
110 | </Transform> |
111 | </Scene> |
112 | </X3D> |
<!--
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. -->