Table of Contents Previous Chapter Viewpoint Slideshow    Chapter Viewpoint Slideshow Javadoc for translated java source 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

Lights provide virtual illumination that allows objects to be seen.

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

Figure20_04HeadlightSpheres
Figure 20 04 Headlight Spheres.x3d    
[1] Figure20_04HeadlightSpheres.x3d Spheres
[2] Figure20_04HeadlightSpheres.x3d (default X3D view from 0 0 10)

Figure20_05FlatMesh
Figure 20 05 Flat Mesh.x3d    
[3] Figure20_05FlatMesh.x3d Flat mesh
[4] Figure20_05FlatMesh.x3d (default X3D view from 0 0 10)

Figure20_06aPointLightSpheres
Figure 20 06a Point Light Spheres.x3d    
[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)

Figure20_06bPointLightSpheresIntensity
Figure 20 06b Point Light Spheres Intensity.x3d    
[7] Figure20_06bPointLightSpheresIntensity.x3d PointLight at center of spheres. Note that light rays pass through geometry.
[8] Figure20_06bPointLightSpheresIntensity.x3d (default X3D view)

Figure20_07PointLightSpheresAttenuation
Figure 20 07 Point Light Spheres Attenuation.x3d    
[9] Figure20_07PointLightSpheresAttenuation.x3d PointLight at center of spheres. Note that light rays pass through geometry.
[10] Figure20_07PointLightSpheresAttenuation.x3d (default X3D view)

Figure20_08PointLightSpheresSmallRadius
Figure 20 08 Point Light Spheres Small Radius.x3d    
[11] Figure20_08PointLightSpheresSmallRadius.x3d PointLight at center of spheres. Note that light rays pass through geometry.
[12] Figure20_08PointLightSpheresSmallRadius.x3d (default X3D view)

Figure20_09GlowingOrbArchwaysExhibit
Figure 20 09 Glowing Orb Archways Exhibit.x3d    
[13] Figure20_09GlowingOrbArchwaysExhibit.x3d hello orb
[14] Figure20_09GlowingOrbArchwaysExhibit.x3d (default X3D view)

Figure20_10BlinkingRedLightbulb
Figure 20 10 Blinking Red Lightbulb.x3d    
[15] Figure20_10BlinkingRedLightbulb.x3d Blinking red light bulb
[16] Figure20_10BlinkingRedLightbulb.x3d (default X3D view from 0 0 10)

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

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

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

Figure20_13aDirectionalLightSunrise
Figure 20 13a Directional Light Sunrise.x3d    
[23] Figure20_13aDirectionalLightSunrise.x3d Cue the sunrise, stage right
[24] Figure20_13aDirectionalLightSunrise.x3d (default X3D view from 0 0 10)

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

Figure20_13cDirectionalLightSunset
Figure 20 13c Directional Light Sunset.x3d    
[27] Figure20_13cDirectionalLightSunset.x3d Exit sun, stage left
[28] Figure20_13cDirectionalLightSunset.x3d (default X3D view from 0 0 10)

Figure20_14DirectionalLightSunAnimated
Figure 20 14 Directional Light Sun Animated.x3d    
[29] Figure20_14DirectionalLightSunAnimated.x3d Sunlight animation
[30] Figure20_14DirectionalLightSunAnimated.x3d (default X3D view)

Figure20_15aSpotLightSpheres
Figure 20 15a Spot Light Spheres.x3d    
[31] Figure20_15aSpotLightSpheres.x3d SpotLight shining a cone of light rays to right.
[32] Figure20_15aSpotLightSpheres.x3d (default X3D view from 0 0 10)

Figure20_15bWideAngleSpotLightSpheres
Figure 20 15b Wide Angle Spot Light Spheres.x3d    
[33] Figure20_15bWideAngleSpotLightSpheres.x3d SpotLight shining a cone of light rays to right.
[34] Figure20_15bWideAngleSpotLightSpheres.x3d (default X3D view)

Figure20_16SpotLightBeamWidthComparison
Figure 20 16 Spot Light Beam Width Comparison.x3d    
[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)

Figure20_17aSimpleWorldNoShadows
Figure 20 17a Simple World No Shadows.x3d    
[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)

Figure20_17bSimpleWorldFakeShadows
Figure 20 17b Simple World Fake Shadows.x3d    
[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 from 0 0 10)
 

This viewpoint slideshow is online at
http://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter20Lighting/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/Chapter20Lighting/_viewpoints

Table of Contents Previous Chapter Viewpoint Slideshow    Chapter Viewpoint Slideshow Javadoc for translated java source Next Chapter Viewpoint Slideshow X3D Resources