Virtual Reality Toolbox    
vrworld/open

Open a virtual world

Syntax

Arguments

vrworld_object
Name of a vrworld object representing a virtual world.

Description

The open method changes the associated virtual world from a closed to an opened state. This ensures that the virtual world is loaded into memory and you cannot remove it from memory until you close it. If the input argument is an array of virtual world handles, all the virtual worlds associated with those handles are opened. The virtual world must be open for you to use it. You can close the virtual world by using the method close.

You can call the method open more than once, but you must use an appropriate number of close calls before the virtual world returns to a closed state.

Example

Create two vrworld objects by typing

myworld1 = vrworld('vrmount.wrl')

myworld2 = vrworld('vrpend.wrl')

Next, create an array of virtual world handles by typing

myworlds = [myworld1 myworld2];

open(myworlds) opens both of these virtual worlds.

See Also

vrworld, vrworld/close


  vrworld/nodes vrworld/reload