Building 3D Models for the Web

Drag Box Example

This example uses a drag sensor, in particular PlaneSensor. Drag sensors are described on pages 123 ff.

The example allows you to drag a box over a plane.

Drag Box Example

  1. Log into one of the SGIs, cheetah.ma.iup.edu, jaguar.ma.iup.edu, leopard.ma.iup.edu, or puma.ma.iup.edu.
  2. Change to your public_html directory:
    leopard 1% cd public_html
  3. Copy the example from the ls499 directory and give public read access to it.
    leopard 2% cp /usr/people/ls499/dragbox.wrl .
    leopard 3% chmod 644 dragbox.wrl
  4. Edit the example, adding the correct routes.
    leopard 1% pico dragbox.wrl
  5. View the changes in your Web browser by going to the URL http://cheetah.ma.iup.edu/~username/dragbox.wrl, where username is replaced by your own username.
  6. Now drag the box with the mouse.

Maintained by H. Edward Donley <hedonley@grove.iup.edu>
Last Modified Monday, 13-Aug-2001 16:53:26 EDT