JPS6242281A - Graphic display device - Google Patents

Graphic display device

Info

Publication number
JPS6242281A
JPS6242281A JP18212385A JP18212385A JPS6242281A JP S6242281 A JPS6242281 A JP S6242281A JP 18212385 A JP18212385 A JP 18212385A JP 18212385 A JP18212385 A JP 18212385A JP S6242281 A JPS6242281 A JP S6242281A
Authority
JP
Japan
Prior art keywords
flag
buffer
pixel
depth buffer
depth
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.)
Pending
Application number
JP18212385A
Other languages
Japanese (ja)
Inventor
Michio Maejima
前島 道雄
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP18212385A priority Critical patent/JPS6242281A/en
Publication of JPS6242281A publication Critical patent/JPS6242281A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To omit comparison/decision processing and to process a hidden surface at a high speed by providing a flag in 1-bit correspondence to each coordinates of a depth buffer and a means which controls the depth buffer and a frame memory. CONSTITUTION:A processing part 1 produces successively the 3-dimensional coordinates of the picture element strings of the sides forming a polygon and delivers them to a digital and differential analyzer DDA2. At the same time, the part 1 delivers control or luminance data to a frame memory 5. Here a flag 8 is provided in 1-bit correspondence to each coordinate of a depth buffer 4. While a control circuit 9 controls the flag 8, the buffer 4 and the memory 5. Thus it is possible to decide with reference to the flag 8 whether the Z coordinates of a display pattern are stored or not in the buffer 4. Then writing is possible to both the buffer 4 and the memory 5. As a result, a hidden surface can be processed at a high speed.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、グラフィックディスプレイ装置の特に隠面処
理装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a graphic display device, particularly a hidden surface processing device.

従来の技術 第3図は従来の1面処理装置の調成を示している。第3
図において、1は処理部であり、多角形を構成している
辺であるところの画素列の3次元座標を、1lla次生
成してDD人(digital diffsrenti
+L1analyzer) 2に出力し、また色あるい
は輝度データをフレームメモリ6に出力する。DDA2
は。
Prior Art FIG. 3 shows the preparation of a conventional single-sided processing apparatus. Third
In the figure, 1 is a processing unit that generates the three-dimensional coordinates of the pixel rows that are the sides of the polygon,
+L1analyzer) 2, and also outputs color or brightness data to the frame memory 6. DDA2
teeth.

多肉形内部の各画素のZ座標(デプス値)を順次補間す
る。
The Z coordinate (depth value) of each pixel inside the succulent shape is sequentially interpolated.

3は比較器であり、DDA2とデプスバッファ4の値の
比較を行なう。デプスバッファ4は、CR1画面のすべ
ての画素に対するZ値を記憶する容計をqするメモリで
ある。例えばCR1画面が1280X1024の画素か
ら成り各画素の2座標を1oビツトで表わすものとする
と、1280X1o24のメモリセルの配列構造をもつ
メモリプレーンが10枚必要となる。5はフレームメモ
リであり、デプスバッファ4と同じ構造であるが、ブレ
ーン数は必ずしも同じである必要はない。このフレーム
メモリ5には、処理部1の出力である色あるいは輝度デ
ータを記憶する。6はビデオコントローラであり、CR
Tモニタ7に水平・垂直同期信号とフレームメモリ5の
出力をD/ム変換した信号を供給するものである。CR
Tモニタ7は、ビデオコントローラの出力信号により画
面上に画像を表示するものである。
A comparator 3 compares the values of the DDA2 and the depth buffer 4. The depth buffer 4 is a memory that stores Z values for all pixels of the CR1 screen. For example, if the CR1 screen is made up of 1280×1024 pixels and the two coordinates of each pixel are represented by 1o bits, then 10 memory planes having a 1280×1024 memory cell array structure are required. A frame memory 5 has the same structure as the depth buffer 4, but the number of branes does not necessarily have to be the same. This frame memory 5 stores color or brightness data output from the processing section 1. 6 is a video controller, CR
The T monitor 7 is supplied with a horizontal/vertical synchronizing signal and a signal obtained by D/MU conversion of the output of the frame memory 5. CR
The T monitor 7 displays an image on a screen using an output signal from a video controller.

一般に、3次元空間内の図形は多角形の集合(曲面は多
角形近似する)で表わされる。隠面処理は多角形のうち
で視侭から見える部分と見えない部分とを区別する作業
である。
Generally, a figure in a three-dimensional space is represented by a set of polygons (a curved surface is approximated by a polygon). Hidden surface processing is the process of distinguishing between visible and invisible parts of a polygon.

第4図は、3角形v1v2v3を例にして第3図の動作
の説明をするものである。第4図の座標は、画面上の座
標(スクリーン座標)を表わしている。44図において
、2点Pm(xm、Ym、Zm)p’、 (x’、 、
 y’、 、 z’l!l)は同一走査線上にあり、こ
の2へPI!l、 P′Tnの座標値は第31図の処理
部1からDDム2に出力される。このとき、線分PmP
′工上の各%mは点PI、1を基点として、X座標にI
、Z座標にεを硼えることによりX軸方向にインクレメ
ンタルに順次求まる。ただし、ε−(z’、 −z、)
/ (Xil−X、 )である。点Pmからn番目の点
Qnの座標ばQn (Xm + n 、 Ym 、 Z
m + nε)となる。Qn のZ座席ld比較器3に
送られる。それと並行してデプスバッファ4でスクリー
ン座標(X、+n  、 YIn)  に対応するアド
レスからデータを読み出してQnのZ座標と比較する。
FIG. 4 explains the operation of FIG. 3 using triangle v1v2v3 as an example. The coordinates in FIG. 4 represent coordinates on the screen (screen coordinates). In Figure 44, two points Pm (xm, Ym, Zm) p', (x', ,
y', , z'l! l) is on the same scanning line, and PI! to this 2! The coordinate values of l and P'Tn are output from the processing section 1 of FIG. 31 to the DD module 2. At this time, line segment PmP
'Each %m on the construction is based on the point PI, 1, and the X coordinate is I.
, are found incrementally in the X-axis direction by adding ε to the Z coordinate. However, ε−(z', −z,)
/ (Xil-X, ). The coordinates of the nth point Qn from point Pm are Qn (Xm + n, Ym, Z
m + nε). It is sent to the Z seat ld comparator 3 of Qn. In parallel, data is read out from the address corresponding to the screen coordinates (X, +n, YIn) in the depth buffer 4 and compared with the Z coordinate of Qn.

もし、QnのZ座標が小さい場合、すなわちQnがより
視点に近い場合、 (1)デプスバッファ4の(Xm−1−n 、 Ym)
に対応するアドレスにZ座標を書込み、かつ、(2)フ
レームメモリ5の(X、!l+n 、 Ym)に対応す
るアドレスに処理部1より出力されるデータを書込む。
If the Z coordinate of Qn is small, that is, if Qn is closer to the viewpoint, (1) (Xm-1-n, Ym) of depth buffer 4
and (2) write the data output from the processing section 1 to the address corresponding to (X, !l+n, Ym) in the frame memory 5.

Qn OZ座、票の方が大きい場合は、デプスバッファ
4.フレームメモリ6に書込みは行なわない。
Qn OZ seat, if the vote is larger, depth buffer 4. No writing is performed to the frame memory 6.

このように、3角形v1v2v5  内の点Qnの見え
・隠れが判定される。この動作をインクレメンタルに求
まるPmFlm  上のすべての点(でついて行なう。
In this way, it is determined whether the point Qn within the triangle v1v2v5 is visible or hidden. This operation is performed for all points on PmFlm that are found incrementally.

さらに、角形v1v2v3  内のすべての走査線につ
いて処理を行なうことによって、3角形v1v2v5 
内のすべての画素の見え・隠れの判定が終了する。表示
すべき図形のすべての面について上記処理を行なえば、
4面処理された図形が(3RTモニタ上に表示されるこ
とになる。
Furthermore, by processing all the scanning lines in the triangle v1v2v3, the triangle v1v2v5
The determination of whether all pixels within the area are visible or hidden is completed. If you perform the above processing on all sides of the figure to be displayed,
The four-sided processed figure will be displayed on the 3RT monitor.

発明が解決しようとする問題点 しかしながら、上記従来の隠面処理装置では、処理すべ
き画素に対するデプスバッファのデータがクリアされて
いても、そのデータを読み出して比較判定を行なう必要
があったために多くの処理時間が必要であった。本発明
はこのような従来の問題を解決するものであり、高速な
隠面処理を行うグラフィックディスプレイ装置を提供す
ることを目的とするものである。
Problems to be Solved by the Invention However, in the conventional hidden surface processing device described above, even if the data in the depth buffer for the pixel to be processed has been cleared, it is necessary to read out that data and make a comparison judgment. processing time was required. The present invention is intended to solve these conventional problems, and it is an object of the present invention to provide a graphic display device that performs high-speed hidden surface processing.

問題慨を解決するだめの手段 本発明は上記目的を達成するためにデプスバッファの各
座標に1ビツト対応したフラグと、前記フラグとデプス
バッファとフレームメモリの制御回路を備えたものであ
る。
Means for Solving the Problems In order to achieve the above object, the present invention is provided with a flag corresponding to one bit for each coordinate of the depth buffer, and a control circuit for the flag, the depth buffer, and the frame memory.

作用 したがって、本発明によれば、フラグを茅照することに
よってデプスバッファに表示図形のZ座標が格納されて
いるかどうかの判定が可能で、表示図形のZ座標が格納
されていない場合には比較判定を行なわずにデプスバッ
ファとフレームメモリに書き込みができ、隠面処理が高
速化できるという効果を有する。
Therefore, according to the present invention, it is possible to determine whether or not the Z coordinate of the displayed figure is stored in the depth buffer by lighting the flag, and if the Z coordinate of the displayed figure is not stored, it is possible to determine whether the Z coordinate of the displayed figure is stored in the depth buffer. It is possible to write to the depth buffer and frame memory without making a determination, which has the effect of speeding up hidden surface processing.

実施例 第1図は本発明の一実施例の構成を示すものである。第
11図において1〜7は第3図と対応するものであり同
じ番号で示す。8はフラグであり、表示画面の各画素に
1ビツトずつ対応している。
Embodiment FIG. 1 shows the configuration of an embodiment of the present invention. In FIG. 11, 1 to 7 correspond to those in FIG. 3 and are indicated by the same numbers. 8 is a flag, and one bit corresponds to each pixel on the display screen.

9は制御回路であり、フラグ8と比較器3からデータを
取シ込みデプスバッファ4.フレームメモリ5.DDム
2の制御を行なう。
Reference numeral 9 denotes a control circuit which receives data from the flag 8 and the comparator 3 and sends data to the depth buffer 4. Frame memory 5. Controls the DDM2.

第2図7i第1図の7ラグ8の説明図である。第2図a
は画面」二に表示されている図形を表わし、bはフラグ
8のデータを表わしている。図形が表示されている画素
に対応すよフラグは「1」、その也は「0」である。
FIG. 2 7i is an explanatory diagram of the 7 lugs 8 in FIG. 1. Figure 2a
represents the figure displayed on screen 2, and b represents the data of flag 8. The flag corresponding to the pixel where the figure is displayed is "1", and the flag is "0".

次に上記実施例の動作てついて説明する。制御回路9は
、処理すべき画素に対するフラグをフラグ8より読み込
む。
Next, the operation of the above embodiment will be explained. The control circuit 9 reads the flag for the pixel to be processed from the flag 8.

(1)  フラグ−「0」のとき、画素PIには図形あ
るいは図形の一部は表示されていない。このことは、画
素PIでは新たな図形は必らず表示されることになる。
(1) When the flag is "0", the figure or part of the figure is not displayed in the pixel PI. This means that a new figure is always displayed at the pixel PI.

したがって、DDム2の出力をデプスバッファ4に書き
込むと同時に色あるいは輝度データをフレームメモリ5
に書き込む。そして画素PIに対するフラグを「1」に
する。
Therefore, at the same time as writing the output of the DDM 2 to the depth buffer 4, color or luminance data is written to the frame memory 5.
write to. Then, the flag for the pixel PI is set to "1".

(2)  フラグ−「1」のとき、従来例と同様に、デ
プスバッファ4の出力とDD人2の出力の比較を行ない
、その比較結果でデプスバッファ4とフレームメモリ6
への書き込み制御を行なう。
(2) When the flag is "1", the output of the depth buffer 4 and the output of the DD person 2 are compared, and the depth buffer 4 and the frame memory 6 are
Controls writing to.

このように、上記実施例によれば、フラグ8を読み出し
て「○」のとき制御回路9からデプスバッファ4とフレ
ームメモリ5に書き込み信号が出力されるため、デプス
バッファ4の出力とDDム2の出力の比較を行なう必要
がない。
As described above, according to the above embodiment, when the flag 8 is read and is "○", the control circuit 9 outputs a write signal to the depth buffer 4 and the frame memory 5, so that the output of the depth buffer 4 and the DD memory 2 are There is no need to compare the outputs of

発明の効果 本発明は上記実施例より明らかなように、フラグの内容
を参照してフラグ−rOFF」のとき比較判断の処理を
省くものであり、隠面処理装置の向上がはかられるとい
う効果を有する。
Effects of the Invention As is clear from the above-mentioned embodiments, the present invention refers to the content of the flag and omits the process of comparing and determining when the flag is "rOFF", and has the effect that the hidden surface processing device can be improved. has.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は本発明の一実施例におけるグラフィックディス
プレイ装置のm面処理装置のブロック図、第2・′図a
、bは同装置の7ラグの説明のための模式図及びマ) 
IJクス図、第3図は従来の隠面処理装置のブロック図
、第4図は同装置〃の動作説明のだめの座標図である。 1・・・・・・処理部、2・・・・・・DD人、3・・
・・・比較器、4・・・・・・デプスバッファ、5・・
・・・・フレームメモリ、6・・・・・・ビデオコント
ローラ、7・・・・・・CRTモニタ、8・・・・・・
フラグ、9・・・・・・制御回路。 代理人の氏名 弁理士 中 尾 敏 男 ほか1基筒 
1 図 第2図 (αン           (膣 第3図 J 4図
FIG. 1 is a block diagram of an m-plane processing device of a graphic display device according to an embodiment of the present invention, and FIG.
,b is a schematic diagram for explaining the 7 lugs of the same device and ma)
FIG. 3 is a block diagram of a conventional hidden surface processing device, and FIG. 4 is a coordinate diagram for explaining the operation of the same device. 1...Processing department, 2...DD person, 3...
...Comparator, 4...Depth buffer, 5...
...Frame memory, 6...Video controller, 7...CRT monitor, 8...
Flag, 9... Control circuit. Name of agent: Patent attorney Toshio Nakao and 1 other person
1 Figure 2 (αn (Vagina Figure 3 J Figure 4)

Claims (1)

【特許請求の範囲】[Claims] 各画素の奥行きデータを格納するデプスバッファと、各
画素に対応しかつ前記デプスバッファに図形の奥行き、
データが書き込まれていない場合にOFFにするフラグ
とを備え、新たに画素に奥行きデータが入ってきたとき
、画素に対応するフラグがOFFの場合、奥行きデータ
を前記デプスバッファの画素に対応する座標に書き込み
、フラグをONにするとともに、画素に対応するフラグ
がONの場合、前記バッファの画素に対応する座標から
データを読み出して前記画素の奥行きデータと比較を行
ない、画素の奥行きデータの方が小さければその奥行デ
ータを前記デプスバッファに書き込むようにしたことを
特徴とするグラフィックディスプレイ装置。
a depth buffer that stores depth data of each pixel; and a depth buffer that stores depth data of a figure corresponding to each pixel;
and a flag that is turned OFF when no data has been written, and when new depth data enters a pixel and the flag corresponding to the pixel is OFF, the depth data is transferred to the coordinates corresponding to the pixel in the depth buffer. If the flag corresponding to the pixel is ON, data is read from the coordinates corresponding to the pixel in the buffer and compared with the depth data of the pixel, and the depth data of the pixel is determined to be better. A graphic display device characterized in that if the depth data is smaller, the depth data is written into the depth buffer.
JP18212385A 1985-08-20 1985-08-20 Graphic display device Pending JPS6242281A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18212385A JPS6242281A (en) 1985-08-20 1985-08-20 Graphic display device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18212385A JPS6242281A (en) 1985-08-20 1985-08-20 Graphic display device

Publications (1)

Publication Number Publication Date
JPS6242281A true JPS6242281A (en) 1987-02-24

Family

ID=16112730

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18212385A Pending JPS6242281A (en) 1985-08-20 1985-08-20 Graphic display device

Country Status (1)

Country Link
JP (1) JPS6242281A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05115823A (en) * 1987-08-27 1993-05-14 Fuji Mach Mfg Co Ltd Highly viscous fluid applying device having trial shooting function
US5388205A (en) * 1990-02-05 1995-02-07 International Business Machines Corporation Apparatus and method of encoding control data in a computer graphics system
WO2006011307A1 (en) * 2004-07-23 2006-02-02 Matsushita Electric Industrial Co., Ltd. Three-dimensional shape drawing device and three-dimensional shape drawing method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05115823A (en) * 1987-08-27 1993-05-14 Fuji Mach Mfg Co Ltd Highly viscous fluid applying device having trial shooting function
US5388205A (en) * 1990-02-05 1995-02-07 International Business Machines Corporation Apparatus and method of encoding control data in a computer graphics system
WO2006011307A1 (en) * 2004-07-23 2006-02-02 Matsushita Electric Industrial Co., Ltd. Three-dimensional shape drawing device and three-dimensional shape drawing method
US7999806B2 (en) 2004-07-23 2011-08-16 Panasonic Corporation Three-dimensional shape drawing device and three-dimensional shape drawing method

Similar Documents

Publication Publication Date Title
US7342588B2 (en) Single logical screen system and method for rendering graphical data
US6882346B1 (en) System and method for efficiently rendering graphical data
EP0854441A3 (en) Method and apparatus for rapidly rendering computer generated images of complex structures
JPH0269799A (en) Display controller
JP4707782B2 (en) Image processing apparatus and method
US6680739B1 (en) Systems and methods for compositing graphical data
JPH03138783A (en) Hidden-surface eliminating circuit
JPS6242281A (en) Graphic display device
US6791553B1 (en) System and method for efficiently rendering a jitter enhanced graphical image
US5107255A (en) Control device for a display apparatus
US6870539B1 (en) Systems for compositing graphical data
JPS6242279A (en) Graphic display device
JPS6242280A (en) Graphic display device
JP3729187B2 (en) Image display device
JP2001228818A (en) Display device
JPH0683977A (en) Plotting system
JPS60118888A (en) Horizontally smoothing scrolling system and method for videodisplay generator
JPS6362750B2 (en)
KR860002145B1 (en) Picture cell array declining circuit of crt monitor
JPH08328542A (en) Image processing method and device
JPS63247868A (en) Display device for 3-dimensional pattern
JPS6327234Y2 (en)
JPS62243078A (en) Hidden-surface erasing method for graphic display
JPH01270186A (en) Character pattern thinning system
JPH01207787A (en) Window control system