Dynamics and Particle Systems


Run dynamics

This feature is available in Alias PowerAnimator and AutoStudio, and is a purchasable PowerAnimator and Advanced Animation for Studio option

Purpose

To animate objects by running a dynamics simulation on them. A dynamic simulation will simulate physical properties of the object and environment, such as gravity, wind and air density.

How to Use

  1. Select the objects on which you would like to run a dynamics simulation.

  2. In the Tool Palette, select Anim View frame to set the frame at which you would like the dynamics simulation to begin.

  3. Select Animation Run dynamics- to open the Run Dynamics control window.

  4. Turn the Animation Output Keyframe option ON.

  5. Click the Run button at the bottom of the window and watch the dynamics simulation as it progresses. When you want to end the simulation, click the Stop button (the Run button is re-labeled Stop during a simulation run). Select Animation Playback to preview the animated objects you just set the keyframes for.

    Run Dynamics Options

    To set dynamics simulation options, select Run dynamics- to open the Run Dynamics control window.

    Use this window to change simulation options (for example, to define which objects participate in the simulation), set object collision types, or to create dynamics animations and save particle files.

    Note: For more information about properties of dynamics objects and particle systems, see Dynamics and Particles in the Multi-lister in Rendering in Alias.

    Frame Control

    Start Frame

    The Start Frame value specifies the starting frame number for a simulation. This value is specified in frames, not world time.

    Note: See Simulation Options, Frames/Second for information about the difference between frames and world time.

    End Frame

    This number represents the frame at which the dynamics simulation will end. You can pause a simulation at any time by pressing the Esc key, clicking in the modeling window, or clicking the Run button again.

    By

    By should normally be set to 1, however larger values perform a quicker preview of a simulation (for example, if you have a large model with only a small part of it in the simulation). This is useful when you are trying to establish a rough feel for the various dynamic parameters.

    Steps/Frame

    The Steps/Frame value is used to control the time resolution at which a simulation is processed. The larger this number is, the more steps that are used to compute each frame. The more Steps/Frame there are, the more accurate the simulation will be, but it will take longer to calculate each frame. You may want to increase this value in order to achieve more accurate collision detection and response. Typically this value should be set to 1. Increase it only if you are getting collision errors (settings above 10 are unlikely to result in any better collision detection).

    Simulation Options

    Frames/Second

    Use the Frames/Second value to establish the relationship between real world time and the frames being used for an animation. Using this value, all the simulation calculations are performed in real world time (or seconds) and then converted to frames. The calculation of simulations in real world time allows the simulation to be as physically realistic as possible, without being affected by the animation's frame rate.

    Tip: Typically for film animation, this value would be set to 24 frames per second, and for video animation this would be set to 30 frames per second.

    Particle %

    Setting the Particle % value lets you control how many particles are emitted during a simulation preview versus the actual number of particles emitted when images are rendered. A lower setting would allow a simulation to be displayed much quicker, however at the cost of a coarser display. This setting is used for the simulation preview only and does not affect the final rendering of the particles.

    Caution!

    If the particle simulation is run with Save Particles ON, and particles are saved to a file, this setting will reduce the number of particles rendered for those specific particle systems.

    Save Particles

    The Save Particles button is used to specify whether or not particle systems should be saved to a particle file for rendering. This can reduce rendering time since the renderer can just use the particle files instead of re-running the particle simulation.

    You may also want to Save Particles if you are trying to develop a specific particle appearance by running a simulation. When the appearance of a particle system is what you want, you can save that particular set of particles to a file.

    When Save Particles is turned ON, every time you run a simulation you will be prompted for a name to be used in the location to save the particle output file for each particle emitting shader or light. When the simulation is run, one particle file will be created for each frame per particle emitter. The path setting for a specific particle system can be viewed and altered in the shader or light that emitted these particles (see Multi-lister File in Rendering in Alias).

    Note: Every time a simulation is run with Save Particles turned ON, all particle systems participating in the simulation will have any previously saved particle files overwritten.

    Use Torque

    When this option is ON, angular velocity is computed by sampling the torque by each force in the system and air drag. The sample set includes the object's center of mass and a small set of representative points the near vicinity of the object.

    Animation Output

    These options let you control the creation of keyframes for each of the participating active objects.

    Creating a dynamic simulation is a two-step process.

    Keyframe

    Turning Keyframe creation ON instructs the simulation to create keyframes for each of the participating active objects. As a keyframe is generated, any previous keyframes in the simulation interval that may have been generated for an object are removed.

    Sample By

    The Sample By value specifies how often a keyframe should be created by the simulation system. It will also determine how often a keyframe will be set in the objects being animated with the dynamics simulation.

    A higher setting results in fewer keyframes being created, however the resulting animation would be less faithful to the calculated simulation. Ideally this setting and the Frame Control By value should be set the same.

    The lower the Sample By value is, the more accurate the simulation will be. For example, simulate a bouncing ball starting at frame 10. If the ball hits the ground at frame 20, then the simulation will accurately change the direction of the ball at frame 20 to cause the rebound. However, if the ball hits the ground at frame 19.5, then the dynamics simulation will only detect this at frame 20 when the ball has already travelled through the ground slightly.

    If you have a very low Sample By value, then the resulting animation curves could be very dense with keyframes. The Simplify option can be turned on to minimize the number of keyframes created in your dynamics simulation animation.

    Simplify

    Simplify controls whether or not the resulting animation curves should be simplified. Simplifying a curve attempts to reduce the number of keyframes within an animation curve, while preserving the general shape of the curve. This results in reduced memory requirements, but does affect the accuracy of an animated simulation. The most noticeable effect will be on the appearance of collisions, as objects may appear to have less accuracy to their collisions.

    Tolerance

    If Simplify curves is turned ON, the Tolerance value specifies how closely the simplified curve should match the original animation curve. A higher setting results in fewer keyframes, however the resulting animation could be very different from the original animation curve.

    Participating Objects

    The Participating Objects options allow you to specify which objects will participate (either contribute themselves or be simulated) in a particular simulation.

    In order to facilitate the creation of many different simulations within a scene, participating objects may be collected into sets, which can then be combined together into one simulation.

    There are four types of groups of objects that can be combined together in a simulation: Active, Passive, Force and Particle objects. When a set is created for one of these groups, the set will have a special extension added to its name according to which group type it is assembling:

    Warning!

    If you change the name of the set, make sure that the extension remains part of the new name, otherwise the set will not be recognized as a dynamics set.

    Note: Objects which have inadvertently been defined as both Active and Passive within a specific simulation will act as Active Objects.

    How to use Grouping menus

    Each simulation grouping consists of two separate menus. The first menu (on the left) lets you specify which objects should be chosen for that grouping. The second menu (on the right) lets you edit the set for that group.

    Choosing objects

    In addition to a list of sets that can be picked for each grouping, the menus to the right of the headings contain the following.

    ALL all objects in the scene will participate for this grouping.
    NONE this grouping will have no participating objects.
    PICKLIST the objects that are currently picked in the modeler will be used as the participating objects for this grouping.

    Editing Sets

    The Edit menus contain items that let you perform specific set related actions on the current set that is picked for a grouping.

    This is a convenient feature, since all of the set creation and manipulation operations (Edit New set and Windows Sets Edit set) can be used as well.

    Show set shows all the objects that are in the selected set. This is a quick and convenient way of opening the set editor for this particular set.
    Remove pick from set removes all objects that are picked in the modeler from the currently selected set for this grouping.
    Add pick to set adds all objects that are picked in the modeler into the currently selected set for this grouping (or create a new set if no set is currently selected).
    Notes:

    Simulation Set

    The Simulation Set menus provide a means of conveniently picking and saving sets for each of the other four groupings (Active Objects, Passive Objects, Force Objects and Show Particles). The left menu contains a list of possible sets that can be picked. When a set is picked, each of the other four groupings are altered to either select that set, if applicable, or select NONE. You will have to define the participating objects within each grouping for a particular simulation.

    If you were to first define the selection for each group, you would be able to combine all four settings into a single Simulation Set, which could then be used the next time you wanted to run this simulation.

    The menu to the right of the Simulation Set heading contains the following:

    AS RENDER sets each one of the groupings to their render settings (Active Objects: NONE, Passive Objects: ALL, Force Objects: ALL and Show Particles: ALL).
    DEFAULTS sets each one of the groupings to their default settings (Active Objects: PICKLIST, Passive Objects: NONE, Force Objects: AS RENDER and Show Particles: AS RENDER ). The Simulation Set Edit menu contains the following:

    Create new sets create new sets for each of the four groupings according to their current settings.

    Active Objects

    Active Objects are objects that will have a dynamics simulation (basically forces and collision response) calculated. Active Objects collide with other Active Objects, as well as with any specified Passive Objects. Active Objects are also the objects that have keyframes created for them if the Keyframe creation Animation Output option is turned ON.

    Active Objects can be given an initial velocity (both linear and angular) by setting keyframes in time that immediately precede the start of the simulation. Otherwise their initial velocities are zero.

    Passive Objects

    Passive Objects are objects that Active Objects and Show Particles can collide with, but do not themselves respond to collisions or forces. Passive Objects can be animated (for example, from a previous simulation, or using any of the other animation tools).

    Force Objects

    Force Objects is used to specify which forces should be applied to objects in a simulation (in addition to the Environment ones). Only forces that are selected into a simulation are used within that simulation.

    Forces are represented as lights, and can use the linking and exclusive nature of lights as part of their definition. Objects that have forces (lights) linked to them are only affected by those forces (as long as the forces are selected into the simulation). Forces which are defined as being exclusive only (such as lights) affect the objects they are linked to. See the section on the Multi-lister's Edit Menu on page 230 of the Rendering Book for a more detailed description of how to manipulate light links and exclusive lights.

    Note: If the forces which are linked to Active Objects are not selected into the simulation, the Active Object will have no forces (other than the Environment ones) acting upon it.

    Show Particles

    Show Particles is primarily used to preview a particle system before its final rendering. Particle systems may be generated either by lights or by shaders attached to objects. To select a particle system generated by a shader, select the object(s) that the shader is attached to.

    If the Save Particles option is turned ON in Simulation Options, Particle Rendering Files are produced. This gives you greater control over the rendering of particles than is possible with the renderer (specifically in the area of which forces affect the particles, and having particles collide with objects in the scene).

    Note: Since lights cannot be linked to other lights, particle systems emitted from lights will be affected by selected global lights only.

    Collision Types

    The Collision Types options are used to define how collision detection is carried out for objects, as well as to define the physical mass for dynamic simulation purposes. You can set this information for an object by picking it in the modeler, and then changing the desired parameter.

    Note: Since collision detection is performed at the leaf level (and object mass is calculated from leaf level geometry) only leaf level nodes below picked items will show up in the list area.

    You can set the object-to-object collision detection method, and the particle-to-object collision detection method for each object, as well as define its mass calculation method.

    Make All

    The Make All buttons can be used to quickly set each parameter for all the objects listed. Click to display the menus for each of the three headings.

    Object Collision

    Collision detection for picked objects may be set to any one of the following options in the menu:

    GEOMETRY only available for surface leaf nodes. Specifies that the actual geometry should be used for detecting and responding to collisions. While this is the most accurate collision detection, this is also the slowest.
    BOUNDING BOX available for all leaf nodes. Specifies that an axis aligned bounding box should be used for detecting collisions.
    NONE collision detection is turned off for these objects.

    Particle Collision

    Collision detection for particles with the picked objects may be set to any one of the following:

    GEOMETRY only available for surface leaf nodes. Specifies that the actual geometry should be used for detecting and responding to collisions with particles. While this is the most accurate collision detection, this is also the slowest.
    BOUNDING BOX available for all leaf nodes. Specifies that an axis aligned bounding box should be used for detecting collisions with particles.
    NONE particle collision detection is turned off for these objects.
    Note: Particle collision must be turned on for the lights or objects emitting particles in order for collision detection with other objects to be enabled.

    Use Mass / Density

    Physical mass of a geometry leaf node can be calculated either using the density of an object (which is set in the shader attached to the object) multiplied by its volume, or by the specific number (which is in kilograms) entered in the Mass field.

    MASS uses the actual mass (entered in the Mass field at the right) of the object.
    DENSITY calculates the mass of the object based upon its volume, and the density set in the object's shader.

    Warning!

    An object's volume is calculated from an axis aligned bounding box. The size of this bounding box can vary if the object is rotating, which would also cause the mass to vary.

    Mass

    The value in this field represents the actual mass (in kilograms) of the object.

    Run Dynamics Control Window Buttons

    Run

    Clicking the Run button will start (or continue) a simulation at the Current Frame. Pressing the Esc key, clicking in the modeling window, or clicking Run again while a simulation is running will stop the simulation. The simulation will be performed on dynamics and particle objects as specified in the Participating Objects section of the Run Dynamics control window.

    Reset

    Clicking the Reset button will reset the initial positions and velocities of all the participating objects, as well as set the Current Frame back to the Start Frame. It will also clear any particles that existed when the last simulation was interrupted.

    Edit Environ

    Edit Environ is a convenient button that opens the Environment control window within the Multi-lister.

    This is the same as clicking the Environment shader in the Multi-lister and selecting Edit... from the Edit button menu. See the section on the Multilister Edit Menu on page 230 in the Rendering Book for more information.





    aliasdocs@aw.sgi.com
    Copyright © 1996, Alias|Wavefront, a Silicon Graphics Company. All rights reserved.