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

X3D Example Archives: VRML 2 Sourcebook, Chapter 20 - Lighting

[1] Figure20.04HeadlightSpheres.x3d - Spheres
Chapter Viewpoint Slideshow

Figure 20.06b Point Light Spheres Intensity

Figure 20.13a Directional Light Sunrise

By default, you have one light in the scene, attached to your head. For more realism, you can add multiple lights: suns, light bulbs, candles, flashlights, spotlights, firelight. Lights can be positioned, oriented, and colored. Lights do not cast shadows.

There are three types of lights: PointLight, DirectionalLight, and SpotLight. All lights have an on/off, intensity, ambient effect, and color fields. PointLight and SpotLight nodes have a location, radius, and attenuation. DirectionalLight and SpotLight nodes have a direction.

These X3D scenes are adapted directly from the original VRML 2.0 Sourcebook chapter examples. Also available: Introduction to VRML97 SIGGRAPH98 course notes.

20 X3D Scenes      38 Viewpoint Snapshots

Figure 20.04 Headlight Spheres    
  [1] Figure20.04HeadlightSpheres.x3d - Spheres

  [2] Figure20.04HeadlightSpheres.x3d - (default X3D view from 0 0 10)


Figure 20.05 Flat Mesh    
  [3] Figure20.05FlatMesh.x3d - Flat mesh

  [4] Figure20.05FlatMesh.x3d - (default X3D view from 0 0 10)


Figure 20.06a Point Light Spheres    
  [5] Figure20.06aPointLightSpheres.x3d - PointLight at center of spheres. Note that light rays pass through geometry.

  [6] Figure20.06aPointLightSpheres.x3d - (default X3D view from 0 0 10)


Figure 20.06b Point Light Spheres Intensity    
  [7] Figure20.06bPointLightSpheresIntensity.x3d - PointLight at center of spheres. Note that light rays pass through geometry.

  [8] Figure20.06bPointLightSpheresIntensity.x3d - (default X3D view)


Figure 20.07 Point Light Spheres Attenuation    
  [9] Figure20.07PointLightSpheresAttenuation.x3d - PointLight at center of spheres. Note that light rays pass through geometry.

  [10] Figure20.07PointLightSpheresAttenuation.x3d - (default X3D view)


Figure 20.08 Point Light Spheres Small Radius    
  [11] Figure20.08PointLightSpheresSmallRadius.x3d - PointLight at center of spheres. Note that light rays pass through geometry.

  [12] Figure20.08PointLightSpheresSmallRadius.x3d - (default X3D view)


Figure 20.09 Glowing Orb Archways Exhibit    
 [13] Figure20.09GlowingOrbArchwaysExhibit.x3d - hello orb
 [14] Figure20.09GlowingOrbArchwaysExhibit.x3d - (default X3D view)

Figure 20.10 Blinking Red Lightbulb    
 [15] Figure20.10BlinkingRedLightbulb.x3d - Blinking red light bulb
 [16] Figure20.10BlinkingRedLightbulb.x3d - (default X3D view from 0 0 10)

Figure 20.11a Directional Light Aiming Right Through Spheres    
  [17] Figure20.11aDirectionalLightAimingRightThroughSpheres.x3d - DirectionalLight shining parallel rays to right. No location, light source is infinitely distant.

  [18] Figure20.11aDirectionalLightAimingRightThroughSpheres.x3d -


Figure 20.11b Directional Light Aiming Upper Right Through Spheres    
  [19] Figure20.11bDirectionalLightAimingUpperRightThroughSpheres.x3d - DirectionalLight shining parallel rays to right. No location, light source is infinitely distant.

  [20] Figure20.11bDirectionalLightAimingUpperRightThroughSpheres.x3d -


Figure 20.12 Two Directional Lights Aiming Left Right Through Spheres    
  [21] Figure20.12TwoDirectionalLightsAimingLeftRightThroughSpheres.x3d - DirectionalLight shining parallel rays to right. No location, light source is infinitely distant.

  [22] Figure20.12TwoDirectionalLightsAimingLeftRightThroughSpheres.x3d -


Figure 20.13a Directional Light Sunrise    
  [23] Figure20.13aDirectionalLightSunrise.x3d - Cue the sunrise, stage right

  [24] Figure20.13aDirectionalLightSunrise.x3d - (default X3D view)


Figure 20.13b Directional Light Noon    
 [25] Figure20.13bDirectionalLightNoon.x3d - 12 o'clock high without a shadow...
  [26] Figure20.13bDirectionalLightNoon.x3d - (default X3D view from 0 0 10)


Figure 20.13c Directional Light Sunset    
  [27] Figure20.13cDirectionalLightSunset.x3d - Exit sun, stage left

  [28] Figure20.13cDirectionalLightSunset.x3d - (default X3D view)


Figure 20.14 Directional Light Sun Animated    
  [29] Figure20.14DirectionalLightSunAnimated.x3d - Sunlight animation

  [30] Figure20.14DirectionalLightSunAnimated.x3d - (default X3D view)


Figure 20.15a Spot Light Spheres    
  [31] Figure20.15aSpotLightSpheres.x3d - SpotLight shining a cone of light rays to right.

  [32] Figure20.15aSpotLightSpheres.x3d - (default X3D view from 0 0 10)


Figure 20.15b Wide Angle Spot Light Spheres    
  [33] Figure20.15bWideAngleSpotLightSpheres.x3d - SpotLight shining a cone of light rays to right.

  [34] Figure20.15bWideAngleSpotLightSpheres.x3d - (default X3D view)


Figure 20.16 Spot Light Beam Width Comparison    
  [35] Figure20.16SpotLightBeamWidthComparison.x3d - SpotLights shining on meshes, outer cone 45 degrees. Inner cone varies 90 to 45 to 5 degrees.

  [36] Figure20.16SpotLightBeamWidthComparison.x3d - SpotLight beam differences are more pronounced at narrow angles

  [37] Figure20.16SpotLightBeamWidthComparison.x3d - (default X3D view)


Figure 20.17a Simple World No Shadows    
  [38] Figure20.17aSimpleWorldNoShadows.x3d - Simple sphere scene

  [39] Figure20.17aSimpleWorldNoShadows.x3d - Simple sphere scene seen from +X axis

  [40] Figure20.17aSimpleWorldNoShadows.x3d - (default X3D view from 0 0 10)


Figure 20.17b Simple World Fake Shadows    
  [41] Figure20.17bSimpleWorldFakeShadows.x3d - Fake showdows in simple sphere scene

  [42] Figure20.17bSimpleWorldFakeShadows.x3d - Simple sphere scene seen from +X axis

  [43] Figure20.17bSimpleWorldFakeShadows.x3d - (default X3D view)

 

This viewpoint slideshow is online at
http://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter20-Lighting/viewpointSlideshow.html

Validate XHTML 1.1

Viewpoint image version history at
http://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter20-Lighting/_viewpoints

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