90 likes | 202 Views
Lahti International Week 2006. Introduction to X3D Lesson 2: Animating your models. Adding sound to your scene . “Sound” Node –location of the sound General background sounds – wind, animals Localised sounds – engine, Currently not working! “AudioClip” Node Sound file Continuous?.
E N D
Lahti International Week 2006 Introduction to X3D Lesson 2: Animating your models
Adding sound to your scene • “Sound” Node –location of the sound • General background sounds – wind, animals • Localised sounds – engine, • Currently not working! • “AudioClip” Node • Sound file • Continuous?
Route node – TouchSensor node Route node AudioClip node
“Click” to start a sound AudioClip DEF=“TheSound” url=“……” TouchSensor DEF =“TS” ROUTE fromNode="TS“ fromField="touchTime" toNode=“TheSound" toField="set_startTime"
TimeSensor node Parameters: DEF: “TS” name for the sensor cycleInterval : 5 5 second cycle loop: true set to loop stopTime: -1 don’t stop Also: startTime: 10 time to start the cycle.
ColorInterpolator node Parameters DEF: “CI” name of node key: 0, 0.5, 1 fractions of time cycle key_value: 1 0 0, colour at time 0 1 1 0, colour at time 0.5 1 0 0 colour at time 1
Routing for changing colour TimeSensor Material Route Node Route Node ColorInterpolator
Other interpolators • PositionInterpolator • Specify X Y Z for each key time • Orientation Interpolator • Specify rotation angles for each key time. • Scalar Interpolator • Change any single value
Summary That completes the lesson on animation in X3d. We have had time to look only at some of the more common nodes in X3d Please email your best animation to: P.I.Wilson@wlv.ac.uk