Table of Contents Previous Chapter Summary Chapter Viewpoint Slideshow Next Chapter Summary X3D Resources

X3D Example Archives: X3D for Web Authors, Chapter 11 - Lighting Environmental Effects

DirectionalLight Diagram    

Lights illuminate geometry in a scene relative to the user's view. Lighting nodes include DirectionalLight, PointLight, SpotLight, and the active NavigationInfo headlight (which points along the user's viewing direction).

Environmental effects include Background, TextureBackground, Fog and LocalFog. Each set of light nodes, NavigationInfo nodes, background nodes and fog nodes are bound on a separate binding stack, meaning that only one of each can be active at a time.

The supporting Chapter 11 slideset and course videos (NPS, YouTube) for X3D for Web Authors are available online via X3dGraphics.com.

  15 X3D Scenes       Scene Descriptions
Background Colors Only Added a Background node to the KelpForest world.
Background Images Only Simple Background node with images only.
Background Kelp Forest Main Added a Background node to the KelpForest world.
Background Selector Select one of four Background nodes to show a time-of-day effect.
Background Sequencer Select one of four Background nodes to show a time-of-day effect.
Background Time Of Day Interpolate between Background color arrays to show a gradually changing time-of-day effect.
Directional Light An example of the DirectionalLight node showing no shadows on the lit geometry.
Fog - Kelp Forest Main Added fog to the KelpForest world to simulate the typical weather pattern in June in Monterey, CA.
Point Light Two examples of scoped PointLight nodes showing the effects of distance on lit geometry. Faceted IndexedFaceSet is on the left, simple Box on the right.
Point Light Color Example of a PointLight node showing the effect of distance on lighting of geometry.
Spot Light Example SpotLight node showing effects of beamWidth and cutOffAngle
Spot Light Color Example of SpotLight showing effect of varying light colors on appearance
Spot Light Visualization Create outline geometry to show SpotLight coverage. Author TODO: use the X3D-Edit SpotLight editor to modify and re-visualize the first SpotLight.
Texture Background - Kelp Forest Main Added an image panorama with the Background node to the Kelp Forest world.
Texture Background Simple TextureBackground node with images only.

Online at http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter11-LightingEnvironmentalEffects

Validate XHTML 1.1

Master source code archive is under subversion control at
http://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter11-LightingEnvironmentalEffects

Table of Contents Previous Chapter Summary Chapter Viewpoint Slideshow Next Chapter Summary X3D Resources

Also available: current and archived nightly builds and distributions of these examples, all published under an Open-Source License.

The X3D Resources: Examples page and Savage Developers Guide provide more information about the production of this archive.