User`s guide
1 Getting Started
1-26
capability, you can perform massive color changes or morphing. This model morphs a
cube into an octahedron and then changes it back to a cube.
Vehicle Dynamics Visualization (vr_octavia)
The vr_octavia example illustrates the benefits of the visualization of complex
dynamic model in the virtual reality environment. It also shows the Simulink 3D
Animation 3-D offline animation recording functionality.
Vehicle Dynamics Visualization - Simulation of Multiple Objects (vr_octavia_2cars)
This example extends the vr_octavia example to show multiple-object scenario
visualizations.
The precomputed simulation data represents a standard double-lane-change maneuver
conducted in two-vehicle configurations. One configuration engages the Electronic
Stability Program control unit. The other configuration switches that control unit off. The
example sends two sets of vehicle dynamics data in parallel to the virtual reality scene,
to drive two different vehicles.
Models of the vehicles use the VRML97 EXTERNPROTO mechanism. In the main virtual
world associated with the VR Sink block, you can create several identical vehicles
as instances of a common 3-D object. This approach greatly simplifies virtual world
authoring. For instance, it is very easy to create a third vehicle to simultaneously
visualize another simulation scenario. The octavia_scene_lchg_2cars.wrl virtual
world, the VRML after the definition of PROTOS illustrates an approach for easy-to-define
reusable objects.
In addition to vehicle properties controlled in the vr_octavia example, vehicle
prototypes also allow you to define vehicle color and scale. These properties distinguish
individual car instances (color) and avoid unpleasant visual interaction of two nearly-
aligned 3-D objects (scale). Scaling one of the cars by a small amount, encompasses one
car into another so that their faces do not clip randomly, based on the current simulation
data in each simulation step.
To visualize vehicles side-by-side, add an offset to the position of one vehicle.
Vehicle Dynamics Visualization with Graphs (vr_octavia_graphs)
The vr_octavia_graphs example extends the vr_octavia example by showing how
to combine a virtual reality canvas in one figure with other graphical user interface