Building 3D Models for the Web

Background Node

Use the Background node so that your VRML worlds don't look like they are lost in space with a black background. You can apply horizontal stripes of color and/or texture maps to the background. Here we wil only look at how to create horizontal bands of color.

Example

Here is an example that shows the sun straight overhead and a dark sky along the horizon.

Exercise

  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/background.wrl .
    leopard 3% chmod 644 background.wrl
  4. Edit the example to create a background that looks like a sunset. You may want to select colors from a table of colors.
    leopard 1% pico background.wrl
  5. View the changes in your Web browser by going to the URL http://cheetah.ma.iup.edu/~username/background.wrl, where username is replaced by your own username.
  6. If you finish this exercise early, try creating a winter sky or a dawn sky.

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