
TVP4020
Programmers Reference Manual
A Gouraud Shaded Triangle
277
Figure D2
Screen aligned trapezoid and flat topped triangle
D2
Initialization
P
ERMEDIA
requires many of its registers to be initialized in a particular
way, regardless of what is to be drawn; for instance, the screen size and
appropriate clipping must be set-up. Normally this only needs to be done
once and for clarity this example assumes that all initialization has
already been done. More details may be found in the chapter on
initialization, chapter §6.
Other state will change occasionally, though not usually on a per
primitive basis, for instance enabling Gouraud shading and depth
buffering. A detailed treatment will be found in later sections of this
chapter, and details are not included here.
D3
Dominant and Subordinate Sides of a Triangle
The dominant side of a triangle is that with the greatest range of Y
values. The choice of dominant side is optional when the triangle is
either flat bottomed or flat topped.
P
ERMEDIA
always draws triangles starting from the dominant edge
towards the subordinate edges. This simplifies the calculation of set-up
parameters as will be seen below.
Dominant
Side
Subordinate
Sides
Dominant
Side
Subordinate
Side
Subordinate
Side
Figure D3
Dominant and Subordinate Sides of a Triangle
Summary of Contents for TVP4020 PERMEDIA 2
Page 1: ...Texas Instruments TVP4020 PERMEDIA 2 Programmer s Reference Manual Issue 4 ...
Page 284: ...TVP4020 Programmers Reference Manual A Gouraud Shaded Triangle 275 ...
Page 292: ...TVP4020 Programmers Reference Manual Register Tables 283 ...
Page 314: ...TVP4020 Programmers Reference Manual Index 305 ...
Page 315: ...Index TVP4020 Programmers Reference Manual 306 Index ...
Page 323: ...Index TVP4020 Programmers Reference Manual 314 ...