| Cover | TOC | Chap | Prev Chap | Prev Fig | Next Fig | Next Chap |
|
Figure 10.7
A lightbult, turned on. |
|
|
Click on the image to view the VRML scene. |
#VRML V2.0 utf8
# The VRML 2.0 Sourcebook
# Copyright (c) 1997
# Andrea L. Ames, David R. Nadeau, and John L. Moreland
Group {
children [
# Dark gray light bulb hanging wire
Shape {
appearance Appearance {
material Material {
diffuseColor 0.4 0.4 0.4
}
}
geometry Cylinder {
radius 0.05
height 2.0
}
},
# Yellowish light bulb socket
Transform {
translation 0.0 -1.0 0.0
children Shape {
appearance Appearance {
material Material {
diffuseColor 1.0 1.0 0.4
}
}
geometry Sphere { radius 0.5 }
}
},
Transform {
translation 0.0 -1.5 0.0
children Shape {
appearance Appearance {
material Material {
diffuseColor 1.0 1.0 0.4
}
}
geometry Cylinder {
radius 0.5
height 1.0
}
}
},
# White light bulb
Transform {
translation 0.0 -2.95 0.0
children Shape {
appearance Appearance {
material Material {
diffuseColor 1.0 1.0 1.0
emissiveColor 1.0 1.0 1.0
}
}
geometry Sphere { }
}
}
]
}