Main Content

Build Virtual Reality Worlds

Author virtual reality worlds for Simulink®, Simscape™ Multibody™, and MATLAB®; import CAD models

To create a virtual world, use VRML, X3D, or X3Dv code in an editor. You can use the default virtual world editor, the 3D World Editor. For an example that shows the major steps for building a virtual world, see Create a Virtual World.

Use the editor to:

  • Create a hierarchy of nodes that define the elements of the virtual world and control the display of the virtual world.

  • Insert nodes from the 3D World Editor libraries of virtual world objects.

  • Enhance a virtual world with features such as sound, stereoscopic vision, and rendering optimizations.

To create a virtual world, you can use the default virtual world editor, the 3D World Editor. For an example that shows the major steps for building a virtual world, see Create a Virtual World.

Apps

3D World Editor(To be removed) Edit virtual worlds for 3D animation

Functions

vredit(To be removed) Open 3D World Editor
vrgetpref(To be removed) Values of Simulink 3D Animation preferences
vrsetpref(To be removed) Change Simulink 3D Animation preferences

Create and Edit a Virtual World

Choose a Virtual World Editor

As an alternative to the default 3D World Editor, you can use another virtual world editor, the MATLAB editor, or a text editor.

Open the 3D World Editor

When you install the Simulink 3D Animation™ product, the 3D World Editor is the default editor.

Create a Virtual World

Create a virtual world by opening a new virtual world 3D file and adding a ROOT node with a Transform node that includes other nodes, such as Shape and Geometry nodes. Define properties for the nodes.

Build and Connect a Virtual World

Create a simple virtual world and associate it with Simulink blocks.

3D World Editor Library

The 3D World Editor includes a library of virtual world objects that you can insert into a virtual world.

Edit a Virtual World

Use the 3D World Editor for common tasks involved in creating a virtual world, such as adding objects, editing object properties, and copying and pasting nodes.

Virtual World Data Types

Explore the data types used by nodes for defining objects and the types of data that can appear in the node fields and events.

Virtual World Navigation in 3D World Editor

Control viewing and navigation for the visual world in the 3D World Editor.

Enhance a Virtual World

Set Viewpoints

Set up viewpoints to guide visitors to places of interest in a virtual world.

Use Sensors

Move or modify virtual world objects during simulation based on user input from the virtual world or events in the virtual world.

Simulink 3D Animation Textures

Use Simulink 3D Animation texture files.

Reduce Number of Polygons for Shapes

For a node that is, or includes, an IndexedFaceSet node, you can improve rendering speed by reducing the number of polygons.

Add Sound to a Virtual World

Add sound to a virtual world by using a Sound node.