1 : #VRML V2.0 utf8
2 :
3 : WorldInfo {
4 : info "Author: Martin Petricek"
5 : title "Sibenice"
6 : }
7 :
8 : PROTO Wood [] {
9 : Appearance {
10 : material Material {
11 : diffuseColor 0.5 0.3 0
12 : }
13 : }
14 : }
15 :
16 : PROTO LightWood [] {
17 : Appearance {
18 : material Material {
19 : diffuseColor .7 0.4 0
20 : }
21 : }
22 : }
23 :
24 : PROTO WhiteWood [] {
25 : Appearance {
26 : material Material {
27 : diffuseColor 1 0.9 0.8
28 : }
29 : }
30 : }
31 :
32 : PROTO Rope [] {
33 : Appearance {
34 : material Material {
35 : diffuseColor 0.9 0.9 0
36 : }
37 : }
38 : }
39 :
40 : #bila kuzelka
41 : PROTO Kuzelka [
42 : exposedField SFVec3f pos 0 0 0 #pozice kuzelky v prostoru
43 : ] {
44 : LOD {
45 : range [10 40]
46 : level [
47 : Transform {
48 : translation IS pos
49 : children Shape {
50 : appearance WhiteWood{}
51 : geometry Extrusion {
52 : beginCap FALSE
53 : creaseAngle 99
54 : scale [
55 : .06 .06,
56 : .08 .08,
57 : .06 .06,
58 : .03 .03,
59 : .03 .03,
60 : .045 .045,
61 : .05 .05,
62 : .045 .045,
63 : .03 .03,
64 : .01 .01]
65 : spine [
66 : 0 .0 0,
67 : 0 .1 0,
68 : 0 .2 0
69 : 0 .27 0
70 : 0 .33 0
71 : 0 .4 0
72 : 0 .42 0
73 : 0 .44 0
74 : 0 .46 0
75 : 0 .47 0
76 : ]
77 : crossSection [.7 .7, 1 0, .7 -.7, 0 -1, -.7 -.7, -1 0, -.7 .7, 0 1, .7 .7]
78 : }
79 : }
80 : }
81 : Transform {
82 : translation IS pos
83 : children Transform {
84 : translation 0 .235 0
85 : children Shape {
86 : appearance WhiteWood{}
87 : geometry Cylinder {
88 : radius .06
89 : height .47
90 : }
91 : }
92 : }
93 : }
94 : Group {}
95 : ]
96 : }
97 : }
98 :
99 : #sibenice s kuzelkama
100 : PROTO Sibenice [] {
101 : Group {
102 : children [
103 : #vertikalni cast
104 : Transform {
105 : translation 0 1.5 0
106 : children Shape {
107 : appearance Wood {}
108 : geometry Box {
109 : size 0.3 3 0.3
110 : }
111 : }
112 : }
113 : #horizontalni cast
114 : Transform {
115 : translation 0 2.85 0.9
116 : children Shape {
117 : appearance Wood {}
118 : geometry Box {
119 : size 0.3 0.3 1.5
120 : }
121 : }
122 : }
123 : #spojka
124 : Transform {
125 : rotation 1 0 0 -.785
126 : translation 0 2.55 0.4
127 : children Shape {
128 : appearance Wood {}
129 : geometry Box {
130 : size 0.2 0.2 0.9
131 : }
132 : }
133 : }
134 : #provaz-smycka
135 : LOD {
136 : range [15]
137 : level [
138 : Transform {
139 : translation 0 2.85 1.5
140 : children Shape {
141 : appearance Rope {}
142 : geometry Box {
143 : size 0.32 0.32 0.02
144 : }
145 : }
146 : }
147 : Group {}
148 : ]
149 : }
150 : #provaz
151 : Transform {
152 : translation 0 1.65 1.5
153 : children Shape {
154 : appearance Rope {}
155 : geometry Box {
156 : size 0.02 2.4 0.02
157 : }
158 : }
159 : }
160 : #koule
161 : Transform {
162 : translation 0 0.33 1.5
163 : children Shape {
164 : appearance Appearance {
165 : material Material {
166 : diffuseColor 0.3 0.3 0.3
167 : specularColor 1 1 1
168 : }
169 : }
170 : geometry Sphere {
171 : radius 0.15
172 : }
173 : }
174 : }
175 : #spodek s kuzelkama
176 : Transform {
177 : translation 0 0.025 1.5
178 : children [
179 : Shape {
180 : appearance LightWood{}
181 : geometry Box {
182 : size 1 0.05 1
183 : }
184 : }
185 : Kuzelka {pos -0.4 0 0}
186 : Kuzelka {pos 0.4 0 0}
187 : Transform { #prostredni je povalena
188 : rotation 0 0.6 1 2
189 : translation -0.1 0 0.1
190 : center 0 0.1 0
191 : children Kuzelka {pos 0 0 0}
192 : }
193 : Kuzelka {pos -0.4 0 0.4}
194 : Kuzelka {pos 0.4 0 0.4}
195 : Kuzelka {pos 0 0 0.4}
196 : Kuzelka {pos -0.4 0 -0.4}
197 : Kuzelka {pos 0.4 0 -0.4}
198 : Kuzelka {pos 0 0 -0.4}
199 : ]
200 : }
201 : ]
202 : }
203 : }