java.net: Wiki

The Source for Java Technology Collaboration


 <<O>>  Difference Topic DownloadAndBuildSource (10 - 30 Jul 2008 - Main.nsimpson)
Line: 1 to 1
 
META TOPICPARENT name="ProjectWonderland"
Home | Changes | Index | Search | Go
<-- This creates the navigation links to :  Home | Help | Index | etc.  -->
Line: 110 to 110
 
Running Project Wonderland
Changed:
<
<
You can run Project Wonderland by using ant targets provided by the build system. If you are debugging Project Wonderland, it is best to open three terminal windows and start the Wonderland server, voice bridge, and Wonderland client in separate terminal windows.
>
>
You run Project Wonderland by using ant targets provided by the build system. Three targets are provided to start the voice bridge, Wonderland server, and the client respectively.

In separate terminals start the voice bridge and server:

 
Added:
>
>
% ant run-bridge
 % ant run-sgs
Added:
>
>
When the server is ready, you should see the following message:
 
Changed:
<
<
% ant run-bridge
>
>
[java] INFO: Wonderland: application is ready
 
Added:
>
>
In another terminal, start the Wonderland client:
 
% ant run
Changed:
<
<
You should see the Wonderland client appear and ask for log in information (you can use an empty password
>
>
The Wonderland client should appear and display a login dialog. Enter your name (you can use an empty password
 by default).

If you'd like to run the smc (server-master client), part of the Wonderland X11 application sharing mechanism,


 <<O>>  Difference Topic DownloadAndBuildSource (9 - 07 Jul 2008 - Main.deronj)
Line: 1 to 1
 
META TOPICPARENT name="ProjectWonderland"
Home | Changes | Index | Search | Go
<-- This creates the navigation links to :  Home | Help | Index | etc.  -->
Line: 242 to 242
 

Downloading the Wonderland X11 Source Code

Changed:
<
<
You only need the X11 sources if you plan to make modifications to it--a binary version is included with the Java sources for normal use. It is extremely rare that you might want to download this source code, but here are the instructions just in case.
>
>
You usually only need the X11 sources if you plan to make modifications to it--a binary version is included with the Java sources for normal use. It is extremely rare that you might want to download this source code, but here are the instructions just in case.

(Note: another situation in which you might need the X11 sources is if you don't have the necessary versions of certain libraries on your system and need to recompile the X11 server to use the versions of the libraries that you do have. For example, right now the binary Xvfb shipped with Wonderland requires the following Ubuntu packages: LibXfont1?, LibXext6?, LibXau6?, LibXdmcp6?, LibXtst6?, LibXi6?). If you are, for example, running on a Red Hat system that doesn't have these versions of these libraries you will need to recompile Xvfb to use the libraries you do have.).

 Wonderland X11 App Sharing uses a special X server known as the "X Remote Window (XRemwin) Server." This server is similar to an VNC server except it handles windows separately. That is, instead of just displaying an entire X desktop inside the virtual world it allows windows to be individually integrated into the virtual world. This allows X windows to be treated as first class objects in the world. For example, these windows can be moved into different locations in the world and do not even have to reside in the same plane. They have complete freedom of movement and orientation.

The source code for XRW resides here. This source code is based on Xorg 7.3. It contains only the Xremwin-specific differences. It contains some entire files, which are new, and also some code fragments which change existing Xorg files. These changes must be applied incrementally to an existing Xorg source code tree. Both Linux and Solaris changes are available. There is a file in the zip bundles called README-XREMWIN which explains how to integrate this code into an Xorg server source base.

Changed:
<
<
You may also obtain the Wonderland XRW source code via gif (available at http://git.or.cz/). The source code for XRW is contained in the Xorg master git repository in a branch called wonderland-dev. To obtain this code, do the following:

% git clone git://anongit.freedesktop.org/git/xorg/xserver 
% cd xserver 
% git checkout wonderland-dev 

Most of the XRW code lies in the directory xserver/hw/vfb. This code is licensed under the MIT License.

>
>
This code is licensed under the MIT License.
 

Other Advanced Configuration Options


 <<O>>  Difference Topic DownloadAndBuildSource (8 - 18 Jun 2008 - Main.jslott)
Line: 1 to 1
 
META TOPICPARENT name="ProjectWonderland"
Home | Changes | Index | Search | Go
<-- This creates the navigation links to :  Home | Help | Index | etc.  -->
Line: 26 to 26
 

Requirements

Added:
>
>
Wonderland is set up as a Netbeans project that includes ant scripts for running the various Wonderland services. If you're using Netbeans you can check out and compile the project directly. If not, you need to install the following tools if not already present on your system:
 
  1. Have Java SE 5 or Java SE 6 installed on your system (See these special instructions if you are running on Mac OS X).
  2. Have ant installed on your system (http://ant.apache.org/).
  3. Have cvs installed on your system (http://www.nongnu.org/cvs/).
  4. Have subversion installed on your system (http://subversion.tigris.org/), if you plan to install the optional add-on modules.
  5. Have an account on java.net. To register for an account, visit: https://www.dev.java.net/servlets/Join
Changed:
<
<
Some developers use IDEs rather than the command-line. These IDEs may come bundled with Java SE 5 (or 6), ant, cvs, and/or subversion. Please check your IDE's documentation on what tools it comes bundled with. If you are using Netbeans, the lg3d-wonderland workspace is setup as a Netbeans project. The Netbeans community has published tutorials on using CVS (here) and Subversion
>
>
Note that although Netbeans comes with ant, it does not add it to your path, if you wish to use the command-line too. If you are using Netbeans, the lg3d-wonderland workspace is setup as a Netbeans project. The Netbeans community has published tutorials on using CVS (here) and Subversion
 (here). You may invoke the ant targets (specified below) directly from Netbeans. For Eclipse users, this tutorial will guide you.

 <<O>>  Difference Topic DownloadAndBuildSource (7 - 18 Jun 2008 - Main.jslott)
Line: 1 to 1
 
META TOPICPARENT name="ProjectWonderland"
Home | Changes | Index | Search | Go
<-- This creates the navigation links to :  Home | Help | Index | etc.  -->
Line: 65 to 65
 add-on modules and include them in the Wonderland client and server software.

You should place your wonderland-modules workspace in the same directory as your

Changed:
<
<
lg3d-wonderland workspace (e.g. ~/Wonderland). Inside of a terminal window:
>
>
lg3d-wonderland workspace (e.g. ~/Wonderland). That is, lg3d-wonderland and wonderland-modules should be sibling directories. Inside of a terminal window:
 
% cd ~/Wonderland

 <<O>>  Difference Topic DownloadAndBuildSource (6 - 18 Jun 2008 - Main.matty_x)
Line: 1 to 1
 
META TOPICPARENT name="ProjectWonderland"
Home | Changes | Index | Search | Go
<-- This creates the navigation links to :  Home | Help | Index | etc.  -->
Line: 49 to 49
 
% cd ~/Wonderland
Added:
>
>
% cvs -d :pserver:@cvs.dev.java.net:/cvs login
 % cvs -d :pserver:@cvs.dev.java.net:/cvs checkout lg3d-wonderland

 <<O>>  Difference Topic DownloadAndBuildSource (5 - 17 Jun 2008 - Main.jslott)
Line: 1 to 1
 
META TOPICPARENT name="ProjectWonderland"
Home | Changes | Index | Search | Go
<-- This creates the navigation links to :  Home | Help | Index | etc.  -->
Changed:
<
<

Download, Configure, Build and Run from the Wonderland Source

>
>

Download, Configure, Build and Run from the Wonderland Source

 
<-- Your JavaDesktop? article goes here. Please try to include at least one sentence describing this topic. -->
<-- Also please try to include at least one sentence describing where each link goes. -->
Line: 11 to 11
 This page describes how to download, configure, build and run Project Wonderland from the source code. Generally only software developers will use Wonderland in this way--to do so, you should be
Changed:
<
<
familiar and comfortable with building open-source software from the command-line using ant.
>
>
familiar and comfortable with building open-source software from the command-line using ant or via an IDE.
 The Project Wonderland source code comes bundled with most of the software you will need, including an up-to-date version of Java 3D and Project Darkstar.
Changed:
<
<

Requirements

>
>

Basic Installation (Most common)

In the basic installation, you will download and compile the most essential elements of Project Wonderland.

Requirements

 
  1. Have Java SE 5 or Java SE 6 installed on your system (See these special instructions if you are running on Mac OS X).
  2. Have ant installed on your system (http://ant.apache.org/).
  3. Have cvs installed on your system (http://www.nongnu.org/cvs/).
Changed:
<
<
  1. Have subversion installed on your system (http://subversion.tigris.org/), if you plan to install the optional add-on -modules.
  2. Have git installed on your system (http://git.or.cz/), if you plan to download the XRemWin source code (optional).
>
>
  1. Have subversion installed on your system (http://subversion.tigris.org/), if you plan to install the optional add-on modules.
 
  1. Have an account on java.net. To register for an account, visit: https://www.dev.java.net/servlets/Join
Changed:
<
<

Download the lg3d-wonderland workspace

>
>
Some developers use IDEs rather than the command-line. These IDEs may come bundled with Java SE 5 (or 6), ant, cvs, and/or subversion. Please check your IDE's documentation on what tools it comes bundled with. If you are using Netbeans, the lg3d-wonderland workspace is setup as a Netbeans project. The Netbeans community has published tutorials on using CVS (here) and Subversion (here). You may invoke the ant targets (specified below) directly from Netbeans. For Eclipse users, this tutorial will guide you.

Download the lg3d-wonderland workspace

 The lg3d-wonderland workspace contains all of the source code and any libraries that Project Wonderland depends upon and is available via cvs. It contains its own ant-based build system.
Line: 40 to 54
 where you should replace <username> with your java.net user name.
Changed:
<
<

Download the lg3d-wonderland-art workspace (optional)

The lg3d-wonderland-art workspace contains all of the compiled artwork resources used in the default (MPK20) world provided with Project Wonderland. This artwork also resides over the Internet at 192.18.37.42, and by default, Project Wonderland will look there to download the resources. You also have the ability (see Configuring Project Wonderland below) to have the client load the artwork resources locally.

Inside a terminal window:

% cd ~/Wonderland
% cvs -d :pserver:<username>@cvs.dev.java.net:/cvs checkout lg3d-wonderland-art

where you should replace <username> with your java.net user name.

Download the wonderland-modules workspace (optional)

>
>

Download the wonderland-modules workspace (optional)

 The wonderland-modules workspace (see http://wonderland-modules.dev.java.net) contains a collection of optional add-on modules--for example, the PDF Viewer, and the audio and video
Line: 75 to 73
 where you should replace <username> with your java.net user name.
Changed:
<
<

Downloading the Wonderland X11 Source Code (Optional)

You only need the X11 sources if you plan to make modifications to it, a binary version is included with the Java sources for normal use.

Wonderland X11 App Sharing uses a special X server known as the "X Remote Window (XRemwin) Server." This server is similar to an VNC server except it handles windows separately. That is, instead of just displaying an entire X desktop inside the virtual world it allows windows to be individually integrated into the virtual world. This allows X windows to be treated as first class objects in the world. For example, these windows can be moved into different locations in the world and do not even have to reside in the same plane. They have complete freedom of movement and orientation.

The source code for XRW resides here. This source code is based on Xorg 7.3. It contains only the Xremwin-specific differences. It contains some entire files, which are new, and also some code fragments which change existing Xorg files. These changes must be applied incrementally to an existing Xorg source code tree. Both Linux and Solaris changes are available. There is a file in the zip bundles called README-XREMWIN which explains how to integrate this code into an Xorg server source base.

You may also obtain the Wonderland XRW source code via gif. The source code for XRW is contained in the Xorg master git repository in a branch called wonderland-dev. To obtain this code, do the following:

% git clone git://anongit.freedesktop.org/git/xorg/xserver 
% cd xserver 
% git checkout wonderland-dev 

Most of the XRW code lies in the directory xserver/hw/vfb. This code is licensed under the MIT License.

Configuring Project Wonderland

>
>

Configuring Project Wonderland

 The Project Wonderland software should require little configuration, if any at all. The configuration options are stored within a properties file within the lg3d-wonderland
Line: 101 to 81
 build.properties file.

You can override any of these properties by creating a my.build.properties file in the

Changed:
<
<
lg3d-wonderland directory. Each entry is a key=value pair. The following describes some of properties that are commonly customized.
>
>
lg3d-wonderland directory. Each entry is a key=value pair.
 
Changed:
<
<
sgs.host
>
>
sgs.host
 If you plan on running the Wonderland server on the same machine as the Wonderland client (for example, for testing purposes), you may leave this property as-is. Otherwise, you
Line: 115 to 94
 sgs.host=18.203.0.46
Changed:
<
<
wonderland.wfs.root
>
>
Building Project Wonderland
 
Changed:
<
<
This property sets the URL of the location of the WFS that describes the world. By default, it is set to file:${src.dir}/worlds/default-wfs, where {src.dir} is typically _lg3d-wonderland/src. If you wish your world to be created from your own WFS, modify this property, for example:
>
>
You can build the Project Wonderland source code (and the optional add-on modules if you chose to download the wonderland-modules workspace) by running the ant command in a terminal window:
 
Changed:
<
<
wonderland.wfs.root=file:~/my-wfs
>
>
% ant
 
Changed:
<
<
on Linux/Unix/Mac OS X and
>
>
Running Project Wonderland

You can run Project Wonderland by using ant targets provided by the build system. If you are debugging Project Wonderland, it is best to open three terminal windows and start the Wonderland server, voice bridge, and Wonderland client in separate terminal windows.

 
Changed:
<
<
wonderland.wfs.root=file://C:\my-wfs
>
>
% ant run-sgs
% ant run-bridge
% ant run
 
Changed:
<
<
on Windows.
>
>
You should see the Wonderland client appear and ask for log in information (you can use an empty password by default).

If you'd like to run the smc (server-master client), part of the Wonderland X11 application sharing mechanism, you can run the following script from the lg3d-wonderland directory in a fourth terminal window:

 
Deleted:
<
<
Or if your WFS is located over the Internet inside an archive file:
 
Changed:
<
<
wonderland.wfs.root=http://my.server.com/my-wfs.jar
>
>
% ./src/scripts/runsmc
 
Changed:
<
<
wonderland.art.url.base
>
>
Note that the smc can only be run on either Solaris or Linux systems.

Finally, if you wish to run all of the server components (the Wonderland server, the voice bridge, and the smc) all at once, rather than starting them separately as above, from a single terminal window within the lg3d-wonderland directory:

% ./src/scripts/server.sh

This script takes ~1 min to run and returns you to the prompt when complete. It automatically creates log files in the lg3d-wonderland directory for the Wonderland server, voice bridge, and smc (named wonderland-sgs.log, wonderland-bridge.log, and wonderland-smc.log, respectively).


Advanced Installation and Configuration

The following set of configuration steps are not required to get the Project Wonderland software up and running--they are optional and typically only advanced users would need to take these additional steps.

Download the lg3d-wonderland-art workspace

The lg3d-wonderland-art workspace contains all of the compiled artwork resources used in the default (MPK20) world provided with Project Wonderland. This artwork also resides over the Internet at 192.18.37.42, and by default, Project Wonderland will look there to download the resources. You also have the ability to have the client load the artwork resources locally.

You may wish to download the artwork if you plan to host the artwork that comes with Project Wonderland yourself (e.g. if you are behind a firewall and can't access the public art web server), or if you plan on creating new worlds that include the Project Wonderland artwork along with your own, new art.

Inside a terminal window:

% cd ~/Wonderland
% cvs -d :pserver:<username>@cvs.dev.java.net:/cvs checkout lg3d-wonderland-art

where you should replace <username> with your java.net user name.

Configuration for Different Artwork Repositories

wonderland.art.url.base

 By default, each Wonderland client looks for artwork resources in a repository located at http://192.18.37.42/trunk/lg3d-wonderland-art/compiled_models. If you wish to use another
Changed:
<
<
repository, perhaps hosted by a web server on your own machine, override this property.
>
>
repository, perhaps hosted by a web server on your own machine, override this property in a my.build.properties file.
 For example,
Line: 152 to 187
 Note that the wonderland.useLocalArt must be set to false in order for Wonderland to look for art remotely.
Changed:
<
<
wonderland.useLocalArt and wonderland.art.url.local
>
>
wonderland.useLocalArt and wonderland.art.url.local
 When used in conjunction, these two parameters can be used to instruct Wonderland to
Changed:
<
<
use resources located locally. To use local artwork resources, first set the wonderland.useLocalArt
>
>
use resources located locally (i.e. on local disk). To use local artwork resources, first set the wonderland.useLocalArt
 property to true and set the wonderland.art.url.local property to the URL of the local artwork. By default, wonderland.art.url.local is set to ${wonderland.art.dir}/compiled_models, which is the lg3d-wonderland-art workspace if you chose to download it.
Line: 175 to 210
 on Windows.
Changed:
<
<
Building Project Wonderland
>
>

Load your own world in Project Wonderland

 
Changed:
<
<
You can build the Project Wonderland source code (and the optional add-on modules if you chose to download the wonderland-modules workspace) by running the ant command in a terminal window:
>
>
If you wish to create your own custom world (see Blender Import tutorial and the WFS tutorial), you may set the wonderland.wfs.root property in your my.build.properties file. This property sets the URL of the location of the WFS that describes the world. By default, it is set to file:${src.dir}/worlds/default-wfs, where {src.dir} is typically lg3d-wonderland/src. This contains a demonstration world provided with Project Wonderland. If you wish your world to be created from your own WFS, modify this property, for example:
 
Changed:
<
<
% ant
>
>
wonderland.wfs.root=file:~/my-wfs
 
Changed:
<
<
Running Project Wonderland

You can run Project Wonderland by using ant targets provided by the build system. If you are debugging Project Wonderland, it is best to open three terminal windows and start the Wonderland server, voice bridge, and Wonderland client in separate terminal windows.

>
>
on Linux/Unix/Mac OS X and
 
Deleted:
<
<
In one terminal:
 
Changed:
<
<
% ant run-sgs
>
>
wonderland.wfs.root=file://C:\my-wfs
 
Changed:
<
<
in a second terminal:
% ant run-bridge
>
>
on Windows.
 
Changed:
<
<
In a third terminal:
>
>
Or if your WFS is located over the Internet inside an archive file:
 
Changed:
<
<
% ant run
>
>
wonderland.wfs.root=http://my.server.com/my-wfs.jar
 
Changed:
<
<
You should see the Wonderland client appear and ask for log in information (you can use an empty password by default).
>
>

Downloading the Wonderland X11 Source Code

 
Changed:
<
<
If you'd like to run the smc (server-master client), part of the Wonderland X11 application sharing mechanism, you can run the following script from the lg3d-wonderland directory in a fourth terminal window:
>
>
You only need the X11 sources if you plan to make modifications to it--a binary version is included with the Java sources for normal use. It is extremely rare that you might want to download this source code, but here are the instructions just in case.
 
Changed:
<
<
% ./src/scripts/runsmc
>
>
Wonderland X11 App Sharing uses a special X server known as the "X Remote Window (XRemwin) Server." This server is similar to an VNC server except it handles windows separately. That is, instead of just displaying an entire X desktop inside the virtual world it allows windows to be individually integrated into the virtual world. This allows X windows to be treated as first class objects in the world. For example, these windows can be moved into different locations in the world and do not even have to reside in the same plane. They have complete freedom of movement and orientation.
 
Changed:
<
<
Note that the smc can only be run on either Solaris or Linux systems.
>
>
The source code for XRW resides here. This source code is based on Xorg 7.3. It contains only the Xremwin-specific differences. It contains some entire files, which are new, and also some code fragments which change existing Xorg files. These changes must be applied incrementally to an existing Xorg source code tree. Both Linux and Solaris changes are available. There is a file in the zip bundles called README-XREMWIN which explains how to integrate this code into an Xorg server source base.
 
Changed:
<
<
Finally, if you wish to run all of the server components (the Wonderland server, the voice bridge, and the smc) all at once, rather than starting them separately as above, from a single terminal window within the lg3d-wonderland directory:
>
>
You may also obtain the Wonderland XRW source code via gif (available at http://git.or.cz/). The source code for XRW is contained in the Xorg master git repository in a branch called wonderland-dev. To obtain this code, do the following:
 
Changed:
<
<
% ./src/scripts/server.sh
>
>
% git clone git://anongit.freedesktop.org/git/xorg/xserver % cd xserver % git checkout wonderland-dev
 
Changed:
<
<
This script takes ~1 min to run and returns you to the prompt when complete. It automatically creates log files in the lg3d-wonderland directory for the Wonderland server, voice bridge, and smc (named wonderland-sgs.log, wonderland-bridge.log, and wonderland-smc.log, respectively).
>
>
Most of the XRW code lies in the directory xserver/hw/vfb. This code is licensed under the MIT License.

Other Advanced Configuration Options

For other more advanced configuration options for Project Wonderland, please see the following tutorials:

 
Changed:
<
<
Where to Next?
>
>

Where to Next?

 Once you have downloaded, configured, compiled, and ran Project Wonderland from the source code, you can explore the default world provided with the distribution. To learn how to navigate and use the features
Changed:
<
<
of Wonderland, read the User's Guide and also this Quick Reference Sheet.
>
>
of Wonderland, read the User's Guide and also this Quick Reference Sheet.
 
Changed:
<
<
If you are ready to develop content or extend Project Wonderland, visit the Project Wonderland Wiki
>
>
If you are ready to develop content or extend Project Wonderland, visit the Project Wonderland Wiki
 for detailed documentation. \ No newline at end of file

 <<O>>  Difference Topic DownloadAndBuildSource (4 - 03 Jun 2008 - Main.PaulByrne)
Line: 1 to 1
 
META TOPICPARENT name="ProjectWonderland"
Home | Changes | Index | Search | Go
<-- This creates the navigation links to :  Home | Help | Index | etc.  -->
Line: 75 to 75
 where you should replace <username> with your java.net user name.
Changed:
<
<

Downloading the Wonderland X11 Source Code

>
>

Downloading the Wonderland X11 Source Code (Optional)

You only need the X11 sources if you plan to make modifications to it, a binary version is included with the Java sources for normal use.

 Wonderland X11 App Sharing uses a special X server known as the "X Remote Window (XRemwin) Server." This server is similar to an VNC server except it handles windows separately. That is, instead of just displaying an entire X desktop inside the virtual world it allows windows to be individually integrated into the virtual world. This allows X windows to be treated as first class objects in the world. For example, these windows can be moved into different locations in the world and do not even have to reside in the same plane. They have complete freedom of movement and orientation.

 <<O>>  Difference Topic DownloadAndBuildSource (3 - 03 Jun 2008 - Main.jslott)
Line: 1 to 1
 
META TOPICPARENT name="ProjectWonderland"
Home | Changes | Index | Search | Go
<-- This creates the navigation links to :  Home | Help | Index | etc.  -->
Line: 18 to 18
 

Requirements

Changed:
<
<
  1. Have Java SE 5 or Java SE 6 installed on your system (See these special instructions? if you are running on Mac OS X).
>
>
  1. Have Java SE 5 or Java SE 6 installed on your system (See these special instructions if you are running on Mac OS X).
 
  1. Have ant installed on your system (http://ant.apache.org/).
  2. Have cvs installed on your system (http://www.nongnu.org/cvs/).
  3. Have subversion installed on your system (http://subversion.tigris.org/), if you plan to install the optional add-on -modules.
Added:
>
>
  1. Have git installed on your system (http://git.or.cz/), if you plan to download the XRemWin source code (optional).
 
  1. Have an account on java.net. To register for an account, visit: https://www.dev.java.net/servlets/Join

Download the lg3d-wonderland workspace

Line: 74 to 75
 where you should replace <username> with your java.net user name.
Added:
>
>

Downloading the Wonderland X11 Source Code

Wonderland X11 App Sharing uses a special X server known as the "X Remote Window (XRemwin) Server." This server is similar to an VNC server except it handles windows separately. That is, instead of just displaying an entire X desktop inside the virtual world it allows windows to be individually integrated into the virtual world. This allows X windows to be treated as first class objects in the world. For example, these windows can be moved into different locations in the world and do not even have to reside in the same plane. They have complete freedom of movement and orientation.

The source code for XRW resides here. This source code is based on Xorg 7.3. It contains only the Xremwin-specific differences. It contains some entire files, which are new, and also some code fragments which change existing Xorg files. These changes must be applied incrementally to an existing Xorg source code tree. Both Linux and Solaris changes are available. There is a file in the zip bundles called README-XREMWIN which explains how to integrate this code into an Xorg server source base.

You may also obtain the Wonderland XRW source code via gif. The source code for XRW is contained in the Xorg master git repository in a branch called wonderland-dev. To obtain this code, do the following:

% git clone git://anongit.freedesktop.org/git/xorg/xserver 
% cd xserver 
% git checkout wonderland-dev 

Most of the XRW code lies in the directory xserver/hw/vfb. This code is licensed under the MIT License.

 

Configuring Project Wonderland

The Project Wonderland software should require little configuration, if any at all. The

Line: 190 to 207
 You should see the Wonderland client appear and ask for log in information (you can use an empty password by default).
Added:
>
>
If you'd like to run the smc (server-master client), part of the Wonderland X11 application sharing mechanism, you can run the following script from the lg3d-wonderland directory in a fourth terminal window:

% ./src/scripts/runsmc

Note that the smc can only be run on either Solaris or Linux systems.

Finally, if you wish to run all of the server components (the Wonderland server, the voice bridge, and the smc) all at once, rather than starting them separately as above, from a single terminal window within the lg3d-wonderland directory:

% ./src/scripts/server.sh

This script takes ~1 min to run and returns you to the prompt when complete. It automatically creates log files in the lg3d-wonderland directory for the Wonderland server, voice bridge, and smc (named wonderland-sgs.log, wonderland-bridge.log, and wonderland-smc.log, respectively).

 
Where to Next?

Once you have downloaded, configured, compiled, and ran Project Wonderland from the source code, you


 <<O>>  Difference Topic DownloadAndBuildSource (2 - 22 May 2008 - Main.jslott)
Line: 1 to 1
 
META TOPICPARENT name="ProjectWonderland"
Home | Changes | Index | Search | Go
<-- This creates the navigation links to :  Home | Help | Index | etc.  -->
Line: 8 to 8
 
<-- Also please try to include at least one sentence describing where each link goes. -->
<-- Please make sure some other page points to your new article so that others can find it! -->
<-- For more on how to write Javapedia articles please read the WritingArticles? page. -->
\ No newline at end of file
Added:
>
>
This page describes how to download, configure, build and run Project Wonderland from the source code. Generally only software developers will use Wonderland in this way--to do so, you should be familiar and comfortable with building open-source software from the command-line using ant.

The Project Wonderland source code comes bundled with most of the software you will need, including an up-to-date version of Java 3D and Project Darkstar.

Requirements

  1. Have Java SE 5 or Java SE 6 installed on your system (See these special instructions? if you are running on Mac OS X).
  2. Have ant installed on your system (http://ant.apache.org/).
  3. Have cvs installed on your system (http://www.nongnu.org/cvs/).
  4. Have subversion installed on your system (http://subversion.tigris.org/), if you plan to install the optional add-on -modules.
  5. Have an account on java.net. To register for an account, visit: https://www.dev.java.net/servlets/Join

Download the lg3d-wonderland workspace

The lg3d-wonderland workspace contains all of the source code and any libraries that Project Wonderland depends upon and is available via cvs. It contains its own ant-based build system. This tutorial assumes you will place this workspace inside of a directory named ~/Wonderland, although you are free to place it anywhere. To download the source, inside a terminal window from your home directory, after you have created the Wonderland subdirectory:

% cd ~/Wonderland
% cvs -d :pserver:<username>@cvs.dev.java.net:/cvs checkout lg3d-wonderland

where you should replace <username> with your java.net user name.

Download the lg3d-wonderland-art workspace (optional)

The lg3d-wonderland-art workspace contains all of the compiled artwork resources used in the default (MPK20) world provided with Project Wonderland. This artwork also resides over the Internet at 192.18.37.42, and by default, Project Wonderland will look there to download the resources. You also have the ability (see Configuring Project Wonderland below) to have the client load the artwork resources locally.

Inside a terminal window:

% cd ~/Wonderland
% cvs -d :pserver:<username>@cvs.dev.java.net:/cvs checkout lg3d-wonderland-art

where you should replace <username> with your java.net user name.

Download the wonderland-modules workspace (optional)

The wonderland-modules workspace (see http://wonderland-modules.dev.java.net) contains a collection of optional add-on modules--for example, the PDF Viewer, and the audio and video recorder--for Project Wonderland. The source for these add-on modules is available via a subversion workspace. If you place the wonderland-modules workspace in the proper location (as shown below), the lg3d-wonderland workspace will know how to compile these add-on modules and include them in the Wonderland client and server software.

You should place your wonderland-modules workspace in the same directory as your lg3d-wonderland workspace (e.g. ~/Wonderland). Inside of a terminal window:

% cd ~/Wonderland
% svn checkout https://wonderland-modules.dev.java.net/svn/wonderland-modules/trunk wonderland-modules --username <username>

where you should replace <username> with your java.net user name.

Configuring Project Wonderland

The Project Wonderland software should require little configuration, if any at all. The configuration options are stored within a properties file within the lg3d-wonderland directory. The comprehensive list of properties and default values are stored within the build.properties file.

You can override any of these properties by creating a my.build.properties file in the lg3d-wonderland directory. Each entry is a key=value pair. The following describes some of properties that are commonly customized.

sgs.host

If you plan on running the Wonderland server on the same machine as the Wonderland client (for example, for testing purposes), you may leave this property as-is. Otherwise, you should set the IP address of your server.

For example,

sgs.host=18.203.0.46

wonderland.wfs.root

This property sets the URL of the location of the WFS that describes the world. By default, it is set to file:${src.dir}/worlds/default-wfs, where {src.dir} is typically _lg3d-wonderland/src. If you wish your world to be created from your own WFS, modify this property, for example:

wonderland.wfs.root=file:~/my-wfs

on Linux/Unix/Mac OS X and

wonderland.wfs.root=file://C:\my-wfs

on Windows.

Or if your WFS is located over the Internet inside an archive file:

wonderland.wfs.root=http://my.server.com/my-wfs.jar

wonderland.art.url.base

By default, each Wonderland client looks for artwork resources in a repository located at http://192.18.37.42/trunk/lg3d-wonderland-art/compiled_models. If you wish to use another repository, perhaps hosted by a web server on your own machine, override this property.

For example,

wonderland.art.url.base=http://127.0.0.1/my_models

Note that the wonderland.useLocalArt must be set to false in order for Wonderland to look for art remotely.

wonderland.useLocalArt and wonderland.art.url.local

When used in conjunction, these two parameters can be used to instruct Wonderland to use resources located locally. To use local artwork resources, first set the wonderland.useLocalArt property to true and set the wonderland.art.url.local property to the URL of the local artwork. By default, wonderland.art.url.local is set to ${wonderland.art.dir}/compiled_models, which is the lg3d-wonderland-art workspace if you chose to download it.

For example,

wonderland.useLocalArt=true
wonderland.art.url.local=file:~/my-models/compiled_models

on Linux/Unix/Mac OS X and

wonderland.useLocalArt=true
wonderland.art.url.local="file://C:\my-models\compiled_models

on Windows.

Building Project Wonderland

You can build the Project Wonderland source code (and the optional add-on modules if you chose to download the wonderland-modules workspace) by running the ant command in a terminal window:

% ant

Running Project Wonderland

You can run Project Wonderland by using ant targets provided by the build system. If you are debugging Project Wonderland, it is best to open three terminal windows and start the Wonderland server, voice bridge, and Wonderland client in separate terminal windows.

In one terminal:

% ant run-sgs

in a second terminal:

% ant run-bridge

In a third terminal:

% ant run

You should see the Wonderland client appear and ask for log in information (you can use an empty password by default).

Where to Next?

Once you have downloaded, configured, compiled, and ran Project Wonderland from the source code, you can explore the default world provided with the distribution. To learn how to navigate and use the features of Wonderland, read the User's Guide and also this Quick Reference Sheet.

If you are ready to develop content or extend Project Wonderland, visit the Project Wonderland Wiki for detailed documentation.


 <<O>>  Difference Topic DownloadAndBuildSource (1 - 21 May 2008 - Main.jslott)
Line: 1 to 1
Added:
>
>
META TOPICPARENT name="ProjectWonderland"
Home | Changes | Index | Search | Go
<-- This creates the navigation links to :  Home | Help | Index | etc.  -->

Download, Configure, Build and Run from the Wonderland Source

<-- Your JavaDesktop? article goes here. Please try to include at least one sentence describing this topic. -->
<-- Also please try to include at least one sentence describing where each link goes. -->
<-- Please make sure some other page points to your new article so that others can find it! -->
<-- For more on how to write Javapedia articles please read the WritingArticles? page. -->

Topic DownloadAndBuildSource . { View | Diffs r10 < r9 < r8 < r7 | More }
 XML java.net RSS