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 0.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 : Transform {
45 : translation IS pos
46 : children Shape {
47 : appearance WhiteWood{}
48 : geometry Extrusion {
49 : beginCap FALSE
50 : endCap TRUE
51 : creaseAngle 99
52 : scale [
53 : 0.06 0.06,
54 : 0.08 0.08,
55 : 0.06 0.06,
56 : 0.03 0.03,
57 : 0.03 0.03,
58 : 0.045 0.045,
59 : 0.05 0.05,
60 : 0.045 0.045,
61 : 0.03 0.03,
62 : 0.01 0.01]
63 : spine [
64 : 0 0.0 0,
65 : 0 0.1 0,
66 : 0 0.2 0
67 : 0 0.27 0
68 : 0 0.33 0
69 : 0 0.4 0
70 : 0 0.42 0
71 : 0 0.44 0
72 : 0 0.46 0
73 : 0 0.47 0
74 : ]
75 : crossSection [0.7 0.7, 1.0 0, 0.7 -0.7, 0 -1.0,
76 : -0.7 -0.7, -1.0 0, -0.7 0.7, 0 1.0
77 : 0.7 0.7]
78 : }
79 : }
80 : }
81 : }
82 :
83 : #sibenice s kuzelkama
84 : PROTO Sibenice [] {
85 : Group {
86 : children [
87 : #vertikalni cast
88 : Transform {
89 : translation 0 1.5 0
90 : children Shape {
91 : appearance Wood {}
92 : geometry Box {
93 : size 0.3 3 0.3
94 : }
95 : }
96 : }
97 : #horizontalni cast
98 : Transform {
99 : translation 0 2.85 0.9
100 : children Shape {
101 : appearance Wood {}
102 : geometry Box {
103 : size 0.3 0.3 1.5
104 : }
105 : }
106 : }
107 : #spojka
108 : Transform {
109 : rotation 1 0 0 -0.785
110 : translation 0 2.55 0.4
111 : children Shape {
112 : appearance Wood {}
113 : geometry Box {
114 : size 0.2 0.2 0.9
115 : }
116 : }
117 : }
118 : #provaz-smycka
119 : Transform {
120 : translation 0 2.85 1.5
121 : children Shape {
122 : appearance Rope {}
123 : geometry Box {
124 : size 0.32 0.32 0.02
125 : }
126 : }
127 : }
128 : #provaz
129 : Transform {
130 : translation 0 1.65 1.5
131 : children Shape {
132 : appearance Rope {}
133 : geometry Box {
134 : size 0.02 2.4 0.02
135 : }
136 : }
137 : }
138 : #koule
139 : Transform {
140 : translation 0 0.33 1.5
141 : children Shape {
142 : appearance Appearance {
143 : material Material {
144 : diffuseColor 0.3 0.3 0.3
145 : specularColor 1 1 1
146 : }
147 : }
148 : geometry Sphere {
149 : radius 0.15
150 : }
151 : }
152 : }
153 : #spodek s kuzelkama
154 : Transform {
155 : translation 0 0.025 1.5
156 : children [
157 : Shape {
158 : appearance LightWood{}
159 : geometry Box {
160 : size 1 0.05 1
161 : }
162 : }
163 : Kuzelka {pos -0.4 0 0}
164 : Kuzelka {pos 0.4 0 0}
165 : Transform { #prostredni je povalena
166 : rotation 0 0.6 1 2
167 : translation -0.1 0 0.1
168 : center 0 0.1 0
169 : children Kuzelka {pos 0 0 0}
170 : }
171 : Kuzelka {pos -0.4 0 0.4}
172 : Kuzelka {pos 0.4 0 0.4}
173 : Kuzelka {pos 0 0 0.4}
174 : Kuzelka {pos -0.4 0 -0.4}
175 : Kuzelka {pos 0.4 0 -0.4}
176 : Kuzelka {pos 0 0 -0.4}
177 : ]
178 : }
179 : ]
180 : }
181 : }
182 :
183 : Sibenice {}