Skip to Main Content Skip to Search
Product Documentation

Version 4.0 (R14) Virtual Reality Toolbox

This table summarizes what's new in Version 4.0 (R14):

New Features and ChangesVersion Compatibility ConsiderationsFixed Bugs and Known Problems
Yes
Details below
NoFixed bugs

New features and changes introduced in this version are

Improved Overall Performance

Infrastructure changes have improved the overall performance of the Virtual Reality Toolbox software.

Tracing and Offline Animation Files

The Virtual Reality Toolbox product enables you to record animations of virtual scenes that are controlled by the Simulink or MATLAB products. You can then later play back these animations offline (in other words, independent of the MATLAB, Simulink, or Virtual Reality Toolbox). You can save animation data in the following formats:

This functionality has been integrated into the Virtual Reality Toolbox viewer.

You can also save animation data through the MATLAB interface. This functionality has been integrated into the vrworld and vrfigure methods. See MATLAB Interface in the Virtual Reality Toolbox User's Guide documentation for procedures on how to save animation data.

Notes when working with animation data:

Improved Virtual Reality Toolbox Viewer

The Virtual Reality Toolbox viewer has been completely updated and improved. In addition to the original Navigation Panel at the bottom of the window, the Virtual Reality Toolbox viewer now has a menu bar and associated toolbar. These additional areas allow you to perform a number of operations on the loaded virtual world, including

In addition, the Virtual Reality Toolbox software has been enhanced for better VRML97 compatibility, including:

In addition, the Virtual Reality Toolbox viewer keyboard navigation has changed.

Double-Clicking VR Sink Blocks Behavior Changed

The behavior of a VR Sink block when you double-click it has changed as follows:

  1. The first time you add a VR Sink block to a model, double-clicking that block displays the block parameter dialog for that block.

  2. After configuration is complete and you make an association with a virtual world, double-clicking the VR Sink block displays the Virtual Reality Toolbox viewer for that model.

    To display the block parameter dialog for the VR Sink block in the Virtual Reality Toolbox viewer, select the Simulation menu, then Block Parameters.

Extended Support of Data Types

The Virtual Reality Toolbox product now supports a number of MATLAB data types. In earlier releases, the MATLAB product only supported a data type of double. The Virtual Reality Toolbox product provides an interface between the MATLAB and Simulink environment and VRML scenes. With this interface, you can set and get the VRML scene node field values. The setfield and getfield vrnode methods have been updated to work with these new data types.

Improved Timing Control

The time in virtual scenes advances independently of MATLAB and Simulink interfaces. As a result, if you define dynamic actions directly in the VRML world, these actions cannot interact appropriately with object actions controlled by Virtual Reality Toolbox through the MATLAB or Simulink interface. To compensate for this, the Virtual Reality Toolbox product now provides two vrworld properties, Time and TimeSource. The Time property contains the current time in the virtual world. The TimeSource property defines the source of the time for the virtual world. The TimeSource property can take the following values:

HP-UX Platform Support

The Virtual Reality Toolbox product is now supported on Hewlett-Packard™ UNIX® (HP-UX) 11.00.

New vrfigure Object Functions

The vrfigure object has two new methods:

Joystick Input and Magellan Space Mouse Block Updates

When you place the Joystick Input and Magellan Space Mouse blocks in disabled subsystems, these blocks no longer require that actual hardware be connected to the computer for the model to run. This allows you to create models with alternative user interfaces, switchable according to the actual hardware configuration.

New and Updated Demos

New and updated demos in Release 14 are listed in the table below. You can open the demos by entering the corresponding model names in the MATLAB Command Window.

Title

Model Name

Portal Crane with Joystick Control

vrcrane_joystick

Portal Crane with Predefined Trajectory

vrcrane_traj

Heat Transfer Visualization with 2-D Animation

vrheat_anim

Vehicle Dynamics Visualization

vr_octavia

Virtual Reality Toolbox Simulink Blocks Updates

The Simulink block library for the Virtual Reality Toolbox product has the following block updates:

VR Sink and VR Source Block Source File

The behavior of the VR Sink and VR Source block Source file text field has changed as follows:

MATLAB Interface Updates

Associated with the support of extended data types, the MATLAB interface vrsetpref and vrgetpref functions now set and get the following new preferences in addition to earlier preferences.

Preferences Changes

The Virtual Reality Toolbox software lets you specify preference settings so that you can define the default behavior of the Virtual Reality Toolbox software. The preferences functionality has the following changes:

vrworld Object Property Updates

Associated with the support of animation files, the vrworld object now supports the following new properties:

Property

Description

Record3D

Enables 3D animation recording. Read/write.

Record3DFileName

3D animation file name. The string can contain tokens that are replaced by the corresponding information when the animation recording takes place. Read/write.

Recording

Animation recording toggle. This property acts as the master recording switch. Read/write.

RecordMode

Animation recording mode. Read/write.

RecordInterval

Start and stop times for scheduled animation recording. Corresponds to the virtual world object Time property. Read/write.

Time

Current time in the virtual world. Read/write.

TimeSource

The source of the time for the virtual world. If set to 'external', time in the scene is controlled from the MATLAB interface (by setting the Time property) or the Simulink interface (simulation time), if set to 'freerun', time in the scene advances independently based on the system timer. Read/write.

vrfigure Object Property Updates

The vrfigure object now supports the following new properties:

Property

Description

MaxTextureSize

Sets the maximum pixel size of a texture used in rendering vrfigure objects. The smaller the size, the faster the texture can render. Increasing this value improves image quality but decreases performance. A value of 'auto' sets the maximum possible pixel size. If the value you enter is unsuitable, a warning might trigger. The Virtual Reality Toolbox software then automatically adjusts the property to the next smaller suitable value. Read/write.

NavMode

Specifies navigation mode. Read/write.

NavSpeed

Specifies navigation speed. Read/write.

NavZones

Toggles navigation zones on/off. Read/write.

Record2D

Enables 2-D offline animation file recording. Read/write.

Record2DCompress
Method

Specifies the compression method for creating 2-D animation files. The codec_code must be registered in the system. See the MATLAB function documentation for avifile. Read/write.

Record2DCompress
Quality

Specifies the quality of 2-D animation file compression. Read/write.

Record2DFileName

Specifies the 2-D offline animation file name. The string can contain tokens that are replaced by the corresponding information when the animation recording takes place. Read/write.

StatusBar

Toggles the status bar at the bottom of the Virtual Reality Toolbox viewer. Read/write.

Toolbar

Toggles the toolbar on the Virtual Reality Toolbox viewer. Read/write.

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS