public class SoVRMLMaterial extends SoVRMLNode
<font color="#0000FF">NOTE:</font> This class does not exist in Open Inventor 10.0 and later.
This section describes the expected behavior of the node in a conforming VRML97 browser application. In some cases, the application is responsible for implementing portions of the expected behavior. Open Inventor viewer classes and IVF classes implement some of the application behaviors.
This section may reference portions of the VRML97 specification that are not present in this help file. The complete VRML97 spec is available at
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:
diffuseColor
reflects all VRML 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.
ambientIntensity
field specifies how much ambient light from light sources this surface should reflect. Ambient light is omnidirectional and depends only on the number of light sources, not their positions with respect to the surface. Ambient color is calculated as ambientIntensity
* diffuseColor
.
specularColor
and shininess
determine the specular highlightsspecularColor
is added to the diffuse and ambient color calculations. Lower shininess values produce soft glows, while higher values result in sharper, smaller highlights.
File format/default:
VRMLMaterial {
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 |
Action behavior:
SoGLRenderAction
, SoCallbackAction
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 |
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoSFFloat |
ambientIntensity
Deprecated.
Specifies how much ambient light from the light sources this surface should reflect.
|
SoSFColor |
diffuseColor
Deprecated.
Diffuse color of the surface.
|
SoSFColor |
emissiveColor
Deprecated.
Emissive color of the surface.
|
SoSFBool |
receiveShadow
Deprecated.
DirectViz parameter.
|
SoSFColor |
reflectiveColor
Deprecated.
DirectViz parameter.
|
SoSFFloat |
shininess
Deprecated.
Shininess coefficient of the surface.
|
SoSFColor |
specularColor
Deprecated.
Specular color of the surface.
|
SoSFFloat |
transparency
Deprecated.
Transparency value of the surface.
|
metadata
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoVRMLMaterial()
Deprecated.
Constructor.
|
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, write
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public final SoSFColor diffuseColor
public final SoSFFloat ambientIntensity
public final SoSFColor specularColor
public final SoSFColor emissiveColor
public final SoSFFloat shininess
public final SoSFFloat transparency
public final SoSFColor reflectiveColor
public final SoSFBool receiveShadow
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com