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='CoordinateAxesX3dDISGeoLoc.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, DIS and GeoLocation 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/CoordinateAxesX3dDISGeoLoc.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 | <!-- Consult Section 25.3.3 GeoLocation for the Geospatial component's adjustment from X3D to GeoLocation coordinates --> |
22 | <WorldInfo title='CoordinateAxesX3dDISGeoLoc.x3d'/> |
23 | <Group> |
24 | <!-- Vertical Y arrow and label --> |
25 | <Group DEF='ArrowGreen'> |
26 | <Shape> |
27 |
<!-- Cylinder
ArrowCylinder is a DEF node that has 2 USE nodes: USE_1, USE_2 --> <Cylinder DEF='ArrowCylinder' radius='.025' top='false'/> |
28 | |
29 | <Material diffuseColor='.1 .6 .1' emissiveColor='.05 .2 .05'/> |
30 | </Appearance> |
31 | </Shape> |
32 | <Transform translation='0 1 0'> |
33 | <Shape> |
34 | |
35 | <Appearance USE='Green'/> |
36 | </Shape> |
37 | </Transform> |
38 | </Group> |
39 | <Transform translation='0 1.7 0'> |
40 | <Billboard> |
41 | <Shape> |
42 |
<!-- Appearance
LABEL_APPEARANCE is a DEF node that has 2 USE nodes: USE_1, USE_2 -->
<Appearance DEF='LABEL_APPEARANCE'> |
43 | <Material diffuseColor='1 1 .3' emissiveColor='.33 .33 .1'/> |
44 | </Appearance> |
45 | <Text string='"Up" "+Y X3D" "-Z DIS" "+Y GeoLocation"'> |
46 |
<!-- 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'/> |
47 | </Text> |
48 | </Shape> |
49 | </Billboard> |
50 | </Transform> |
51 | </Group> |
52 | <Transform rotation='0 0 1 -1.57079'> |
53 | <!-- Horizontal X arrow and label --> |
54 | <Group> |
55 | <Group DEF='ArrowRed'> |
56 | <Shape> |
57 | <Cylinder USE='ArrowCylinder'/> |
58 | |
59 | <Material diffuseColor='.7 .1 .1' emissiveColor='.33 0 0'/> |
60 | </Appearance> |
61 | </Shape> |
62 | <Transform translation='0 1 0'> |
63 | <Shape> |
64 | <Cone USE='ArrowCone'/> |
65 | <Appearance USE='Red'/> |
66 | </Shape> |
67 | </Transform> |
68 | </Group> |
69 | <Transform rotation='0 0 1 1.57079' translation='0 1.2 0'> |
70 | <!-- note label rotated back to original coordinate frame --> |
71 | <Billboard> |
72 | <Shape> |
73 | <Appearance USE='LABEL_APPEARANCE'/> |
74 | <Text string='"North" "+X X3D" "+X DIS" "-Z GeoLocation"'> |
75 | <FontStyle USE='LABEL_FONT'/> |
76 | </Text> |
77 | </Shape> |
78 | </Billboard> |
79 | </Transform> |
80 | </Group> |
81 | </Transform> |
82 | <Transform rotation='1 0 0 1.57079'> |
83 | <!-- Perpendicular Z arrow and label, note right-hand rule --> |
84 | <Group> |
85 | <Group DEF='ArrowBlue'> |
86 | <Shape> |
87 | <Cylinder USE='ArrowCylinder'/> |
88 | |
89 | <Material diffuseColor='.3 .3 1' emissiveColor='.1 .1 .33'/> |
90 | </Appearance> |
91 | </Shape> |
92 | <Transform translation='0 1 0'> |
93 | <Shape> |
94 | <Cone USE='ArrowCone'/> |
95 | <Appearance USE='Blue'/> |
96 | </Shape> |
97 | </Transform> |
98 | </Group> |
99 | <Transform rotation='1 0 0 -1.57079' translation='0 1.1 -0.05'> |
100 | <!-- note label rotated back to original coordinate frame --> |
101 | <Billboard> |
102 | <Shape> |
103 | <Appearance USE='LABEL_APPEARANCE'/> |
104 | <Text string='"East" "+Z X3D" "+Y DIS" "+X GeoLocation"'> |
105 | <FontStyle USE='LABEL_FONT'/> |
106 | </Text> |
107 | </Shape> |
108 | </Billboard> |
109 | </Transform> |
110 | </Group> |
111 | </Transform> |
112 | </Scene> |
113 | </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. -->