JPS6380374A - Polygon painting-out device - Google Patents

Polygon painting-out device

Info

Publication number
JPS6380374A
JPS6380374A JP22514186A JP22514186A JPS6380374A JP S6380374 A JPS6380374 A JP S6380374A JP 22514186 A JP22514186 A JP 22514186A JP 22514186 A JP22514186 A JP 22514186A JP S6380374 A JPS6380374 A JP S6380374A
Authority
JP
Japan
Prior art keywords
data
register
addition
linear interpolation
contents
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP22514186A
Other languages
Japanese (ja)
Other versions
JPH0754551B2 (en
Inventor
Tomoaki Ueda
智章 上田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Daikin Industries Ltd
Original Assignee
Daikin Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Daikin Industries Ltd filed Critical Daikin Industries Ltd
Priority to JP22514186A priority Critical patent/JPH0754551B2/en
Publication of JPS6380374A publication Critical patent/JPS6380374A/en
Priority to US07/759,657 priority patent/US5167018A/en
Publication of JPH0754551B2 publication Critical patent/JPH0754551B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To considerably simplify the constitution by supplying contents of a register, where contents of the first storage device where an initial value or an accumulated value is stored are held, to a line describing part in case of line interpolation of two sides selected on the basis of coordinate data. CONSTITUTION:Initial value data or accumulated value data is read out from a multiport register file 1 and a register file 2, and increment value data is read out, and data is outputted from a pipeline register 3 to a line describing part 7, and addition is performed by an adding circuit 5. The addition result is stored in the register file 1 successively with delay of one operation time for each coordinate data. All data are simultaneously obtained as the whole in this manner, and obtained data are successively supplied to the line describing part 7 to perform the line interpolating operation and interpolated data transmission in a time approximating the conventional operation time, and the constitution is considerably simplified.

Description

【発明の詳細な説明】 〈産業上の利用分野〉 この発明は多角形ぬりつぶし装置に関し、さらに詳細に
いえば、ホストコンピュータから供給される座標データ
に基いて選択される2本の辺を直線補間する直線補間部
と、直線補間されたデータに基いて直線描画データを生
成する直線描画部とを有する多角形ぬりつぶし装置に関
する。
[Detailed Description of the Invention] <Industrial Application Field> The present invention relates to a polygon coloring device, and more specifically, a device for linearly interpolating two sides selected based on coordinate data supplied from a host computer. The present invention relates to a polygon filling device having a linear interpolation unit that generates linear drawing data based on linearly interpolated data.

〈従来の技術〉 従来からグラフィックディスプレイ装置においては多角
形ぬりつぶし機能が必須であり、第5図に示すように、
多数の除算回路、および加算回路から構成される直線補
間部と、直線補間部により得られたデータに基いて直線
描画を行なうための直線描画部とを有する多角形ぬりつ
ぶし装置が組込まれていた。
<Prior Art> A polygon coloring function has traditionally been essential in graphic display devices, and as shown in FIG.
A polygon filling device was incorporated, which included a linear interpolation section composed of a large number of division circuits and addition circuits, and a straight line drawing section for drawing a straight line based on data obtained by the linear interpolation section.

さらに詳細に説明すると、上記直線補間部は、2本の辺
に対してそれぞれX方向、y方向、2方向、■方向の補
間を行なわせるべく、合計8個の除算回路と、各除算回
路からの出力データを入力とする加算回路とを有し、上
記両辺について、それぞれX方向、X方向、2方向、1
方向の直線補間を同時に行なわせるようにしている。
To explain in more detail, the linear interpolation section has a total of 8 division circuits and a total of 8 division circuits in order to perform interpolation in the X direction, y direction, 2 directions, and ■ direction for each of the two sides. and an adder circuit which inputs the output data of
Directional linear interpolation is performed at the same time.

また、上記直線描画部は、上記直線補間部により得られ
たデータを入力とする3個の除算回路と、各除算回路か
らの出力データを入力とする加算回路とを有しており、
上記直線補間部により得られた各辺の補間データに基い
て描画すべき線分に対応する多数のピクセルデータを生
成し、描画メモリに供給するようにしている。
Further, the linear drawing section has three division circuits that input the data obtained by the linear interpolation section, and an addition circuit that inputs the output data from each division circuit,
A large number of pixel data corresponding to the line segment to be drawn is generated based on the interpolated data for each side obtained by the linear interpolation section, and is supplied to the drawing memory.

したがって、2本の辺についての直線補間動作を高速に
行なうことができ、その後、補間データに基いて描画す
べき線分に対応する多数のピクセルデータを生成するこ
とができる。
Therefore, a linear interpolation operation for two sides can be performed at high speed, and then a large number of pixel data corresponding to a line segment to be drawn can be generated based on the interpolation data.

尚、テクスチャマツピング機能を達成する場合には、テ
クスチャ平面に対応する直線補間部、および直線描画部
とを追加すればよく、また、セクショニング機能を達成
する場合には、各直線補間部に切断面境界値補間部を追
加すればよい。
Note that to achieve the texture mapping function, it is sufficient to add a linear interpolation section and a linear drawing section corresponding to the texture plane, and to achieve the sectioning function, it is sufficient to add a linear interpolation section and a linear drawing section corresponding to the texture plane. All you need to do is add a surface boundary value interpolator.

〈発明が解決しようとする問題点〉 上記の構成の多角形ぬりつぶし装置においては、直線補
間部が多数の除算回路と加算回路とで構成されているた
め、構成が複雑化するという問題があるとともに、上記
のように複雑化した直線補間部の使用頻度が、直線描画
部の使用頻度よりも著しく低いという問題がある。
<Problems to be Solved by the Invention> In the polygon coloring device having the above configuration, there is a problem that the linear interpolation section is composed of a large number of division circuits and addition circuits, which makes the configuration complicated. However, there is a problem in that the frequency of use of the linear interpolation section, which has become complicated as described above, is significantly lower than the frequency of use of the linear drawing section.

さらに詳細に説明すると、例えば、1ポリゴンを20X
20画素の正方形であると仮定した場合には、1ポリゴ
ンを処理するために必要な演算は、直線捕間部において
平均25回の加算動作と、1乃至2回の除算動作が行な
われるのに対して、直線描画部においては400回の加
算動作と、平均25回の除算動作が行なわれるのであり
、直線補間部の使用頻度が直線描画部の使用頻度と比較
して著しく低いことになる。そして、上記のように使用
頻度が低いにも拘わらず、直線補間部における除算回路
、および加算回路の必要個数が多くなり、除算回路、加
算回路の稼働効率が非常に低い状態である。
To explain in more detail, for example, one polygon is
Assuming that it is a 20-pixel square, the calculations required to process one polygon are an average of 25 addition operations and 1 to 2 division operations in the linear capture section. On the other hand, the linear drawing section performs 400 addition operations and an average of 25 division operations, which means that the frequency of use of the linear interpolation section is significantly lower than that of the linear drawing section. Even though the frequency of use is low as described above, the required number of divider circuits and adder circuits in the linear interpolation section increases, and the operating efficiency of the divider circuits and adder circuits is extremely low.

また、上記直線補間部においては、除算回路から出力さ
れるデータに基いて加算回路による加算動作が行なわれ
た後に、得られた補間データが直線描画部に伝送される
のであり、上記加算動作と、得られた補間データの伝送
動作とは、第6図に示すように、順次シリアルに行なわ
れることになる。
In addition, in the linear interpolation section, after the addition operation is performed by the addition circuit based on the data output from the division circuit, the obtained interpolated data is transmitted to the linear drawing section. , the transmission operation of the obtained interpolated data is carried out sequentially and serially, as shown in FIG.

即ち、当初全段加算が行なわれた後(時間TO参照)、
2本の辺に対するx、y、z、Iの補間データが順次伝
送され(時間T1からT8参照)、最後に除算開始指示
データが伝送される(時間T9参照)ことにより、直線
補間部における加算回路の1動作サイクルが終了する。
That is, after the initial full-stage addition is performed (see time TO),
The interpolated data of x, y, z, and I for the two sides are transmitted sequentially (see time T1 to T8), and finally the division start instruction data is transmitted (see time T9), so that the addition in the linear interpolation section One operating cycle of the circuit is completed.

したかって、例えば、加算動作、および加算結果の伝送
動作の合計時間を1μsecに設定した場合には、加算
演算所要時間が50 n5ecであり、加算結果の出力
に要する時間が100 n5ecであるから、桟りの8
50 n5ecの期間は加算回路が全く動作していない
ことになる。即ち、2本の辺に対するx、y、z、1の
補間データをほぼ同時に得たとしても、上述したように
加算回路が全く動作しない時間がかなり長くなるのであ
るから、全体としての処理時間は余り短縮されない。し
たがって、加算回路を多数使用することにより全ての補
間データをほぼ同時に得られるようにしても、構成が遭
難化するだけで、余り処理速度の向上を期待することが
できないのである。
Therefore, for example, if the total time of the addition operation and the transmission operation of the addition result is set to 1 μsec, the time required for the addition operation is 50 n5ec, and the time required to output the addition result is 100 n5ec. 8 on the pier
During the period of 50 n5ec, the adder circuit is not operating at all. In other words, even if the interpolated data of x, y, z, and 1 for two sides are obtained almost simultaneously, as mentioned above, there will be a considerable amount of time during which the adder circuit does not operate at all, so the overall processing time will be It won't be shortened too much. Therefore, even if it is possible to obtain all the interpolated data almost simultaneously by using a large number of adder circuits, the configuration will simply become complicated and no significant improvement in processing speed can be expected.

また、得られた補間データをパラレルに伝送することも
考えられるが、実装部品数が大幅に増加するという問題
が発生する。そして、パラレル伝送できるようにしても
、直線描画部の除算回路における分母は、x、yの始点
、および終点に基いて得られた分割数になるのであり、
この分割数がz、Iの直線描画データを得るために使用
されるのであるから、上記分割数を供給するため、およ
び直線補間部からの補間データを供給するために切替ゲ
ートが必要になる。したがって、全ての補間データをパ
ラレル伝送するようにしても余り処理時間は短縮されず
、実装部品数が大幅に増加する不都合の方が大きくなる
It is also conceivable to transmit the obtained interpolated data in parallel, but this poses the problem of significantly increasing the number of mounted components. Even if parallel transmission is possible, the denominator in the division circuit of the straight line drawing section is the division number obtained based on the starting and ending points of x and y.
Since this number of divisions is used to obtain the linear drawing data of z and I, a switching gate is required to supply the number of divisions and to supply interpolation data from the linear interpolation section. Therefore, even if all the interpolated data is transmitted in parallel, the processing time will not be reduced much, and the number of components to be mounted will increase significantly, which will be more inconvenient.

上記の問題は、単なる多角形ぬりつぶし動作を行なうの
みではなく、テクスチャマツピング処理、セクショニン
グ処理を行なう場合には特に顕著になる。
The above problem becomes particularly noticeable when not only a polygon filling operation is performed, but also texture mapping processing and sectioning processing are performed.

〈発明の目的〉 この発明は上記の問題点に鑑みてなされたものであり、
直線補間の所要時間を殆ど増加させることなく、構成を
大幅に簡素化することができる多角形ぬりつぶし装置を
提供することを目的としている。
<Object of the invention> This invention was made in view of the above problems,
It is an object of the present invention to provide a polygon filling device whose configuration can be greatly simplified without substantially increasing the time required for linear interpolation.

く問題点を解決するための手段〉 上記の目的を達成するための、この発明の多角形ぬりつ
ぶし装置は、ホストコンピュータから供給される座標デ
ータに基いて選択される2本の辺を直線補間する直線補
間部が、初期値、または累積加算値を格納する第1の格
納手段と、増分値を格納する第2の格納手段と、上記第
1、第2の格納手段の内容を一時的に保持する第1、第
2のレジスタと、上記第1、および第2のレジスタの内
容を加算する加算手段と、加算手段から出力される加算
結果を一時的に保持する第3のレジスタとを有しており
、上記第1のレジスタの内容を直線描画部に供給してい
るものである。
Means for Solving the Problems To achieve the above object, the polygon filling device of the present invention linearly interpolates two sides selected based on coordinate data supplied from a host computer. The linear interpolation unit temporarily retains the contents of the first storage means for storing the initial value or the cumulative addition value, the second storage means for storing the incremental value, and the first and second storage means. the first and second registers, an addition means for adding the contents of the first and second registers, and a third register for temporarily holding the addition result output from the addition means. The contents of the first register are supplied to the line drawing section.

く作用〉 以上の構成の多角形ぬりつぶし装置であれば、ホストコ
ンピュータから供給される座標データに基いて選択され
る2本の辺を直線補間し、直線補間されたデータに基い
て直線描画データを生成することにより多角形をぬりつ
ぶす場合において、当初は第1の格納手段に第1番目の
直線補間データの初期値を格納するとともに、第2の格
納手段に第1番目の直線補間データの増分値を格納する
Function> The polygon coloring device with the above configuration linearly interpolates the two sides selected based on the coordinate data supplied from the host computer, and generates linear drawing data based on the linearly interpolated data. When filling a polygon by generating a polygon, initially the initial value of the first linear interpolation data is stored in the first storage means, and the increment value of the first linear interpolation data is stored in the second storage means. Store.

その後は、第1、第2の格納手段の内容を第1、第2の
レジスタに一時的に格納し、第1のレジスタの内容を直
線描画部に供給するとともに、両レジスタの内容を加算
手段により加算して第3のレジスタに一時的に格納し、
第3のレジスタの内容に基いて第1の格納手段の内容を
更新する。
Thereafter, the contents of the first and second storage means are temporarily stored in the first and second registers, the contents of the first register are supplied to the line drawing section, and the contents of both registers are added to the adding means. and temporarily store it in the third register,
The contents of the first storage means are updated based on the contents of the third register.

また、上記の動作を行なっている間において、第1、第
2の格納手段から第1、第2のレジスタにデータを供給
した後は、上記第1、第2の格納手段は最早上記データ
を保持しておく必要がないので、第2番目の直線補間デ
ータの初期値、および増分値を格納することができる。
Further, while performing the above operation, after the data is supplied from the first and second storage means to the first and second registers, the first and second storage means no longer store the data. Since there is no need to hold it, the initial value and incremental value of the second linear interpolation data can be stored.

さらに、加算手段により得られたデータを第3のレジス
タに供給した後は、上記加算手段は次の加算動作を行な
うことができるので、上記第2番目の直線補間データの
初期値、および増分値に基く加算動作を行なうことがで
き、この間において、上記第1、第2の格納手段への第
3番目の直線補間データの初期値、および増分値の書込
み、第1、第2のレジスタへの供給を行ない、その後、
上記加算結果の書込み動作を行なうことができる。
Furthermore, after the data obtained by the adding means is supplied to the third register, the adding means can perform the next addition operation, so that the initial value and the increment value of the second linear interpolation data are During this time, the initial value and increment value of the third linear interpolation data are written to the first and second storage means, and the addition operation is written to the first and second registers. supply, and then
A write operation of the above addition result can be performed.

即ち、各順位の直線補間データの読出し処理、加算演算
、および出力処理、加算結果の書込み処理を順次行なう
ことができ、しかも、各順位の処理を1ステップ遅れで
順次行なうことができる。
That is, the readout process, addition operation, output process, and writing process of the addition results of the linear interpolation data of each rank can be performed sequentially, and furthermore, the processing of each rank can be performed sequentially with a one-step delay.

〈実施例〉 以下、実施例を示す添付図面によって詳細に説明する。<Example> Hereinafter, embodiments will be described in detail with reference to the accompanying drawings showing examples.

第1図はこの発明の多角形ぬりつぶし装置の一実施例を
示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of the polygon coloring device of the present invention.

図において、直線補間部は、初期値、または累積加算値
を格納するマルチポートレジスタファイル(1)と、増
分値を格納するレジスタファイル(2と、上記マルチポ
ートレジスタファイル(1)の内容を一時的に保持する
第1のパイプラインレジスタ(3)と、上記レジスタフ
ァイル(2)の内容を一時的に保持する第2のパイプラ
インレジスタ(4)と、上記第1、第2のパイプライン
レジスタ(3) (4)の内容を入力として加算動作を
行なう加算回路(5)と、加算結果を一時的に格納する
第3のパイプラインレジスタ(6)とから構成されてお
り、上記第3のパイプラインレジスタ(6)の内容を第
1のマルチポートレジスタファイル(1)に供給してい
るとともに、上記第1のパイプラインレジスタ(3)の
内容を直線描画部(7]に供給している。そして、上記
マルチポートレジスタファイル(1)、およびレジスタ
ファイル(2)に対して汎用プロセッサ(8)からの座
標データ等(直線補間を行なうべき辺の端点の座標デー
タ、および辺の長さに基いて算出された増分値データ)
が供給されている。
In the figure, the linear interpolation unit temporarily stores the contents of the multi-port register file (1) that stores the initial value or cumulative addition value, the register file (2) that stores the incremental value, and the multi-port register file (1). a first pipeline register (3) that temporarily holds the contents of the register file (2), a second pipeline register (4) that temporarily holds the contents of the register file (2), and the first and second pipeline registers. (3) It is composed of an addition circuit (5) that performs an addition operation using the contents of (4) as input, and a third pipeline register (6) that temporarily stores the addition result. The contents of the pipeline register (6) are supplied to the first multiport register file (1), and the contents of the first pipeline register (3) are supplied to the straight line drawing unit (7). Then, the multiport register file (1) and the register file (2) are provided with coordinate data, etc. (coordinate data of the end point of the side on which linear interpolation is to be performed, and the length of the side) from the general-purpose processor (8). (incremental value data calculated based on)
is supplied.

尚、(9)は描画コマンドデータ等を取込むための11
0インターフエースであり、Oo)はメモリである。ま
た、直線補間データに基いて線分を構成するピクセルデ
ータを生成する直線描画部は、x。
Note that (9) is 11 for importing drawing command data, etc.
0 interface and Oo) is memory. Also, a straight line drawing unit that generates pixel data forming a line segment based on linear interpolation data is x.

yデータ用の除算回路(11)、および加算回路(12
〉と、2データ用の除算回路(13)、および加算回路
(14)と、■データ用の除算回路(15)、および加
算回路(16)とから構成されている。
A division circuit (11) for y data and an addition circuit (12)
], a division circuit (13) for 2 data, an addition circuit (14), and a division circuit (15) for data (1), and an addition circuit (16).

以上の構成の多角形ぬりつぶし装置の動作は次のとおり
である。
The operation of the polygon coloring device having the above configuration is as follows.

I10インターフェース(9)を通して多角形ぬりつぶ
しコマンドデータが汎用プロセッサ(8)に供給される
ことにより、多角形を構成する辺の端点の座標に基いて
除算を行ない、増分値データを得る。
By supplying the polygon filling command data to the general-purpose processor (8) through the I10 interface (9), division is performed based on the coordinates of the end points of the sides forming the polygon to obtain increment value data.

そして、 ■ 上記端点の座標データをマルチポートレジスタファ
イル(1)に格納するとともに、増分値データをレジス
タファイル(2)に格納する。
and (1) stores the coordinate data of the end point in the multiport register file (1), and stores the increment value data in the register file (2).

■ 次いで、マルチポートレジスタファイル(1]のX
座標データを第1のパイプラインレジスタ(3)に供給
するとともに、レジスタファイル(aの増分値データを
第2のパイプラインレジスタ(4)に供給し、必要であ
れば(例えばセクショニング処理を行なう場合には必ず
しも転送する必要はない)、第1のパイプラインレジス
タ(3)の内容を直線描画部に供給する。
■ Next, select X in the multiport register file (1).
Coordinate data is supplied to the first pipeline register (3), and incremental value data of the register file (a) is supplied to the second pipeline register (4), if necessary (for example, when performing sectioning processing). ), the contents of the first pipeline register (3) are supplied to the line drawing section.

■ その後、上記両パイプラインレジスタ[3) (4
)の内容に基いて加算回路(5]により座標データと増
分値データとを加算する。
■ After that, both pipeline registers [3] (4
), the adder circuit (5) adds the coordinate data and the incremental value data.

■ 上記加算回路(Sにおいて得た加算結果を第3のパ
イプラインレジスタ(6)に供給する。
(2) The addition result obtained in the addition circuit (S) is supplied to the third pipeline register (6).

■ 最後に上記第3のパイプラインレジスタ(6)の内
容をマルチポートレジスタファイル(1)に格納する。
(2) Finally, the contents of the third pipeline register (6) are stored in the multiport register file (1).

即ち、以上の一連の動作を行なうことにより、端点の座
標データに順次増分値データを加算して直線補間を行な
うことができるのである。但し、上記直線補間動作は各
辺のX座標、X座標、2座標、およびX座標について行
なう必要があるので、各座標について順次上記一連の動
作を行なわせる必要がある。
That is, by performing the above series of operations, linear interpolation can be performed by sequentially adding incremental value data to the coordinate data of the end points. However, since the above linear interpolation operation needs to be performed on the X coordinate, the X coordinate, the 2nd coordinate, and the X coordinate of each side, it is necessary to sequentially perform the above series of operations on each coordinate.

この場合において、X座標について上記■■の処理が終
了した後は、最早側パイプラインレジスタ(31[4]
にX座標に関するデータを保持させておく必要はないの
で、X座標に関するデータをマルチポートレジスタファ
イル(1)、およびレジスタファイル(2)に格納し、
上記格納データを両パイプラインレジスタ[3] (4
)に供給することができる。
In this case, after the above processing for the X coordinate is completed, the earliest pipeline register (31[4]
Since there is no need to store data related to the X coordinate, store the data related to the X coordinate in the multiport register file (1) and register file (2).
The above stored data is stored in both pipeline registers [3] (4
).

また、X座標について上記■■の処理が終了した場合に
は、両パイプラインレジスタ(3) (4)に格納され
ているX座標に関するデータに基いて加算回路(Sによ
り加算動作を行なわせることができ、加算回路(5)に
よる加算動作を行なわせる状態になれば、2座標に関す
るデータをマルチポートレジスタファイル(1)、およ
びレジスタファイル[21から出力し、上記格納データ
を両パイプラインレジスタ[3] (4)に供給するこ
とができる。そして、上記■の動作を行なわせることが
できる。
Furthermore, when the above processing for the X coordinate is completed, the addition operation is performed by the addition circuit (S) based on the data regarding the X coordinate stored in both pipeline registers (3) and (4). When the addition circuit (5) is in a state where the addition operation is performed, the data regarding the two coordinates is output from the multiport register file (1) and the register file [21], and the stored data is transferred to both pipeline registers [21]. 3] (4).Then, the operation (2) above can be performed.

以上、要約すれば、第2図、および第3図に示すように
、マルチポートレジスタファイル(1)、およびレジス
タファイル(2)からの初期値データ、または累積加算
値データの読出し、および増分値データの読出し動作、
第1のパイプラインレジスタ(3)から直線描画部への
データ出力、加算回路(5)による加算動作、および加
算結果のマルチポートレジスタファイル(1)への格納
動作を、各座標データについてそれぞれ1動作時間ずつ
ずらせた状態で順次行なう。したがって、全体として、
全てのデータを同時に得て、その後、得られたデータを
順次直線描画部に供給する従来例とほぼ等しい時間で直
線補間動作、および補間データの伝送を行なわせること
ができる。
To summarize the above, as shown in FIGS. 2 and 3, the reading of initial value data or accumulated value data from the multiport register file (1) and register file (2), and the increment value data read operation,
Data output from the first pipeline register (3) to the straight line drawing unit, addition operation by the addition circuit (5), and storage operation of the addition result to the multiport register file (1) are performed once for each coordinate data. The operations are performed sequentially with different operating times. Therefore, overall,
The linear interpolation operation and the transmission of the interpolated data can be performed in approximately the same time as in the conventional example in which all data are obtained simultaneously and then the obtained data are sequentially supplied to the linear drawing section.

また、以上の実施例においては、汎用プロセッサ(8)
により除算動作を行なわせるようにしているが、直線補
間動作を行なう場合における除算回数は非常に少ないの
であるから、特に処理時間が長くなるという不都合はな
い。
In addition, in the above embodiment, the general-purpose processor (8)
However, since the number of times of division is very small when linear interpolation is performed, there is no problem in that the processing time becomes particularly long.

第4図は他の実施例を示すブロック図であり、上記実施
例と異なる点は、テクスチャマッピング動作を行なわせ
ることができるようにするために、テクスチャ平面用の
直線描画を行なう除算回路(17)(18)、加算回路
(19) (20)、加算回路(19) (20)から
出力される加算結果を格納するマツピングメモリ(21
)、およびシェーディング処理等を行なうための乗算回
路(22)を追加した点のみである。
FIG. 4 is a block diagram showing another embodiment, and the difference from the above embodiment is that a division circuit (17 ) (18), addition circuits (19) (20), mapping memory (21) that stores the addition results output from the addition circuits (19) (20).
), and a multiplication circuit (22) for performing shading processing and the like.

したがって、この実施例の場合には、X、y。Therefore, in this example, X, y.

z、I座標データの他にU、V座標データについても直
線補間部により順次補間して直線補間データを得、順次
除算回路(11) (13) (15) (17) (
1g)に供給することにより、U、V座標で表されるテ
クスチャ平面上の所望の図形データを、X*  Y+ 
 Z+工座標で表されるディスプレイ平面上の所望の領
域に投影する、いわゆるテクスチャマツピング処理を行
なうことができる。
In addition to the z and I coordinate data, the U and V coordinate data are also sequentially interpolated by the linear interpolation unit to obtain linear interpolation data, and the sequential division circuit (11) (13) (15) (17) (
1g), the desired figure data on the texture plane expressed by U, V coordinates is input to X*Y+
It is possible to perform a so-called texture mapping process in which the image is projected onto a desired area on the display plane expressed by Z + engineering coordinates.

尚、この発明は上記の実施例に限定されるものではなく
、例えば上記マルチポートレジスタファイル(1)に代
えてマルチポートメモリを使用すること、レジスタファ
イル(2)に代えてメモリを使用することが可能であり
、この場合において、メモリを3つ以−ヒの領域に区画
し、2の領域にそれぞれ左側の線分用のデータ、右側の
線分用のデータを格納するとともに、他の1つの領域に
描画する線分用のデータを格納し、残余の領域をセクシ
ョニング等のための判定機能を含む制御領域として使用
する(例えば、x、y、z、u、v等用のフラグを格納
しておくとともに、セクショニング用としてzl−、z
2−、・・・zn−のフラグを格納しておく)ことによ
り、左右の線分のみならず、描画する線分についても時
分割制御を行なうことができる他、直線補間のための除
算動作を専用の除算回路により行なわせることが可能で
あり、さらには、断面図表示を行なわせる、いわゆるセ
クショニング処理にも適用することが可能であり、その
他この発明の要旨を変更しない範囲内において、種々の
設計変更を施すことが可能である。
Note that the present invention is not limited to the above-mentioned embodiments; for example, a multiport memory may be used in place of the multiport register file (1), or a memory may be used in place of the register file (2). In this case, the memory is divided into three or more areas, and the second area stores data for the left line segment and data for the right line segment, and the other 1 area stores data for the left line segment and right line segment, respectively. Data for line segments to be drawn is stored in one area, and the remaining area is used as a control area that includes judgment functions for sectioning, etc. (For example, stores flags for x, y, z, u, v, etc.) zl-, z for sectioning.
By storing the flags 2-,...zn-), it is possible to perform time division control not only for the left and right line segments but also for the line segments to be drawn, as well as division operations for linear interpolation. can be performed by a dedicated division circuit, and can also be applied to so-called sectioning processing to display a cross-sectional view, and various other modifications can be made without changing the gist of the present invention. It is possible to make design changes.

〈発明の効果〉 以上のようにこの発明は、直線補間動作を行なうための
加算回路を1つのみとすることが可能であるから、構成
を簡素化することができるとともに、第1、第2の格納
手段の容量により定まる次元数までの拡張を簡単に行な
うことができ、しかも、従来方式と同程度の直線補間処
理速度を達成することができるという特有の効果を奏す
る。
<Effects of the Invention> As described above, in the present invention, since it is possible to use only one adder circuit for linear interpolation operation, the configuration can be simplified, and the first and second This method has the unique advantage of being able to easily expand the number of dimensions determined by the capacity of the storage means, and achieving a linear interpolation processing speed comparable to that of the conventional method.

【図面の簡単な説明】 第1図はこの発明の多角形ぬりつぶし装置の一実施例を
示すブロック図、 第2図、および第3図は直線補間動作を概略的に説明す
る動作説明図、 第4図は他の実施例を示すブロック図、第5図は従来例
を示すブロック図、 第6図は従来の直線補間動作、およびデータ伝送動作を
概略的に説明する動作説明図。 (1)・・・マルチポートレジスタファイル、(2J・
・・レジスタファイル、 (3) (4) [6]・・・パイプラインレジスタ、
(5]・・・加算回路、(刀・・・直線描画部
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing an embodiment of the polygon filling device of the present invention; FIGS. 2 and 3 are operation explanatory diagrams schematically explaining linear interpolation operations; FIG. 4 is a block diagram showing another embodiment, FIG. 5 is a block diagram showing a conventional example, and FIG. 6 is an operation explanatory diagram schematically explaining conventional linear interpolation operation and data transmission operation. (1)...Multi-port register file, (2J・
...Register file, (3) (4) [6]...Pipeline register,
(5)...addition circuit, (sword...straight line drawing section

Claims (1)

【特許請求の範囲】 1、ホストコンピュータから供給される座 標データに基いて選択される2本の辺を 直線補間する直線補間部と、直線補間さ れたデータに基いて直線描画データを生 成する直線描画部とを有する多角形ぬり つぶし装置において、上記直線補間部が、 初期値、または累積加算値を所定数格納 する第1の格納手段と、増分値を格納す る第2の格納手段と、上記第1、第2の 格納手段の内容を一時的に保持する第1、 第2のレジスタと、上記第1、および第 2のレジスタの内容を加算する加算手段 と、加算手段から出力される加算結果を 一時的に保持する第3のレジスタとを有 しており、上記第1のレジスタの内容を 直線描画部に供給していることを特徴と する多角形ぬりつぶし装置。[Claims] 1. The seat provided by the host computer The two edges selected based on the standard data are A linear interpolation part that performs linear interpolation, and Generates straight line drawing data based on the collected data. Polygonal coloring with a straight line drawing part In the crushing device, the linear interpolation section Stores a predetermined number of initial values or cumulative addition values a first storage means for storing the increment value; a second storage means for storing the first and second storage means; a first for temporarily retaining the contents of the storage means; a second register, the first register, and the second register; Addition means for adding the contents of register 2 and the addition result output from the addition means. It has a third register that holds it temporarily. and the contents of the first register above are It is characterized by being supplied to the straight line drawing section. Polygon coloring device.
JP22514186A 1986-09-24 1986-09-24 Polygon filling device Expired - Lifetime JPH0754551B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP22514186A JPH0754551B2 (en) 1986-09-24 1986-09-24 Polygon filling device
US07/759,657 US5167018A (en) 1986-09-24 1991-09-13 Polygon-filling apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22514186A JPH0754551B2 (en) 1986-09-24 1986-09-24 Polygon filling device

Publications (2)

Publication Number Publication Date
JPS6380374A true JPS6380374A (en) 1988-04-11
JPH0754551B2 JPH0754551B2 (en) 1995-06-07

Family

ID=16824593

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22514186A Expired - Lifetime JPH0754551B2 (en) 1986-09-24 1986-09-24 Polygon filling device

Country Status (1)

Country Link
JP (1) JPH0754551B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5923332A (en) * 1995-07-10 1999-07-13 Ricoh Company, Ltd. Image processing device
WO2006054389A1 (en) * 2004-11-22 2006-05-26 Sony Computer Entertainment Inc. Plotting device and plotting method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5923332A (en) * 1995-07-10 1999-07-13 Ricoh Company, Ltd. Image processing device
WO2006054389A1 (en) * 2004-11-22 2006-05-26 Sony Computer Entertainment Inc. Plotting device and plotting method

Also Published As

Publication number Publication date
JPH0754551B2 (en) 1995-06-07

Similar Documents

Publication Publication Date Title
JPS5847741B2 (en) pattern generator
KR100283413B1 (en) Texture Mapping System
CN104869284A (en) High-efficiency FPGA implementation method and device for bilinear interpolation amplification algorithm
JPS6380374A (en) Polygon painting-out device
US5167018A (en) Polygon-filling apparatus
JP4482996B2 (en) Data storage apparatus and method and image processing apparatus
US6489967B1 (en) Image formation apparatus and image formation method
CN107169917B (en) Device for vector graphics processor to finish real-time drawing of graphics image without DDR
JPS59188761A (en) Write system of picture memory
JPS6274166A (en) Polygon apex data tracking device for scanning type display device
JPH06324083A (en) Waveform storage and display device
JP2537851B2 (en) Image scaling processor
JPH0346826B2 (en)
JPS5839364A (en) Graphic information processing unit
JPH0290795A (en) Time divisional switch control system
JPS6380376A (en) Z sorting device
JPH0863595A (en) Method and device for rotation processing of image
JPS6159484A (en) Segment control system
JPS61264381A (en) Memory circuit
JPH0789381B2 (en) Pixel value interpolation display method
JPH1091319A (en) Method and device for processing stroke information
JPS6341895A (en) Sequence control
JPS60107151A (en) Vector expanding system
JPH02207383A (en) Graphic painting-out device
JPH02212890A (en) Graphic data writing device

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term