Debian Codegraph @

tests/data/demo-models-copy/anchor_test.x3dv

raw
1 #X3D V3.2 utf8
2 PROFILE Interchange
3
4 # Anchor node tests
5
6 # Camera settings "encoded" in the VRML/X3D declaration below :
7 # direction 0.0477173291146755 0.0000266001297859 -0.9988608956336975
8 # up 0.0004871281853411 0.9999999403953552 0.0000499451889481
9 # gravityUp 0 1 0
10 DEF FrontView Viewpoint {
11 description "Default Front View"
12 position 7.0167627334594727 -8.2467250823974609 26.886951446533203
13 orientation 0.0008564154268242 -0.9999400973320007 -0.0125247593969106 0.0477379597723484
14 }
15
16 # Camera settings "encoded" in the VRML declaration below :
17 # direction -0.0187639687210321 4.114511682473676E-007 -0.0069222417660057
18 # up 0.0001444578228984 0.9999952316284179 -0.0003320136165712
19 # gravityUp 0 1 0
20 DEF SideView Viewpoint {
21 description "Side View"
22 position 18.889060974121094 -1.6184728145599365 4.1580300331115723
23 orientation -0.0001506769476691 1 -0.0002477127709426 1.217374324798584
24 }
25
26 NavigationInfo {
27 headlight TRUE
28 type ["FLY", "ANY"]
29 speed 10
30 }
31
32 Anchor {
33 url "../sensors_pointing_device/touch_sensor_tests.x3dv"
34 children [
35 Shape {
36 appearance DEF App1 Appearance { material Material { diffuseColor 1 0 0 } }
37 geometry Text { string " Click me for TouchSensor test" }
38 }
39 Shape {
40 appearance USE App1
41 geometry Sphere { }
42 }
43 ]
44 }
45
46 Transform {
47 translation 0 -2 0
48 children Anchor {
49 url "../sensors_key/key_sensor.x3dv"
50 description "Description for Anchor leading to KeySensor"
51 children [
52 Shape {
53 appearance DEF App1 Appearance { material Material { diffuseColor 0 1 0 } }
54 geometry Text { string " Click me for KeySensor test" }
55 }
56 Shape {
57 appearance USE App1
58 geometry Sphere { }
59 }
60 ]
61 }
62 }
63
64 Transform {
65 translation 0 -4 0
66 children Anchor {
67 url "castle_static_group_ortho_view.x3dv#SomeNonOrthoViewpoint"
68 children [
69 Shape {
70 appearance DEF App1 Appearance { material Material { diffuseColor 0 0 1 } }
71 geometry Text { string [ " Click me for castle_static_group_ortho_view.x3dv,"
72 " but with non-default camera" ] }
73 }
74 Shape {
75 appearance USE App1
76 geometry Sphere { }
77 }
78 ]
79 }
80 }
81
82 Transform {
83 translation 0 -6 0
84 children Anchor {
85 url "castle_static_group_ortho_view.x3dv#NotExisting"
86 children [
87 Shape {
88 appearance DEF App1 Appearance { material Material { diffuseColor 1 0 0 } }
89 geometry Text { string [ " Click me for castle_static_group_ortho_view.x3dv, "
90 " but with non-existing camera (should load default)" ] }
91 }
92 Shape {
93 appearance USE App1
94 geometry Sphere { }
95 }
96 ]
97 }
98 }
99
100 Transform {
101 translation 0 -8 0
102 children Anchor {
103 url [ "non_existing.wrl" "#NotExisting" "#SideView" ]
104 children [
105 Shape {
106 appearance DEF App1 Appearance { material Material { diffuseColor 0.5 0.5 1 } }
107 geometry Text { string " Click me for warning + side view of the same file" }
108 }
109 Shape {
110 appearance USE App1
111 geometry Sphere { }
112 }
113 ]
114 }
115 }
116
117 Transform {
118 translation 0 -10 0
119 children Anchor {
120 url "anchor_test.x3dv#FrontView"
121 children [
122 Shape {
123 appearance DEF App1 Appearance { material Material { diffuseColor 1 0.5 0 } }
124 geometry Text { string " Click me for front view of the same file, with reload" }
125 }
126 Shape {
127 appearance USE App1
128 geometry Sphere { }
129 }
130 ]
131 }
132 }
133
134 Transform {
135 translation 0 -12 0
136 children Anchor {
137 url "#NotExisting"
138 children [
139 Shape {
140 appearance DEF App1 Appearance { material Material { diffuseColor 1 1 1 } }
141 geometry Text { string " Click me for nothing (invalid viewpoint in self)" }
142 }
143 Shape {
144 appearance USE App1
145 geometry Sphere { }
146 }
147 ]
148 }
149 }
150
151 Transform {
152 translation 0 -14 0
153 children Anchor {
154 url "../collada/humanoid-collada140.dae"
155 children [
156 Shape {
157 appearance DEF App1 Appearance { material Material { diffuseColor 1 1 0 } }
158 geometry Text { string " Click me for a Collada 3D model" }
159 }
160 Shape {
161 appearance USE App1
162 geometry Sphere { }
163 }
164 ]
165 }
166 }
167
168 Transform {
169 translation 0 -16 0
170 children Anchor {
171 url "https://castle-engine.io/castle-model-viewer"
172 children [
173 Shape {
174 appearance DEF App1 Appearance { material Material { diffuseColor 1 1 0 } }
175 geometry Text { string " Open castle-model-viewer website in WWW browser" }
176 }
177 Shape {
178 appearance USE App1
179 geometry Sphere { }
180 }
181 ]
182 }
183 }
184
185 Transform {
186 translation 0 -18 0
187 children Anchor {
188 # URL with # inside
189 url "http://www.web3d.org/files/specifications/19775-1/V3.2/Part01/components/networking.html#Anchor"
190 children [
191 Shape {
192 appearance DEF App1 Appearance { material Material { diffuseColor 1 1 0 } }
193 geometry Text { string " Open X3D specification for Anchor node in WWW browser" }
194 }
195 Shape {
196 appearance USE App1
197 geometry Sphere { }
198 }
199 ]
200 }
201 }
202
203 Transform {
204 translation 0 -20 0
205 children Anchor {
206 url "../textures/test_texture.png"
207 children [
208 Shape {
209 appearance DEF App1 Appearance { material Material { diffuseColor 1 1 0 } }
210 geometry Text { string " Open test_texture.png in default program for PNG" }
211 }
212 Shape {
213 appearance USE App1
214 geometry Sphere { }
215 }
216 ]
217 }
218 }