wobs.scene3d.nodes
Class Material

java.lang.Object
  extended by X3DDefaultNode
      extended by wobs.scene3d.nodes.Material

public class Material
extends X3DDefaultNode

This class contains index constants to access fields in a Material node using the X3DNode.getField(int fieldIndex) method.

In X3D/VRML, the Material node specifies surface material properties for associated geometry nodes and determines how light reflects off an object to create color.


Field Summary
static int ambientIntensity
          The constant used to access the ambientIntensity field of a Material node.
static int diffuseColor
          The constant used to access the diffuseColor field of a Material node.
static int emissiveColor
          The constant used to access the emissiveColor field of a Material node.
static int reflectionMap
          The constant used to access the reflectionMap field of a Material node.
static int shininess
          The constant used to access the shininess field of a Material node.
static int specularColor
          The constant used to access the specularColor field of a Material node.
static int textureOpacity
          The constant used to access the textureOpacity field of a Material node.
static int transparency
          The constant used to access the transparency field of a Material node.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ambientIntensity

public static final int ambientIntensity
The constant used to access the ambientIntensity field of a Material node.
In X3D/VRML, this field specifies the ambient intensity, in the range of 0 to 1. The ambientIntensity field specifies how much ambient light from light sources this surface shall reflect. Ambient light is omni directional and depends only on the number of light sources, not their positions with respect to the surface.

This field is of X3D/VRML-type SFFloat.

See Also:
Constant Field Values

diffuseColor

public static final int diffuseColor
The constant used to access the diffuseColor field of a Material node.
In X3D/VRML, this field specifies the material diffuse color. Colors are specified with hexadecimal values (0xRRGGBB). The diffuseColor field reflects all light sources depending on the angle of the surface with respect to the light source. The more directly the surface faces the light, the more diffuse light reflects.

This field is of X3D/VRML-type SFColor.

See Also:
Constant Field Values

specularColor

public static final int specularColor
The constant used to access the specularColor field of a Material node.
In X3D/VRML, this field specifies the material specular color. Colors are specified with hexadecimal values (0xRRGGBB). The specularColor and shininess fields determine the specular highlights (e.g., the shiny spots on an apple). When the angle from the light to the surface is close to the angle from the surface to the viewer, the specularColor is added to the diffuse and ambient colour calculations. Lower shininess values produce soft glows, while higher values result in sharper, smaller highlights.

This field is of X3D/VRML-type SFColor.

See Also:
Constant Field Values

emissiveColor

public static final int emissiveColor
The constant used to access the emissiveColor field of a Material node.
In X3D/VRML, this field specifies the material emissive color. Colors are specified with hexadecimal values (0xRRGGBB). The emissiveColor field models 'glowing' objects.

This field is of X3D/VRML-type SFColor.

See Also:
Constant Field Values

shininess

public static final int shininess
The constant used to access the shininess field of a Material node.
In X3D/VRML, this field specifies the material shininess, in the range of 0 to 1. Shininess specifies a material specular scattering exponent.

This field is of X3D/VRML-type SFFloat.

See Also:
Constant Field Values

transparency

public static final int transparency
The constant used to access the transparency field of a Material node.
In X3D/VRML, this field specifies the material transparency, in the range of 0 to 1. The transparency field specifies how 'clear' an object is, with 1 being completely transparent, and 0 completely opaque.

This field is of X3D/VRML-type SFFloat.

See Also:
Constant Field Values

reflectionMap

public static final int reflectionMap
The constant used to access the reflectionMap field of a Material node.
This field contains a Texture node that is used for the relfection. This field is WF-3D specific and is not found in X3D/VRML. @see Texture

This field is of X3D/VRML-type SFNode.

See Also:
Constant Field Values

textureOpacity

public static final int textureOpacity
The constant used to access the textureOpacity field of a Material node.
This field specifies the texture opacity, in the range of 0 to 1. The opacity field specifies how 'clear' a texture is, with 0 being completely transparent, and 1 completely opaque. This field is WF-3D specific and is not found in VRML.

This field is of X3D/VRML-type SFFloat.

See Also:
Constant Field Values