Making WebGates

Creating a WebGate to a VRSpace

In order to allow users to jump from one VRSpace to another, you must create a WebGate. For the purpose of example, say you want to allow people to gate to GameSpace at www.vrspace.org. Each VRSpace runs in its own port, the Nexus' top world runs under the default port of 8500 (see Ports for uploading to the Nexus), and GameSpace runs on port 8503.. The port is really the only info you need to begin. To make the gate, type:

(Note, this command can be used to make any type of VRObject). The server will respond with the id of the new WebGate. An example response is:

You can now use this id, to reference the object and change its properties. To view the properties of this new VRObject, type:

An example response is:

To point this new WebGate to GameSpace at www.vrspace.org, we have to change the dynamicPageURL and the port number. The dynamicPageURL is litterally the url of a jsp page that handles Gating. All we must do is replace localhost with the correct target domain:

Now we set the port:

If you now type /view WebGate 3 again you will say the changed info. Relogin to the server (or /quit ) to see the VrmlFile appear. As you login, you will be presented with a window that let's you set information for your new object. All that you must do is check active, and hit submit. See Building Your First World, for more information on how to move this new object around. You also will probably want to set the name, author and description for the gate:

Creating a WebGate to a General HTML Page

You can actually create WebGate to any HTML page. The only difference is that the dynamicPageURL is the page you want to link to, and the underlying VRML file that handles the gating must be changed. Imagine that above we had wanted users to gate to http://www.somedomain.com/deepMatrix.html. The commands that we type in instead are

You can now set the name, author and description as above.