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

DirectionalLight Diagram    

Light nodes make the appearance of geometry visible and viewable in a scene.

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 Models       X3D Model Descriptions
   BackgroundColorsOnly BackgroundColorsOnly Added a Background node to the KelpForest world.
   BackgroundImagesOnly BackgroundImagesOnly Simple Background node with images only.
   BackgroundKelpForestMain BackgroundKelpForestMain Added a Background node to the KelpForest world.
   BackgroundSelector BackgroundSelector Select one of four Background nodes to show a time-of-day effect.
   BackgroundSequencer BackgroundSequencer Cycle through four Background nodes to show a time-of-day effect.
   BackgroundTimeOfDay BackgroundTimeOfDay Interpolate between Background color arrays to show a gradually changing time-of-day effect.
   DirectionalLightExample DirectionalLightExample An example of the DirectionalLight node showing no shadows on the lit geometry.
   FogKelpForestMain FogKelpForestMain Added fog to the KelpForest world to simulate the typical weather pattern in June in Monterey, CA.
   PointLightColor PointLightColor Example of a PointLight node showing the effect of distance on lighting of geometry.
   PointLightExample PointLightExample 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.
   SpotLightColor SpotLightColor Example of SpotLight showing effect of varying light colors on appearance
   SpotLightExample SpotLightExample Example SpotLight node showing effects of beamWidth and cutOffAngle
   SpotLightVisualization SpotLightVisualization Create outline geometry to show SpotLight coverage. Author TODO: use the X3D-Edit SpotLight editor to modify and re-visualize the first SpotLight.
   TextureBackgroundExample Simple TextureBackground node with images only.
   TextureBackgroundKelpForestMain TextureBackgroundKelpForestMain Added an image panorama with the Background node to the Kelp Forest world.

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