Virtual Reality Toolbox | ![]() ![]() |
Opening a Virtual World
Opening a virtual world lets you view the virtual world in a VRML viewer, scan its structure, and change virtual world properties from the MATLAB Command Window.
After you create a vrworld object, you can open the virtual world by using the vrworld object associated with that virtual world. This procedure uses the vrworld object myworld
associated with the virtual world vrmount.wrl
as an example:
My first virtual world
. This is the description that is displayed in all Virtual Reality object listings, in the title bar of the Virtual Reality Toolbox viewer, and in the list of virtual worlds on the Virtual Reality Toolbox HTML page.
8123
is the default Virtual Reality Toolbox port number. If you set a different port number on your system, enter that number in place of 8123
. For more information on the Virtual Reality Toolbox HTML page, see View a Virtual World with a Web Browser on the Host Computer.
Alternatively, you can display the virtual world by using the command view(myworld),
which displays the virtual scene in your default viewer. For more information on changing your default viewer, see Setting the Default Viewer of Virtual Scenes.
![]() | Using the MATLAB Interface | Interacting with a Virtual World | ![]() |