spacer spacer spacer
spacer spacer spacer
spacer
NASA Logo - Jet Propulsion Laboratory    + View the NASA Portal
spacer
JPL Home Earth Solar System Stars & Galaxies Technology
ParVox Parallel Volume Rendering System
ParVox Home ../Images & Animations ParVox Document Download Source PAT Home Section 387 Division 38
spacer
spacer spacer spacer
spacer

vlmaterial


NAME

    vlmaterial -  Set the material properties of a given variable for the lighting model

SYNOPSIS

    #include <parvox.h>

    int vlmaterial(vlvariable *variable, int property, float coef


DESCRIPTION

    vlmaterial() specifies the material properties of a volume variable pointed by variable.  The property could be one of VL_AMBIENT, VL_DIFFUSE, VL_SPECULAR, and VL_SHINENESS.     When property is VL_AMBIENT, coef specifies the ambient intensity reflectance of the material. When property is VL_DIFFUSE, coef specifies the diffulse intensity reflectance of the material.  When property is VL_SPECULAR, coef specifies the specular intensity reflectance of the material.  In all the above three cases, coef is in the range of 0.0 to 1.0.  When property is VL_SHINENESS, coef specifies the specular exponent of the material.  The default values for VL_AMBIENT, VL_DIFFUSE, VL_SPECULAR, and VL_SHINENESS are 0.3, 0.8, 0.5 and 0.35, respectively.   The material properties are used to shade the iso-surfaces for  iso-surface rendering.  Each isosurface has its own color which is defined by vlpick_iso_color. 

SEE ALSO

    vllight, vliso_shade , vlgradient_shade, vlpick_iso_color


 BACK TO INDEX
spacer
spacer spacer spacer
spacer
Privacy / Copyrights FAQ Contact JPL Sitemap
spacer
spacer spacer spacer
spacer
FIRST GOV   NASA Home Page This page, http://pat.jpl.nasa.gov/public/ParVox/API/vlmaterial.html, is maintained by Peggy Li and was last modified Wednesday, 09-Mar-2005 16:44:03 PST
spacer
spacer spacer spacer
spacer spacer spacer
JPL NASA Caltech