Main Content

打开3 d世界编辑器

3D World Editor Is the Default Editor

When you install the金宝app®3D Animation™product, the 3D World Editor is configured to be the default editor. For details about changing the default editor, seeSet the Default Editor. For an overview of the 3D World Editor, see3D World Editor Panes.

Note

You can also use the V-Realm Editor. For more information, seeV-Realm Builder Help.

Open an Empty Virtual World

Use one of these approaches to open an empty virtual world in the 3D World Editor.

  • From the Simulink Toolstrip, in theAppstab, in theSimulation Graphics and Reporting部分中,点击the app icon.

  • From the MATLAB®Toolstrip, in theAppstab, in theSimulation Graphics and Reporting部分中,点击3D World Editor.

  • If the 3D World Editor is your default virtual world editor, open an empty virtual world from the MATLAB command line using theeditcommand.

    edit(vrworld(''))
  • Regardless ofDefault Editorpreference setting, you can use thevreditcommand, without arguments.

  • From within the 3D World Editor, select eitherFile>NeworFile>New From Template. If there is already a file open in the 3D World Editor, these options open a new instance of the editor. Use multiple instances of the editor to work on multiple virtual worlds at the same time and to copy and paste from one virtual world to another.

Open a Saved Virtual World

Use one of these approaches to open a saved virtual world.

  • From the MATLAB Current Folder panel, right-click a virtual world 3D file and from the context menu, select编辑

  • If 3D World Editor is your default virtual world editor, start it from the MATLAB command line using theeditcommand. For example:

    edit(vrworld('myVRMLfile.wrl'))
  • Regardless of what your default virtual world editor is, from the MATLAB command line, use thevreditcommand with the name of the virtual world 3D file. For example:

    vredit('membrane.wrl')
  • From within the 3D World Editor, selectFile>Open. If a file is already open in the 3D World Editor, this option opens a new instance of the editor.

3D World Editor Panes

The 3D World Editor provides three panes:

  • Tree structurepane — View the hierarchy for the virtual world that you are editing.

  • Virtual world displaypane — Observe the virtual world as you create it.

  • Object property editpane — Change values for node items.

Use thetree structure窗格中交互式地创建图形化虚拟磨破ld elements and to view of all the virtual world structure elements present in the virtual world. These structure elements are called nodes. The 3D World Editor lists the nodes and their properties according to their respective virtual world node types. In the tree viewer, you give the nodes unique names.

Use thevirtual world displaypane to display a graphical representation of a 3-D scene.

Use theobject properties editpane to edit a selected property or add a comment to a selected node or property.

Tree Structure Pane Icons

TheTree structurepane displays icons to help you visually distinguish node field types.

Node Field Type 3D World Editor Icon
field
eventIn
eventOut
exposedField
ROUTE
USE

Preferences for 3D World Editor Startup

TheSimulink 3D Animation Preferences>3D World Editorpane includes the following options for specifying the startup position:

  • For the default location, selectPosition. Then specify the pixel location for the lower-left corner, the width, and the height (for example,[96 120 862 960]).

  • To open the 3D World Editor in the same location where you exited it, selectSave position on exit.

You can specify whether the editor starts up with the default virtual world display layout or with the layout as it was when you exited it previously. The saved layout includes settings for the view, viewpoints, navigation, and rendering.Simulink 3D Animationsaves the layout in a separate virtual world 3D file for up to eight files.

By default, the virtual world opens with the layout saved at exit. To have the virtual world open using the default layout, clear thePreferences>Simulink 3D Animation>3D World Editor>Preserve Layout per Virtual Reality 3D Filecheck box.

See Also

Functions

Related Topics