Claims
- 1. A three-dimensional primitive rendering system, comprising:
- a first register and a second register for storing first and second incremental values of primitive data, respectively;
- a first selector for selecting either an output of the first register or an output of the second register;
- a first adder having a first input which is supplied with an output selected by the first selector and a third register having an input connected to an output of the first adder and an output which is supplied to a second input of the first adder, the first adder and the third register together successively accumulating one of the outputs of the first register or the second register;
- a fourth register and a fifth register for storing first and second incremental values of an evaluation coefficient, respectively;
- second selector for selecting either an output of the fourth register or an output of the fifth register;
- a second adder having a first input which is supplied with an output selected by the second selector and a sixth register having an input connected to an output of the second adder and an output which is supplied to a second input of the second adder, the second adder and the sixth register together successively accumulating one of the outputs of the fourth register or the fifth register;
- a zero detector connected to receive the output of the second adder; and
- a third selector controlled by the zero detector, and supplied with the sign bit from the sixth register and a zero process designation bit from an external source, the third selector outputting one of the sign bit or the zero process designation bit to the first and second selectors to thereby control the selections of the first and second selectors.
- 2. The three-dimensional primitive rendering system as set forth in claim 1, further comprising:
- means for loading the following values into the first, second, fourth and fifth registers when a line or an edge is being rendered from a point A at coordinates (X1,Y1) to a point B at coordinates (X2,Y2):
- first register: 1 (incremental value)
- second register: 0 (incremental value)
- fourth register: 2 .vertline.dy.vertline.-2 .vertline.dx.vertline.
- fifth register: 2 .vertline.dy.vertline.
- where:
- dx=X2-X1;
- dy=Y2-Y1; and
- .vertline.dx.vertline..gtoreq..vertline.dy.vertline..gtoreq.0.
- 3. The three-dimensional primitive rendering system as set forth in claim 1, further comprising:
- means for loading the following values into the first, second, fourth and fifth registers when a side of a triangle is being rendered from a point A at coordinates (X1,Y1) to a point B at coordinates (X2,Y2):
- first register: s+1 (incremental value)
- second register: s (incremental value)
- fourth register: 2 .vertline.dB.vertline.-2 .vertline.dy.vertline.
- fifth register: 2 .vertline.dB.vertline.
- where:
- dx=X2-X1;
- dy=Y2-Y1;
- s=the integer portion of dx divided by dy;
- dB=the remainder portion of dx divided by dy;
- .vertline.dx.vertline..gtoreq.0; and
- .vertline.dy.vertline..gtoreq.0.
Priority Claims (2)
Number |
Date |
Country |
Kind |
3-198713 |
Jul 1991 |
JPX |
|
4-046169 |
Jan 1992 |
JPX |
|
Parent Case Info
This is a continuation of U.S. application Ser. No. 07/906,949 filed on Jun. 30, 1992.
US Referenced Citations (6)
Continuations (1)
|
Number |
Date |
Country |
Parent |
906949 |
Jun 1992 |
|