SilverScreen Solid Modeler

SURFACE_NODE        

SURFACE_NODE        

Previous topic Next topic  

SURFACE_NODE        

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

SURFACE_NODE

 

Structure

A type that holds surface properties used by the rendering system

 

 

 struct SURFACE_NODE

    {

    USINT32         bits;

    int             ambient_diffusion;

    int                   diffusion;

    int                   spectral_intensity;

    int                   spectral_power;

    double               opacity;

    RGB                   spectral_color;

    double               reflection;

    double               reflection_blur;

    RMAN_SHADER    *first_rman_shader;

    } ;

 

 


Members

Member

Description

bits

A bit flag whose values are

 

Constant

Meaning

CASTS_A_SHADOW

If present, the geometry to which this SURFACE_NODE is attached will cast a shadow when rendering with shadows is enabled.

 

ambient_diffusion

A value between 0 and 100 which is multiplied by the ambient lighting term. A value of 0 means that the drawing's ambient light does not contribute, whereas a value of 100 means it contributes fully.

diffusion

A value between 0 and 100 which is multiplied by the diffuse lighting term. The diffuse light term is made up of all the contributions from enabled lights in the drawing. A value of 0 means that the drawing's diffuse light does not contribute and a value of 100 means it contributes fully.

spectral_intensity

A value between 0 and 100 which is multiplied by the spectral lighting term. The spectral lighting is a combination of the spectral color, spectral power, and the angle of a rendered pixel to the angle of view. A value of 0 means that the drawing's spectral light does not contribute, whereas a value of 100 means it contributes fully.

spectral_power

This value controls the strength of the beam of spectral light. A low value creates a beam with a wide field and low intensity. A high value creates a more intense beam. This value is typically kept in the range 0-128.

opacity

A value between 0.0 and 1.0 which controls how transparent (at 0.0) or opaque (at 1.0) a surface is. Not all rendering options support this property.

spectral_color

This color value controls the color of the spectral light contribution.

reflection

A value between 0.0 and 1.0 which controls how reflective a surface is. A value of 0.0 means the surface does not reflect at all, whereas a value of 1.0 means the surface reflects fully (a mirror). Not all rendering options support this property.

freflection_blur

A value between 0.0 and 1.0 which controls the crispness of a reflection. A value of 0.0 produces a crisp reflection, where a value of 1 produces a blurry reflection.

first_rman_shader

This is a pointer to a list of shader definitions used by Renderman-compliant shaders.

 

 

See Also

OBJECT_NODE.

 

Header

silver.h, ssnodes.h