X3D Example Archives: Conformance Nist, Geometric Properties, Color

 

Color node defines a set of RGB color values that apply either to a sibling Coordinate|CoordinateDouble node, or else to a parent ElevationGrid node. Color is only used by ElevationGrid, IndexedFaceSet, IndexedLineSet, LineSet, PointSet, Triangle* and IndexedTriangle* nodes. Hint: colors are often controlled by Material instead.

X3D Tooltips of interest: Color.

X3D Specification sections of interest: 11 Rendering component,, 11.2 Concepts, 11.2.2.2 Geometric properties: Color concepts, 11.3.1 X3DColorNode and 11.4.2 Color.

X3D Examples Archives of related interest:

 
  21 X3D Models       X3D Model Descriptions
   blue_elevationgrid_vertices 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 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 blue indexedlineset vertices This world tests browser ability to apply a single blue color to an IndexedLineSet, applying it to all verticesin the cube.
   colors15000 colors 15000 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.
   elevationgrid_color_first 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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.

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