HELP! * GREY=local LOCAL HTML version of Foils prepared 7 April 1997

Foil 51 Use of Separator Transform DirectionalLight in Car Demonstration

From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96 and 97. by Geoffrey C. Fox, Alvin Leung, Meryem Ispirli * See also color IMAGE
Addon
First the whole world is specified as one object as this is the rule! (Not enforced)
DEF World Separator { # Name of Scene Graph
This enable the world be used as a component of a larger world. Separator is used as a object wrapper and we will use it to define parts of car later.
Transform { # A 30 degree rotation about x axis
  • rotation 1 0 0 0.52359878
}
DirectionalLight { # Light the Car !
  • on TRUE # Switch it on!
  • intensity 1
  • color 1 1 1 # White
  • direction 1 0 0 # Rays are parallel to rotated x axis
}



Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun May 25 1997