Subversion Repositories AndroidProjects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
204 chris 1
#VRML V2.0 utf8
2
 
3
Background {                  #remove these lines
4
 skyColor .7 .7 1             #
5
 }                            # when placing this
6
 Viewpoint {                  #
7
  position 0 0 7            # object in a VRML world
8
   }                          #
9
NavigationInfo {              # or apartment.
10
 type "EXAMINE"               #
11
 }                            #
12
 
13
WorldInfo {
14
   title "Animated Snowman"
15
    info [ "Copyright 1988 modeled by Kiwano [Andrew Reitemeyer] kiwano@t-online.de "
16
          "This model is linkware. Non commercial users are required to link to"
17
					" http://home.t-online.de/home/kiwano4 "
18
					"Commercial users must pay a small fee, details and more models from the above url"
19
          "This node must remain unaltered in this code"
20
          ]
21
          }
22
 
23
 
24
 
25
 Transform {           # main grouping node
26
translation 0 0 0      # controls position
27
scale 1 1 1            # controls size
28
rotation 0 0 0 0       # controls orientation
29
  children [
30
 
31
 
32
 
33
DEF Bottom Transform {
34
translation 0 -1 0
35
  scale 1.2 1 1.2
36
    children [
37
    DEF Ball  Shape {
38
        appearance Appearance {
39
          material Material {
40
           diffuseColor 1 1 1
41
           specularColor .9 .9 1
42
           shininess 1
43
           ambientIntensity .2
44
          # transparency .2
45
           }
46
         }
47
       geometry Sphere {
48
         radius 1
49
         }
50
       }
51
       DEF  See VisibilitySensor {}
52
     ]
53
   }
54
DEF Middle Transform {
55
 translation 0 0 0
56
  scale .9 .9 .9
57
    children [
58
    USE Ball
59
     ]
60
   }
61
DEF head Transform {
62
 translation 0 .9 0
63
  scale .6 .6 .6
64
    children [
65
    USE Ball
66
     ]
67
   }
68
DEF Eye1 Transform {
69
    translation .35 1.1 .4
70
    children [
71
    DEF Eye  Shape {
72
        appearance Appearance {
73
          material Material {
74
           diffuseColor 0 0 0
75
           specularColor 1 1 1
76
           shininess 1
77
           ambientIntensity 1
78
           }
79
         }
80
       geometry Sphere {
81
         radius .1
82
         }
83
       }
84
     ]
85
   }
86
DEF Eye2 Transform {
87
    translation -.35 1.1 .4
88
    children [
89
    USE Eye
90
     ]
91
   }
92
DEF Nose  Transform {
93
    translation 0 .9 .8
94
    rotation 1 0 0 1.57
95
    children [
96
     Shape {
97
        appearance Appearance {
98
          material Material {
99
           diffuseColor .8 .5 0
100
           specularColor .9 .6 0
101
           shininess .3
102
           ambientIntensity .2
103
           }
104
         }
105
       geometry Cone {
106
         bottomRadius .1
107
         height .5
108
         }
109
       }
110
     ]
111
   }
112
DEF Hat Transform  {
113
 translation 0 0 0
114
   children [
115
 
116
Transform {
117
    translation 0 1.3 0
118
    rotation 0 1 1 -.1
119
    children [
120
      Shape {
121
        appearance DEF Felt Appearance {
122
          material Material {
123
           diffuseColor 0 0 0
124
           specularColor 1 1 1
125
           shininess 1
126
           ambientIntensity 1
127
           }
128
         }
129
       geometry Cylinder {
130
         radius .7
131
         height .05
132
         }
133
       }
134
     ]
135
   }
136
 Transform {
137
    translation 0 1.6 0
138
    rotation 0 1 1 -.1
139
    children [
140
      Shape {
141
        appearance USE Felt
142
       geometry Cylinder {
143
         radius .5
144
         height .6
145
         }
146
       }
147
     ]
148
   }
149
  ]
150
 }# end Hat
151
DEF Arm1  Transform {
152
    children [
153
    DEF Arm  Shape {
154
        appearance DEF Stick Appearance {
155
          material Material {
156
           diffuseColor .7 .6 .4
157
           specularColor 1 1 0
158
           shininess .2
159
           ambientIntensity .1
160
           }
161
         }
162
      geometry Extrusion {
163
        creaseAngle 1.4
164
         crossSection [ .1 0,
165
                     .071 -.07,  0 -.1
166
                      -.07 -.071,  -.1 0,
167
                      -.071 .07,  0 .1         #18
168
                      .07 .071,  .1 0,
169
          ]
170
         spine [.6 .35 0, 1.5 .2 0, 2 0 .5 ]
171
         scale [ 1 1, .7 .7, .5 .5]
172
 
173
       }
174
     }
175
     ]
176
   }
177
 
178
 DEF Arm2  Transform {
179
    children [
180
    Shape {
181
        appearance USE Stick
182
      geometry DEF Tipper Extrusion {
183
        creaseAngle 1.4
184
         crossSection [ .1 0,
185
                     .071 -.07,  0 -.1
186
                      -.07 -.071,  -.1 0,
187
                      -.071 .07,  0 .1         #18
188
                      .07 .071,  .1 0,
189
          ]
190
         spine [-.6 .35 0, -1.5 .2 0, -2 0 .5]
191
        # spine [-.6 .35 0, -1.5 .8 0, -.65 1.4 0 ]
192
         scale [ 1 1, .7 .7, .5 .5]
193
 
194
       }
195
     }
196
     ]
197
   }
198
 
199
 
200
  ]
201
 }
202
 
203
DEF Tick TimeSensor {
204
   cycleInterval 15
205
   loop TRUE
206
   enabled FALSE
207
   }
208
 
209
 
210
DEF Lift CoordinateInterpolator {
211
     key [0, .35, .45, .5, .65, .75, 1]
212
     keyValue [-.6 .35 0, -1.5 .2 0, -2 0 .5,
213
 
214
               -.6 .35 0, -1.5 .2 0, -2 0 .5,
215
 
216
               -.6 .35 0, -1.5 .8 0, -.65 1.4 0
217
 
218
               -.6 .35 0, -1.5 1 0, -1.4 1.9 0
219
 
220
               -.6 .35 0, -1.5 .8 0, -.65 1.4 0
221
 
222
                -.6 .35 0, -1.5 .2 0, -2 0 .5,
223
 
224
               -.6 .35 0, -1.5 .2 0, -2 0 .5,
225
 
226
               ]
227
            }
228
 
229
DEF Doff PositionInterpolator {
230
     key [0, .45, .5, .65, 1]
231
     keyValue [ 0 0 0, 0 0 0, -.6 .5 0, 0 0 0, 0 0 0 ]
232
     }
233
 
234
ROUTE See.isActive TO Tick.set_enabled
235
ROUTE Tick.fraction_changed TO Lift.set_fraction
236
ROUTE Lift.value_changed TO Tipper.set_spine
237
ROUTE Tick.fraction_changed TO Doff.set_fraction
238
ROUTE Doff.value_changed TO Hat.set_translation
239
 
240
WorldInfo {
241
   title "Arcadia"
242
   info [ "(C)1997 modeled by Kiwano (Andrew Reitemeyer) kiwano@t-online.de"]
243
 
244
          }