User`s guide

Record Animations for Unconnected Virtual Worlds
4-29
1
Retrieve the corresponding vrworld object.
2
Set the Record3D vrworld property.
3
To override default filenames for animation files, set the vrworld
Record3DFileName property.
Set the RecordMode vrworld object property to manual or scheduled. For optimal
results, select scheduled.
If you select scheduled for RecordMode, be sure to also set the vrworld
RecordInterval property to a desired time interval.
To specify that the virtual world time source is an external one, set the vrworld
property TimeSource to external. This ensures that the MATLAB software controls
the virtual world scene time. Type
set(virtual_world,'TimeSource', 'external')
To specify time values at which you want to save animation frames, iteratively set the
vrworld Time property. Note that for a smoother animation, you should set the time
at equal intervals, for example, every 5 seconds. Use a sequence like
set(virtual_world,'Time',time_value)
For example, to set the Time property for vrworld, w, with values increasing by 10,
enter
set(w,'Time',10);
set(w,'Time',20);
set(w,'Time',30);
set(w,'Time',40);
set(w,'Time',50);
set(w,'Time',60);
set(w,'Time',70);
set(w,'Time',80);
set(w,'Time',90);
set(w,'Time',100);
set(w,'Time',110);
set(w,'Time',120);
set(w,'Time',130);
set(w,'Time',140);
If you select a start time of 60 and a stop time of 120 (as described in “Scheduled 3-D
VRML Recording with MATLAB” on page 4-22), the Simulink 3D Animation software
starts recording at 60 and stops at 120.