Previous Next Up Title Contents Index Functions Index Top Library

SET REFLECTANCE MODEL

PSET_REFL_MODEL


CALL SEQUENCE

void pset_refl_model(
)

PHIGS STATE

(PHOP,*,STOP,*)

EFFECT

A SET REFLECTANCE MODEL element is inserted in the open structure after element pointer or replaces the element indicated by element pointer, depending on edit mode. Element pointer then points to the SET REFLECTANCE MODEL element. The value specified by the parameter is associated with the element.

When an element of this type is interpreted, the current reflectance model entry in the traversal state list is set to the value associated with the element. This value is used when displaying subsequent area defining output primitives when the current reflectance model ASF in the traversal state list is INDIVIDUAL.

The defined values for reflectance model are:

PREFL_MODEL_NO_REFL no reflectance calculation performed

PREFL_MODEL_AMB_REFL ambient reflectance effects produced

PREFL_MODEL_AMB_DIFF_REFL ambient and diffuse reflectance effects produced

PREFL_MODEL_AMB_DIFF_SPEC_REFL ambient, diffuse, and specular reflectance effects produced

When an element of this type is interpreted, if the specified value is not available on a workstation, a value of PREFL_MODEL_NO_REFL is used.

EXTENSION TO THE PHIGS STANDARD

If GPHIGS is in NRS mode, the effect of this function is different from the effect described in the standard.

In NRS mode, (see OPEN PIPE), the element is not stored in a structure. It is sent to the workstation on which the pipe is opened.

ERRORS

5
Ignoring function, function requires state (PHOP,*, STOP,*)

SEE ALSO

fill area, fill area set, fill area set 3 with data, set of fill area sets 3 with data, triangle set 3 with data, triangle strip 3 with data, quadrilateral mesh 3 with data, cell array 3 plus, non-uniform b-spline surface 3, non-uniform b-spline surface 3 with data, open structure, open pipe (ext), inquire current element content, inquire current element type and size, set reflectance properties, set light source state


Previous Next Up Title Contents Index Functions Index Top Library