Running the Ray-Tracing Example


How to Use the Example

As an example, we provide a simple "compute server" used for ray tracing. A JavaSpacesTM service provides a place for a ray-tracing applet to place parts (or "chunks") of an image that need to be rendered, and for a "worker" applet to look for entries that need to be rendered. The worker(s) will process a chunk, and then return the chunk to the space, so the chunk may be retrieved by the ray-tracing applet.

  1. Start your supporting services, either by using the GUI provided or from the command line.
  2. Bring up two applets, either by using the GUI provided or from the command line:

The Trace Window

When the ray-tracing applet first starts, you will see:

As each piece gets rendered by the worker applet it gets displayed on the screen below.

The Worker Window

The worker window has three buttons:

The taking and returning of tasks from and to the space are monitored on the panel below the buttons.

Copyright © 1999 Sun Microsystems, Inc. All Rights Reserved.