vcanim.gif (8357 bytes)Bouncing Ball
Home ] Sales ] Products ] Services ] Support ] Downloads ]

 

 


Bouncing Ball

This tutorial demonstrates how to turn behaviors into fCurves. It makes sense to do this when the behavior is generating exactly the result you want, because animation by fCurve is usually faster than animation by SoftWish behaviors. It may also make sense to do this when the behavior is close to what you want, and it is easier to edit an fCurve than it is to adjust behavior parameters or modify the script itself.

  • Create a sphere of radius 1.0.
  • Use Model->Effects->behaviorEdit to attach $SI_LOCATION/3D/custom/SoftWish/SoftWishDemos/behaviorDemo/bouncingBall.tcl to the sphere and enable the tcl code.
  • Remain in the behaviorEdit dialog and go back to the first screen. Push the Generate Fcurves button and add all the explicit translation (etrnx,etrny,etrnz) and scaling (scalx,scaly,scalz) fcurves to the list of selected Fcurves. Hit OK to enable the creation of the Fcurves, then quit.
  • Select Model->Effect-> behaviorEval. This will cause the code attached to the sphere to get evaluated exactly once each frame, so whenever you run your scene the specified fcurves will be generated (in fact if you open an fcurve window when you first run your scene you can watch them being generated).
  • Run the scene once to generate the fcurves, then turn off both the tcl code and the fcurve generation.
  • Now play the scene again letting the sphere be animated by the generated fcurves.

Whitepaper ] Terms and Conventions ] Release Notes 2.2 ] Problems You May Encounter ] Installation overview ] Installing on Irix ] Installing on Nt ] Licensing ] Scripting ] Utilities and Libraries ] Tools ] Tutorials ]

copyright Video-Collage Inc.