Attributes
Attributes
Chen:
[email protected]
"ntialiasing
Polygon Attributes
$
pattern, color, anti-aliasing
Line Attributes
$
type (solid, dashed, dotted), width, cap (butt,
round, suare), !oin (miter, round, etc.),
color, grayscale, anti-aliasing
Copyright @ 2002 by Jim X. Chen:
[email protected]
.".
Copyright @ 2002 by Jim X. Chen:
[email protected]
.#.
PATTERN FILLING (bitmap patterns)
PATTERN FILLING (bitmap patterns)
The 1s & 0s select foreground and background
color, respectively. For transparent mode,
only 1s are written with foreground color.
Anchor the pattern at a verte of a primitive! this choice
allows the pattern to move with the primitive
"enerating patterns while scan#converting, or scan
converting a primitive first into a rectangular work
area, and then copy piels from the rectangular
bitmap to the appropriate space in the background.
Anchor the pattern at the corner of the drawing area!
the pattern does not move with the primitive
Triangle Pattern
Triangle Pattern
glLine0tipple(1, 3$#435)'
gl6nable(-L7L89670:8PPL6)'
0 2 0
2 1 2
0 2 0
Copyright @ 2002 by Jim X. Chen:
[email protected]
.>.
Area sampling (prefiltering)
Area sampling (prefiltering)
,etermine pi$el intensity by calculating the areas of
overlap of each pi$el with the ob!ects to be displayed
consider ,1, ,2, and ,12 as !ectors. 8hen, ,12 is in the direction
of &,1 ) ,2)'(,1
*
.!2
+
, !0
y
.!2
y
, !0
'
.!2
'
( and 9,19 : 9,29 : 9,129.