 |
Building 3D Models for the Web
Roll Ball Example |
This example uses a TouchSensor and an interpolator, in particular
PositionInterpolator. These are
described on pages 127-134.
The example allows you to click on a ball and watch it roll along the edge of
a plane.
Roll Ball Example
- Log into one of the SGIs,
cheetah.ma.iup.edu,
jaguar.ma.iup.edu,
leopard.ma.iup.edu, or
puma.ma.iup.edu.
- Change to your public_html directory:
leopard 1% cd public_html
- Copy the example from the ls499 directory and give public read access to
it.
leopard 2% cp /usr/people/ls499/rollball.wrl .
leopard 3% chmod 644 rollball.wrl
- Edit the example, adding the correct routes.
leopard 1% pico rollball.wrl
- View the changes in your Web browser by going to the URL
http://cheetah.ma.iup.edu/~username/rollball.wrl, where username is
replaced by your own username.
- Now click on the ball and watch it roll!
- Now modify your example to make the ball roll along the entire perimeter
and back to its original position.
- If you finish early, see if you can make the ball bounce or have two
balls chase one another around the perimeter.

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