Basic HTML version of Foils prepared March 4 1998

Foil 152 Color Node

From VRML 2 Basic Concepts and Definitions CPS616 -- Information Track of CPS -- Spring Semester 98. by Zeynep Ozdemir, Rob Baker, Meryem Ispirli, Geoffrey C. Fox

Bakers Example - Color, Instancing, Grouping, Animation, Color Interpolation(Color, Instancing, Grouping, Animation, Color Interpolation)
1 Color {color [] # exposedField MFColor }
2 Each element of color field contains three floating point number to define the RGB color. Elements are indexed beginning from the 0.
3 Points' colors can be set by Color node, by Material node, or both according to the following rules:
  • If none of them specified, all points are black.
  • If only Material node is specified, the colors in the Material node define the colors of each point.
  • If only Color node is specified, the points are colored according to this node's definition.
  • If both of them are specified, then the Material node's diffuseColor and emissiveColor fields are ignored and Color node's definition is used as a color of points while points are shaded using the overall attributes of the Material node such as transparency.

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Nov 29 1998