"Virtual Worlds"
by  Andrea L. Ames
Web Techniques,  May 1997

Web Techniques grants permission to use these listings for private or
commercial use provided that credit to Web Techniques and the author is
maintained within the comments of the source. For questions, contact
editors@web-techniques.com.       

[Listing One]
     
#VRML V2.0 utf8
     
Group {
    children [
        Shape {
            appearance Appearance {
                material DEF OuterBoxMaterial Material {
                    diffuseColor 0.2 0.2 0.2
                    transparency 0.0
                }
            }
            geometry DEF OuterBox Box {
                size 3.0 2.0 1.0
            }
        }
        Shape {
            appearance Appearance {
                material DEF InnerBoxMaterial Material { 
                emissiveColor 1.0 1.0 1.0
            }
        }
            geometry DEF InnerBox Box {
                size 2.9 1.9 0.9
            }
        }
            DEF BoxTouchSensor TouchSensor {
            }
    ]
}
     
DEF BoxTimer TimeSensor {
    cycleInterval 4.0
    loop FALSE
}
     
ROUTE BoxTouchSensor.touchTime TO BoxTimer.set_startTime
ROUTE BoxTimer.fraction_changed TO OuterBoxMaterial.set_transparency