Basic HTML version of Foils prepared April 6 1997

Foil 150 Shading and Normals

From VRML 2 Basic Concepts and Definitions CPS616 -- Information Track of CPS -- Spring Semester 97. by Zeynep Ozdemir(Geoffrey C. Fox)


The brightness of a face in VRML shape depends on how much it is lit by light in the VRML world. The more a face is oriented toward a light, the more brightly it is shaded by the VRML browser.
  • Surface normal determines the orientation of the surface.
VRML browser measures the angle between the light rays and the normal of the surface and calculates the shading of that surface.
It is also possible to provide the surface normals so that the browser does not spend time to calculate them.
IndexedFaceSet and ElevationGrid node have a normal field. By using a Normal node, it is possible to define these surface normals
  • Normal {
  • vector [] # exposedField MFVec3f
  • }
vector field specifies a list of unit normal vectors that may be used as normals for a shape.



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 Mar 15 1998