SALOME documentation central

Animation

animatdef.jpg

Example of Animation presentations for deformed shape


In Post-Pro module you can generate real-time animation of fields. In comparison with sweeping, animations are created on the base of frames, displaying field presentations generated on EVERY timestamp of your field. So, the frame displaying the field presentation created on the base of the first timestamp will begin your animation and the frame displaying the field presentation created on the base of the last timestamp will end it. In sweeping ONLY ONE timestamp is used for its generation.

In the case of animation of several fields Parallel Animation will display the animations simultaneously, while Successive Animation will display them one after another.
In the case of Parallel Animation you can set different kinds of presentations for each of the selected fields. This animation type also requires that the number of timestamps > 1 and is the same for all animated fields.
For Successive Aimation the kind of presentation should be the same for all selected fields, which means that it is not possible to select a field from the list. It is also necessary that the number of timestamps > 0 and the number of components is the same for all animated fields.

Slider functionality also allows to create real-time animation on every time stamp of the field. This is another, somewhat more user-friendly, implementation of animation on fields.

To generate an Animation:

  1. Right-click on the field in the Object Browser.

  2. From the pop-up menu select Parallel or Successive Animation. The following dialog box will appear:

    animation.png

    Animation dialog box is destined for management of your animation.

  3. Click Setup Animation button. The following dialog box allowing to set the parameters of your animation will appear.

    setupanimation1.png

    Use range of time stamps check box allows to select the range of time stamps, which will be used for generating your animation.

    setupanimation2.png

    Use sequence of time stamps check box allows to select the time stamps, which will be used for generating your presentation from the list of time stamps

    Fields: list of fields for animation.

    Properties: Here you can adjust properties of each field selected from the list:

    • Select the type of field presentations, which will be used as frames in animation.
    • Set properties of the Scalar Bar (see also).
    • Adjust additional properties of the selected type of field presentation.


  4. Click OK to validate your parameters. You will return back to Animation dialog box.

  5. Click Generate frames button to generate the frames for your animation based on the parameters adjusted in Setup Animation dialog box.


Running animations:

In the main Animation dialog box there are several button intended for management and running your animation:
run.jpg
Running your animation
previous.jpg
Previous frame (time step)
next.jpg
Next frame (time step)
begining.jpg
To the beginning of the animation.
end.jpg
To the end of the animation.


Additional options of the animation:

You can increase/decrease the speed of your animation by moving the Speed wheel Up/Down:
speed.jpg
Cycled animation check box: this option allows to start a cycled animation of your presentation.

Use proportional timing check box: this option allows to render your animation with proportional periods of time between every frame (not depending on the time stamps).

Clean memory at each frame - this option allows to optimize the performance of the operation.
Note:
Save animation to AVI file works only if there is jpeg2yuv utility installed on your computer. If this third-party product is missing, the check-box will not be selectable. This utility is a part of mjpegtool package, which can be downloaded from http://mjpeg.sourceforge.net/. Run "which jpeg2yuv" to check whether this tool has been installed and the path to it was properly added to your PATH variable. If not, you need to activate mjpegtools indicating its location in the variable PATH. The syntax of the command should be as follows: export PATH=${INSTALL_ROOT}/mjpegtools-1.8.0/bin:${PATH}.
Save Animation - saves changes made in the published animation. If you have already published a study and press Publish to study again you get another animation in the Object Browser.

Publish to Study - saves your animation in the study and presents it in the Object Browser.

Copyright © 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS