1 : #VRML V2.0 utf8
2 :
3 : WorldInfo {
4 : info "Author: Martin Petricek"
5 : title "Stavba"
6 : }
7 :
8 : PROTO Cement [] {
9 : Appearance {
10 : material Material {
11 : diffuseColor 0.5 0.5 0.5
12 : shininess 0
13 : }
14 : }
15 : }
16 :
17 : #podezdivka
18 : Transform {
19 : translation 0 0.5 0
20 : children [
21 : Shape {
22 : appearance Cement {}
23 : geometry Box {
24 : size 15 1 10
25 : }
26 : }
27 : ]
28 : }
29 :
30 : #schody
31 : Transform {
32 : translation 0 0.1 6.85
33 : scale 1 1 0.3
34 : children [
35 : DEF Stair Shape {
36 : appearance Cement {}
37 : geometry Box {
38 : size 1.5 0.2 1
39 : }
40 : }
41 : ]
42 : }
43 : Transform {
44 : translation 0 0.2 6.55
45 : scale 1 2 0.3
46 : children USE Stair
47 : }
48 : Transform {
49 : translation 0 0.3 6.25
50 : scale 1 3 0.3
51 : children USE Stair
52 : }
53 : Transform {
54 : translation 0 0.4 5.95
55 : scale 1 4 0.3
56 : children USE Stair
57 : }
58 : Transform {
59 : translation 0 0.5 5.4
60 : scale 1 5 0.8
61 : children USE Stair
62 : }
63 :
64 : PROTO Wood [] {
65 : Appearance {
66 : material Material {
67 : diffuseColor 0.5 0.3 0
68 : }
69 : }
70 : }
71 :
72 : PROTO WoodDark [] {
73 : Appearance {
74 : material Material {
75 : diffuseColor 0.3 0.1 0
76 : }
77 : }
78 : }
79 :
80 : PROTO Cover [] {
81 : Appearance {
82 : material Material {
83 : diffuseColor 0.7 0.7 0.3
84 : shininess 0.3
85 : specularColor 1 1 1
86 : }
87 : }
88 : }
89 :
90 : PROTO Brick [] {
91 : Appearance {
92 : material Material {
93 : diffuseColor 0.85 0.2 0.1
94 : shininess 0
95 : }
96 : }
97 : }
98 :
99 :
100 : PROTO Paleta [
101 : exposedField SFVec3f pos 0 0 0
102 : exposedField SFRotation rot 0 0 1 0
103 : ] {
104 : Transform {
105 : translation IS pos
106 : rotation IS rot
107 : children [
108 : #mid
109 : DEF Paleta1 Transform {
110 : translation 0 0.15 0
111 : children [
112 : Shape {
113 : appearance WoodDark{}
114 : geometry Box {
115 : size 0.2 0.2 1.5
116 : }
117 : }
118 : ]
119 : }
120 : Transform {
121 : translation 0.62 0 0
122 : children USE Paleta1
123 : }
124 : Transform {
125 : translation -0.62 0 0
126 : children USE Paleta1
127 : }
128 : #bottom
129 : DEF Paleta2 Transform {
130 : translation 0 0.025 0
131 : children [
132 : DEF Paleta3 Shape {
133 : appearance Wood{}
134 : geometry Box {
135 : size 1.5 0.05 0.2
136 : }
137 : }
138 : Transform {
139 : translation 0 0 0.65
140 : children USE Paleta3
141 : }
142 : Transform {
143 : translation 0 0 -0.65
144 : children USE Paleta3
145 : }
146 : Transform {
147 : translation 0 0 0.35
148 : children USE Paleta3
149 : }
150 : Transform {
151 : translation 0 0 -0.35
152 : children USE Paleta3
153 : }
154 : ]
155 : }
156 : #top
157 : Transform {
158 : translation 0 0.25 0
159 : children USE Paleta2
160 : }
161 : ]
162 : }
163 : }
164 :
165 : Paleta {
166 : pos 3 1 2
167 : rot 0 1 0 -0.3
168 : }
169 :
170 : Paleta {
171 : pos -4 1 3
172 : rot 0 1 0 55
173 : }
174 : Paleta {
175 : pos -4.1 1.3 3
176 : rot 0 1 0 1
177 : }
178 : Paleta {
179 : pos -4 1.6 3.1
180 : }
181 :
182 : #paleta s plachtou
183 : PROTO PaletaB [
184 : exposedField SFVec3f pos 0 0 0
185 : exposedField SFRotation rot 0 0 1 0
186 : ] {
187 : Group {
188 : children [
189 : Paleta {
190 : pos IS pos
191 : rot IS rot
192 : }
193 : Transform {
194 : translation IS pos
195 : rotation IS rot
196 : children Transform {
197 : translation 0 0.9 0
198 : children Shape {
199 : appearance Cover {}
200 : geometry Box{
201 : size 1.5 1.2 1.5
202 : }
203 : }
204 : }
205 : }
206 : ]
207 : }
208 : }
209 :
210 : #paleta s cihlama
211 : PROTO PaletaC [
212 : exposedField SFVec3f pos 0 0 0
213 : exposedField SFRotation rot 0 0 1 0
214 : ] {
215 : Group {
216 : children [
217 : Paleta {
218 : pos IS pos
219 : rot IS rot
220 : }
221 : Transform {
222 : translation IS pos
223 : rotation IS rot
224 : children [
225 : Transform {
226 : translation 0 0.6 0
227 : children Shape {
228 : appearance Brick {}
229 : geometry Box{
230 : size 1.5 0.6 1.5
231 : }
232 : }
233 : }
234 : Transform {
235 : translation 0.15 0.95 0
236 : children Shape {
237 : appearance Brick {}
238 : geometry Box{
239 : size 1.2 0.1 1.5
240 : }
241 : }
242 : }
243 : Shape {
244 : appearance Brick {}
245 : geometry Extrusion {
246 : beginCap FALSE
247 : endCap TRUE
248 : convex FALSE
249 : solid TRUE
250 : spine [0 1 0, 0 1.1 0]
251 : crossSection [
252 : 0.75 0.75,
253 : 0.75 -0.6,
254 : -0.45 -0.6,
255 : -0.45 -0.3,
256 : -0.15 -0.3,
257 : -0.15 0,
258 : 0.15 0,
259 : 0.15 0.6,
260 : 0.45 0.6,
261 : 0.45 0.75,
262 : 0.75 0.75
263 : ]
264 : }
265 : }
266 : Transform {
267 : translation 0.4 1.15 -0.3
268 : children Shape {
269 : appearance Brick {}
270 : geometry Box{
271 : size 0.6 0.1 0.45
272 : }
273 : }
274 : }
275 : ]
276 : }
277 : ]
278 : }
279 : }
280 :
281 : PaletaB {
282 : pos -2 1 -1
283 : rot 0 1 0 0.3
284 : }
285 :
286 : PaletaC {
287 : pos 5 1 -3
288 : rot 0 1 0 0.4
289 : }
290 :
291 : PaletaB{
292 : pos -5.5 1 -2.5
293 : rot 0 1 0 0.2
294 : }
295 :
296 : PROTO Log [ exposedField SFVec3f pos 0 0 0 ] {
297 : Transform {
298 : translation IS pos
299 : children Transform {
300 : translation 0 0.15 0
301 : children Shape {
302 : appearance Wood{}
303 : geometry Box {
304 : size 3 0.3 0.3
305 : }
306 : }
307 : }
308 : }
309 : }
310 :
311 :
312 : Log { pos 5.5 1 0 }
313 : Log { pos 5.6 1 0.4 }
314 : Log { pos 5.4 1 0.9 }
315 : Log { pos 5.7 1 1.25 }
316 : Transform {
317 : rotation 0 1 0 -0.15
318 : center 5 0 0
319 : children [
320 : Log { pos 5.5 1.3 0.5 }
321 : Log { pos 5.6 1.3 0.9 }
322 : ]
323 : }
324 :
325 : PROTO Zed1 [] {
326 : Transform {
327 : children Shape {
328 : appearance Brick {}
329 : geometry Extrusion {
330 : beginCap TRUE
331 : endCap TRUE
332 : convex FALSE
333 : solid TRUE
334 : spine [-4.9 1 -5, -4.9 1 -4.7]
335 : crossSection [
336 : -0.55 -0.3,
337 : -0.70 -0.3,
338 : -0.70 -0.4,
339 : -0.85 -0.4,
340 : -0.85 -0.5,
341 : -1.00 -0.5,
342 : -1.00 -0.6,
343 : -1.75 -0.6,
344 : -1.75 -1.0,
345 : -1.90 -1.0,
346 : -1.90 -1.1,
347 : -2.15 -1.1,
348 : -2.15 -1.0,
349 : -2.30 -1.0,
350 : -2.30 0.0,
351 : -0.00 0.0,
352 : -0.00 -0.1,
353 : -0.15 -0.1,
354 : -0.15 -0.2,
355 : -0.55 -0.2,
356 : -0.55 -0.3
357 : ]
358 : }
359 : }
360 : }
361 : }
362 :
363 : Zed1 {}
364 :
365 : Transform {
366 : translation -7.35 1.75 -4.85
367 : children Shape {
368 : appearance Brick {}
369 : geometry Box {
370 : size 0.3 1.5 0.3
371 : }
372 : }
373 : }
374 :
375 : Transform {
376 : rotation 0 1 0 -1.57
377 : center -7.35 1.75 -4.85
378 : children Transform {
379 : children Zed1 {}
380 : }
381 : }
382 :
383 : PROTO Cihla [
384 : exposedField SFVec3f pos 0 0 0
385 : exposedField SFRotation rot 0 0 1 0
386 : ] {
387 : Transform {
388 : translation IS pos
389 : rotation IS rot
390 : children Shape {
391 : appearance Brick {}
392 : geometry Box {
393 : size 0.3 0.1 0.15
394 : }
395 : }
396 : }
397 : }
398 :
399 : Transform {
400 : translation 0 0 -4
401 : children [
402 : Cihla {pos 0.7 1.05 4.2 rot 0 1 0 1 }
403 : Cihla {pos 1.1 1.05 2.3 rot 0 1 0 2 }
404 : Cihla {pos 2.6 1.05 4.5 rot 0 1 0 3 }
405 : Cihla {pos 0.9 1.05 2.0 rot 0 1 0 4 }
406 : Cihla {pos 1.6 1.05 4.1 rot 0 1 0 5 }
407 : Cihla {pos 1.8 1.05 1.4 rot 0 1 0 6 }
408 : Cihla {pos 2.1 1.05 3.3 rot 0 1 0 7 }
409 : Cihla {pos 3.4 1.05 3.2 rot 0 1 0 8 }
410 : Cihla {pos 4.3 1.05 2.1 rot 0 1 0 9 }
411 : ]
412 : }
413 :
414 : Transform {
415 : translation -0.75 2 4.85
416 : children DEF Sloupek Shape {
417 : appearance Cement {}
418 : geometry Box {
419 : size 0.3 2 0.3
420 : }
421 : }
422 :
423 : }
424 :
425 : Transform {
426 : translation 0.75 2 4.85
427 : children USE Sloupek
428 : }
429 :
430 : Transform {
431 : translation 0 3.15 4.85
432 : scale 1 1 1
433 : children Shape {
434 : appearance Cement {}
435 : geometry Box {
436 : size 1.8 0.3 0.3
437 : }
438 : }
439 : }
440 :
441 : Transform {
442 : translation 7.35 1.05 0
443 : children Shape {
444 : appearance Brick {}
445 : geometry Box {
446 : size 0.3 0.1 10
447 : }
448 : }
449 : }
450 :
451 : Transform {
452 : translation 7.35 1.15 0.075
453 : children Shape {
454 : appearance Brick {}
455 : geometry Box {
456 : size 0.3 0.1 9.85
457 : }
458 : }
459 : }
460 :
461 : Transform {
462 : translation 4.05 1.15 4.85
463 : children Shape {
464 : appearance Brick {}
465 : geometry Box {
466 : size 6.3 0.3 0.3
467 : }
468 : }
469 : }
470 :
471 :
472 : Transform {
473 : translation -3 1 1
474 : children Shape {
475 : appearance Appearance {
476 : material Material {
477 : diffuseColor 0.8 0.8 0
478 : shininess 0
479 : }
480 : }
481 : geometry Cone {
482 : bottom FALSE
483 : height 0.7
484 : bottomRadius 1.3
485 : }
486 : }
487 : }
488 :
489 : PROTO Pyttel [
490 : exposedField SFVec3f pos 0 0 0
491 : ] {
492 : Transform {
493 : translation IS pos
494 : children Transform {
495 : translation 0 0.08 0
496 : scale 1 0.02 1
497 : children [
498 : DEF Pytel1 Shape {
499 : appearance Appearance {
500 : material Material {
501 : diffuseColor 0.9 0.9 0.7
502 : shininess 0
503 : ambientIntensity 0.6
504 : }
505 : }
506 : geometry ElevationGrid {
507 : xDimension 5
508 : zDimension 7
509 : xSpacing 0.1
510 : zSpacing 0.1
511 : creaseAngle 99
512 : height [
513 : 0 0 0 0 0
514 : 0 2 3 2 0
515 : 0 3 4 3 0
516 : 0 4 4 4 0
517 : 0 3 4 3 0
518 : 0 2 3 2 0
519 : 0 0 0 0 0
520 : ]
521 : }
522 : }
523 : Transform {
524 : rotation 0 0 1 3.14
525 : translation 0.4 0 0
526 : children USE Pytel1
527 : }
528 : ]
529 : }
530 : }
531 : }
532 :
533 : Pyttel { pos 1 1 4 }
534 : Pyttel { pos 1.3 1 4 }
535 : Pyttel { pos 1.6 1 4 }
536 : Pyttel { pos 1.1 1.13 4 }
537 : Pyttel { pos 1.4 1.13 4 }
538 :
539 : Transform {
540 : rotation 0 1 0 5
541 : children Pyttel { pos 1 1 1}
542 : }