DoSampleSuper(3D) — Kubota Pacfic Computer Inc. (\*(Dd)
NAME
DoSampleSuper − Create a supersampling camera attribute object for antialiasing
SYNOPSIS
C:
DtObject DoSampleSuper(xsamples, ysamples)
DtInt xsamples;
DtInt ysamples;
FORTRAN:
INTEGER∗4 DOSSPR(XSAMP, YSAMP)
INTEGER∗4 XSAMP
INTEGER∗4 YSAMP
DESCRIPTION
DoSampleSuper creates a supersampling camera attribute object for antialiasing.
Supersampling means that each pixel of an image is subdivided into subpixels, and a shade is computed for each of the subpixels. A filter is then applied to the shades of the subpixels to obtain the final pixel value.
The parameters xsamples and ysamples specify how to divide each pixel into subpixels. For example, DoSampleSuper(2, 3) would mean sample the pixel twice in the x direction, and three times in the y direction, resulting in 6 subpixels.
Pixels will not be subdivided unless the supersampling switch is turned on.
ERRORS
DoSampleSuper will fail if xsamples or ysamples is smaller than 1.
[ERROR - value out of range]
DEFAULTS
The default DoSampleSuper is (2, 2).
SEE ALSO
DoSampleSuperSwitch(3D), DoSampleFilter(3D) DoLocalAntiAliasStyle(3D), DoLocalAntiAliasSwitch(3D)
September 02, 1992