home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Serif Graphics Collection
/
Serif_Graphics_Collection_6_DTP_Porgrams_on_One_CD_Serif-SPF.iso
/
3DPLUS
/
data1.cab
/
VRML
/
lamp2.wrl
< prev
next >
Wrap
Text File
|
1998-04-22
|
3KB
|
224 lines
#VRML V1.0 ascii
#This is a kind of modern lamp again from an IKEA catalogue
#This is version number 2!
#Instead of a cone for a lamp shade this one
#has fully fledged co-ordinate made lamp shade
#It even has material binding
#This is the aluminium material used in the VRML Sourcebook
Material {
diffuseColor 0.3 0.3 0.5
specularColor 0.7 0.7 0.8
ambientColor 0.3 0.3 0.35
shininess 0.09
}
Separator {
Scale {
scaleFactor 1 0.1 1
}
Sphere {
}
}
Translation {
translation 0 0.25 0
}
Cylinder {
height 0.5
radius 0.12
}
Translation {
translation 0 0.25 0
}
Cylinder {
height 1
radius 0.08
}
Translation {
translation -0.07 0.65 0
}
Rotation {
rotation 0 0 1 0.4
}
Cylinder {
radius 0.08
height 0.4
}
Rotation {
rotation 0 0 1 -0.8
}
Translation {
translation -0.13 0.39 0
}
Cylinder {
radius 0.08
height 0.6
}
Rotation {
rotation 0 0 1 0.8
}
Translation {
translation 0.19 0.40 0
}
Cylinder {
radius 0.08
height 0.5
}
Rotation {
rotation 0 0 1 -0.8
}
Translation {
translation -0.16 0.27 0
}
Cylinder {
radius 0.08
height 0.3
}
Rotation {
rotation 0 0 1 0.4
}
Translation {
translation 0.05 0.26 0
}
Cylinder {
radius 0.08
height 0.3
}
Translation {
translation 0 0.1 0
}
Rotation {
rotation 1 0 0 3.142
}
Cone {
bottomRadius 0.15625
height 0.2
}
Translation {
translation 0 -0.55 0
}
Material {
diffuseColor 0.85 0.85 0.75
ambientColor 0.95 0.95 0.95
specularColor 1.0 1.0 1.0
shininess 0.15
transparency 0.01
emissiveColor 0.9 0.9 0.85
}
Sphere {
radius 0.25
}
Translation {
translation 0.0 0.3125 0.0
}
Cylinder {
radius 0.15625
height 0.3125
}
Material {
diffuseColor 1 0 1
shininess 0.03
specularColor 1 0.2 1
ambientColor 0.8 0.01 0.75
}
Translation {
translation 0 -1 0
}
Rotation {
rotation 1 0 0 -3.142
}
Separator {
Scale {
scaleFactor 0.12 0.15 0.12
}
Coordinate3 {
point[
3 0 0,
2.8 0 1,
2.2 0 2.2,
1 0 2.8,
0 0 3,
-1 0 2.8,
-2.2 0 2.2,
-2.8 0 1,
-3 0 0,
-2.8 0 -1,
-2.2 0 -2.2,
-1 0 -2.8,
0 0 -3,
1 0 -2.8,
2.2 0 -2.2,
2.8 0 -1,
#The bottom ring
6 -10 0,
5.6 -10 2,
4.4 -10 4.4,
2 -10 5.6,
0 -10 6,
-2 -10 5.6,
-4.4 -10 4.4,
-5.6 -10 2,
-6 -10 0,
-5.6 -10 -2,
-4.4 -10 -4.4,
-2 -10 -5.6,
0 -10 -6,
2 -10 -5.6,
4.4 -10 -4.4,
5.6 -10 -2
]
}
#Wanna change the colours or the lamp shade around?
#This ere is where to do it
Material {
diffuseColor [
1 0.7960784 0.5490196,
1 0.5686274 0.3568627,
]
}
MaterialBinding {
value PER_VERTEX_INDEXED
}
#Yes, this lamp shade is floating in mid-air, so what?
IndexedFaceSet {
coordIndex [
1, 17, 16, 0, -1,
2, 18, 17, 1, -1,
3, 19, 18, 2, -1,
4, 20, 19, 3, -1,
5, 21, 20, 4, -1,
6, 22, 21, 5, -1,
7, 23, 22, 6, -1,
8, 24, 23, 7, -1,
9, 25, 24, 8, -1,
10, 26, 25, 9, -1,
11, 27, 26, 10, -1,
12, 28, 27, 11, -1,
13, 29, 28, 12, -1,
14, 30, 29, 13, -1,
15, 31, 30, 14, -1,
0, 16, 31, 15
]
materialIndex [
0, 1, 1, 0, 0,
0, 1, 1, 0, 0,
0, 1, 1, 0, 0,
0, 1, 1, 0, 0,
0, 1, 1, 0, 0,
0, 1, 1, 0, 0,
0, 1, 1, 0, 0,
0, 1, 1, 0, 0,
0, 1, 1, 0, 0,
0, 1, 1, 0, 0,
0, 1, 1, 0, 0,
0, 1, 1, 0, 0,
0, 1, 1, 0, 0,
0, 1, 1, 0, 0,
0, 1, 1, 0, 0,
0, 1, 1, 0
]
}
}