This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > VRML > July 2005 > Creating multiple (but separate) events





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Creating multiple (but separate) events
robmcbride99

2005-07-06, 11:34 am

Hello I apologise because I am fairly new to using VRML.

I have developed the following code:

DEF TS1 TimeSensor {
cycleInterval 4
stopTime -1
loop TRUE
}


ROUTE TS1.fraction_changed TO S.set_fraction
ROUTE S.value_changed TO head.set_translation
ROUTE S.value_changed TO tongue.set_translation
ROUTE S.value_changed TO teeth_bottom.set_translation
ROUTE S.value_changed TO teeth_top.set_translation
ROUTE S.value_changed TO eye_L.set_translation
ROUTE S.value_changed TO eye_R.set_translation
ROUTE S.value_changed TO mouth.set_translation



DEF P OrientationInterpolator {
key [ 0, 0.3
0.31, 1]
keyValue [ 0 0 1 0, 0 1 0 1.22,
0 1 0 1.22, 1 0 0 -0.52]
}


DEF TS2 TimeSensor {
cycleInterval 4
stopTime -1
loop TRUE
}


ROUTE TS2.fraction_changed TO P.set_fraction
ROUTE P.value_changed TO head.set_rotation
ROUTE P.value_changed TO tongue.set_rotation
ROUTE P.value_changed TO teeth_bottom.set_rotation
ROUTE P.value_changed TO teeth_top.set_rotation
ROUTE P.value_changed TO eye_L.set_rotation
ROUTE P.value_changed TO eye_R.set_rotation
ROUTE P.value_changed TO mouth.set_rotation


This moves a head across the screen and performs a small rotation. However, currently it performs both of these operations at the same time. I want to get it working so that the head initially moves from one location to another and then performs the rotation.

Any help would be greatly appreciated.
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews