1 : #VRML V2.0 utf8
2 :
3 : WorldInfo {
4 : info ["Author: Jakub Zemlicka, Martin Petricek, Tomas Kazmar"]
5 : title "Uloha 1"
6 : }
7 :
8 : NavigationInfo {
9 : headlight FALSE
10 : }
11 :
12 : Background {
13 : skyColor [0.47 0.65 0.79]
14 : groundColor [.32 .54 .26]
15 : }
16 :
17 : DirectionalLight {
18 : ambientIntensity 0.8
19 : direction -20 -8 -2
20 : }
21 :
22 : Viewpoint {
23 : description "Pohled svrchu"
24 : position 0 40 70
25 : orientation 1 0.2 0.1 -0.5
26 : jump FALSE
27 : }
28 :
29 : Viewpoint {
30 : description "V rohu zahrady"
31 : position 24 10 24
32 : orientation -0.46 0.86 0.22 1.02 #0 1 0 0.9 + 1 0 0 -0.5
33 : jump FALSE
34 : }
35 :
36 : Viewpoint {
37 : description "Pred garazi"
38 : position 5 1.6 16
39 : orientation 1 0 0 0.1
40 : jump FALSE
41 : }
42 :
43 : Viewpoint {
44 : description "V garazi"
45 : position 3 1.6 -1.5
46 : orientation -0.7 0.7 0.18 0.7 #0 1 0 0.5
47 : jump FALSE
48 : }
49 :
50 : Viewpoint {
51 : description "Venku u tanku"
52 : position 3.5 1.6 15
53 : orientation 0 1 0 1.57
54 : jump FALSE
55 : }
56 :
57 : Viewpoint {
58 : description "Pred stavbou"
59 : position 0 1.6 0
60 : orientation 0 1 0 1.3
61 : jump FALSE
62 : }
63 :
64 : Viewpoint {
65 : description "Na stavbe"
66 : position -24 5 -12
67 : orientation -0.06 -0.99 -0.12 2.21#0 1 0 -2.2 + 1 0 0 -0.2
68 : jump FALSE
69 : }
70 :
71 : Transform { translation 25 0 25 rotation 0 1 0 1.57 children DEF fence Inline {url "fence.wrl"}}
72 : Transform { translation -25 0 25 rotation 0 1 0 1.57 children USE fence }
73 : #Transform { translation -25 0 25 children USE fence }
74 : Transform { translation -25 0 -25 children USE fence }
75 :
76 : Transform {
77 : translation 5 0 0
78 : children [
79 : Transform { translation -19 0 -3 children Inline { url "stavba.wrl" } rotation 0 1 0 1.57 }
80 : Transform { translation 7 0 9 children Inline { url "sibenice.wrl" } rotation 0 1 0 1.57 }
81 : DEF StulPlus Group { children [
82 : Transform { translation -3.2 0.77 -3.8 children Inline { url "cafe.wrl" } rotation 0 1 0 0.5}
83 : Transform { translation -2.7 0.77 -3.7 children Inline { url "tw.wrl" } rotation 0 1 0 0.1}
84 : Transform { translation -3 0 -4.2 children Inline { url "table.wrl" } }
85 : Transform { translation -3 0 -3.2 children Inline { url "chair.wrl" } scale 0.9 0.9 0.9 rotation 0 1 0 3.14}
86 : ]}
87 : Transform { translation 0 0 0 children Inline { url "garaz.wrl" } }
88 : Transform { translation 1.8 1.3 3 children DEF tank Inline { url "tank.wrl" } }
89 : Transform { translation -18 1.3 13 children USE tank rotation 0 1 0 4}
90 : ]
91 : }
92 : Transform {
93 : rotation 0 1 0 1.4
94 : translation 16 0 12
95 : children USE StulPlus
96 : }
97 :
98 :
99 : Transform { translation 22 0 14 children DEF tree Inline { url "tree.wrl" } rotation 0 1 0 1 scale 1 1 1.3 }
100 : Transform { translation 20 0 15 children USE tree rotation 0 1 0 2 scale 1 1.3 1.1 }
101 : Transform { translation 18 0 17 children USE tree rotation 0 1 0 3 scale 1.1 1.1 1.4 }
102 : Transform { translation 16 0 16 children USE tree rotation 0 1 0 4 scale 1.5 1.2 1 }
103 : Transform { translation 14 0 18 children USE tree rotation 0 1 0 5 scale 1.2 1.4 1 }
104 :
105 : #slunce
106 : Transform {
107 : translation 2000 470 200
108 : children Billboard {
109 : axisOfRotation 0 0 0
110 : children Transform {
111 : rotation 1 0 0 1.57
112 : children Shape {
113 : appearance Appearance {
114 : material Material {
115 : emissiveColor 1 1 0.8
116 : diffuseColor 0 0 0
117 : specularColor 0 0 0
118 : ambientIntensity 0
119 : shininess 0
120 : }
121 : }
122 : geometry Cylinder {
123 : side FALSE
124 : bottom FALSE
125 : radius 30
126 : }
127 : }
128 : }
129 : }
130 : }
131 :
132 : #mraky
133 : Transform {
134 : translation 0 500 0
135 : children Shape {
136 : appearance Appearance {
137 : texture ImageTexture {
138 : url "clouds.jpg"
139 : }
140 : }
141 : geometry IndexedFaceSet {
142 : coord Coordinate {
143 : point [-4500 0 -4500,-4500 0 4500, 4500 0 4500, 4500 0 -4500]
144 : }
145 : ccw FALSE
146 : coordIndex [0 1 2 3 -1]
147 : }
148 : }
149 : }
150 :
151 : Transform # travnik
152 : {
153 : translation 0 -0.1 0
154 : children Shape {
155 : geometry Box {size 50 0.2 50}
156 : appearance Appearance {
157 : material Material {
158 : emissiveColor .32 .54 .26
159 : diffuseColor 0 0 0
160 : specularColor 0 0 0
161 : ambientIntensity 0
162 : shininess 0
163 : }
164 : }
165 : }
166 : }