Title: Help me for interpolation with TouchSenosr

# My VRML source

#VRML V2.0 utf8
DEF VRMLCone2 Transform { translation -3 0 0
        children [
                Shape {
                        geometry Cone { bottomRadius 1 height 2 }
                        appearance Appearance {
                                material DEF Mat2 Material { diffuseColor 0 1 0 }
                        }
     }
        ]
}
DEF VRMLCone1 Transform { translation -4 0 0
        children [
                Shape {
                        geometry Cone { bottomRadius 1 height 2 }
                        appearance Appearance {
                                material DEF Mat1 Material { diffuseColor 0 1 0 }
                        }
      }
        ]
}
DEF TouchS TouchSensor {}
DEF TimeS1 TimeSensor { cycleInterval 3 }
DEF TimeS2 TimeSensor { loop TRUE startTime 0 stopTime 0 cycleInterval 3 }

# 1th cone
ROUTE TouchS.touchTime TO TimeS1.startTime
ROUTE TimeS1.fraction_changed TO CoIorInterp.set_fraction
ROUTE CoIorInterp.value_changed TO Mat1.diffuseColor
# 1th cone
ROUTE TimeS2.fraction_changed TO PosInterp.set_fraction
ROUTE PosInterp.value_changed TO VRMLCone1.scale
# 2th cone
ROUTE TimeS2.fraction_changed TO CoIorInterp2.set_fraction
ROUTE CoIorInterp2.value_changed TO Mat2.diffuseColor
# 2th cone
ROUTE TimeS2.fraction_changed TO PosInterp2.set_fraction
ROUTE PosInterp2.value_changed TO VRMLCone2.translation

I have developed VRML browser based on Jave3D.
Above lines are my VRML soruce for testing TouchSenosr.
To test touchSenosr, I used two types of TimeSensor.
One have loop value is TRUE and the other have FALSE.
In case of above situation, Scale of VRMLCone1 was not affected by TimeS2.
That is affected by TimeS1.
So, when I touched VRMLCone1, that have Mat1 as its material,
scale as well as diffuseColor of VRMLCone1 are affected by Time1.

I don't know that why....
Help me anyone... plz.

==============================================
161 Gajeong-dong, Yuseong-gu, Daejeon 305-350, Korea
Electronics and Telecommunications Research Insititute
Computer Software Technology Laboratory
Virtual Reality Research Center
Image-based Rendering Team
Sungye Kim
tel : 042-860-5828 / fax : 042-860-1051
http://insideblue.hihome.com
e-mail : [EMAIL PROTECTED]
==============================================


Reply via email to