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

X3D Example Archives: Conformance Nist, Geometric Properties, Color

X3D Scenes Descriptions
15000colors Test browser ability to apply 15000 normals to an ElevationGrid geometry. A single (+Y) direction normal is applied to all vertices of a flat ElevationGrid. The result is an object that is illuminated when viewed from the top or bottom, and not illuminated when viewed from any side.
blue elevationgrid vertices This file tests the ability of a browser to apply a single blue color to all vertices in an ElevationGrid geometry.
blue indexedfaceset vertices This world tests browser ability to apply a single blue color to an IndexedFaceSet, applying the color to all vertices.
blue indexedlineset vertices This world tests browser ability to apply a single blue color to an IndexedLineSet, applying it to all verticesin the cube.
elevationgrid color first This tests browser ability to prefer the color field of an ElevationGrid node over the diffuseColor field of the Material node, if both are present. A browser should select the color field of an ElevationGrid and produce a red ElevationGrid. A white ElevationGrid indicates failure to prefer the color field.
elevationgrid texture first A browser should select a Material node texture field over the color field of an ElevationGrid, and generate the VTS logo texture on the ElevationGrid surface. A solid red ElevationGrid fails the test.
green pointset This world tests browser ability to apply a single color to all points in a PointSet geometry. A green PointSet Sphere should be visible.
indexedfaceset color first This world tests browser ability to prefer the color field of an IndexedFaceSet over the diffuseColor field of the Material node. A browser should select the color field of an IndexedFaceSet and produce a red IndexedFaceSet sphere. A white sphere indicates failure to prefer the color parameter.
indexedfaceset texture first This world tests browser ability to choose a Material node texture field over the color field of an IndexedFaceSet if both are present. A browser should select a Material node texture field and generate the VTS logo texture on the cube faces. A solid green cube fails the test.
indexedlineset color first This world tests browser ability to prefer the color field of an IndexedLineSet over the diffuseColor field of the Material node, if both are present. A browser should select the color field of an IndexedLineSet and produce a blue IndexedLineset sphere. A white wireframe sphere indicates failure to prefer the color parameter.
multicolor elevationgrid faces A test of browser ability to generate multicolored faces in the ElevationGrid node. Test should generate an ElevationGrid surface with the rear half (in the -Z direction) colored red, and the front half colored green. Exactly 50 % of the face should be red and the other 50% green. Any other percentage, or any other colors fails the test.
multicolor elevationgrid vertices A test of browser ability to generate colored vertices in the ElevationGrid node. Test should generate a red colored rear surface (in the -Z direction), a green middle section, and a front blue section. Each section is 1/3 of the total ElevatioinGrid surface. Colors of faces bordering the red, green and blue areas should be interpolated.
multicolor indexedfaceset faces This world tests browser ability to apply multiple colors to an IndexedFaceSet, with a different color applied to each face. The front face is red, the rear face is green, left is blue, the right face is white, the top face is green, and the bottom is black.
multicolor indexedfaceset vertices A test of browser ability to generate colored vertices in the IndexedLineSet node. Test should generate a wireframe cube, with the front left vertical polyline vertices red, front-righ vertical polyline vertices green, right-rear vertical polyline vertices blue, and left rear vertical polyline vertices white. All other polyline colors should be interpolated colors of their two end points.
multicolor indexedlineset lines This world tests browser ability to apply color to an IndexedLineSet, by applying a colorindex to polylines of a wireframe cube, with the front square consisting of red polylines, the rear square made up of blue polylines, the right square containing green horizontal polylines, and the left square having white horizontal polylines.
multicolor indexedlineset vertices A test of browser ability to generate colored vertices in the IndexedLineSet node. Test should generate a wireframe cube, with the front left vertical polyline vertices red, front-righ vertical polyline vertices green, right-rear vertical polyline vertices blue, and left rear vertical polyline vertices white. All other polyline colors should be interpolated colors of their two end points.
multicolor pointset A test of browser ability to generate colored points in the PointSet node. Test should generate a sphere of points, with the left side consisting of red points, and the right side green points.
pointset color first This world tests browser ability to prefer the color parameter of a PointSet over the emissiveColor parameter of the Material node if both are present. A browser should select the color parameter of a PointSet, instead of the Material node diffuseColor, and produce a green PointSet sphere. A sphere of white points indicates failure to prefer the color parameter.
red elevationgrid faces This world tests browser ability to apply a single color to an ElevationGrid, applying the color red to all faces.
red indexedfaceset faces This world tests browser ability to apply a single color to an IndexedFaceSet, applying the color red to all faces.
red indexedlineset lines This world tests browser ability to apply color to an IndexedLineSet, by applying the color red to all polylines in the cube.

Online at http://www.web3d.org/x3d/content/examples/ConformanceNist/GeometricProperties/Color

Master source code archive is under subversion control at
http://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/ConformanceNist/GeometricProperties/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.