vcanim.gif (8357 bytes)Baby Spheres
Home ] Sales ] Products ] Services ] Support ] Downloads ]

 

 


In this demo when any two spheres collide they produce a baby.  In this scene all code is attached to a single null which manages the behavior of all the elements in the scene. This contrasts with the approach used in SexAndViolence where each element has it's own attached behavior. This means that baby spheres will reproduce as well, so the scene may continue to change, with new born baby spheres being added, each time it is played. The baby spheres spiral out from their birth point. The distance and angle they travel each frame as well as the number of frames it takes them to mature and be able to reproduce are all settable. These parameters get set when the behavior is first run, during init.

  • Use Model->Get->Scene to load the scene "Demo spheres_sex" from $SI_LOCATION/3D/Databases/SoftWishDemoDatabase..When the scene has loaded you should see two spheres path animated. If you play the scene they will move, following their respective paths, but nothing interesting happens.
  • Use Model->Effects->behaviorEdit to attach SI_LOCATION/3D/custom/SoftWish/SoftWishDemos/behaviorDemo/spheresSex2.tcl to the null1 model, set it's order to 0.1 and enable the tcl code.
  • Select Model->Effect-> behaviorEvaluate. There is no need to pick any models because behaviorEvaluate finds any code attached to any element of the scene. Set  the number of frames it takes before babies reproduce You can now play the scene. For best results hide the behaviorEvaluate icon and maximize the perspective window before playing the scene. Remember that the scene will change each time that you play it.

See Tcl Script

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.