User`s guide

7 Viewing Virtual Worlds
7-40
associated with the model and %n is a number that increments each time you record a
simulation for the same virtual world. If you do not change the default file name, for
example, if the name of the virtual world file is vrplanets and you record a simulation
for the first time, the animation file is
vrplanets_anim_1.wrl
If you record the simulation a second time, the animation file name is
vrplanets_anim_2.wrl. In the case of frame captures, capturing another frame of the
scene increments the number.
For details, see “Define File Name Tokens”.
Start and Stop Animation Recording
You can start or stop recording animations of the virtual world from the Simulink 3D
Animation viewer through the menu bar, toolbar, or keyboard. This section assumes that
you have specified animation files into which the animation is to be recorded.
From the menu bar, choose the Simulation menu, Run option to start recording the
animation (select Stop to stop the recording).
From the toolbar, click the Start/stop recording button to start or stop recording
the animation (select Stop to stop the recording). Alternatively, you can use the
Recording menu Start Recording and Stop Recording options. From the
keyboard, press Ctrl+R to toggle between starting or stopping the animation
recording.
Stop the simulation or let the model simulate until the defined simulation stop time.
Note If you stop the simulation while recording is enabled, the viewer also stops
recording the animation.
Play Animation Files
You can view animation files using the 3D Animation Player or vrplay. For details, see
“Play Animation Files”.
Record Files in the VRML Format
To create a 3-D VRML format file from a Simulink model execution, set recording
parameters. You can start the simulation before setting up the recording.