1 : #VRML V2.0 utf8
2 :
3 : WorldInfo {
4 : info ["Author: Jakub Zemlicka, Martin Petricek, Tomas Kazmar"]
5 : title "Uloha 2"
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 "Daleko 1"
24 : position 27 40 70
25 : orientation 0.717 -0.69 -0.1 -0.681
26 : fieldOfView 0.6
27 : jump FALSE
28 : }
29 :
30 : Viewpoint {
31 : description "Daleko 2"
32 : position -20 40 70
33 : orientation -0.717 -0.69 -0.1 0.681
34 : fieldOfView 0.6
35 : jump FALSE
36 : }
37 :
38 : Viewpoint {
39 : description "Stredni 1"
40 : position 25 1.6 21
41 : orientation 0 1 0 1.1
42 : fieldOfView 1
43 : jump FALSE
44 : }
45 :
46 : Viewpoint {
47 : description "Stredni 2"
48 : position 23 1.6 23
49 : orientation 0 1 0 0.6
50 : fieldOfView 1
51 : jump FALSE
52 : }
53 :
54 : Viewpoint {
55 : description "Blizko 1"
56 : position -11.37 1.6 17.41
57 : orientation -0.6 0.8 0.05 0.2
58 : jump FALSE
59 : }
60 :
61 : Viewpoint {
62 : description "Blizko 2"
63 : position -12 1.6 17.5
64 : orientation -0.93 0.35 0 0.18
65 : jump FALSE
66 : }
67 :
68 :
69 : EXTERNPROTO Tank [
70 : exposedField SFVec3f pos
71 : exposedField SFRotation rot
72 : exposedField SFInt32 lod
73 : exposedField SFColor wheelColor
74 : exposedField SFColor wheelDarkColor
75 : exposedField SFNode tex
76 : field MFFloat lodRanges
77 : ] "tank.wrl#Tank"
78 : EXTERNPROTO TankTex [
79 : field MFString tex
80 : ] "tank.wrl#TankTex"
81 : PROTO Pink[]{
82 : Appearance {
83 : material Material {
84 : diffuseColor .9 .5 .9
85 : ambientIntensity .6
86 : specularColor .3 .1 .3
87 : }
88 : }
89 : }
90 :
91 : EXTERNPROTO Kafemlynek [
92 : exposedField SFInt32 lod
93 : exposedField MFString texture
94 : exposedField SFColor Color
95 : field MFFloat lodRanges
96 : ] "cafe.wrl#Kafemlynek"
97 :
98 :
99 : EXTERNPROTO TW [
100 : exposedField SFInt32 lod
101 : exposedField SFNode plastic
102 : exposedField SFNode steel
103 : ] "tw.wrl#TW"
104 :
105 :
106 :
107 : Transform {
108 : translation 7 0 12
109 : children [
110 : Transform { translation -3.2 .77 -3.8 children Kafemlynek {lod 0 texture "drevo.jpg" Color 1 1 1 } rotation 0 1 0 .5}
111 : Transform { translation -2.7 .77 -3.7 children TW {
112 : lod 0
113 : plastic Appearance {
114 : texture ImageTexture { url ["marble02_sm.png"] }
115 : material Material {
116 : diffuseColor .47 .53 .6
117 : specularColor .32 .4 .4
118 : emissiveColor .07 .08 .09
119 : ambientIntensity .0667
120 : shininess .54
121 : }
122 : }
123 : steel Appearance {
124 : texture ImageTexture { url ["metal.png"] }
125 : material Material {
126 : diffuseColor .61 .61 .61
127 : specularColor .39 .39 .39
128 : ambientIntensity .25
129 : shininess .11
130 : }
131 : }
132 : }
133 : rotation 0 1 0 .1}
134 : Transform { translation -3 0 -4.2 children DEF Table Inline { url "table.wrl" } }
135 : ]
136 : }
137 : Transform {
138 : translation 5 0 0
139 : children [
140 : Transform { translation 0 0 0 children Inline { url "garaz2.wrl" } }
141 : Tank { lod 0 pos 1.8 1.3 0 tex TankTex{tex "tank1.png"} wheelColor .6 .4 0 wheelDarkColor .3 .3 0}
142 : Tank { lod 0 pos -18 1.3 10 rot 0 1 0 4 tex Pink{} wheelColor .8 .4 .8 wheelDarkColor .6 .5 .6}
143 : Tank { lod 0 pos 12 1.3 13 rot 0 1 0 2 tex TankTex{} wheelColor 0 .4 0 wheelDarkColor 0 .1 0
144 : lodRanges [2 3 15 100 500]
145 : }
146 : ]
147 : }
148 : Transform {
149 : rotation 0 1 0 1.4
150 : translation 23 0 18
151 : children Group {
152 : children [
153 : Transform { translation -3.2 .77 -3.8 children Kafemlynek {lod 0 texture "mahagon_md.jpg"} rotation 0 1 0 .5}
154 : Transform { translation -2.7 .77 -3.7 children TW {
155 : lod 0
156 : plastic Appearance {
157 : texture ImageTexture { url ["wood25_sm.png"] }
158 : material Material {}
159 : }
160 : steel Appearance {
161 : texture ImageTexture {
162 : url ["gold2_sm.png"]
163 : }
164 : material Material {}
165 : }
166 : }
167 : rotation 0 1 0 .1}
168 : Transform { translation -3 0 -4.2 children USE Table }
169 : ]
170 : }
171 : }
172 :
173 : Transform {
174 : center -3 0 -4.2
175 : translation -9 0 19
176 : children Group {
177 : children [
178 : Transform { translation -3.2 .77 -3.8 children Kafemlynek {lod 0 texture "cafe8.png" Color 1 1 1 } rotation 0 1 0 .5}
179 : Transform { translation -2.7 .77 -3.7 children TW {lod 0} rotation 0 1 0 .1}
180 : Transform { translation -3 0 -4.2 children USE Table }
181 : ]
182 : }
183 : }