HPUX psbism[3g]

PSBISM(3G) SET BACK INTERIOR SHADING METHOD PSBISM(3G)
NAME
SET BACK INTERIOR SHADING METHOD - creates a CSS element to set the
current back interior shading method entry in the traversal state list
OPERATING STATES
(PHOP, *, STOP, *)
SYNOPSIS
FORTRAN Binding, FORTRAN Syntax:
subroutine psbism(method)
integer*4 method
FORTRAN Binding, C Syntax:
void psbism(method)
int method;
DESCRIPTION
Fortran Binding Input Parameters
method
The back interior shading method to be used when displaying area
defining primitives. Possible values are the following:
1 None. This method is commonly referred to as flat shading or
constant shading. The area of a facet is rendered in one
colour, and this colour is derived from the intrinsic colour.
For this shading method, the intrinsic colour of a facet is the
facet colour, or the current back interior colour if facet
colours are not specified. Vertex colours and vertex normals
are ignored.
2 Colour. This method is commonly referred to as smooth shading,
bilinear shading, or Gouraud shading. For this method to look
better than shading method 1, the application must supply
vertex normal data, vertex colour data, or both. Realized
vertex colours are bilinearly interpolated across each facet
when a facet is rendered.
Note that the above shading methods only apply in a direct
colour environment. See the Discussion section for more
information.
Discussion
This routine creates a CSS element that, when traversed, sets the
current back interior shading method entry in the traversal state
list. HP-PHIGS uses this value when the aspect source flag (ASF) for
the current back interior shading method is set to individual.
HP-PHIGS defines facets for each area defining primitive as follows:
o The whole of a fill area or a fill area set primitive
constitutes one facet.
Hewlett-Packard Company - 1 - HP-PHIGS Release 2.3: October 1992
PSBISM(3G) SET BACK INTERIOR SHADING METHOD PSBISM(3G)
o Each triangle in a triangle strip constitutes one facet.
o Each quadrilateral in a quadrilateral mesh constitutes one
facet.
o Each tessellated sub-area of a non-uniform B-spline surface
constitutes one facet.
The intrinsic colour is the colour of a primitive that is independent
of lighting and shading. It is either a value from the workstation
colour table or a directly specified RGB triplet. The intrinsic
colour is always the current back interior colour.
The back interior shading methods described under the method parameter
only apply in a direct colour environment. In an indexed colour
environment both shading methods use the current back interior colour
and no shading is performed. Use the SET COLOUR ENVIRONMENT ESCAPE
(pue250, pescape_u250) routine to set the colour environment. The
colour environment is indexed by default if the workstation supports
the indexed colour environment; otherwise, the initial colour
environment is direct.
Shading Method Colour (Smooth Shading)
In the following discussion, the term "reflectance calculations"
refers to the calculations enabled by the SET BACK INTERIOR
REFLECTANCE CALCULATIONS (psbire) routine. Reflectance calculations
are disabled by default.
When reflectance calculations are disabled, each realized vertex
colour is the intrinsic colour of the facet which that vertex is
associated with when the facet is being rendered.
When reflectance calculations are enabled, realized vertex colours are
calculated from the normal and colour at each vertex. The colour at
each vertex is obtained as described in the previous paragraph. The
normal at each vertex is that specified by the application. If not
specified, then the normal at each vertex is the facet normal of the
facet which that vertex is associated with when the facet is being
rendered. If facet normals are not specified by the application, then
they are computed based on the geometry of the primitive.
Shading Method None (Flat Shading)
When reflectance calculations are disabled, realized facet colours are
the intrinsic colours of the facets. HP-PHIGS ignores application
supplied vertex normals and vertex colours for this shading method.
When reflectance calculations are enabled, realized facet colours are
calculated from each facet normal and the intrinsic colour of each
facet. If facet normals are not specified by the application, then
Hewlett-Packard Company - 2 - HP-PHIGS Release 2.3: October 1992
PSBISM(3G) SET BACK INTERIOR SHADING METHOD PSBISM(3G)
they are computed based on the geometry of the primitive.
DEFAULTS
The default back interior shading method is 1 (flat shading). If the
specified back interior shading method is not available on a
workstation, HP-PHIGS uses the default.
ERRORS
005 Ignoring function, function requires state (PHOP,*,STOP,*).
SEE ALSO
SET INDIVIDUAL ASF (psiasf, pset_indiv_asf), SET INTERIOR SHADING
METHOD (psism), SET FACE CULLING MODE (psfcm), SET FACE DISTINGUISHING
MODE (psfdm), SET BACK INTERIOR STYLE (psbis), SET BACK INTERIOR STYLE
INDEX (psbisi), SET BACK INTERIOR COLOUR (psbic), SET INTERIOR INDEX
(psii), SET INTERIOR REPRESENTATION PLUS (psirp), SET BACK AREA
PROPERTIES (psbap), SET BACK INTERIOR REFLECTANCE EQUATION (psbire)
Hewlett-Packard Company - 3 - HP-PHIGS Release 2.3: October 1992