Surface material definition node. More...
#include <Inventor/VRMLnodes/SoVRMLMaterial.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
SoVRMLMaterial () | |
virtual void | setOverride (const SbBool state) |
virtual SbBool | isOverride () const |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Public Attributes | |
SoSFColor | diffuseColor |
SoSFFloat | ambientIntensity |
SoSFColor | specularColor |
SoSFColor | emissiveColor |
SoSFFloat | shininess |
SoSFFloat | transparency |
SoSFColor | reflectiveColor |
SoSFBool | receiveShadow |
See the VRML97 Specification, below.
NOTE: This class does not exist in Open Inventor 10.0 and later.This section may reference portions of the VRML97 specification that are not present in this help file. The complete VRML97 spec is available at http://www.web3d.org .
The SoVRMLMaterial node specifies surface material properties for associated geometry nodes and are used by the VRML lighting equations during rendering. See "Concepts - Lighting Model" for a detailed description of the VRML lighting model equations.
All of the fields in the SoVRMLMaterial node range from 0.0 to 1.0.
The fields in the SoVRMLMaterial node determine the way light reflects off an object to create color:
ambientIntensity | 0.2 |
diffuseColor | 0.8 0.8 0.8 |
emissiveColor | 0 0 0 |
shininess | 0.2 |
specularColor | 0 0 0 |
transparency | 0 |
metadata | NULL |
reflectiveColor | 0 0 0 |
receiveShadow | FALSE |
SoSFFloat | set_ambientIntensity |
SoSFColor | set_diffuseColor |
SoSFColor | set_emissiveColor |
SoSFFloat | set_shininess |
SoSFColor | set_specularColor |
SoSFFloat | set_transparency |
SoSFNode | set_metadata |
SoSFFloat | ambientIntensity_changed |
SoSFColor | diffuseColor_changed |
SoSFColor | emissiveColor_changed |
SoSFFloat | shininess_changed |
SoSFColor | specularColor_changed |
SoSFFloat | transparency_changed |
SoSFNode | metadata_changed |
SoVRMLMaterial::SoVRMLMaterial | ( | ) |
Constructor.
static SoType SoVRMLMaterial::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoVRMLNode.
virtual SoType SoVRMLMaterial::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoVRMLNode.
virtual SbBool SoVRMLMaterial::isOverride | ( | ) | const [inline, virtual] |
Returns the state of the override field.
Reimplemented from SoNode.
virtual void SoVRMLMaterial::setOverride | ( | const SbBool | state | ) | [inline, virtual] |
Specifies how much ambient light from the light sources this surface should reflect.
Diffuse color of the surface.
Emissive color of the surface.
DirectViz parameter.
Indicates that all the shapes using this material node will receive shadows from other shapes when doing DirectViz rendering. This field has no effect when not doing DirectViz rendering. NOTE: This field is not part of the VRML specification.
NOTE: field available since Open Inventor 6.1DirectViz parameter.
Reflective color of the shape. When set to black, the object is not reflective. The reflective component is added to the overall color of the object. This field has no effect when not doing DirectViz rendering. NOTE: This field is not part of the VRML specification.
NOTE: field available since Open Inventor 6.1Shininess coefficient of the surface.
Values range from 0.0 for no shininess to 1.0 for maximum shininess.
Specular color of the surface.
Transparency value of the surface.
Values range from 0.0 for opaque to 1.0 for completely transparent surfaces.