#VRML V2.0 utf8
# Author -- Vikas Krishna, Syracuse University, October 1996

DEF BOX Transform {
    children [
        Shape {
            geometry Box {
                size 2 2 2
            }
            appearance Appearance {
                material Material {
                    ambientIntensity  0.2
                    diffuseColor      0.8 0.8 0.8
                    emissiveColor     0 0 0
                    shininess         1.0
                    specularColor     0 0 0
                    transparency      0.0
                }
                texture ImageTexture {
                    url     "images/logo.gif"
                }
                textureTransform TextureTransform {
                    center 0 0
                    rotation 1.0
                    scale 2 2
                    translation 2 2
                }
            }
        }
        DEF TOUCH TouchSensor {
        }
    ]
}

DEF SPHERE Transform {
    children [
        Shape {
            geometry Sphere {
                radius 1
            }
            appearance Appearance {
                texture ImageTexture {
                    url     "images/earth-small.gif"
                }
            }
        }
        ]
    translation 3 3 0
}

DEF TIMER TimeSensor {
   loop TRUE
   cycleInterval 4
}

DEF INTERPOLATOR PositionInterpolator {
   keys [ 0, 1 ]
   values [ 0 0 0, 0 5 0 ]
}

ROUTE TIMER.fraction TO INTERPOLATOR.set_fraction
ROUTE INTERPOLATOR.value_changed TO SPHERE.set_translation