User`s guide
4 MATLAB Interface
4-10
Animation Recording
In this section...
“Recording Formats” on page 4-10
“Manual and Scheduled Animation Recording” on page 4-11
The Simulink 3D Animation software enables you to record animations of virtual scenes
that are controlled by the Simulink or MATLAB product. You can record simulations
through either the Simulink 3D Animation Viewer (described in “Simulink 3D Animation
Viewer”) or the MATLAB interface. You can then play back these animations offline,
in other words, independent of the MATLAB, Simulink, or Simulink 3D Animation
products. You might want to generate such files for presentations, to distribute
simulation results, or to generate archives.
Note If you are working with virtual scenes controlled from MATLAB, you can record
virtual scenes through the MATLAB interface. Optimally, use the Simulink 3D
Animation Viewer to record animations of virtual worlds associated with Simulink
models. This method ensures that all necessary virtual world and vrfigure properties
are properly set to record simulations. For details, see “Record Offline Animations”.
Recording Formats
You can save the virtual world offline animation data in the following formats:
• 3-D VRML file — The Simulink 3D Animation software traces object movements
and saves that data into a VRML file using VRML97 standard interpolators. You
can then view these files with the Simulink 3D Animation Viewer. 3-D VRML
files typically use much less disk space than Audio Video Interleave (AVI) files. If
you make any navigation movements in the Simulink 3D Animation Viewer while
recording the animation, the Simulink 3D Animation software does not save any of
these movements.
Note If you distribute VRML animation files, be sure to also distribute all the inlined
object and texture files referenced in the original VRML world file.
• 2-D Audio Video Interleave (AVI) file — The Simulink 3D Animation software
writes animation data into an .avi file. The Simulink 3D Animation software uses