Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0750514B2 - 3D graphic display - Google Patents
[go: Go Back, main page]

JPH0750514B2 - 3D graphic display - Google Patents

3D graphic display

Info

Publication number
JPH0750514B2
JPH0750514B2 JP62271418A JP27141887A JPH0750514B2 JP H0750514 B2 JPH0750514 B2 JP H0750514B2 JP 62271418 A JP62271418 A JP 62271418A JP 27141887 A JP27141887 A JP 27141887A JP H0750514 B2 JPH0750514 B2 JP H0750514B2
Authority
JP
Japan
Prior art keywords
pixel
dimensional
memory
graphic
display
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.)
Expired - Lifetime
Application number
JP62271418A
Other languages
Japanese (ja)
Other versions
JPH01112472A (en
Inventor
徹 酒井原
誠一 金間
良 藤田
健彦 西田
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP62271418A priority Critical patent/JPH0750514B2/en
Publication of JPH01112472A publication Critical patent/JPH01112472A/en
Publication of JPH0750514B2 publication Critical patent/JPH0750514B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、三次元図形表示に係り、特に立体的な形状を
表示装置に把握しやすいように表示することができるよ
うにした三次元図形表示装置に関する。
Description: TECHNICAL FIELD The present invention relates to a three-dimensional graphic display, and particularly a three-dimensional graphic capable of displaying a three-dimensional shape on a display device so as to be easily grasped. Regarding display device.

[従来の技術] 三次元図形の表示においては、物体を多面体で近似し、
これを構成する多角形を一つ一つ隠面消去やスムーズシ
ェーディングを施しながら表示を行なっている。この方
法の詳細については、ジェームズ・ディ・フォーリとア
ンドリース・バン・ダム共著の“ファンダメンタルズ・
オブ・インターラクティブ・コンピュータ・グラフィッ
クス”アディソン・ウェスリ・パブリッシング・カンパ
ニイ、1982(James D.Foley,Andries Van Dam,“Fundam
entals of Interactive Computer Graphics",Addison W
esley Publishing Company,1982)の第15章1節および
第16章4節を参照されたい。また、この種の装置として
は米国特許4,475,104号等が挙げられる。
[Prior Art] In displaying a three-dimensional figure, an object is approximated by a polyhedron,
The polygons that compose this are displayed while performing hidden surface removal and smooth shading one by one. For more information on this method, see “Fundamentals.” James D. Foley and Andrees Van Damme.
Of Interactive Computer Graphics "Addison Wesley Publishing Company, 1982 (James D. Foley, Andries Van Dam," Fundam
entals of Interactive Computer Graphics ", Addison W
esley Publishing Company, 1982), Chapters 15: 1 and 16: 4. Further, examples of this type of device include US Pat. No. 4,475,104.

一方、三次元図形の立体的な形状をより分かりやすく表
示するために、近似多面体を構成する多角形の縁を内部
とは異なる色で塗ることが行なわれる。この表示方法
は、コンピュータグラフィックスの標準規格PHIGS(Pro
grammers Hierarchical Interactive Graphics Syste
m)においても、フィルエリアの縁の表示についての規
定が定められている。この詳細については、社団法人、
情報処理学会編、グラフィックスインターフェースと標
準化講習会資料PHIGS昭和60年9月17日、第20頁を参照
されたい。
On the other hand, in order to display the three-dimensional shape of the three-dimensional figure in an easy-to-understand manner, the edges of the polygons forming the approximate polyhedron are painted in a color different from that of the inside. This display method is based on the computer graphics standard PHIGS (Pro
grammers Hierarchical Interactive Graphics Syste
In m), there are also regulations regarding the display of the edges of the fill area. For more information about this,
See Information Processing Society of Japan, Graphic Interface and Standardization Workshop Material PHIGS, September 17, 1985, page 20.

従来、前記米国特許4,475,104号に示されているよう
に、多角形を表示する際に多角形を三角形に分解してか
ら表示するため、縁を特別に表示するためには、多角形
の本来の縁と三角形に分割したことにより生じる縁を区
別して表示する必要があるが、従来この点が考慮されて
おらず、多角形を表示した後、縁を改めて表示しなおし
ていた。
Conventionally, as shown in US Pat. No. 4,475,104, when displaying a polygon, the polygon is decomposed into triangles and then displayed. Although it is necessary to display the edge and the edge generated by dividing the edge into triangles separately, this point has not been taken into consideration in the past, and after displaying the polygon, the edge was displayed again.

一方、二次元図形の表示においては、特願昭57−181311
号に記載のように縁を画素情報として特別のメモリに記
憶して、塗潰し処理時、各画素毎にこのメモリを参照
し、この画素が縁であるかを判定し、縁の場合、この画
素の塗潰しを行なわず、別途縁を表示することにより、
縁を二重に書くことを防止することが行なわれている。
この従来例は、縁付の二次元図形を表示するためのもの
で、後に述べる三次元図形表示における隠面消去におけ
る問題を解決するためのものではない。
On the other hand, in the display of two-dimensional figures, Japanese Patent Application No. 57-181311
As described in No. 3, the edge is stored in a special memory as pixel information, and at the time of painting processing, this memory is referred to for each pixel to determine whether this pixel is an edge. By not displaying the pixels and displaying the edges separately,
Preventing double writing of borders is done.
This conventional example is for displaying a two-dimensional figure with a border, and is not for solving the problem of hidden surface removal in the three-dimensional figure display described later.

[発明が解決しようとする問題点] 上記従来技術、すなわち多角形の塗潰しを行なってから
縁の描画を行なった場合、下記課題を有していた。
[Problems to be Solved by the Invention] When the above-mentioned conventional technique, that is, when the polygon is filled and then the edge is drawn, the following problems occur.

すなわち、隠面消去のため塗潰し処理および縁描画時に
奥行座標値(すなわちZ座標)を求めるが、塗潰し処理
時に計算される縁の部分のZ座標と縁描画時に計算され
るZ座標とはそれぞれの計算法が異なるため一致しな
い。もし、塗潰し時に計算されたZ座標が縁で計算され
たものより手前にある値であった画素は後から縁を描画
しても、隠面消去処理の関係で塗潰しを行なったままと
なり、縁が正常に表示されない。
That is, the depth coordinate value (that is, the Z coordinate) is calculated at the time of painting processing and edge drawing for hidden surface removal. The Z coordinate of the edge portion calculated at the time of painting processing and the Z coordinate calculated at the time of edge drawing are The calculation methods are different, so they do not match. If the pixel whose Z coordinate calculated at the time of painting is a value in front of the one calculated at the edge, even if the edge is drawn afterwards, the pixel will remain filled due to the hidden surface removal processing. , The edges are not displayed properly.

この点について今少し、詳細に説明する。塗潰し時のZ
座標の計算は下記の通りである。「日経エレクトロニク
ス」No.392(1986)第189頁から190頁において論じられ
ているように、三角形や台形に分割した図形を塗潰す時
には、これらの縁すなわち辺の各画素のZ座標は辺の両
端の値からY座標の値によって補間して求める。すなわ
ちY座標の増加に対するZ座標の増分を求め、Y座標を
+1更新させる毎に増分を加えることにより行なう。
This point will be explained in a little more detail. Z when painting
The coordinates are calculated as follows. As discussed in Nikkei Electronics, No. 392 (1986), pages 189 to 190, when painting a figure divided into triangles or trapezoids, the Z coordinate of each pixel of these edges, that is, the side, is the edge. Interpolation is performed from the values at both ends according to the Y coordinate value. That is, the increment of the Z coordinate with respect to the increase of the Y coordinate is obtained, and the increment is added every time the Y coordinate is updated by +1.

一方、縁の描画におけるZ座標の計算は次のようにな
る。まず縁は線分発生により描画される。前記フォーリ
他著書第11章2節にて論じられているように、線分発生
は通常インクリメンタルアルゴリズムあるいはその改良
方法であるブレゼンハムアルゴリズムにて処理される。
このらのアルゴリズムでは、線分の傾きの絶対値が1よ
り小さい場合、すなわち線分の両端間のX方向の変化分
がY方向の変化分より大きい場合は、X座標を1増加さ
せた場合のYの増分を、X座標を1更新する毎に加えて
いく。逆の場合、Y方向の変化分がX方向の変化分より
大きい場合は、Y座標を1更新する毎にX増分を加えて
いく。この二次元の線分発生は、X増分あるいはY増分
を加える他にZ増分を加える処理を追加することにより
三次元の線分発生に拡張できる。
On the other hand, the calculation of the Z coordinate in drawing the edge is as follows. First, the edge is drawn by generating a line segment. As discussed in Foley et al., Chapter 11, Section 2, line segment generation is usually handled by the incremental algorithm or its improved Bresenham algorithm.
In these algorithms, when the absolute value of the slope of the line segment is smaller than 1, that is, when the change amount in the X direction between both ends of the line segment is larger than the change amount in the Y direction, the X coordinate is increased by 1. The Y increment of is added every time the X coordinate is updated. In the opposite case, when the change amount in the Y direction is larger than the change amount in the X direction, the X increment is added every time the Y coordinate is updated. This two-dimensional line segment generation can be extended to a three-dimensional line segment generation by adding a process of adding Z increment in addition to adding X increment or Y increment.

このように、塗潰し処理での縁すなわち辺の上の画素の
Z座標の計算は必ずY方向に沿った補間で行なわれるの
に対して、縁の描画すなわち線分発生では、変化分の大
きい軸に沿って補間が行なわれる。従って、X方向の変
化分の大きい場合、X軸に沿って補間が行なわれるた
め、縁の部分のZ座標が塗潰しの場合と縁描画の場合と
で異なってしまう。その結果、縁とその内部を異なる色
で描画した場合、塗潰し処理での縁が、直線描画による
縁より前面にあると判定されると、縁のその部分だけ異
なる色となってしまう。
As described above, the Z coordinate of the pixel on the edge, that is, the side in the painting process is always calculated by the interpolation along the Y direction, whereas the change in the drawing of the edge, that is, the generation of the line segment is large. Interpolation is performed along the axis. Therefore, when the amount of change in the X direction is large, interpolation is performed along the X axis, and the Z coordinate of the edge portion differs between the case of painting and the case of drawing an edge. As a result, when the edge and the inside thereof are drawn in different colors, if the edge in the filling process is determined to be in front of the edge drawn in the straight line, only that portion of the edge becomes different in color.

また、同様な課題は塗潰す多角形の図形の面上に該面の
色と異なる色の線または図形を描画する際にも生じる。
The same problem also occurs when drawing a line or a figure having a color different from the color of the polygonal figure to be painted on the plane.

本発明の目的は、上記課題を解決すべく、隠面消去処理
が施された第1および第2の三次元図形について鮮明に
表示装置に表示できるようにした三次元図形表示装置を
提供することにある。
An object of the present invention is to provide a three-dimensional graphic display device capable of clearly displaying the first and second three-dimensional graphics that have been subjected to hidden surface elimination processing on the display device in order to solve the above problems. It is in.

[問題点を解決するための手段] 本発明は、上記目的を達成するために、図形情報メモリ
と、フレームメモリと、各画素における最も手前にある
表示図形の奥行座標を格納する奥行値メモリと、各画素
における最も手前にある表示図形の奥行座標を格納する
奥行値メモリと、該奥行値メモリに格納された各画素に
おける最も手前にある表示図形の奥行座標に基いて隠面
消去処理を施して該隠面消去処理が施された第1の三次
元図形を描画して各画素における色または輝度の表示情
報をフレームメモリに格納すると共に前記第1の三次元
図形の描画された領域を示す情報を各画素に対応させて
前記図形情報メモリに格納し、更に該図形情報メモリに
格納された第1の三次元図形の描画された領域を示す情
報に基いて第1の三次元図形上への第2の三次元図形の
描画を制御して該第2の三次元図形に対する各画素にお
ける色または輝度の表示情報を前記フレームメモリに格
納する描画プロセッサと、該描画プロセッサによりフレ
ームメモリに格納された各画素における色または輝度の
表示情報を読出して隠面消去処理が施された第1および
第2の三次元図形を表示する表示装置とを備えたことを
特徴とする三次元図形表示装置である。
[Means for Solving Problems] In order to achieve the above object, the present invention provides a graphic information memory, a frame memory, and a depth value memory that stores the depth coordinates of a display graphic at the frontmost position in each pixel. , A depth value memory that stores the depth coordinates of the display graphic that is closest to each pixel, and the hidden surface removal processing is performed based on the depth coordinates of the display graphic that is closest to each pixel stored in the depth value memory. The first three-dimensional figure subjected to the hidden surface removal processing is drawn, the display information of the color or the brightness in each pixel is stored in the frame memory, and the area in which the first three-dimensional figure is drawn is shown. Information is stored in the graphic information memory in association with each pixel, and based on the information indicating the drawn region of the first three-dimensional graphic stored in the graphic information memory, the first three-dimensional graphic is displayed. Second A drawing processor that controls drawing of the three-dimensional figure to store display information of color or brightness in each pixel for the second three-dimensional figure in the frame memory, and each pixel stored in the frame memory by the drawing processor And a display device for displaying the first and second three-dimensional graphics that have been subjected to the hidden surface removal processing by reading out the display information of the color or the luminance in the above-mentioned three-dimensional graphic display device.

上記「異なる色」は、明度のみが異なる場合も含む。上
記「塗潰し処理」は、シェーディング処理であってもよ
い。上記「他の面」は、線および点も含む。
The "different color" includes the case where only the brightness is different. The “painting process” may be a shading process. The "other surface" includes lines and points.

[作用] 第1A図に、本発明の概念を説明するための概念図を示
す。表示画面に、隠面消去、シェーディング処理を施し
た三次元図形を表示する場合を考える。
[Operation] FIG. 1A shows a conceptual diagram for explaining the concept of the present invention. Consider a case where a three-dimensional figure that has undergone hidden surface removal and shading processing is displayed on the display screen.

まず、図形情報メモリをクリアした後、縁等の図形情報
を図形情報メモリに書込む。すなわち、X,Y座標に対応
して縁等のドットの有無情報を書込む。この際、好まし
くは、奥行値メモリに、各画素について最も手前にある
面のドットのZ座標が書込まれ、当該ドットの色情報が
フレームメモリに書込まれる。図形情報メモリへの縁等
の書込は必ず塗潰し処理の前に行なわなければならない
が、フレームメモリへの縁等の描画は、塗潰し処理の後
に行なってもよい。
First, after clearing the graphic information memory, graphic information such as edges is written in the graphic information memory. That is, the presence / absence information of dots such as edges is written corresponding to the X and Y coordinates. At this time, preferably, the Z coordinate of the dot on the frontmost surface of each pixel is written in the depth value memory, and the color information of the dot is written in the frame memory. The writing of edges and the like to the graphic information memory must always be performed before the painting processing, but the drawing of edges and the like to the frame memory may be performed after the painting processing.

一つの多角形の塗潰し処理時には、図形情報メモリを参
照して、書込もうとする画素が図形情報メモリに記憶さ
れている画素に相当すると認識された場合には、当該画
素はそのZ座標の如何に関わらず、他の面に隠されてい
ると判定する。その結果、当該画素についてはフレーム
メモリへの塗潰しのための画素書込は行なわれない。こ
のようにして、縁の描画と塗潰し処理が重複して行なわ
れる画素はなくなり、Z座標の計算法の違いから、縁等
が正常に描画されなくなることは防止される。
At the time of painting processing of one polygon, when the pixel to be written is recognized by referring to the graphic information memory and corresponding to the pixel stored in the graphic information memory, the pixel is assigned the Z coordinate. Regardless of, it is determined that it is hidden by another surface. As a result, pixel writing for filling the frame memory is not performed for that pixel. In this manner, there are no pixels in which the drawing of the edge and the filling process are performed in duplicate, and it is possible to prevent the edge and the like from not being drawn normally due to the difference in the calculation method of the Z coordinate.

[実施例] 以下、本発明の一実施例を第1B図から第5図により説明
する。第1B図に本発明が適用される装置の全体構成を示
す。1は図形データバッファであり、表示する近似多面
体を構成する多角形の頂点の三次元空間上の座標と輝度
が記憶される。2は描画プロセッサであり、マイクロプ
ロセッサで構成され、図形データバッファ上の多角形の
情報を取込んで表示処理を行なう。3はフレームメモリ
であり、各画素(X,Y座標)に対応させて輝度または色
の情報からなる画像情報を記憶し、カラーの濃淡表示が
可能なように複数のプレーンからなり、後述するよう
に、予め多角形の縁となる画素(X,Y座標)位置に指定
された色の情報が書き込まれる(描画される)。4は奥
行値メモリでデプスバッファ法による隠面消去を行なう
ために各画素の奥行値すなわちZ座標を記憶する。5は
エッジメモリ(図形情報メモリ)で、多角形の縁となる
画素に該当する個所に1を書込む。エッジメモリは1プ
レーンからなる。6は表示装置で、フレームメモリ3か
ら出力される画像を表示する。
[Embodiment] An embodiment of the present invention will be described below with reference to FIGS. 1B to 5. FIG. 1B shows the overall configuration of a device to which the present invention is applied. Reference numeral 1 is a graphic data buffer, which stores the coordinates and brightness of the vertices of the polygons forming the approximate polyhedron to be displayed in the three-dimensional space. Reference numeral 2 denotes a drawing processor, which is composed of a microprocessor and takes in polygon information on the graphic data buffer to perform display processing. Reference numeral 3 denotes a frame memory, which stores image information including luminance or color information corresponding to each pixel (X, Y coordinates), and is composed of a plurality of planes so that color shading can be displayed. In advance, the information of the designated color is written (drawn) at the pixel (X, Y coordinate) position which becomes the edge of the polygon. Depth value memory 4 stores the depth value of each pixel, that is, the Z coordinate, in order to perform hidden surface removal by the depth buffer method. Reference numeral 5 is an edge memory (graphic information memory), and 1 is written in a portion corresponding to a pixel serving as an edge of a polygon. The edge memory consists of one plane. A display device 6 displays an image output from the frame memory 3.

第2図に描画プロセッサ2が縁付の多角形を表示する時
のフローチャート7を示す。第3図に表示する多角形8
を示す。多角形8は後に述べるように、三つの台形ある
いは台形の上底あるいは下底が点となった場合である三
角形に分割され、表示処理が行なわれる。すなわち、多
角形8は三角形81、台形82および三角形83に分割され処
理される。
FIG. 2 shows a flow chart 7 when the drawing processor 2 displays a polygon with a border. Polygon 8 displayed in Fig. 3
Indicates. As will be described later, the polygon 8 is divided into three trapezoids or triangles in which the upper base or the lower base of the trapezoid is a point, and the display processing is performed. That is, the polygon 8 is divided into a triangle 81, a trapezoid 82 and a triangle 83 for processing.

フローチャート7のブロック71でエッジメモリ5をゼロ
クリアする。ブロック72では、第2図に示すように奥行
値メモリに記憶された奥行値(Z座標)に基いて隠面消
去を施して縁の線分(図形領域)を、画素位置(X,Y座
標)に対応させて、フレームメモリ3に、指定された縁
の色を書込むと同時にエッジメモリ5には縁の線分(図
形領域)を示し、フレームメモリ3への書込み抑止のた
めの“1"を書込む。この結果第4図に示したように、エ
ッジメモリ5には丸印で示した部分に1が書込まれる。
線分発生の詳細は前掲フォーリ他の著書の第11章2節を
参照されたい。ブロック73にて与えられた角形を台形分
割する。台形分割の手順については本発明と直接関連し
ないので説明を省略する。ブロック74で台形の塗潰しを
行なう。判定75では全ての台形の塗潰しが終了したかを
判定し、終了しない場合は次の台形の塗潰し処理を行な
う。
The edge memory 5 is cleared to zero in block 71 of the flowchart 7. In block 72, the hidden surface is erased based on the depth value (Z coordinate) stored in the depth memory as shown in FIG. 2, and the line segment (graphic area) of the edge is converted into the pixel position (X, Y coordinate). ), The designated edge color is written in the frame memory 3, and at the same time, the edge line segment (graphic area) is shown in the edge memory 5 and “1” for inhibiting writing to the frame memory 3 is displayed. "Write. As a result, as shown in FIG. 4, 1 is written in the portion indicated by the circle in the edge memory 5.
For details of line segment generation, see Chapter 11 Section 2 of the above-mentioned book by Fori et al. The square given in block 73 is divided into trapezoids. The trapezoidal division procedure is not directly related to the present invention, and therefore its description is omitted. At block 74, the trapezoid is filled. In judgment 75, it is judged whether or not all the trapezoids have been painted. If not completed, then the next trapezoid is painted.

台形の塗潰し処理は、日経エレクトロニクスNo.392(19
86)第189頁から第190頁において論じられているように
第3図に示したスキャンライン811に沿って塗潰しを行
なう。台形の最下のスキャンラインから最上のスキャン
ラインまで処理することにより台形全体の塗潰しを行な
う。スキャンラインの描画処理のフローチャート9を第
5図に示す。ブロック91ではスキャンライン、ここでは
スキャンライン811の端点8111と端点8112のX座標、Z
座標および輝度Iを多角形の頂点V1、V2、V3およびV4
値から求める。すなわち、端点8111の値は頂点V2と頂点
V1から、端点8112の値は頂点v2と頂点V3の値から補間で
求められる。ブロック92ではスキャンラインに沿ってX
座標が増加した時のZ座標の増分および輝度Iの増分を
スキャンラインの両端の値から求める。ブロック93では
塗潰し処理(描画処理)しようとする現在の画素におけ
るX座標、Z座標および輝度Iの値を左端8111の値とす
る。判定94では現在の画素すなわち左端8111の位置のエ
ッジメモリを読んで“1"が書込まれているか判定し、1
が立っていればフレームメモリ3への書込みを抑止し、
全画素終了の判定97へジャンプする。そうでなければ、
判定95に進み、ここでは奥行値メモリ4から塗潰し処理
(描画処理)しようとする現在の画素の位置における奥
行値を読んで、他面に隠れているかを判定する。もし隠
れている場合は判定97へジャンプする。隠れていなけれ
ば、次のブロック96でフレームメモリ3の現在の画素の
位置に現在の画素の輝度Iを書込む。また奥行値メモリ
4にも現在の画素のZ座標を書込む。判定97では該スキ
ャンライン上の全画素の処理を終了したかを判定し、終
了していない場合は現在の画素のX座標、Z座標および
輝度Iの値を右隣りの画素の値に更新する。すなわちX
座標は1を加え、Z座標および輝度Iについてはブロッ
ク92で求めたそれぞれの増分値を加え、判定94へジャン
プし、上記処理を繰返す。
The trapezoidal filling process is based on Nikkei Electronics No.392 (19
86) Fill along scan line 811 shown in FIG. 3 as discussed on pages 189-190. The entire trapezoid is filled by processing from the bottom scan line to the top scan line of the trapezoid. FIG. 5 shows a flowchart 9 of the scan line drawing process. In the block 91, the scan lines, here, the X coordinates of the end points 8111 and 8112 of the scan line 811, Z
The coordinates and the brightness I are obtained from the values of the vertices V 1 , V 2 , V 3 and V 4 of the polygon. That is, the value of the end point 8111 is equal to the vertex V 2 and the vertex
From V 1 , the value of the end point 8112 is obtained by interpolation from the values of the vertices v 2 and V 3 . At block 92, X along the scan line
The increment of the Z coordinate and the increment of the brightness I when the coordinate increases are obtained from the values at both ends of the scan line. In block 93, the values of the X coordinate, Z coordinate, and brightness I of the current pixel to be painted (drawn) are set to the value of the left end 8111. In the judgment 94, the current pixel, that is, the edge memory at the position of the left end 8111 is read and it is judged whether "1" has been written, and 1
If is set, writing to the frame memory 3 is suppressed,
Jump to determination 97 of end of all pixels. Otherwise,
Proceeding to judgment 95, here, the depth value at the position of the current pixel to be painted (drawn) is read from the depth value memory 4 and it is judged whether or not it is hidden on the other surface. If it is hidden, jump to decision 97. If it is not hidden, the brightness I of the current pixel is written in the position of the current pixel in the frame memory 3 in the next block 96. The Z coordinate of the current pixel is also written in the depth value memory 4. In the judgment 97, it is judged whether or not the processing of all the pixels on the scan line has been completed. . Ie X
The coordinate is incremented by 1, the Z coordinate and the brightness I are added by the respective increment values obtained in the block 92, the process jumps to the decision 94, and the above process is repeated.

以上の実施例では、多角形の縁についてのみ説明した
が、多角形の塗潰しの際に、縁以外にも面上の線、面等
の任意の図形についても本発明は適用できる。
Although only the edges of the polygon have been described in the above embodiments, the present invention can be applied to any figure such as a line on the surface or a surface other than the edge when the polygon is filled.

[発明の効果] 本発明によれば、縁等の三次元図形の描画と同一面上へ
の塗潰し処理(描画処理)とを同一画素に重複して行な
うことが防止されるため、三次元図形の隠面処理に伴っ
て縁等の図形表示に画素抜け等が生じることをなくして
鮮明な第1および第2の三次元図形を表示することがで
きる効果を奏する。
EFFECTS OF THE INVENTION According to the present invention, it is possible to prevent the drawing of a three-dimensional figure such as an edge and the painting processing (drawing processing) on the same surface from being duplicated in the same pixel. There is an effect that it is possible to display clear first and second three-dimensional figures without causing pixel omission or the like in the figure display such as edges accompanying the hidden surface processing of the figure.

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

第1A図は本発明の概念図、第1B図は本発明の方法が適用
される装置の全体構成のブロック図、第2図は縁付三次
元塗潰し処理手順を示すフローチャート、第3図は縁付
三次元塗潰しを行なう多角形を示す説明図、第4図は図
形情報メモリ(エッジメモリ)への縁の記憶法を示す説
明図、第5図は1本のスキャンラインを塗潰す処理手順
を示すフローチャートである。 1……図形データバッファ 2……描画プロセッサ 3……フレームメモリ 4……奥行値メモリ 5……図形情報メモリ(エッジメモリ) 6……表示装置
FIG. 1A is a conceptual diagram of the present invention, FIG. 1B is a block diagram of the overall configuration of an apparatus to which the method of the present invention is applied, FIG. 2 is a flowchart showing a three-dimensional bordered painting processing procedure, and FIG. FIG. 4 is an explanatory diagram showing a polygon for performing three-dimensional filling with a border, FIG. 4 is an explanatory diagram showing a method of storing a border in a graphic information memory (edge memory), and FIG. 5 is a process for painting one scan line. It is a flowchart which shows a procedure. 1 ... Graphic data buffer 2 ... Drawing processor 3 ... Frame memory 4 ... Depth value memory 5 ... Graphic information memory (edge memory) 6 ... Display device

───────────────────────────────────────────────────── フロントページの続き (72)発明者 西田 健彦 茨城県日立市大みか町5丁目2番1号 株 式会社日立製作所大みか工場内 (56)参考文献 特開 昭63−59684(JP,A) 特開 昭62−49571(JP,A) ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Takehiko Nishida Inventor Takehiko Nishida 5-2-1 Omika-cho, Hitachi-shi, Ibaraki Inside the Omika factory of Hitachi, Ltd. (56) Reference JP-A-63-59684 (JP, A) JP 62-49571 (JP, A)

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】図形情報メモリと、 フレームメモリと、 各画素における最も手前にある表示図形の奥行座標を格
納する奥行値メモリと、 該奥行値メモリに格納された各画素における最も手前に
ある表示図形の奥行座標に基いて隠面消去処理を施し、
該隠面消去処理が施された第1の三次元図形を描画して
各画素における色または輝度の表示情報をフレームメモ
リに格納すると共に前記第1の三次元図形の描画された
領域を示す情報を各画素に対応させて前記図形情報メモ
リに格納し、更に該図形情報メモリに格納された第1の
三次元図形の描画された領域を示す情報に基いて第1の
三次元図形上への第2の三次元図形の描画を制御して、
該第2の三次元図形に対する各画素における色または輝
度の表示情報を前記フレームメモリに格納する描画プロ
セッサと、 該描画プロセッサによりフレームメモリに格納された各
画素における色または輝度の表示情報を読出して隠面消
去処理が施された第1および第2の三次元図形を表示す
る表示装置とを備えたことを特徴とする三次元図形表示
装置。
1. A graphic information memory, a frame memory, a depth value memory for storing depth coordinates of a display graphic in the foremost position in each pixel, and a display in the foremost position in each pixel stored in the depth value memory. Perform hidden surface removal processing based on the depth coordinates of the figure,
Information for indicating the area in which the first three-dimensional figure is drawn while storing the display information of the color or brightness of each pixel in the frame memory by drawing the first three-dimensional figure subjected to the hidden surface removal processing. Is stored in the graphic information memory in association with each pixel, and based on the information indicating the drawn area of the first three-dimensional graphic stored in the graphic information memory, Control the drawing of the second three-dimensional figure,
A drawing processor that stores in the frame memory display information of the color or brightness of each pixel for the second three-dimensional figure, and the display processor reads out the display information of the color or brightness of each pixel stored in the frame memory. A three-dimensional graphic display device, comprising: a display device that displays first and second three-dimensional graphics that have been subjected to hidden surface removal processing.
JP62271418A 1987-10-27 1987-10-27 3D graphic display Expired - Lifetime JPH0750514B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62271418A JPH0750514B2 (en) 1987-10-27 1987-10-27 3D graphic display

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62271418A JPH0750514B2 (en) 1987-10-27 1987-10-27 3D graphic display

Publications (2)

Publication Number Publication Date
JPH01112472A JPH01112472A (en) 1989-05-01
JPH0750514B2 true JPH0750514B2 (en) 1995-05-31

Family

ID=17499762

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62271418A Expired - Lifetime JPH0750514B2 (en) 1987-10-27 1987-10-27 3D graphic display

Country Status (1)

Country Link
JP (1) JPH0750514B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5265198A (en) * 1989-10-23 1993-11-23 International Business Machines Corporation Method and processor for drawing `polygon with edge`-type primitives in a computer graphics display system
US5220646A (en) * 1990-04-30 1993-06-15 International Business Machines Corporation Single pass hidden line removal using z-buffers

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6249571A (en) * 1985-08-29 1987-03-04 Toshiba Corp Clipping system

Also Published As

Publication number Publication date
JPH01112472A (en) 1989-05-01

Similar Documents

Publication Publication Date Title
US4609917A (en) Three-dimensional display system
US7158138B1 (en) System and method for drawing and painting with warped bitmap brushes
US5369739A (en) Apparatus and method for generating point sample masks in a graphics display system
US4475104A (en) Three-dimensional display system
US5542032A (en) Fast display of images of three-dimensional surfaces without aliasing
EP0592770B1 (en) Method for filling of interior pixels within a polygon
US6714195B1 (en) Image processing apparatus
US6433790B1 (en) Methods and systems for rendering line and point features for display
US7050066B2 (en) Image processing apparatus and image processing program
US5589851A (en) Multi-level to bi-level raster shape converter
KR930000998B1 (en) Method and apparatus for processing image and/or character in computer graphics
JP3547250B2 (en) Drawing method
US7280119B2 (en) Method and apparatus for sampling on a non-power-of-two pixel grid
JP4311877B2 (en) Anti-aliasing of subsampled texture edges
KR100429092B1 (en) Graphic image processing method and apparatus
US5739818A (en) Apparatus and method for performing perspectively correct interpolation in computer graphics
JPH0750514B2 (en) 3D graphic display
JPH09311954A (en) Three-dimensional graphic display system and three-dimensional graphic display method
JP3872056B2 (en) Drawing method
JP2776793B2 (en) Image display method and display device thereof
US6377279B1 (en) Image generation apparatus and image generation method
JP4433525B2 (en) Image processing device
JP2633909B2 (en) 3D graphic display method
JP2576748B2 (en) 3D figure drawing device
JPH02127785A (en) Picture display device