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:
The MATLAB Command Window opens the virtual world vrmount.wrl.
set(myworld, 'Description', 'My first virtual world');
The Description property is changed to My first virtual world. This is the description that is displayed in all Simulink® 3D Animation™ object listings, in the title bar of the Simulink 3D Animation Viewer, and in the list of virtual worlds on the Simulink 3D Animation HTML page.
The viewer that is set as the default viewer displays the virtual scene. This is typically the Simulink 3D Animation Viewer unless you have a different viewer set.
Alternatively, you can display the virtual world in a VRML-enabled Web browser.
The browser displays the Simulink 3D Animation HTML page with a link to My first virtual world. The number 8123 is the default Simulink 3D Animation port number. If you set a different port number on your system, enter that number in place of 8123 and restart MATLAB. For more information on the Simulink 3D Animation HTML page, see View Virtual World on Host Computer.
Note If your Web browser is not VRML-enabled, clicking on a virtual world link such as My first virtual world results in a broken link message. The browser cannot display the virtual world. If you get such a message, ensure that the Web browser is properly enabled for VRML with the Blaxxun Contact® plug-in. For details, see Install Blaxxun Contact on Client Computer.
For more information on changing your default viewer, see Set the Default Viewer.