home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Using VRML (Special Edition)
/
Special_Edition_Using_VRML_CDROM_Que_1996.iso
/
webpages
/
objects
/
chap22
/
rsibley
/
room.wrl
< prev
next >
Wrap
Text File
|
1995-12-21
|
13KB
|
582 lines
#VRML V1.0 ascii
DEF Root Separator {
Transform {scaleFactor .01 .01 .01}
PerspectiveCamera { position 2 1 -3
orientation 0 1 0 3.14159}
PointLight {location 180 235 180
intensity 1}
DirectionalLight {direction -1 0 1
intensity .5}
DirectionalLight {direction 1 0 1
intensity .5}
SpotLight {location 180 60 180
intensity 1
direction 0 1 0
cutOffAngle 2}
Separator {
DEF walls Separator {
Material {diffuseColor .1 .5 .5}
Texture2 {filename "d:\worlds\rsibley\wall2.bmp"}
Coordinate3 { point [-1 -1 361, 361 -1 361, 361 240 361, -1 240 361,
-1 -1 -1, -1 240 -1, 361 240 -1, 361 -1 -1]}
IndexedFaceSet {
coordIndex [
0,1,2,3,-1,
0,3,2,1,-1,
1,2,6,7,-1,
1,7,6,2,-1,
0,3,5,4,-1,
0,4,5,3,-1,
0,4,7,1,-1,
0,1,7,4,-1,
2,3,5,6,-1,
2,6,5,3,-1]
}
Separator {
Texture2 {filename "d:\worlds\rsibley\cats.bmp"}
Transform {translation 280 140 360}
Cube {height 50 depth 0 width 50}
}
Separator {
Texture2 {filename "d:\worlds\rsibley\richard1.bmp"}
Transform {translation 70 140 360}
Cube {height 60 depth 0 width 60}
}
Separator {
Texture2 {filename "d:\worlds\rsibley\pv.bmp"}
Transform {translation 170 170 360}
Cube {height 70 depth 0 width 70}
}
Separator {
Texture2 {filename "d:\worlds\rsibley\def.bmp"}
Transform {translation 360 150 100
rotation 0 1 0 1.57}
Cube {height 100 depth 0 width 100}
}
Separator {
Texture2 {filename "d:\worlds\rsibley\ski3.bmp"}
Transform {translation 360 160 230
rotation 0 1 0 1.57}
Cube {height 80 depth 0 width 80}
}
Separator {
Texture2 {filename "d:\worlds\rsibley\vh.bmp"}
Transform {translation 0 150 240
rotation 0 1 0 1.57}
Cube {height 80 depth 0 width 80}
}
}
DEF dresser Separator {
Material {diffuseColor 1 .5 0}
Translation {translation 18 30 185}
Cube {height 60 depth 40 width 36}
}
DEF wardrobe Separator {
Separator {
Material {diffuseColor .3 .05 0}
Translation {translation 23 85 110}
Cube {width 46 height 170 depth 100}
}
Separator {
Material {diffuseColor .4 .05 0}
Translation {translation 45 85 134}
Cube {width 4 height 150 depth 44}
Translation {translation 0 0 -48}
Cube {width 4 height 150 depth 44}
}
Separator {
Material {diffuseColor 1 1 0}
Transform {translation 45 100 100
rotation 0 0 1 1.57}
Cylinder {radius 3 height 5}
Translation {translation 0 0 20}
Cylinder {radius 3 height 5}
}
}
DEF Drawers Separator {
Separator {
Material {diffuseColor .1 .1 .5}
Translation {translation 75 35 340}
Cube {width 90 height 70 depth 40}
}
Separator {
Material {diffuseColor .1 .1 .4}
Translation {translation 75 71.5 339}
Cube {width 96 height 3 depth 42}
}
DEF drawer Separator {
Material {diffuseColor 1 1 1}
Translation {translation 75 19 320}
Cube {width 86 height 18 depth 2}
}
Translation {translation 0 20 0}
USE drawer
Translation {translation 0 20 0}
USE drawer
DEF handles Separator {
Material {diffuseColor .1 .1 .4}
Translation {translation 50 19 321}
Cube {width 16 height 6 depth 6}
Translation {translation 50 0 0}
Cube {width 16 height 6 depth 6}
}
Translation {translation 0 -20 0}
USE handles
Translation {translation 0 -20 0}
USE handles
}
DEF bed Separator {
Separator {
Material {diffuseColor .5 .05 0}
Translation {translation 172 45 350}
Cube {width 96 height 90 depth 20}
}
Separator {
Material {diffuseColor .5 .05 0}
Translation {translation 172 20 240}
Cube {width 96 height 40 depth 200}
}
Separator {
Texture2 {filename "d:\worlds\rsibley\surface5.bmp"}
Material {diffuseColor 0.15 0.15 .45}
Translation {translation 173 45 240}
Cube {width 90 height 10 depth 194}
}
}
Separator {
Transform {scaleFactor 1 2 1
translation 0 -60 0}
DEF pillow Separator {
Material {diffuseColor 0 0 .5}
Coordinate3 {point [
132 60 300,
132 60 340,
212 60 340,
212 60 300,
136 63 304,
136 63 336,
208 63 336,
208 63 304,
144 65 312,
144 65 328,
200 65 328,
200 65 312,
136 57 304,
136 57 336,
208 57 336,
208 57 304,
144 55 312,
144 55 328,
200 55 328,
200 55 312]}
IndexedFaceSet {
coordIndex [
0,1,5,4,-1,
5,1,2,6,-1,
6,2,3,7,-1,
0,4,7,3,-1,
4,5,9,8,-1,
9,5,6,10,-1,
11,10,6,7,-1,
4,8,11,7,-1,
8,9,10,11,-1,
0,12,13,1,-1,
12,16,17,13,-1,
0,3,15,12,-1,
12,15,19,16,-1,
16,19,18,17,-1,
19,15,14,18,-1,
15,3,2,14,-1,
17,18,14,13,-1,
13,14,2,1,-1]}
}
}
DEF desk Separator {
Material {diffuseColor .6 .2 0}
#Bottom part of desk
Separator {
Translation {translation 330 30 240}
Cube {width 60 height 60 depth 40}
}
Separator {
Translation {translation 330 70 290}
Cube {width 60 height 20 depth 140}
}
Separator {
Translation {translation 330 30 340}
Cube {width 60 height 60 depth 40}
}
#Top part of desk
Separator {
Translation {translation 357.5 85 290}
Cube {width 5 height 10 depth 140}
}
}
DEF couch Separator {
Texture2 {filename "d:\worlds\rsibley\wall1.bmp"}
Material {diffuseColor .5 .3 .5}
Separator {
Translation {translation 345 40 100}
Cube {width 10 height 80 depth 200}
}
Separator {
Translation {translation 320 20 100}
Cube {width 60 height 40 depth 200}
}
Separator {
#arms of couch
Translation {translation 320 45 10}
Cube {width 60 height 10 depth 20}
Translation {translation 0 0 180}
Cube {width 60 height 10 depth 20}
}
Coordinate3 {point[
330 40 0,
330 40 200,
340 80 200,
340 80 0,
340 40 0,
340 40 200]
}
IndexedFaceSet {
coordIndex [0,1,2,3,-1,
1,5,2,-1,
0,3,4,-1]
}
}
DEF Guitar Separator {
Rotation {rotation 1 0 0 .349}
Separator {
Transform {rotation 0 1 0 3.14159
scaleFactor .75 .75 .75
translation 36 7 19}
Separator {
#body
#Material {diffuseColor .5 0 1}
Material {diffuseColor 1 0 0}
Texture2 {filename "d:\worlds\rsibley\marble2.bmp"}
Coordinate3 {point[
28 72 0,
17 69 0,
10 50 0,
15 40 0,
8 28 0,
14 0 0,
18 24 0,
30 30 0,
40 25 0,
35 10 0,
50 30 0,
40 50 0,
45 65 0,
35 81 0,
39 65 0,
32 59 0,
28 72 -5,
17 69 -5,
10 50 -5,
15 40 -5,
8 28 -5,
14 0 -5,
18 24 -5,
30 30 -5,
40 25 -5,
35 10 -5,
50 30 -5,
40 50 -5,
45 65 -5,
35 81 -5,
39 65 -5,
32 59 -5,
]}
IndexedFaceSet {
coordIndex [
0,1,2,15,-1,
2,3,11,15,-1,
3,4,6,7,11,-1,
4,5,6,-1,
11,7,8,10,-1,
8,9,10,-1,
14,15,11,12,-1,
12,13,14,-1,
16,31,18,17,-1,
18,31,27,19,-1,
19,27,23,22,20,-1,
20,22,21,-1,
27,26,24,23,-1,
26,25,24,-1,
30,28,27,31,-1,
29,28,30,-1,
15,14,30,31,-1,
14,13,29,30,-1,
13,12,28,29,-1,
12,11,27,28,-1,
11,10,26,27,-1,
10,9,25,26,-1,
9,8,24,25,-1,
8,7,23,24,-1,
7,6,22,23,-1,
6,5,21,22,-1,
5,4,20,21,-1,
4,3,19,20,-1,
3,2,18,19,-1,
2,1,17,18,-1,
1,0,16,17,-1,
0,15,31,16,-1
]}
}
Separator {
#Pickups
Separator {
Material {diffuseColor .3 .3 .3}
Translation {translation 25 44.5 0}
Cube {width 10 height 7 depth 1}
}
Separator {
Translation {translation 25 56 -.5}
DEF Pickup Separator {
Material {diffuseColor .75 .75 .75}
Cube {width 8 height 2 depth 2}
}
}
Separator {
Translation {translation 25 52 -.5}
USE Pickup
}
Separator {
Translation {translation 25 46 0}
USE Pickup
}
Separator {
Translation {translation 25 43 0}
USE Pickup
}
Separator {
Material {diffuseColor .3 .8 .8
shininess 10}
Translation {translation 25 37.5 0}
Cube {width 10 height 5 depth 2}
}
Translation {translation 22.5 38 0}
DEF block Separator {
Material {diffuseColor .4 .4 .4}
Cube {width .8 height 2 depth 2.5}
}
Translation {translation 1 0 0}
USE block
Translation {translation 1 0 0}
USE block
Translation {translation 1 0 0}
USE block
Translation {translation 1 0 0}
USE block
Translation {translation 1 0 0}
USE block
}
Separator {
#Neck
Material {diffuseColor .75 .5 .5}
Coordinate3 { point[
21 60 1,
29 60 1,
22 120 1,
28 120 1,
21 60 0,
29 60 0,
22 120 .5,
28 120 .5,
23 60 -1.5,
26 60 -1.5,
24 120 -1,
26 120 -1
]}
IndexedFaceSet {
coordIndex [0,1,3,2,-1,
0,4,5,1,-1,
1,5,7,3,-1,
3,7,6,2,-1,
0,2,6,4,-1,
6,10,8,4,-1,
10,11,9,8,-1,
5,9,11,7,-1,
10,6,7,11,-1]
}
}
Separator {
#Head
Material {diffuseColor .2 .2 .2}
Coordinate3 { point[
22 120 .5,
28 120 .5,
23 122 .25,
27 122 .25,
20 125 -.5,
27 136 -2,
33 139 -2.5,
24 120 -1 ,
26 120 -1,
23 122 -1.25,
27 122 -1.25,
20 125 -2,
27 136 -3.5,
33 139 -4,
]}
IndexedFaceSet {
coordIndex [
5,4,2,3,6,-1,
2,0,1,3,-1,
13,10,9,11,12,-1,
9,10,8,7,-1,
13,6,3,10,-1,
10,3,1,-1,
10,1,8,-1,
0,7,8,1,-1,
2,9,0,-1,
0,9,7,-1,
4,11,9,2,-1,
5,12,11,4,-1,
13,12,5,6,-1,
]
}
DEF tune1 Separator {
Transform {translation 20.5 127 -1.5
rotation 0 0 1 1}
Separator {
Material {diffuseColor 1 1 1
shininess 10}
Cube {width 1 depth .5 height 1}
Translation {translation 0 -.5 0}
Cylinder {radius .25 height .5}
}
}
Translation {translation .9 1.4 -.2}
USE tune1
Translation {translation .9 1.4 -.2}
USE tune1
Translation {translation .9 1.4 -.2}
USE tune1
Translation {translation .9 1.4 -.2}
USE tune1
Translation {translation .9 1.4 -.2}
USE tune1
DEF tune2 Separator {
Transform {translation 17.5 119.25 .5
rotation 1 0 0 1.413}
Material {diffuseColor 0 0 0}
Cylinder {radius .25 height 1}
}
Translation {translation .9 1.4 -.2}
USE tune2
Translation {translation .9 1.4 -.2}
USE tune2
Translation {translation .9 1.4 -.2}
USE tune2
Translation {translation .9 1.4 -.2}
USE tune2
Translation {translation .9 1.4 -.2}
USE tune2
}
Separator {
#Volume\tone
Translation {translation 36 37 0}
DEF knob Separator {
Material {diffuseColor .3 .3 .3}
Rotation {rotation 1 0 0 1.57}
Cylinder {radius 1 height 2}
}
Translation {translation 4 -5 0}
USE knob
}
Separator {
#Strings
DEF string Separator {
Material {diffuseColor 1 1 1
shininess 10}
Translation {translation 22.5 79.5 1}
Cylinder {radius .08 height 81}
}
Translation {translation 1 0 0}
USE string
Translation {translation 1 0 0}
USE string
Translation {translation 1 0 0}
USE string
Translation {translation 1 0 0}
USE string
Translation {translation 1 0 0}
USE string
}
}
}
DEF garbage_pail Separator {
Translation {translation -10 0 0}
Material {diffuseColor .6 .6 .6}
Coordinate3 { point [280 40 340,
280 40 360,
240 40 360,
240 40 340,
275 0 342,
275 0 358,
245 0 358,
245 0 342]}
IndexedFaceSet {
coordIndex [0,4,7,3,-1,
3,7,6,2,-1,
1,2,6,5,-1,
0,1,5,4,-1,
5,6,7,4,-1,
3,7,4,0,-1,
2,6,7,3,-1,
5,6,2,1,-1,
4,5,1,0,-1,
4,7,6,5,-1,]}
}
DEF chair Separator {
Material {diffuseColor .4 .3 .3}
Separator {
#Legs
Transform {translation 300 20 275}
Cube {width 8 height 40 depth 8}
Transform {translation 0 0 30}
Cube {width 8 height 40 depth 8}
Transform {translation -40 0 0}
Cube {width 8 height 40 depth 8}
Transform {translation 0 0 -30}
Cube {width 8 height 40 depth 8}
}
Separator {
#Seat
Transform {translation 280 45 290}
Cube {width 48 height 10 depth 40}
}
Separator {
#back of chair
Separator {
Transform {translation 260 60 276}
Cube {width 8 height 20 depth 8}
Transform {translation 0 0 28}
Cube {width 8 height 20 depth 8}
}
Separator {
Transform {translation 260 80 290}
Cube {width 10 height 20 depth 48}
}
}
}
}
}
}