| Cover | TOC | Chap | Prev Chap | Prev Fig | Next Fig | Next Chap |
|
Figure 31.5
Two spheres using appearance-node types from an external appearance library file. |
|
|
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
EXTERNPROTO DarkOak [
exposedField SFNode textureTransform
] "applib.wrl#DarkOak"
EXTERNPROTO LightOak [
exposedField SFNode textureTransform
] "applib.wrl#LightOak"
Group {
children [
Transform { translation -1.5 0.0 0.0
children Shape {
appearance DarkOak { }
geometry Box { }
}
},
Transform { translation 1.5 0.0 0.0
children Shape {
appearance LightOak {
textureTransform TextureTransform {
translation 0.5 0.0
scale 2.0 1.0
}
}
geometry Box { }
}
}
]
}