Basic HTML version of Foils prepared March 4 1998

Foil 136 PointLight Node Fields - II

From VRML 2 Basic Concepts and Definitions CPS616 -- Information Track of CPS -- Spring Semester 98. by Zeynep Ozdemir, Rob Baker, Meryem Ispirli, Geoffrey C. Fox

Definition and Example PointLight for Foil 136(Definition and Example)
color specifies a RGB color for the light.
attenuation field controls how the light source's brightness fades as one moves away from center (position of PointLight) of sphere of influence. For a shape coordinate within this sphere at a distance d from the light's location, the light color brightness at that shape coordinate is determined as follows:
  • attenuatedColor = lightColor/(attenuation[0]+attenuation[1]*d+attenuation[2]*d*d)
  • attenuation[0] controls whether light has a constant brightness within the sphere of illumination.
  • attenuation[1] controls how the light brightness drops off with distance from the light.
  • attenuation[2] controls how the light brightness drops off with the square of distance from the light. (Normal laws of physics)



© 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 Nov 29 1998