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

X3D Example Archives: VRML 2.0 Sourcebook, Chapter 16 - Color

Figure 16.7 Vertex Colored Elevation Grid Mountain

The Color node lists colors to use for the various parts of a geometric shape, providing the value of the color field. Color indexes select colors to use at each vertex. Colors override any accompanying Material node. The colorPerVertex field selects color per line/face/grid square or else color per coordinate.

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

X3D Scenes Descriptions
Figure 16.1 Colored Point Set Scatter Plot A scatter plot with the points colored using colors from a Color node.
Figure 16.2 Colored Lines Plot A line plot with the polylines colored using colors from a Color node.
Figure 16.3 Colored Lines Starburst A star burst of lines colored using colors from a Color node, select second viewpoint for animation.
Figure 16.3 Colored Lines Starburst With Axes A line plot with the polylines colored using colors from a ColorNode.
Figure 16.4 Colored Book Faces A book with its faces individually colored using colors from a ColorNode.
Figure 16.4 Colored Book Faces With Axes A book with its faces individually colored using colors from a Color node.
Figure 16.5 Log Fire Colored Faces A log and fire using faces colored vertex-by-vertex with colors from a ColorNode.
Figure 16.5 Log Fire Colored Faces With Axes A log and fire using faces colored vertex-by-vertex with colors from a Color node.
Figure 16.6 Colored Elevation Grid Checkerboard A checkerboard built using elevation-grid squares and colored using colors from a Color node.
Figure 16.7 Vertex Colored Elevation Grid Mountain A mountain built using ElevationGrid points and colored vertex-by-vertex using colors from a Color node. Compare Figure14.2ElevationGridMountain.x3d, Figure16.7VertexColoredElevationGridMountain.x3d and Figure17.08bTexturedElevationGridMountain.x3d

Online at http://www.web3d.org/x3d/content/examples/Vrml2.0Sourcebook/Chapter16-Color

Master source code archive is under subversion control at
http://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Vrml2.0Sourcebook/Chapter16-Color

Table of Contents Previous Chapter Details Viewpoint Slideshow Next Chapter Details 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.