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='PlayRoom.x3d'/> |
6 | <meta name='description' content='X3D example Model of a Play room'/> |
7 | <meta name='created' content='3 March 2004'/> |
8 | <meta name='modified' content='20 October 2019'/> |
9 | <meta name='creator' content='Vaughn Pangelinan'/> |
10 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/PlayRoom.x3d'/> |
11 | <meta name='generator' content='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/> |
12 | <meta name='license' content='../license.html'/> |
13 | </head> |
14 | <Scene> |
15 | <!-- Scene Generates the house and world --> |
16 | <WorldInfo title='PlayRoom.x3d'/> |
17 | <Background groundColor='.1 .4 .1' skyColor='.8 .8 1'/> |
18 | <Transform DEF='World'> |
19 | <Transform DEF='House'> |
20 | <Transform DEF='Walls'> |
21 | <Transform DEF='LowerWallTransform'> |
22 | <Transform translation='1.25 .3 1.4'> |
23 | <Shape> |
24 | <Box size='1.499 .6 .201'/> |
25 | <Appearance> |
26 | |
27 | <TextureTransform scale='5 2'/> |
28 | </Appearance> |
29 | </Shape> |
30 | <Transform translation='-.7495 0 0'> |
31 | <Shape> |
32 | <Box size='.001 .6 .2'/> |
33 | <Appearance> |
34 | <ImageTexture USE='BrickTex'/> |
35 | <TextureTransform scale='.5 2'/> |
36 | </Appearance> |
37 | </Shape> |
38 | </Transform> |
39 | </Transform> |
40 | <Transform translation='-1.25 .3 1.4'> |
41 | <Shape> |
42 | <Box size='1.499 .6 .201'/> |
43 | <Appearance> |
44 | <ImageTexture USE='BrickTex'/> |
45 | <TextureTransform scale='5 2'/> |
46 | </Appearance> |
47 | </Shape> |
48 | <Transform translation='.7495 0 0'> |
49 | <Shape> |
50 | <Box size='.001 .6 .2'/> |
51 | <Appearance> |
52 | <ImageTexture USE='BrickTex'/> |
53 | <TextureTransform scale='.5 2'/> |
54 | </Appearance> |
55 | </Shape> |
56 | </Transform> |
57 | </Transform> |
58 | <Transform translation='-1.9 .3 0'> |
59 | <Shape> |
60 | <Box size='.201 .6 3'/> |
61 | <Appearance> |
62 | <ImageTexture USE='BrickTex'/> |
63 | <TextureTransform scale='10 2'/> |
64 | </Appearance> |
65 | </Shape> |
66 | </Transform> |
67 | <Transform translation='1.9 .3 0'> |
68 | <Shape> |
69 | <Box size='.201 .6 3'/> |
70 | <Appearance> |
71 | <ImageTexture USE='BrickTex'/> |
72 | <TextureTransform scale='10 2'/> |
73 | </Appearance> |
74 | </Shape> |
75 | </Transform> |
76 | <Transform translation='0 .3 -1.4'> |
77 | <Shape> |
78 | <Box size='4 .6 .201'/> |
79 | <Appearance> |
80 | <ImageTexture USE='BrickTex'/> |
81 | <TextureTransform scale='12 2'/> |
82 | </Appearance> |
83 | </Shape> |
84 | </Transform> |
85 | </Transform> |
86 | <Transform DEF='MidLowWallTransform'> |
87 | <Shape> |
88 | <Appearance> |
89 | <Material diffuseColor='1 0.9 0.7'/> |
90 | </Appearance> |
91 | <Extrusion convex='false' creaseAngle='0.785' crossSection='-0.5 1.5 -0.5 1.3 -1.8 1.3 -1.8 -1.3 1.8 -1.3 1.8 1.3 0.5 1.3 0.5 1.5 2.0 1.5 2.0 -1.5 -2.0 -1.5 -2.0 1.5 -0.5 1.5' solid='false' spine='0 .6 0 0 .7 0'/> |
92 | </Shape> |
93 | </Transform> |
94 | <Transform DEF='MidHighLeftWallTransform'> |
95 | <Shape> |
96 | <Appearance> |
97 | <Material diffuseColor='1 0.9 0.7'/> |
98 | </Appearance> |
99 | <Extrusion convex='false' creaseAngle='0.785' crossSection='-1.8 .45 -1.8 1.3 -0.5 1.3 -0.5 1.5 -2.0 1.5 -2.0 .45 -1.8 .45' solid='false' spine='0 .7 0 0 1.5 0'/> |
100 | </Shape> |
101 | </Transform> |
102 | <Transform DEF='MidHighRightWallTransform'> |
103 | <Transform DEF='MidHighRightFrontWallTransform'> |
104 | <Shape> |
105 | <Appearance> |
106 | <Material diffuseColor='1 0.9 0.7'/> |
107 | </Appearance> |
108 | <Extrusion convex='false' creaseAngle='0.785' crossSection='0.5 1.3 0.5 1.5 1 1.5 1 1.3 0.5 1.3' solid='false' spine='0 .7 0 0 1.5 0'/> |
109 | </Shape> |
110 | </Transform> |
111 | <Transform DEF='MidHighRightSideWallTransform'> |
112 | <Shape> |
113 | <Appearance> |
114 | <Material diffuseColor='1 0.9 0.7'/> |
115 | </Appearance> |
116 | <Extrusion convex='false' creaseAngle='0.785' crossSection='1.8 .45 1.8 1.3 1.5 1.3 1.5 1.5 2.0 1.5 2.0 .45 1.8 .45' solid='false' spine='0 .7 0 0 1.5 0'/> |
117 | </Shape> |
118 | </Transform> |
119 | </Transform> |
120 | <Transform DEF='MidHighBackWallTransform'> |
121 | <Shape> |
122 | <Appearance> |
123 | <Material diffuseColor='1 0.9 0.7'/> |
124 | </Appearance> |
125 | <Extrusion convex='false' creaseAngle='0.785' crossSection='-1.8 -.45 -1.8 -1.3 1.8 -1.3 1.8 -.45 2.0 -.45 2.0 -1.5 -2.0 -1.5 -2.0 -.45 -1.8 -.45' solid='false' spine='0 .7 0 0 1.5 0'/> |
126 | </Shape> |
127 | </Transform> |
128 | <Transform DEF='UpperWallTransform'> |
129 | <Shape> |
130 | <Appearance> |
131 | <Material diffuseColor='1 0.9 0.7'/> |
132 | </Appearance> |
133 | <Extrusion convex='false' creaseAngle='0.785' crossSection='-0.5 1.5 -0.5 1.3 -1.8 1.3 -1.8 -1.3 1.8 -1.3 1.8 1.3 0.5 1.3 0.5 1.5 2.0 1.5 2.0 -1.5 -2.0 -1.5 -2.0 1.5 -0.5 1.5' solid='false' spine='0 1.5 0 0 2 0'/> |
134 | </Shape> |
135 | </Transform> |
136 | </Transform> |
137 | <Transform DEF='Floor'> |
138 | <Shape> |
139 | <Appearance DEF='WoodFloor'> |
140 | <ImageTexture url=' "PrintShopFloorWood.jpg " "https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/PrintShopFloorWood.jpg " '/> |
141 | </Appearance> |
142 | <IndexedFaceSet solid='false' coordIndex='0 1 2 3' texCoordIndex='0 1 2 3'> |
143 | <Coordinate point='-2 0 -1.5 2 0 -1.5 2 0 1.5 -2 0 1.5'/> |
144 | <TextureCoordinate point='0 0 1 0 1 1 0 1'/> |
145 | </IndexedFaceSet> |
146 | </Shape> |
147 | </Transform> |
148 | <Transform DEF='CeilingTransform' translation='0 2 0'> |
149 | <Shape> |
150 | <Appearance DEF='Ceiling'> |
151 | <ImageTexture url=' "StuccoCeiling.jpg " "https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/StuccoCeiling.jpg " '/> |
152 | </Appearance> |
153 | <IndexedFaceSet solid='false' coordIndex='0 1 2 3' texCoordIndex='0 1 2 3'> |
154 | <Coordinate point='-1.8 0 -1.3 1.8 0 -1.3 1.8 0 1.3 -1.8 0 1.3'/> |
155 | <TextureCoordinate point='0 0 5 0 5 5 0 5'/> |
156 | </IndexedFaceSet> |
157 | </Shape> |
158 | <Transform scale='.3 .3 .3' translation='-.4 .1 -.155'> |
159 | <Shape> |
160 | <Text length='3' string='"Hello In Here!"'/> |
161 | <Appearance> |
162 | <Material diffuseColor='0.7 0.1 .1'/> |
163 | </Appearance> |
164 | </Shape> |
165 | </Transform> |
166 | </Transform> |
167 | <Transform DEF='Light' scale='.05 .05 .05' translation='0 2 0'> |
168 | <Transform> |
169 | <Transform translation='0 -2.95 0'> |
170 | <Shape> |
171 | <Appearance> |
172 | <Material DEF='BULB_MATERIAL' diffuseColor='0.4 0.4 0.4' emissiveColor='0.8 0.8 0.8'/> |
173 | </Appearance> |
174 | <Sphere/> |
175 | </Shape> |
176 | <PointLight DEF='LIGHTSOURCE' radius='1000'/> |
177 | <Transform translation='0 2.65 0'> |
178 | <Shape> |
179 | <Appearance> |
180 | <Material diffuseColor='0.4 0.4 0.4' emissiveColor='0.1 0.1 0.1'/> |
181 | </Appearance> |
182 | <Cylinder height='.6' radius='0.05'/> |
183 | </Shape> |
184 | </Transform> |
185 | </Transform> |
186 | <Group> |
187 | <Transform translation='0 -1 0'> |
188 | <Shape> |
189 |
<!-- Appearance
BULB_CASING is a DEF node that has 1 USE node: USE_1 -->
<Appearance DEF='BULB_CASING'> |
190 | <Material DEF='SOCKET_MATERIAL' diffuseColor='0.4 0.4 0.16' emissiveColor='0.4 0.4 0.16'/> |
191 | </Appearance> |
192 | <Sphere radius='0.5'/> |
193 | </Shape> |
194 | </Transform> |
195 | <Transform translation='0 -1.5 0'> |
196 | <Shape> |
197 | <Appearance USE='BULB_CASING'/> |
198 | <Cylinder height='1' radius='0.5'/> |
199 | </Shape> |
200 | </Transform> |
201 | </Group> |
202 | </Transform> |
203 | </Transform> |
204 | <Group DEF='FrontDoor'> |
205 |
<!-- ROUTE information for CYLINDERSENSOR node:
[from rotation_changed to DoorRotator.set_rotation
]
-->
<CylinderSensor DEF='CYLINDERSENSOR' description='Click and drag to rotate' maxAngle='0' minAngle='-2.35'/> |
206 |
<!-- ROUTE information for DoorRotator node:
[from CYLINDERSENSOR.rotation_changed to set_rotation
]
-->
<Transform DEF='DoorRotator' center='-.5 0 1.45'> |
207 | < ROUTE fromNode='CYLINDERSENSOR' fromField='rotation_changed' toNode='DoorRotator' toField='set_rotation'/> |
208 | <Transform translation='0 1 1.425'> |
209 | <Shape> |
210 | <Box size='1 2 .05'/> |
211 | |
212 | <Material diffuseColor='.6 .5 .2'/> |
213 | </Appearance> |
214 | </Shape> |
215 | <Transform rotation='1 0 0 1.57' translation='.45 .15 0'> |
216 | <Shape> |
217 | <Cylinder height='.1' radius='.02'/> |
218 | <Appearance> |
219 | |
220 | </Appearance> |
221 | </Shape> |
222 | </Transform> |
223 | <Transform scale='1 1 .5' translation='.45 .15 .06'> |
224 | <Shape> |
225 | <Sphere radius='.03'/> |
226 | <Appearance> |
227 | <Material USE='copper'/> |
228 | </Appearance> |
229 | </Shape> |
230 | </Transform> |
231 | <Transform scale='1 1 .5' translation='.45 .15 -.06'> |
232 | <Shape> |
233 | <Sphere radius='.03'/> |
234 | <Appearance> |
235 | <Material USE='copper'/> |
236 | </Appearance> |
237 | </Shape> |
238 | </Transform> |
239 | </Transform> |
240 | </Transform> |
241 | </Group> |
242 | <Transform DEF='AllRoof'> |
243 | <Transform DEF='FrontRoofSupport'> |
244 | <Shape> |
245 | <Appearance> |
246 | <Material diffuseColor='1 0.9 0.7'/> |
247 | </Appearance> |
248 | <Extrusion convex='false' creaseAngle='0.785' crossSection='-2 2 2 2 0 2.5 -2 2' solid='false' spine='0 0 1.5 0 0 1.3'/> |
249 | </Shape> |
250 | </Transform> |
251 | <Transform DEF='RearRoofSupport'> |
252 | <Shape> |
253 | <Appearance> |
254 | <Material diffuseColor='1 0.9 0.7'/> |
255 | </Appearance> |
256 | <Extrusion convex='false' creaseAngle='0.785' crossSection='-2 2 2 2 0 2.5 -2 2' solid='false' spine='0 0 -1.3 0 0 -1.5'/> |
257 | </Shape> |
258 | </Transform> |
259 | <Transform DEF='LeftRoof' rotation='0 0 1 .245' translation='0 2.501 0'> |
260 | <Shape> |
261 |
<!-- Appearance
RoofMaterial is a DEF node that has 1 USE node: USE_1 -->
<Appearance DEF='RoofMaterial'> |
262 | <ImageTexture url=' "RoofRock.jpg " "https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/RoofRock.jpg " '/> |
263 | </Appearance> |
264 | <IndexedFaceSet solid='false' coordIndex='0 1 2 3' texCoordIndex='0 1 2 3'> |
265 | <Coordinate point='0 0 -1.8 -2.3 0 -1.8 -2.3 0 1.8 0 0 1.8'/> |
266 | <TextureCoordinate point='0 0 10 0 10 10 0 10'/> |
267 | </IndexedFaceSet> |
268 | </Shape> |
269 | </Transform> |
270 | <Transform DEF='RightRoof' rotation='0 0 1 -.245' translation='-.001 2.501 0'> |
271 | <Shape> |
272 | <Appearance USE='RoofMaterial'/> |
273 | <IndexedFaceSet solid='false' coordIndex='0 1 2 3' texCoordIndex='0 1 2 3'> |
274 | <Coordinate point='0 0 -1.8 2.3 0 -1.8 2.3 0 1.8 0 0 1.8'/> |
275 | <TextureCoordinate point='0 0 10 0 10 10 0 10'/> |
276 | </IndexedFaceSet> |
277 | </Shape> |
278 | </Transform> |
279 | </Transform> |
280 | <Transform DEF='Window'> |
281 | <Transform DEF='FrontWindowTransform' translation='1.25 1.1 1.4'> |
282 | <Group DEF='FrontWindowGroup'> |
283 |
<!-- ROUTE information for MovingWindowTransform node:
[from MyPlaneSensor.translation_changed to set_translation
]
-->
<Transform DEF='MovingWindowTransform' translation='0 .1 0'> |
284 | <Transform> |
285 | <Shape> |
286 | <Box size='.499 .721 .002'/> |
287 | |
288 | <Material diffuseColor='.03 .04 .08' transparency='.85'/> |
289 | </Appearance> |
290 | </Shape> |
291 | </Transform> |
292 | <Transform translation='0 -.341 0'> |
293 | <Shape> |
294 | <Box size='.492 .04 .02'/> |
295 | <Appearance USE='Wood'/> |
296 | </Shape> |
297 | </Transform> |
298 | <Transform translation='0 .341 0'> |
299 | <Shape> |
300 | <Box size='.492 .04 .02'/> |
301 | <Appearance USE='Wood'/> |
302 | </Shape> |
303 | </Transform> |
304 | <Transform translation='.191 0 0'> |
305 | <Shape> |
306 | <Box size='.04 .722 .02'/> |
307 | <Appearance USE='Wood'/> |
308 | </Shape> |
309 | </Transform> |
310 | <Transform translation='-.191 0 0'> |
311 | <Shape> |
312 | <Box size='.04 .722 .02'/> |
313 | <Appearance USE='Wood'/> |
314 | </Shape> |
315 | </Transform> |
316 | <Transform> |
317 | <Shape> |
318 | <Box size='.472 .01 .01'/> |
319 | <Appearance USE='Wood'/> |
320 | </Shape> |
321 | </Transform> |
322 | <Transform> |
323 | <Shape> |
324 | <Box size='.01 .721 .01'/> |
325 | <Appearance USE='Wood'/> |
326 | </Shape> |
327 | </Transform> |
328 | <Transform translation='0 -.33 -.01'> |
329 | <Transform rotation='1 0 0 1.57' translation='0 0 -.012'> |
330 | <Shape> |
331 | <Cylinder height='.025' radius='.0075'/> |
332 | <Appearance> |
333 | |
334 | </Appearance> |
335 | </Shape> |
336 | </Transform> |
337 | <Transform scale='1 1 .5' translation='0 0 -.02'> |
338 | <Shape> |
339 | <Sphere radius='.020'/> |
340 | <Appearance> |
341 | <Material USE='copper2'/> |
342 | </Appearance> |
343 | </Shape> |
344 | </Transform> |
345 | </Transform> |
346 |
<!-- ROUTE information for MyPlaneSensor node:
[from translation_changed to MovingWindowTransform.set_translation
]
-->
<PlaneSensor DEF='MyPlaneSensor' description='Lift Window' maxPosition='0 .361'/> |
347 | </Transform> |
348 | <Transform DEF='FrontSill'> |
349 | <Transform translation='0 -.381 0'> |
350 | <Shape> |
351 | <Box size='.502 .04 .201'/> |
352 | |
353 | <Material diffuseColor='.6 .5 .2'/> |
354 | </Appearance> |
355 | </Shape> |
356 | </Transform> |
357 | <Transform translation='0 .381 0'> |
358 | <Shape> |
359 | <Box size='.502 .04 .201'/> |
360 | <Appearance USE='Frame'/> |
361 | </Shape> |
362 | </Transform> |
363 | <Transform translation='.231 0 0'> |
364 | <Shape> |
365 | <Box size='.04 .802 .201'/> |
366 | <Appearance USE='Frame'/> |
367 | </Shape> |
368 | </Transform> |
369 | <Transform translation='-.231 0 0'> |
370 | <Shape> |
371 | <Box size='.04 .802 .201'/> |
372 | <Appearance USE='Frame'/> |
373 | </Shape> |
374 | </Transform> |
375 | </Transform> |
376 | <Viewpoint DEF='FrontWindowView' description='Front Window Opens Up' fieldOfView='1.2' orientation='0 1 0 3.14' position='0 0 -.65'/> |
377 | < ROUTE fromNode='MyPlaneSensor' fromField='translation_changed' toNode='MovingWindowTransform' toField='set_translation'/> |
378 | </Group> |
379 | </Transform> |
380 | <Transform DEF='LeftWindowTransform' rotation='0 1 0 -1.57' translation='-1.9 1.1 0'> |
381 | <Group DEF='LeftWindowGroup'> |
382 | <Transform> |
383 | <Shape> |
384 | <Box size='.899 .799 .002'/> |
385 | <Appearance USE='Glass'/> |
386 | </Shape> |
387 | </Transform> |
388 | <Transform> |
389 |
<!-- Group
SideSillGroup is a DEF node that has 1 USE node: USE_1 -->
<Group DEF='SideSillGroup'> |
390 | <Transform translation='0 -.381 0'> |
391 | <Shape> |
392 | <Box size='.902 .04 .201'/> |
393 | <Appearance USE='Frame'/> |
394 | </Shape> |
395 | </Transform> |
396 | <Transform translation='0 .381 0'> |
397 | <Shape> |
398 | <Box size='.902 .04 .201'/> |
399 | <Appearance USE='Frame'/> |
400 | </Shape> |
401 | </Transform> |
402 | <Transform translation='.431 0 0'> |
403 | <Shape> |
404 | <Box size='.04 .802 .201'/> |
405 | <Appearance USE='Frame'/> |
406 | </Shape> |
407 | </Transform> |
408 | <Transform translation='-.431 0 0'> |
409 | <Shape> |
410 | <Box size='.04 .802 .201'/> |
411 | <Appearance USE='Frame'/> |
412 | </Shape> |
413 | </Transform> |
414 | </Group> |
415 | </Transform> |
416 | </Group> |
417 | </Transform> |
418 | <Transform DEF='RightWindowTransform' rotation='0 1 0 1.57' translation='1.9 1.1 0'> |
419 | <Group DEF='RightWindowGroup'> |
420 | <Transform> |
421 | <Shape> |
422 | <Box size='.899 .799 .002'/> |
423 | <Appearance USE='Glass'/> |
424 | </Shape> |
425 | </Transform> |
426 | <Transform> |
427 | <Group USE='SideSillGroup'/> |
428 | </Transform> |
429 | </Group> |
430 | </Transform> |
431 | </Transform> |
432 | <Transform DEF='MessageBoardTransform'> |
433 | <Transform scale='1.5 1 1' translation='0 1.2 -1.299'> |
434 | <Shape> |
435 | <Appearance> |
436 | <ImageTexture repeatS='false' repeatT='false' url=' "MessageBoard.jpg " "https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/MessageBoard.jpg " '/> |
437 | </Appearance> |
438 | <IndexedFaceSet solid='false' coordIndex='0 1 2 3'> |
439 | <Coordinate point='-.5 -.5 0 .5 -.5 0 .5 .5 0 -.5 .5 0'/> |
440 | </IndexedFaceSet> |
441 | </Shape> |
442 | </Transform> |
443 | <Transform translation='0 1.2 -1.3'> |
444 | <Group DEF='MessageBoardFrameGroup'> |
445 | <Transform translation='.005 -.461 0'> |
446 | <Shape> |
447 | <Box size='1.548 .075 .04'/> |
448 | <Appearance USE='Frame'/> |
449 | </Shape> |
450 | </Transform> |
451 | <Transform translation='.005 .485 0'> |
452 | <Shape> |
453 | <Box size='1.548 .075 .04'/> |
454 | <Appearance USE='Frame'/> |
455 | </Shape> |
456 | </Transform> |
457 | <Transform translation='.741 0 0'> |
458 | <Shape> |
459 | <Box size='.075 .9 .04'/> |
460 | <Appearance USE='Frame'/> |
461 | </Shape> |
462 | </Transform> |
463 | <Transform translation='-.730 0 0'> |
464 | <Shape> |
465 | <Box size='.075 .9 .04'/> |
466 | <Appearance USE='Frame'/> |
467 | </Shape> |
468 | </Transform> |
469 | </Group> |
470 | </Transform> |
471 | </Transform> |
472 | <Transform DEF='RealStuffTransform' scale='.6 .6 .6' translation='-1.15 1.2 1.299'> |
473 | <Transform rotation='0 1 0 3.14' scale='1.5 1 1'> |
474 | <Shape> |
475 | <Appearance> |
476 | <ImageTexture repeatS='false' repeatT='false' url=' "RealStuff.jpg " "https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/RealStuff.jpg " '/> |
477 | </Appearance> |
478 | <IndexedFaceSet solid='false' coordIndex='0 1 2 3'> |
479 | <Coordinate point='-.5 -.5 0 .5 -.5 0 .5 .5 0 -.5 .5 0'/> |
480 | </IndexedFaceSet> |
481 | </Shape> |
482 | </Transform> |
483 | <Transform scale='1.06 1.06 1.06'> |
484 | <Group DEF='RealStuffFrameGroup'> |
485 | <Transform translation='.005 -.461 0'> |
486 | <Shape> |
487 | <Box size='1.548 .075 .04'/> |
488 | <Appearance USE='Frame'/> |
489 | </Shape> |
490 | </Transform> |
491 | <Transform translation='.005 .485 0'> |
492 | <Shape> |
493 | <Box size='1.548 .075 .04'/> |
494 | <Appearance USE='Frame'/> |
495 | </Shape> |
496 | </Transform> |
497 | <Transform translation='.741 0 0'> |
498 | <Shape> |
499 | <Box size='.075 .9 .04'/> |
500 | <Appearance USE='Frame'/> |
501 | </Shape> |
502 | </Transform> |
503 | <Transform translation='-.730 0 0'> |
504 | <Shape> |
505 | <Box size='.075 .9 .04'/> |
506 | <Appearance USE='Frame'/> |
507 | </Shape> |
508 | </Transform> |
509 | </Group> |
510 | </Transform> |
511 | </Transform> |
512 | </Transform> |
513 | <Transform DEF='Yard'> |
514 | <Transform DEF='AllGrass'> |
515 | <Transform DEF='LeftGrass' translation='0 -.011 0'> |
516 | <Shape> |
517 |
<!-- Appearance
GrassPattern is a DEF node that has 4 USE nodes: USE_1, USE_2, USE_3, USE_4 -->
<Appearance DEF='GrassPattern'> |
518 | <ImageTexture url=' "grass.jpg " "https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/grass.jpg " '/> |
519 | </Appearance> |
520 | <IndexedFaceSet solid='false' coordIndex='0 1 2 3' texCoordIndex='0 1 2 3'> |
521 | <Coordinate point='-.5 0 1.5 -5.5 0 1.5 -5.5 0 7.5 -.5 0 7.5'/> |
522 | <TextureCoordinate point='0 0 10 0 10 10 0 10'/> |
523 | </IndexedFaceSet> |
524 | </Shape> |
525 | </Transform> |
526 | <Transform DEF='RightGrass' translation='0 -.011 0'> |
527 | <Shape> |
528 | <Appearance USE='GrassPattern'/> |
529 | <IndexedFaceSet solid='false' coordIndex='0 1 2 3' texCoordIndex='0 1 2 3'> |
530 | <Coordinate point='.5 0 1.5 5.5 0 1.5 5.5 0 7.5 .5 0 7.5'/> |
531 | <TextureCoordinate point='0 0 10 0 10 10 0 10'/> |
532 | </IndexedFaceSet> |
533 | </Shape> |
534 | </Transform> |
535 | <Transform DEF='LeftSideGrass' translation='0 -.011 0'> |
536 | <Shape> |
537 | <Appearance USE='GrassPattern'/> |
538 | <IndexedFaceSet solid='false' coordIndex='0 1 2 3' texCoordIndex='0 1 2 3'> |
539 | <Coordinate point='-2 0 1.5 -5.5 0 1.5 -5.5 0 -1.5 -2 0 -1.5'/> |
540 | <TextureCoordinate point='0 0 10 0 10 10 0 10'/> |
541 | </IndexedFaceSet> |
542 | </Shape> |
543 | </Transform> |
544 | <Transform DEF='RightSideGrass' translation='0 -.011 0'> |
545 | <Shape> |
546 | <Appearance USE='GrassPattern'/> |
547 | <IndexedFaceSet solid='false' coordIndex='0 1 2 3' texCoordIndex='0 1 2 3'> |
548 | <Coordinate point='2 0 1.5 5.5 0 1.5 5.5 0 -1.5 2 0 -1.5'/> |
549 | <TextureCoordinate point='0 0 10 0 10 10 0 10'/> |
550 | </IndexedFaceSet> |
551 | </Shape> |
552 | </Transform> |
553 | <Transform DEF='BackGrass' translation='0 -.011 0'> |
554 | <Shape> |
555 | <Appearance USE='GrassPattern'/> |
556 | <IndexedFaceSet solid='false' coordIndex='0 1 2 3' texCoordIndex='0 1 2 3'> |
557 | <Coordinate point='-5.5 0 -1.5 5.5 0 -1.5 5.5 0 -7.5 -5.5 0 -7.5'/> |
558 | <TextureCoordinate point='0 0 30 0 30 15 0 15'/> |
559 | </IndexedFaceSet> |
560 | </Shape> |
561 | </Transform> |
562 | </Transform> |
563 | <Transform DEF='Walkway' translation='0 -.011 0'> |
564 | <Shape> |
565 | <Appearance DEF='WalkwayConcrete'> |
566 | <ImageTexture url=' "Concrete.jpg " "https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/Concrete.jpg " '/> |
567 | </Appearance> |
568 | <IndexedFaceSet solid='false' coordIndex='0 1 2 3' texCoordIndex='0 1 2 3'> |
569 | <Coordinate point='-.5 0 1.5 .5 0 1.5 .5 0 7.5 -.5 0 7.5'/> |
570 | <TextureCoordinate point='0 0 2 0 2 10 0 10'/> |
571 | </IndexedFaceSet> |
572 | </Shape> |
573 | </Transform> |
574 | <Transform DEF='Fence'> |
575 |
<!-- Group
FenceGroup is a DEF node that has 1 USE node: USE_1 -->
<Group DEF='FenceGroup'> |
576 | <Transform DEF='FenceSection'> |
577 | <Transform translation='0 0 7.5'> |
578 | <Group> |
579 | <Shape> |
580 | <Appearance DEF='RightFence'> |
581 |
<!-- ImageTexture
FenceImage is a DEF node that has 3 USE nodes: USE_1, USE_2, USE_3 --> <ImageTexture DEF='FenceImage' url=' "Fence.png " "https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/Fence.png " '/> |
582 | </Appearance> |
583 | <IndexedFaceSet solid='false' coordIndex='0 1 2 3' texCoordIndex='0 1 2 3'> |
584 | <Coordinate point='0.5 0 0 5.5 0 0 5.5 0.5 0 0.5 0.5 0'/> |
585 | <TextureCoordinate point='0 0 10 0 10 1 0 1'/> |
586 | </IndexedFaceSet> |
587 | </Shape> |
588 | </Group> |
589 | </Transform> |
590 | </Transform> |
591 | </Group> |
592 | <Transform center='0 0 7.5' rotation='0 1 0 3.14'> |
593 | <Group USE='FenceGroup'/> |
594 | </Transform> |
595 | <Transform translation='5.5 0 0'> |
596 | <Shape> |
597 | <Appearance> |
598 | <ImageTexture USE='FenceImage'/> |
599 | </Appearance> |
600 | <IndexedFaceSet solid='false' coordIndex='0 1 2 3' texCoordIndex='0 1 2 3'> |
601 | <Coordinate point='0 0 7.5 0 0 -7.5 0 0.5 -7.5 0 0.5 7.5'/> |
602 | <TextureCoordinate point='0 0 30 0 30 1 0 1'/> |
603 | </IndexedFaceSet> |
604 | </Shape> |
605 | </Transform> |
606 | <Transform translation='-5.5 0 0'> |
607 | <Shape> |
608 | <Appearance> |
609 | <ImageTexture USE='FenceImage'/> |
610 | </Appearance> |
611 | <IndexedFaceSet solid='false' coordIndex='0 1 2 3' texCoordIndex='0 1 2 3'> |
612 | <Coordinate point='0 0 7.5 0 0 -7.5 0 0.5 -7.5 0 0.5 7.5'/> |
613 | <TextureCoordinate point='0 0 30 0 30 1 0 1'/> |
614 | </IndexedFaceSet> |
615 | </Shape> |
616 | </Transform> |
617 | <Transform rotation='0 1 0 3.14' translation='0 0 -7.5'> |
618 | <Shape> |
619 | <Appearance> |
620 | <ImageTexture USE='FenceImage'/> |
621 | </Appearance> |
622 | <IndexedFaceSet solid='false' coordIndex='0 1 2 3' texCoordIndex='0 1 2 3'> |
623 | <Coordinate point='-5.5 0 0 5.5 0 0 5.5 0.5 0 -5.5 0.5 0'/> |
624 | <TextureCoordinate point='0 0 22 0 22 1 0 1'/> |
625 | </IndexedFaceSet> |
626 | </Shape> |
627 | </Transform> |
628 | </Transform> |
629 | <Transform DEF='Trees'> |
630 | <Transform translation='4 .5 -1'> |
631 | |
632 | <Shape> |
633 | |
634 | <ImageTexture repeatS='false' repeatT='false' url=' "tree1.png " "https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/tree1.png " '/> |
635 | </Appearance> |
636 | <IndexedFaceSet solid='false' coordIndex='0 1 2 3' texCoordIndex='0 1 2 3'> |
637 | <Coordinate point='-0.5 -0.5 0 0.5 -0.5 0 0.5 0.5 0 -0.5 0.5 0'/> |
638 | </IndexedFaceSet> |
639 | </Shape> |
640 | <Transform rotation='0 1 0 1.57' translation='.03 0 .02'> |
641 | <Shape> |
642 | <Appearance USE='Tree1'/> |
643 | <IndexedFaceSet solid='false' coordIndex='0 1 2 3'> |
644 | <Coordinate point='-0.5 -0.5 0 0.5 -0.5 0 0.5 0.5 0 -0.5 0.5 0'/> |
645 | </IndexedFaceSet> |
646 | </Shape> |
647 | </Transform> |
648 | </Group> |
649 | </Transform> |
650 | <Transform translation='-4 .5 -1'> |
651 | <Group USE='FirstTree'/> |
652 | </Transform> |
653 | </Transform> |
654 | <Transform DEF='AllBushes'> |
655 | <Transform translation='0 0 -7'> |
656 | <Group DEF='Bushes'> |
657 | |
658 | <Appearance DEF='BushPattern'> |
659 | <ImageTexture repeatT='false' url=' "BushPattern.png " "https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/BushPattern.png " '/> |
660 | </Appearance> |
661 | <IndexedFaceSet solid='false' coordIndex='0 1 2 3' texCoordIndex='0 1 2 3'> |
662 | <Coordinate point='-5.5 0 0 5.5 0 0 5.5 0.5 0 -5.5 0.5 0'/> |
663 | <TextureCoordinate point='0 0 20 0 20 1 0 1'/> |
664 | </IndexedFaceSet> |
665 | </Shape> |
666 | <Transform translation='0 0 -.3'> |
667 | <Shape USE='BushRow'/> |
668 | </Transform> |
669 | </Group> |
670 | </Transform> |
671 | <Transform translation='0 .25 -13.5'> |
672 | <Transform rotation='0 1 0 .45'> |
673 | <Viewpoint DEF='BushesView' description='Bushes in Backyard' fieldOfView='1.2'/> |
674 | </Transform> |
675 | </Transform> |
676 | </Transform> |
677 | </Transform> |
678 | <Transform DEF='FurnishingsTransform'> |
679 | <Group DEF='Furnishing'> |
680 | <Transform DEF='ToyTransform' rotation='0 1 0 -1.57' scale='.05 .05 .05' translation='.15 .7 0'> |
681 | <Inline url=' "IkeaBeadToy.x3d" "https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/IkeaBeadToy.x3d" "IkeaBeadToy.wrl" "https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/IkeaBeadToy.wrl" '/> |
682 | </Transform> |
683 | <Transform DEF='MatTransform' scale='1 1 .67' translation='0 .001 0'> |
684 | <Group DEF='AlphabetMat'> |
685 | <Shape> |
686 | <Appearance> |
687 | <ImageTexture url=' "MatTransparent.png " "https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/MatTransparent.png " '/> |
688 | </Appearance> |
689 | <IndexedFaceSet solid='false' coordIndex='0 1 2 3'> |
690 | <Coordinate point='-1 0 -1 1 0 -1 1 0 1 -1 0 1'/> |
691 | </IndexedFaceSet> |
692 | </Shape> |
693 | </Group> |
694 | </Transform> |
695 | <Transform DEF='TableTranslation' translation='0 .61 0'> |
696 | <Inline url=' "IkeaTable.x3d" "https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/IkeaTable.x3d" "IkeaTable.wrl" "https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/IkeaTable.wrl" '/> |
697 | </Transform> |
698 | <Transform DEF='BlueChairTransform' rotation='0 1 0 1.57' translation='-.67 .31 0'> |
699 | <Inline url=' "IkeaBlueChair.x3d" "https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/IkeaBlueChair.x3d" "IkeaBlueChair.wrl" "https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/IkeaBlueChair.wrl" '/> |
700 | </Transform> |
701 | <Transform DEF='GreenChairTransform' rotation='0 1 0 4.71' translation='.67 .31 0'> |
702 | <Inline url=' "IkeaGreenChair.x3d" "https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/IkeaGreenChair.x3d" "IkeaGreenChair.wrl" "https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/IkeaGreenChair.wrl" '/> |
703 | </Transform> |
704 | <Transform DEF='BenchTransform' rotation='0 1 0 3.14' translation='0 .31 .45'> |
705 | <Inline url=' "IkeaBench.x3d" "https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/IkeaBench.x3d" "IkeaBench.wrl" "https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/IkeaBench.wrl" '/> |
706 | </Transform> |
707 | <Transform rotation='0 1 0 .7' scale='.015 .015 .015' translation='-1.05 0 -.45'> |
708 | <Inline url=' "IkeaRockingHorse.x3d" "https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/IkeaRockingHorse.x3d" "IkeaRockingHorse.wrl" "https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/IkeaRockingHorse.wrl" '/> |
709 | </Transform> |
710 | </Group> |
711 | </Transform> |
712 | </Transform> |
713 | <Group DEF='ViewpointsGroup'> |
714 | <Viewpoint DEF='FrontEntrance' description='Front Entrance' orientation='1 0 0 -.15' position='0 1.15 7'/> |
715 | <Viewpoint DEF='AtticView' description='Inside Attic' fieldOfView='1.3' orientation='1 0 0 0' position='0 2.3 .6'/> |
716 | <Transform DEF='TreeViewTransform' center='5 1.3 0' rotation='0 1 0 .78'> |
717 | <Viewpoint DEF='TreeView' description='Tree Outside' fieldOfView='1.2' orientation='1 0 0 -.5' position='5 1.3 0'/> |
718 | </Transform> |
719 | <Viewpoint DEF='LightView' description='LightBulb' fieldOfView='1.3' orientation='1 0 0 0' position='0 1.9 .6'/> |
720 | <Viewpoint DEF='AboveOutside' description='Aerial View' orientation='1 0 0 -.35' position='0 5 10'/> |
721 | <Transform DEF='OverheadViewTransform' translation='1.4 1.9 1.1'> |
722 | <Transform rotation='0 1 0 .78'> |
723 | <Viewpoint DEF='OverheadView' description='OverHead' fieldOfView='1.2' orientation='1 0 0 -.45' position='0 0 0'/> |
724 | </Transform> |
725 | </Transform> |
726 | <Transform DEF='FromMessageBoardTransform' rotation='0 1 0 3.14'> |
727 | <Viewpoint DEF='FromMessageBoardView' description='Back Against Board' fieldOfView='1.3' orientation='1 0 0 -.2' position='0 1 .9'/> |
728 | </Transform> |
729 | <Viewpoint DEF='InRoom' description='Enter Room' fieldOfView='1.2' orientation='1 0 0 -.15' position='0 1 1.3'/> |
730 | <Viewpoint DEF='RealStuffView' description='Real Stuff Picture' orientation='0 1 0 3.14' position='-1.15 1.2 .5'/> |
731 | <Transform DEF='HorseTransform'> |
732 | <Viewpoint DEF='HorseSideView' description='Horse Side View' position='-1 .3 .5'/> |
733 | </Transform> |
734 | </Group> |
735 | </Scene> |
736 | </X3D> |
Event Graph ROUTE Table entries with 2 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.
MyPlaneSensor
PlaneSensor translation_changed SFVec3f |
MovingWindowTransform
Transform set_translation SFVec3f |
CYLINDERSENSOR
CylinderSensor rotation_changed SFRotation |
DoorRotator
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. -->