JPH10134204A - Graphics display device - Google Patents

Graphics display device

Info

Publication number
JPH10134204A
JPH10134204A JP8285353A JP28535396A JPH10134204A JP H10134204 A JPH10134204 A JP H10134204A JP 8285353 A JP8285353 A JP 8285353A JP 28535396 A JP28535396 A JP 28535396A JP H10134204 A JPH10134204 A JP H10134204A
Authority
JP
Japan
Prior art keywords
value
command
group
commands
display device
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
JP8285353A
Other languages
Japanese (ja)
Inventor
Katsura Abe
桂 阿部
Kazuyoshi Koga
和義 古賀
Tetsuya Shimomura
哲也 下村
Ichiro Iimura
伊智郎 飯村
Norito Watanabe
範人 渡辺
Jun Sato
潤 佐藤
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 JP8285353A priority Critical patent/JPH10134204A/en
Publication of JPH10134204A publication Critical patent/JPH10134204A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a graphics display device which performs the Z sorting of drawing commands fast with high precision in a hidden-surface erasing process of the graphics display device. SOLUTION: A Z value range detection part 110 detects the maximum and minimum values of the Z values of drawing commands of one frame to set a Z value range (far surface and near surface), and a group decision number calculation part 120 determines the number of divisions of groups. The division number is optimized on the basis of the number of commands and the Z value range. A sorting process part 130 allots drawing commands in issue order which are read out of a command buffer 220 to corresponding the group according to the Z value and then perform Z sorting in the group. The Z-sorted commands and their addresses are written in a group pointer table 200 and a command pointer table 210 and linked. A graphics processor 300 reads commands by tracing the link order of the table back to perform a drawing process.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明はグラフィックス表示
装置に係り、特に図形描画コマンドのZソートを小容量
のメモリで高精度に且つ、高速に行なう描画方式に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a graphics display device, and more particularly to a drawing method for performing Z-sorting of graphic drawing commands with high accuracy and high speed using a small-capacity memory.

【0002】[0002]

【従来の技術】一般に、コンピュータグラフィックスの
表示処理はトラバーサル、ジオメトリ、陰面処理、レン
ダリング、表示の手順で行われる。これら一連の処理を
行うことにより、三角形や四角形、あるいはより頂点数
の多い図形を用いて、立体感や質感のあるより現実物に
近い画像を描画および表示することが可能となる。
2. Description of the Related Art In general, computer graphics display processing is performed in the order of traversal, geometry, hidden surface processing, rendering, and display. By performing these series of processes, it is possible to draw and display a three-dimensional or textured image closer to a real object using a triangle, a quadrangle, or a figure having more vertices.

【0003】陰面処理と呼ばれる処理は、視点から描画
図形を見た場合、他の図形の陰に隠れる図形については
描画しないという処理を行う部分である。この陰面処理
には一般にZソート法とZバッファ法があり、ジオメト
リ演算後の図形の奥行き情報を利用する。この奥行き情
報は一般にZ値と呼ばれる。
A process called a hidden surface process is a portion for performing a process of not drawing a figure hidden behind another figure when the figure to be drawn is viewed from a viewpoint. The hidden surface processing generally includes a Z-sort method and a Z-buffer method, and uses the depth information of the figure after the geometry calculation. This depth information is generally called a Z value.

【0004】Zバッファ法による陰面処理は画素単位で
逐次処理する。すなわち、描画したい図形の画素のZ値
とZバッファに格納されているZ値を比較し、Zバッフ
ァに格納されている図形のZ値の方が小さければ、フレ
ームバッファに描画するとともにZバッファの値を更新
する。比較の結果、Zバッファに格納されているZ値の
方が大きければ、その画素は描画されずZバッファも更
新されない。このような処理を行うことにより、Zバッ
ファを用いて図形の影に隠れる図形は描画されず、より
自然な表示図形を得ることが可能になる。
The hidden surface processing by the Z-buffer method is performed sequentially for each pixel. That is, the Z value of the pixel of the graphic to be drawn is compared with the Z value stored in the Z buffer, and if the Z value of the graphic stored in the Z buffer is smaller, the Z value is drawn in the frame buffer and the Z buffer. Update the value. As a result of the comparison, if the Z value stored in the Z buffer is larger, the pixel is not drawn and the Z buffer is not updated. By performing such processing, a graphic hidden by the shadow of the graphic using the Z buffer is not drawn, and a more natural display graphic can be obtained.

【0005】Zバッファ法は画素単位に処理するので、
また、ハードウェア処理となるので高速になる。しか
し、Z値を格納しておく表示画面と同じ大きさのZバッ
ファをシステムに持つ必要があり、パソコンやゲーム機
あるいはカーナビゲーション等の低価格性が重視される
分野での適用を困難にしている。
[0005] Since the Z-buffer method operates on a pixel-by-pixel basis,
In addition, the speed is increased because of hardware processing. However, the system needs to have a Z-buffer of the same size as the display screen on which the Z value is stored, which makes it difficult to apply in fields where low cost is important, such as personal computers, game consoles, and car navigation systems. I have.

【0006】Zソート法は図形描画を行う前に、三次元
空間内での距離を用いて描画順序の並びを替える。一般
には、最も奥にある図形から最も手前にある図形の順に
並び替え、描画順位を決定し、この順位に従って図形の
描画をおこなう。
In the Z-sort method, before drawing a figure, the drawing order is rearranged using a distance in a three-dimensional space. In general, the graphics are rearranged in order from the furthest graphics to the graphics in the foreground, the drawing order is determined, and the graphics are drawn in accordance with this order.

【0007】Zソート法の公知例として、特開平7−2
96186号公報がある。この方法は三次元空間を距離
に応じて複数のブロックに分割し、描画コマンドが生成
されると、まずどのブロックに属するか判定する。ブロ
ックが定まると描画コマンドが生成された順に描画され
るようにリンクする。そして、視点から見て奥のブロッ
クから手前のブロックへ、あるいは手前のブロックから
奥のブロックへ、描画処理されるようにリンクする。こ
れによれば、図形データ保存のためのメモリ領域が少な
く、図形データのソートも高速に行なわれる。
[0007] As a known example of the Z-sort method, Japanese Patent Laid-Open No. 7-2
No. 96186. In this method, a three-dimensional space is divided into a plurality of blocks according to a distance, and when a drawing command is generated, it is first determined to which block the drawing command belongs. When a block is determined, links are made so that drawing commands are drawn in the order in which they were generated. Then, the block is linked from the block at the back to the block at the front, or from the block at the front to the block at the back, so that the drawing processing is performed. According to this, a memory area for storing graphic data is small, and sorting of graphic data is performed at high speed.

【0008】[0008]

【発明が解決しようとする課題】Zバッファ法は高速、
高精度に描画処理を行うことができるが、大容量のバッ
ファをもつ必要があるため、グラフィックス表示装置が
高価格になるという問題があった。
The Z-buffer method is fast,
Although the drawing process can be performed with high accuracy, there is a problem that the graphics display device becomes expensive because it is necessary to have a large-capacity buffer.

【0009】また、上記したZソート法は、分割ブロッ
クにソートするだけなので、ブロック内ソートが行なわ
れないため図形描画の精度が悪い。また、ブロックの分
割が所定のZ値範囲に対して固定的に行なわれ、ブロッ
クに分配できない描画コマンドを生じたり、反対に描画
コマンドの分配のない空きブロックが発生して、描画精
度の低下やメモリの無駄な配分を生じる。
In the above-described Z-sort method, since only sorting into divided blocks is performed, the intra-block sorting is not performed, so that the accuracy of drawing a figure is poor. Further, the division of the block is fixedly performed in a predetermined Z value range, and a drawing command that cannot be distributed to the block occurs, or an empty block in which the drawing command is not distributed occurs. This results in wasted allocation of memory.

【0010】また、従来のZソート法では、例えば三次
元空間内で視点から見て奥から手前への順に描画コマン
ドが作成されている場合や、背景画像のように多数のフ
レームに亘って描画コマンドが変化しない場合などに
も、常にソートを行なっているため、ソートの処理時間
が長くなる問題点がある。
Further, in the conventional Z-sort method, for example, a drawing command is created in order from the back to the front when viewed from the viewpoint in a three-dimensional space, or a drawing command is drawn over many frames such as a background image. Even when the command does not change, since the sorting is always performed, there is a problem that the sorting processing time becomes long.

【0011】本発明の目的は、上記の問題点を克服し、
グループ内ソートを含む高精度のZソート法による描画
処理を安価に実現する、グラフィックス表示装置を提供
することにある。
An object of the present invention is to overcome the above-mentioned problems,
It is an object of the present invention to provide a graphics display device which realizes a low-cost drawing process by a high-precision Z-sort method including an intra-group sort.

【0012】また、Zソートの要否や精度を選択可能に
構成し、描画図形の用途に応じて描画精度と処理速度の
要求に柔軟に対応できる、使い勝手のよいグラフィック
ス表示装置を提供することにある。
It is another object of the present invention to provide an easy-to-use graphics display device which is configured so that the necessity and accuracy of Z-sorting can be selected, and which can flexibly respond to the demands of drawing accuracy and processing speed according to the use of a drawing figure. is there.

【0013】[0013]

【課題を解決するための手段】上記目的は、3次元グラ
フィックス表示装置において、1フレーム中の描画コマ
ンドから3次元空間上で存在し得る範囲を検出し、この
存在範囲を複数のブロックに分割し、各ブロックに対応
する描画コマンドを分配し、前記存在範囲における昇順
あるいは降順に各ブロックを描画することにより達成さ
れる。
SUMMARY OF THE INVENTION It is an object of the present invention to detect a range which can exist in a three-dimensional space from a drawing command in one frame in a three-dimensional graphics display device, and divide this range into a plurality of blocks. This is achieved by distributing a drawing command corresponding to each block and drawing each block in ascending or descending order in the existence range.

【0014】前記描画コマンドは3次元の奥行き情報を
示すZ値を有し、前記存在範囲は1フレーム中の描画コ
マンドのZ値の最大値と最小値により決定することを特
徴とする。
The drawing command has a Z value indicating three-dimensional depth information, and the existence range is determined by a maximum value and a minimum value of the Z value of the drawing command in one frame.

【0015】前記ブロックの分割数は、1フレーム毎に
最適化されることを特徴とする。この最適化は前記描画
コマンド数および/または前記存在範囲に基づいて決定
される。
The number of divisions of the block is optimized for each frame. This optimization is determined based on the number of drawing commands and / or the existence range.

【0016】上記目的は、3次元グラフィックス表示装
置において、3次元の奥行きを複数のグループに分割す
る際に、視点からみて最も手前と最も奥のグループの各
々に、1フレーム中の少なくとも一つの描画コマンドが
分配されるように分割する手段を設けることによって達
成される。
In the three-dimensional graphics display device, when the three-dimensional depth is divided into a plurality of groups, at least one of the frontmost and the rearmost groups from the viewpoint is added to each of the groups. This is achieved by providing means for dividing the drawing commands so that they are distributed.

【0017】上記目的は、3次元グラフィックス表示装
置において、発行された描画コマンドをそのZ値に応じ
て複数のグループに分配するとともに、各グループ内で
そのZ値に応じてソートし、グループのZ値及びグルー
プ内のZ値の昇順あるいは降順に描画処理を行うことに
よって達成される。
In the three-dimensional graphics display device, the issued drawing commands are distributed to a plurality of groups according to the Z value, and sorted within each group according to the Z value. This is achieved by performing drawing processing in ascending order or descending order of the Z value and the Z value in the group.

【0018】グループ内の描画コマンドのZソートは、
コマンドのZソートリンクテーブル(GPTとCPT)
を設け、コマンドが発行される度に前記テーブルの該当
グループにリンクし、グループ内のリンク張り替え処理
によって行なわれる。
The Z sort of the drawing command in the group is as follows.
Command Z-sort link table (GPT and CPT)
Is linked to the corresponding group in the table each time a command is issued, and is performed by a link replacement process within the group.

【0019】上記他の目的は、3次元グラフィックス表
示装置において、Zソートの要否や図形精度(グループ
への分配のみか、グループ内ソートも行なうかなど)
を、適宜に選択する手段を設けたことにより達成され
る。
Another object of the present invention is to provide a three-dimensional graphics display device with the necessity of Z-sorting and the accuracy of graphics (whether only distribution to groups or sorting within groups is performed).
Is achieved by providing a means for appropriately selecting

【0020】また、図形精度の選択にZ値の代表点を選
択する手段を設ける。すなわち、三角形や四角形等によ
る描画コマンドの、Zソート時に参照する点を第1頂点
Z値、重心Z値または最小Z値から選択する。
Further, means for selecting a representative point of the Z value is provided for selecting the graphic precision. That is, a point to be referred to at the time of Z sorting of a drawing command such as a triangle or a quadrangle is selected from the first vertex Z value, the center of gravity Z value, or the minimum Z value.

【0021】さらに、グラフィックスプロセッサの描画
処理と、次フレーム描画のための描画コマンド生成処理
を効率的に行うために、複数の前記描画コマンド保持部
と描ポインタ保持部と、それらの書き込みと読み出しを
交替ないしサイクリックに行なう指定手段を設けてい
る。あるいは、複数の前記描画コマンド保持部の一部で
背景画のように複数のフレームで共用する描画コマンド
を保持し、該部分の描画コマンドの転送とZソートを省
略して処理を高速化する。
Further, in order to efficiently perform the drawing processing of the graphics processor and the drawing command generation processing for drawing the next frame, a plurality of the drawing command holding units and the drawing pointer holding units, and writing and reading thereof are performed. Is specified alternately or cyclically. Alternatively, a part of the plurality of drawing command holding units holds a drawing command shared by a plurality of frames, such as a background image, and the processing is speeded up by omitting transfer of the drawing command and Z-sorting of the drawing command.

【0022】図2に、本発明によるZソート方式の概念
図を示す。図中の四角形中の数字1〜5は描画コマンド
の発行順序を示している。この描画コマンドの発行順序
は不規則であり、視点からみて正しい画像を表示するた
めには、三次元空間における距離、特に奥行き情報であ
るZ値に関して、最も大きなコマンドから最も小さなコ
マンドの順番(昇順)に描画する必要がある。
FIG. 2 shows a conceptual diagram of the Z-sort method according to the present invention. Numerals 1 to 5 in the squares in the figure indicate the order in which drawing commands are issued. The order in which the drawing commands are issued is irregular, and in order to display a correct image from the viewpoint, the order from the largest command to the smallest command (in ascending order) with respect to the distance in the three-dimensional space, in particular, the Z value as depth information. ) Must be drawn.

【0023】図2の場合、描画する三次元空間をコマン
ドのZ値の存在範囲によりグループ1〜グループ3に分
割する。この分割数はコマンド数などに基づいて最適化
される。そして、コマンドが発行される度に、そのZ値
がどのグループに属するか判定する。判定されたコマン
ドはZソートリンクテーブルの該当グループにリンクさ
れ、そのグループ内に属するコマンドと順次Z値の比較
を行い、Gr2のようにZ値の大きなコマンド順にリン
クを張り替える。図示例の場合、コマンド4から開始
し、以下1、3、2、5の順で描画するようにZソート
が行なわれる。
In the case of FIG. 2, the three-dimensional space to be drawn is divided into groups 1 to 3 according to the range of the Z value of the command. This division number is optimized based on the number of commands and the like. Each time a command is issued, it is determined which group the Z value belongs to. The determined command is linked to the corresponding group in the Z-sort link table, and the commands belonging to the group are sequentially compared with the Z value, and the link is reassigned in the order of the command having the largest Z value such as Gr2. In the case of the illustrated example, starting from the command 4, the Z sort is performed so that drawing is performed in the order of 1, 3, 2, and 5 below.

【0024】この操作を1フレームの描画コマンドの全
てに対して行い、Z値の大きなグループから先に描画す
れば、所望の画像を表示することができる。グループ内
も、前記Zソートポインターテーブルのリンクを辿るだ
けの簡単な処理となるので、Z値の大きなコマンドから
Z値の小さなコマンドの順で高速に描画できる。もし、
三次元空間において手前の物体の描画が重要とされる場
合は、リンクの張り替え作業及び、リンクの辿り方を、
Z値に関して上記と逆に行えばよい。
If this operation is performed for all the drawing commands of one frame and the drawing is performed first from the group having a large Z value, a desired image can be displayed. Even within the group, since the processing is as simple as following the link of the Z sort pointer table, high-speed drawing can be performed in the order from the command having the larger Z value to the command having the smaller Z value. if,
If it is important to draw the object in front in the three-dimensional space, replace the link and follow the link.
What is necessary is just to carry out in reverse with respect to a Z value.

【0025】[0025]

【発明の実施の形態】本発明の一実施形態であるZソー
ト方式及び、それを用いたグラフィックス表示装置につ
いて、図面を参照しながら詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A Z-sort system according to an embodiment of the present invention and a graphics display device using the Z-sort system will be described in detail with reference to the drawings.

【0026】図1は、本発明の一実施形態によるグラフ
ィックス表示装置の構成図である。本表示装置はデータ
処理、表示処理、入出力処理及びZソート処理をおこな
う処理部10、データや描画コマンドを記憶し、データ
の読み出しまたは書き込みの処理がおこなわれるメイン
メモリ20、CRT40等の表示部、他の処理装置や記
憶装置との入出力処理をおこなうI/O装置50から構
成される。
FIG. 1 is a configuration diagram of a graphics display device according to an embodiment of the present invention. The display device includes a processing unit 10 that performs data processing, display processing, input / output processing, and Z-sort processing; a main memory 20 that stores data and drawing commands; and a display unit such as a CRT 40 that performs data reading or writing processing. And an I / O device 50 that performs input / output processing with other processing devices and storage devices.

【0027】処理部10は、データ処理や他のプロセッ
サの制御を行うCPU600と、描画データを処理する
グラフィックスプロセッサ300と、表示部の表示タイ
ミングなどを処理する表示プロセッサ500と、CPU
600、グラフィックスプロセッサ300、表示プロセ
ッサ500等のインメモリ20のアクセスを調停するメ
モリコントローラ400と、Zソート部100から構成
されている。
The processing unit 10 includes a CPU 600 for controlling data processing and other processors, a graphics processor 300 for processing drawing data, a display processor 500 for processing display timing of a display unit, and a CPU.
The system includes a memory controller 400 that arbitrates access to the in-memory 20 such as the graphics processor 300, the graphics processor 300, and the display processor 500, and a Z sort unit 100.

【0028】なお、本実施例では、CPU600、グラ
フィックスプロセッサ300、表示プロセッサ500、
メモリコントローラ400及びZソート部100を、1
チップLSIで構成しているが、これに限られるもので
はない。
In this embodiment, the CPU 600, the graphics processor 300, the display processor 500,
The memory controller 400 and the Z sort unit 100
Although it is constituted by a chip LSI, it is not limited to this.

【0029】本実施例のZソート部100はZ値範囲検
出部110、グループ分割数算出部120及びソート処
理部130を有している。Z値範囲検出部110は、1
フレームないし1シーンの全描画コマンドのZ値から最
大値Zmax、最小値Zminを求めて、描画データの
存在範囲(near面とfar面)を過不足なく決定す
る。グループ分割数算出部120は、Z値範囲をコマン
ド数やZ値範囲の大きさに基づいて、グループの最適分
割数を決定し、Z値範囲を複数のグループに分割する。
ソート処理部130は、描画コマンドが発行される度
に、そのZ値により該当するグループに配分し、グルー
プ内でのリンク張り替えによるZソートを行なう。Zソ
ートはZ値の昇順でなく降順でもよい。
The Z sorting section 100 of this embodiment has a Z value range detecting section 110, a group division number calculating section 120, and a sorting section 130. The Z value range detection unit 110
The maximum value Zmax and the minimum value Zmin are obtained from the Z values of all the drawing commands of the frame or one scene, and the existing range (near plane and far plane) of the drawing data is determined without excess or deficiency. The group division number calculation unit 120 determines the optimal division number of the group based on the number of commands and the size of the Z value range, and divides the Z value range into a plurality of groups.
Each time a drawing command is issued, the sort processing unit 130 allocates the drawing command to a corresponding group based on the Z value, and performs Z sorting by link reassignment within the group. The Z sort may be in descending order instead of ascending order of the Z value.

【0030】Zソート部100は、ソフトウェア的に処
理される場合にはCPU600がその機能を具備してい
る。あるいは、グラフィックスプロセッサ300に内蔵
されてもよい。
The CPU 600 has the function of the Z sort unit 100 when it is processed by software. Alternatively, it may be built in the graphics processor 300.

【0031】メインメモリ20は、グループポインタテ
ーブル(以下、GPTと略称)200、コマンドポイン
タテーブル(以下、CPTと略称)210、コマンドバ
ッファ220及びフレームバッファ230を備えてい
る。コマンドバッファ220は、グラフィックスプロセ
ッサ300が処理する描画コマンドを一時的に保持す
る。フレームバッファ230には、コマンドバッファ2
20から読み出した描画コマンドの描画が行なわれる。
The main memory 20 includes a group pointer table (hereinafter abbreviated as GPT) 200, a command pointer table (hereinafter abbreviated as CPT) 210, a command buffer 220 and a frame buffer 230. The command buffer 220 temporarily holds a drawing command processed by the graphics processor 300. The command buffer 2 is stored in the frame buffer 230.
The drawing of the drawing command read from 20 is performed.

【0032】上記Zソートリンクテーブルは、GPT2
00とCPT210から構成され、描画コマンドの処理
順を表すリンク情報が書き込まれる。例えば、図10に
示すように、GPT200はグループ毎に、各グループ
に属する描画コマンドの開始及び終了のアドレスを管理
する。CPT210はコマンド毎に、描画コマンドのア
ドレスとZソートのリンク先のアドレスを管理する。
The Z sort link table is GPT2
00 and CPT 210, link information indicating the processing order of the drawing commands is written. For example, as shown in FIG. 10, the GPT 200 manages the start and end addresses of drawing commands belonging to each group for each group. The CPT 210 manages, for each command, the address of the drawing command and the link destination address of the Z sort.

【0033】次に、本グラフィックス表示装置の処理手
順について説明する。まず、CPU600において図形
データのジオメトリ演算が行われる。ジオメトリ演算が
行われた描画コマンドは、メモリコントローラ400に
より制御されて、Zソート部100へ転送される。な
お、CPU600のジオメトリ演算では描画コマンドの
Z値を、コマンドの三角形や四角形等の代表点により演
算する。後述のように、代表点が最小Z値あるいは重心
Z値等と選択指定される場合には、各々に対応する演算
ルーチンが用意される。
Next, the processing procedure of the graphics display device will be described. First, the geometry calculation of the graphic data is performed in the CPU 600. The drawing command on which the geometry operation has been performed is transferred to the Z sort unit 100 under the control of the memory controller 400. In the geometry calculation of the CPU 600, the Z value of the drawing command is calculated based on a representative point such as a triangle or a quadrangle of the command. As will be described later, when the representative point is selected and designated as the minimum Z value or the center of gravity Z value, an arithmetic routine corresponding to each is prepared.

【0034】Zソート部100は後述するように、GP
T200とCPT210のテーブル内容を書き替え、Z
値の大きなコマンドからZ値の小さなコマンドの順にリ
ンクを張り替えていく。1シーン分の描画コマンドにつ
いてZソートを行うと、Zソート部100はメモリコン
トローラ400を介して、グラフィックスプロセッサ3
00に描画開始のための信号を送る。
As will be described later, the Z sort unit 100
Rewrite the table contents of T200 and CPT210, Z
The link is re-assigned in order from the command having the larger value to the command having the smaller Z value. When Z-sorting is performed on a drawing command for one scene, the Z-sorting unit 100 sends the graphics command to the graphics processor 3 via the memory controller 400.
A signal for starting drawing is sent to 00.

【0035】グラフィックスプロセッサ300は主に、
三次元グラフィックスの図形データの演算処理を行う。
即ち、メインメモリ20のGPT200の先頭アドレス
を読み込んで解釈し、演算結果である図形データをフレ
ームバッファ230に描画処理する。このときGPT2
00あるいはCPT210に格納されているリンク情報
を次々と辿っていくことにより、所望の図形データを描
画することができる。
The graphics processor 300 mainly includes:
Performs arithmetic processing on graphic data of three-dimensional graphics.
That is, the head address of the GPT 200 in the main memory 20 is read and interpreted, and the graphic data as the calculation result is drawn in the frame buffer 230. At this time, GPT2
By sequentially following the link information stored in the 00 or CPT 210, desired graphic data can be drawn.

【0036】リンク情報の辿りかたはまず、最もZ値の
大きなグループへ読み込みのためのアクセスをおこな
う。そのグループに属するコマンドをCPT210のア
ドレスを基に参照し、描画処理する。次に、一つ手前の
グループに属するコマンドを描画する。
In tracing the link information, first, the group having the largest Z value is accessed for reading. Drawing processing is performed by referring to commands belonging to the group based on the address of the CPT 210. Next, a command belonging to the immediately preceding group is drawn.

【0037】以下、Zソート部100の構成と動作を詳
細に説明する。図3に、Z値範囲におけるnear面
(最前面)とfar面(最奥面)の設定例を示す。図示
のように、実際の奥行き情報をカバーしない場合は、n
ear面の手前側とfar面の奥側は描画されないた
め、描画精度が低下することになる。一般には、奥行き
に対するnear面は視点位置、far面はシステムの
設定可能な最大値がそれぞれ固定的に設定され、実際の
奥行き情報より広い範囲をカバーしていることが多い。
この場合、分割された複数のグループのうちに、空デー
タとなるものが多く存在すると、ソートのために確保し
たメモリエリアが無駄になる。
Hereinafter, the configuration and operation of the Z sort unit 100 will be described in detail. FIG. 3 shows a setting example of the near surface (the foreground surface) and the far surface (the innermost surface) in the Z value range. As shown, when the actual depth information is not covered, n
Since the front side of the ear plane and the back side of the far plane are not drawn, the drawing accuracy is reduced. In general, a near plane with respect to depth is fixed at a viewpoint position, and a far plane is fixedly set with a maximum value that can be set by the system, and often covers a wider range than actual depth information.
In this case, if there are many empty data among the plurality of divided groups, the memory area reserved for sorting is wasted.

【0038】図4に、本実施例によるZ値検出部の構成
を示す。Z値範囲検出部110は、最大Z値検出部11
1と最小Z値検出部114から構成され、Zソートを行
う前に1フレームの全コマンドのZ値を調べ、最大のZ
値と最小のZ値を求める。そして、最大のZ値をfar
面のZ値、最小のZ値をnear面のZ値とすることに
より、発行された描画コマンドを全ての描画を保証す
る。
FIG. 4 shows the configuration of the Z value detecting section according to the present embodiment. The Z value range detection unit 110 includes a maximum Z value detection unit 11.
1 and the minimum Z value detection unit 114. Before performing Z sorting, the Z values of all commands in one frame are checked and the maximum Z value is determined.
Find the value and the minimum Z value. Then, the maximum Z value is far
By setting the Z value of the surface and the minimum Z value as the Z value of the near surface, all of the issued drawing commands are guaranteed.

【0039】初期状態では、最大Z値レジスタ112に
は小さい値、例えば0がセットされる。最小Z値レジス
タ115に大きな値が設定される。例えば、扱っている
データが16ビットであれば、(2の16乗−1)など
が設定される。そして、逐次発行されるコマンドのZ値
と、最大Z値レジスタの値を比較器113,116によ
り比較し、コマンドのZ値が最大Z値レジスタ112の
値よりも大きければ、コマンドのZ値を最大Zレジスタ
112に設定する。また、コマンドのZ値が最小Z値レ
ジスタ115の値よりも小さい場合には、コマンドのZ
値を最小Z値レジスタ115に設定する。この処理を1
フレームの全部のコマンドに対して行い、最小Z値をn
ear面のZ値、最大Z値をfar面のZ値とする。
In the initial state, a small value, for example, 0 is set in the maximum Z value register 112. A large value is set in the minimum Z value register 115. For example, if the data being handled is 16 bits, (2 16 -1) is set. Then, the Z value of the sequentially issued command and the value of the maximum Z value register are compared by the comparators 113 and 116. If the Z value of the command is larger than the value of the maximum Z value register 112, the Z value of the command is changed. Set in the maximum Z register 112. If the Z value of the command is smaller than the value of the minimum Z value register 115,
The value is set in the minimum Z value register 115. This process is 1
For all commands in the frame and set the minimum Z value to n
The Z value of the ear plane and the maximum Z value are defined as the Z value of the far plane.

【0040】これによれば、最も手前と最も奥のグルー
プには少なくとも一つの描画コマンドが属するようにな
り、範囲固定の場合に比べてGPT200のメモリ割り
当ての無駄がなくなる。さらに、分解能も上がるという
利点を持つ。その後、Zソートを行えば全ての描画コマ
ンドを表示処理することが可能になる。
According to this, at least one drawing command belongs to the foreground and the backmost group, and waste of memory allocation of the GPT 200 is eliminated as compared with the case where the range is fixed. Further, there is an advantage that the resolution is increased. Thereafter, if the Z sort is performed, all the drawing commands can be displayed.

【0041】図5に、本実施例によるグループ分割数算
出部の構成を示す。本例のグループ分割数算出部120
はコマンド数依存最適化部121を有している。この最
適化部121はコマンド数設定部1211、マスク部1
212、分割シフト量を格納するレジスタ1213及び
シフト部1214からなる。レジスタ1213には、一
つのグループに分配したいコマンド数に関する情報、例
えばコマンド数を2のべき乗で表す場合に、そのべき乗
を格納する。一つのグループに平均して8個(2の3
乗)のコマンドを分配したい場合は3が格納される。
FIG. 5 shows the configuration of the group division number calculator according to the present embodiment. Group division number calculation unit 120 of this example
Has a command number dependent optimization unit 121. The optimization unit 121 includes a command number setting unit 1211 and a mask unit 1
212, a register 1213 for storing the division shift amount and a shift unit 1214. The register 1213 stores information on the number of commands to be distributed to one group, for example, when the number of commands is represented by a power of two, the power is stored. On average 8 (3 in 2) in one group
When the command of (square) is to be distributed, 3 is stored.

【0042】コマンド数設定部1211にコマンド数が
設定されると、マスク部1212ではそのコマンド数を
超えない2のべき数を算出する。例えばコマンド数=7
00の場合は、べき数=512を出力する。シフト部1
214はマスク部1212の出力値を分割数シフト量の
分だけ右シフトし、結果が0になる場合は値1を出力す
る。マスク部1212の出力が512、分割数シフト量
が3の場合、シフト部1214の出力は64となり、グ
ループ分割数となる。この例の1グループの平均コマン
ド数は11(700/64)となり、所望の8に近い値
となる。
When the number of commands is set in the command number setting unit 1211, the mask unit 1212 calculates a power of 2 not exceeding the command number. For example, the number of commands = 7
In the case of 00, an exponent = 512 is output. Shift unit 1
Reference numeral 214 shifts the output value of the mask unit 1212 rightward by the amount of shift of the number of divisions, and outputs the value 1 when the result becomes 0. When the output of the mask unit 1212 is 512 and the shift amount of the number of divisions is 3, the output of the shift unit 1214 is 64, which is the number of group divisions. The average number of commands in one group in this example is 11 (700/64), which is a value close to the desired eight.

【0043】コマンドの数はフレームにより大きく増減
する。コマンド数が少ない場合に、分割数が大きすぎる
とソート処理が遅くなり、GPTなどのテーブルを無駄
にする。また、コマンド数が多い場合に、分割数が少な
すぎるとソート処理が遅くなる。しかし、本実施例によ
ればコマンド数に応じてグループ分割数を最適化するの
で、ソート処理時間を短縮でき、メモリの無駄な配分も
なくなる。
The number of commands varies greatly depending on the frame. When the number of commands is small, if the number of divisions is too large, the sorting process will be slowed down, and tables such as GPT will be wasted. In addition, when the number of commands is large, if the number of divisions is too small, the sorting process becomes slow. However, according to the present embodiment, the number of group divisions is optimized according to the number of commands, so that the sorting processing time can be shortened and unnecessary memory allocation is eliminated.

【0044】本実施例では、速度最優先などから予め設
定される固定分割数123を採用することも可能であ
る。この場合の選択はセレクタ122によって行なわれ
る。なお、分割数シフト量は、システムのメモリ容量や
フレームの平均コマンド数などから、経験的に妥当な数
値が設定される。
In this embodiment, it is also possible to adopt a fixed division number 123 which is set in advance from the highest priority. The selection in this case is performed by the selector 122. The shift amount of the number of divisions is set to an empirically appropriate numerical value based on the memory capacity of the system, the average number of commands of the frame, and the like.

【0045】図6に、他の実施例によるグループ分割数
算出部の構成を示す。本例のグループ分割数算出部12
0’には、図5の構成に対しZ値依存最適化部125を
付加している。これは、コマンド数依存による最適化の
場合に、Z値の分解能によってはグループの分割数が大
きすぎて無駄になることがあるためである。
FIG. 6 shows the configuration of a group division number calculation unit according to another embodiment. Group division number calculation unit 12 of this example
A Z-value dependent optimizing unit 125 is added to 0 'in the configuration of FIG. This is because in the case of optimization depending on the number of commands, depending on the resolution of the Z value, the number of group divisions may be too large and wasted.

【0046】本実施例では、コマンド数依存最適化部1
21の分割数(例えば64)がべき数算出部1251に
入力され、そのべき数(=6)が算出される。一方、減
算器1254は最大Z値1252と最小Z値1253の
減算値(例えば32)を出力する。シフト部1255
は、この減算値(=32)をべき数(=6)の分だけ右
シフトし、コマンド数に関して最適化した分解能(=
0.5)を得る。
In this embodiment, the command number dependent optimizing unit 1
The 21 division number (for example, 64) is input to the exponent calculation unit 1251, and the exponent (= 6) is calculated. On the other hand, the subtractor 1254 outputs a subtraction value (for example, 32) of the maximum Z value 1252 and the minimum Z value 1253. Shift unit 1255
Shifts the subtraction value (= 32) to the right by the power number (= 6) and optimizes the resolution (==
0.5).

【0047】さらに、比較器1257で、予め設定され
ているZ値分解能1256(例えば2)と比較し、Z値
分解能1256より大きい場合はコマンド数依存最適化
部121出力値(=64)をそのまま出力する。この例
の場合には、Z値分解能より小さくなるので、べき数算
出部1258でZ値分解能1256のべき数(=1)を
算出し、シフト部1259でコマンド数依存最適化部1
21からの分割数を(べき数+1=2)だけ右シフト
し、Z値分解能で最適化した分割数(=16)を出力す
る。ただし、シフト部1259の出力値は整数切上げと
する。
Further, a comparator 1257 compares the value with a preset Z value resolution 1256 (for example, 2). If the Z value resolution is larger than 1256, the output value (= 64) of the command number dependent optimizing unit 121 is directly used. Output. In this example, the power is smaller than the Z-value resolution. Therefore, the power-number calculator 1258 calculates the power (= 1) of the Z-value resolution 1256, and the shift unit 1259 calculates the command-number-dependent optimizing unit 1.
The number of divisions from 21 is shifted to the right by an exponent + 1 = 2, and the number of divisions (= 16) optimized with Z-value resolution is output. However, the output value of the shift unit 1259 is rounded up to an integer.

【0048】この結果、本実施例により最適化される分
割数は、一つのグループの奥行きが常にZ値の分解能以
上になるように保証しながら、グループ分割数の無駄を
排除している。
As a result, the number of divisions optimized by the present embodiment eliminates waste of the number of group divisions while guaranteeing that the depth of one group always exceeds the resolution of the Z value.

【0049】図7に、本実施例のZソート部による概略
の処理フローを示す。まず、Z値範囲検出部110から
のZ値範囲により、描画する図形のnear面とfar
面(最奥面)を設定し(S1)、グループ分割数算出部
120によるグループ分割数を取り込む(S2)。
FIG. 7 shows a schematic processing flow by the Z sort unit of this embodiment. First, the Z-value range from the Z-value range detection unit 110 is used to determine the near plane and far of the figure to be drawn.
A plane (the innermost plane) is set (S1), and the number of group divisions by the group division number calculation unit 120 is fetched (S2).

【0050】次に、ソート処理部130による処理に移
行し、GPT200とCPT210が、分割数に応じて
初期化される(S3)。即ち、GPT200に分割数に
対応したグループIDが設定され、そのコマンドアドレ
スには全て「NOP」が設定される。このとき、CPT
210は空である。次に、発行される描画コマンドが順
次入力される(S4)。そして描画コマンドに付加され
ているZ値を用いて、分割したグループのどれに属する
かの判定が行われる(S5)。
Next, the processing shifts to the processing by the sort processing unit 130, and the GPT 200 and the CPT 210 are initialized according to the number of divisions (S3). That is, a group ID corresponding to the number of divisions is set in the GPT 200, and "NOP" is set in all the command addresses. At this time, CPT
210 is empty. Next, the issued drawing commands are sequentially input (S4). Then, using the Z value added to the drawing command, it is determined which of the divided groups belongs (S5).

【0051】次に、既にグループ内に属しているコマン
ドとのZ値比較を行ない(S6)、Z値の順に接続する
リンク張り替えが行なわれる(S7)。最後に、発行さ
れた描画コマンドが1フレームの最終コマンドの確認
を、処理コマンドの数が全コマンド数に達したかどうか
によって判定する(S8)。最終の描画コマンドであれ
ばZソートは終了であり、グラフイックプロセッサ30
0による描画が開始される。最終でなければ、次に発行
される描画コマンドを受け取り、上記のソート処理を繰
返す。
Next, the Z value is compared with a command that already belongs to the group (S6), and link reconnection for connecting in order of the Z value is performed (S7). Finally, it is determined whether the issued drawing command is the last command of one frame by checking whether the number of processing commands has reached the total number of commands (S8). If it is the last drawing command, the Z sort is completed, and the graphics processor 30
Drawing with 0 is started. If not the last, the next drawing command is received, and the above sorting process is repeated.

【0052】図8、図9を参照して、グループ内判定
(S6)とリンク張り替え処理(S7)の詳細な説明を
行う。本処理では、GPT200の開始コマンド部及び
終了コマンド部に設定されるコマンドをそれぞれSCO
M、ECOM、グループ内で直前にZ値比較したコマン
ドをPCOM、そのリンク先をNCOM、今回発行の自
コマンドをCOMの文字変数で表す。なお、NOPは描
画コマンドへのリンクがなく(初期状態のまま)、描画
時に何も実行されない状況を表す。
The in-group determination (S6) and the link replacement process (S7) will be described in detail with reference to FIGS. In this processing, the commands set in the start command section and the end command section of the GPT 200 are
M, ECOM, PCOM is the command for which the Z value was compared immediately before in the group, NCOM is the link destination, and COM is the presently issued self-command. NOP indicates a state in which there is no link to the drawing command (in the initial state) and nothing is executed during drawing.

【0053】まず、GPT200の該当グループにおい
て、SCOMがNOPか判定する(S10)。判定結果
が「真」であれば、該当グループには現在、描画コマン
ドは1つも屬していないので、GPT200のSCO
M、ECOMに自コマンドCOMのアドレスを設定する
(S130)。
First, it is determined whether SCOM is NOP in the corresponding group of the GPT 200 (S10). If the determination result is “true”, no drawing command currently belongs to the corresponding group.
The address of the own command COM is set to M and ECOM (S130).

【0054】処理S10において判定結果が「偽」とな
った場合は、COMとSCOMのZ値を比較する(S2
0)。COMのZ値が「真(大)」であれば(S3
0)、自コマンドCOMが該当グループにおいては最も
Z値が大きい。そこで、COMのリンク先にSCOMの
アドレスを設定し(S140)、さらにGPT200の
SCOMにCOMのアドレスを設定する(S150)。
If the judgment result is "false" in the process S10, the Z value of COM is compared with the Z value of SCOM (S2).
0). If the Z value of COM is “true (large)” (S3
0), own command COM has the largest Z value in the corresponding group. Therefore, the address of the SCOM is set to the link destination of the COM (S140), and the address of the COM is set to the SCOM of the GPT 200 (S150).

【0055】処理S30においてCOMのZ値が「偽
(小)」となった場合、SCOMのリンク先がNOPで
あるか判定する(S40)。これは、当該グループ内に
ある描画コマンドの数が1か、それ以上かを判定するも
のである。処理S40の結果が「真(NOP)」となっ
た場合は、グループに属している描画コマンド数が一つ
であることを意味している。すでに、COMのZ値の方
が小さいことが判明しているため、リンクの順序はSC
OM、COMの順になる。つまり、SCOMのリンク先
にCOMのアドレスを設定し(S160)、GPT20
0のECOMにCOMのアドレスを設定する(S17
0)。
When the Z value of COM becomes "false (small)" in the process S30, it is determined whether the link destination of SCOM is NOP (S40). This is to determine whether the number of drawing commands in the group is one or more. When the result of the process S40 becomes “true (NOP)”, it means that the number of drawing commands belonging to the group is one. Since the Z value of COM has already been found to be smaller, the order of the links is SC
The order is OM and COM. That is, the address of the COM is set to the link destination of the SCOM (S160), and the GPT 20 is set.
The address of COM is set to ECOM of 0 (S17)
0).

【0056】処理S40において「偽」となった場合
は、グループ内に複数のコマンドが属している。COM
のZ値はSCOMより小さいことが判明しているので、
当該グループ内でのZ値は二番目以下になる。そこで、
同グループ内で直前にZ値比較したコマンドPCOMの
リンク先をNCOMとする(S50)。この操作は、リ
ンク情報を辿っていけば、容易に得ることが可能であ
る。即ち、GPT200に設定されているSCOMまた
はECOMのアドレスを起点に、CTP210のアドレ
スとリンク先をコマンド設定順または逆順に辿ること
で、NCOMの設定が可能になる。
If "false" in step S40, a plurality of commands belong to the group. COM
Has been found to be smaller than SCOM,
The Z value in the group is the second or lower. Therefore,
The link destination of the command PCOM immediately before the Z value comparison in the same group is set to NCOM (S50). This operation can be easily obtained by following the link information. That is, the NCOM can be set by tracing the address of the CTP 210 and the link destination from the address of the SCOM or the ECOM set in the GPT 200 in the order of command setting or in the reverse order.

【0057】次に、COMとNCOMのZ値比較を行な
い(S60)、COMのZ値が大きいか判定し(S7
0)、比較の結果が「真(大)」であれば、PCOMの
リンク先にCOMのアドレスを設定し(S110)、C
OMのリンク先にNCOMのアドレスを設定する(S1
20)。
Next, the Z value of COM and NCOM is compared (S60), and it is determined whether the Z value of COM is large (S7).
0), if the result of the comparison is “true (large)”, the address of COM is set as the link destination of PCOM (S110), and C
Set the NCOM address to the OM link destination (S1
20).

【0058】また、処理S70において「偽(小)」と
なった場合は、NCOMのリンク先がNOPであるか判
定する(S80)。結果が「真(NOP)」であれば、
COMがグループ中で最もZ値が小さいことがわかる。
よって、NCOMのリンク先にCOMのアドレスを設定
し(S90)、さらにGPT200のECOMにCOM
のアドレスを設定する(S100)。
If "false" (small) is obtained in step S70, it is determined whether the link destination of the NCOM is a NOP (S80). If the result is "true (NOP)",
It can be seen that COM has the smallest Z value in the group.
Therefore, the address of COM is set to the link destination of NCOM (S90), and COM is set to ECOM of GPT200.
Is set (S100).

【0059】処理S80で結果が「偽」となった場合
は、自コマンドCOMよりもZ値が小さい描画コマンド
が存在する可能性があるので、処理S50へ戻って、リ
ンクが完成するまでZ値の比較処理を繰り返す。
If the result is "false" in step S80, there is a possibility that there is a drawing command having a smaller Z value than the own command COM, so the process returns to step S50, and the Z value is maintained until the link is completed. Is repeated.

【0060】図10〜図13に、GPT及びCPTの構
成とZソートによる設定内容の遷移を示す。ソート処理
は、図2に示すコマンドを例にしたものである。初期状
態ではGPT200、CPT210にはすべてNOPが
入っている。
FIGS. 10 to 13 show the structure of the GPT and CPT and the transition of the set contents by Z-sort. The sort process is an example of the command shown in FIG. In the initial state, the GPT 200 and the CPT 210 all contain NOP.

【0061】最初にCOM1が発行されると、GPT2
00のGr2のSCOM,ECOMには、処理S10、
S130を経て図10(a)のように、COM1のアド
レスC1が設定される。CPT210のCOM1のリン
ク先はNOPである。
When COM1 is first issued, GPT2
In the SCOM and ECOM of the Gr2 of 00, processing S10,
After S130, the address C1 of COM1 is set as shown in FIG. The link destination of COM1 of CPT 210 is NOP.

【0062】次にCOM2が発行されると、COM1と
同じGr2でCOM1よりZ値が小さいため、処理S1
0〜S40、S160及びS170経て、図11
(a)、(b)のようになる。COM2のリンク先はN
OPである。
Next, when COM2 is issued, since the Z value is smaller than COM1 with the same Gr2 as COM1, processing S1 is executed.
0 through S40, S160, and S170, FIG.
(A) and (b) are obtained. The link destination of COM2 is N
OP.

【0063】COM3の場合には、COM1と同じGr
2でZ値がCOM1より小さくCOM2より大きいの
で、リンクの張替処理が行なわれる。即ち、S10〜S
70、S110及びS120を経て、リンク張り替え操
作が終了し、図12(a)、(b)のようになる。
In the case of COM3, the same Gr as COM1 is used.
Since the Z value is smaller than COM1 and larger than COM2 at 2, the link replacement process is performed. That is, S10 to S
Through steps 70, S110, and S120, the link replacement operation is completed, as shown in FIGS. 12 (a) and 12 (b).

【0064】さらに、Gr1に属するCOM4、Gr3
に属するCOM5がリンクされ、図2の3次元空間に位
置する描画コマンド1〜5は、最終的に図13(a)、
(b)のようにZソートされる。
Further, COM4 and Gr3 belonging to Gr1
2 are linked, and the drawing commands 1 to 5 located in the three-dimensional space of FIG.
The data is Z-sorted as shown in FIG.

【0065】本実施例のZソートによれば、GPT20
0及びCPT210によるグループ内ソートは、開始コ
マンドから最終コマンドと各々のリンク先を、コマンド
のアドレスで示すリンクの張りかえによって行なわれ
る。
According to the Z sort of this embodiment, the GPT 20
The sorting within the group by 0 and the CPT 210 is performed by replacing the start command to the last command and the respective link destinations with the link indicated by the command address.

【0066】次に、本発明の他の実施例を説明する。図
14に、本実施例によるZソート部の構成を示す。Zソ
ート部以外の構成は、図1のグラフイックス表示装置と
同様になる。Zソート部100’には代表点選択部14
0、ソート選択部150、ソート処理部130が設けら
れている。なお、図1に示したZ値範囲検出部110及
びグループ分割数算出部110は必須ではないが、設け
た方がベターである。
Next, another embodiment of the present invention will be described. FIG. 14 shows a configuration of the Z sort unit according to the present embodiment. The configuration other than the Z sort unit is the same as that of the graphics display device of FIG. The representative point selecting unit 14 is included in the Z sorting unit 100 '.
0, a sort selection unit 150, and a sort processing unit 130. The Z value range detection unit 110 and the group division number calculation unit 110 shown in FIG. 1 are not essential, but are better provided.

【0067】代表点選択部140は、発行された描画コ
マンドをZソートする際に、図形のどの点のZ値を利用
するか、選択的に指定する手段である。利用する代表点
Z値によって、描画精度や処理速度を可変できる。
The representative point selecting section 140 is a means for selectively designating which point of the figure to use the Z value when the issued drawing command is Z-sorted. The drawing accuracy and processing speed can be varied depending on the representative point Z value used.

【0068】図15に、Z値の代表点として利用可能な
典型例の説明図を示す。(a)は、Z値が最小となる点
の最小Z値、(b)は重心のZ値、(c)は第一頂点Z
値(複数の頂点データの内、描画コマンドにより最初に
与えられる点)による、それぞれのベクトルとその描画
図形を示す。
FIG. 15 is an explanatory diagram of a typical example usable as a representative point of the Z value. (A) is the minimum Z value of the point where the Z value is the minimum, (b) is the Z value of the center of gravity, and (c) is the first vertex Z
Each vector and its drawing figure are shown by values (points first given by a drawing command among a plurality of vertex data).

【0069】描画精度は、(a)の最小Z値が最も高
く、コマンド通りの描画が得られる。(b)の重心Z値
は、この例では同じ結果を得ているが、一般には(a)
より劣る。(c)の第一頂点座標は、図示のように図形
の重なりが前後で逆になるなど、奥行き方向の描画精度
は保証されない。しかし、処理時間はこれとは反対に、
(c)は代表点の計算が不要なため最も短い。次いで、
(b)、(a)の順となる。
Regarding the drawing accuracy, the minimum Z value of (a) is the highest, and drawing according to the command is obtained. The center of gravity Z value of (b) obtains the same result in this example, but in general, (a)
Inferior. As for the first vertex coordinates in (c), the drawing accuracy in the depth direction is not guaranteed, as illustrated in FIG. However, the processing time is the opposite,
(C) is the shortest because calculation of the representative point is unnecessary. Then
The order is (b) and (a).

【0070】本実施例の代表点選択部140は、この3
種類の何れかを指定する代表点フラグ保持手段141を
含んでいる。代表点フラグの指定はユーザがアプリケー
ションプログラムを通じて行なう。この代表点フラグは
メモリコントローラ400を介してCPU600に与え
られ、描画コマンドのジオメトリ演算におけるZ値算出
に反映される。これにより、ユーザは描画図形の種類や
用途に応じて所望の代表点を選択し、図形精度と処理速
度の優先度合いを適宜に変更できる。
The representative point selection unit 140 of this embodiment uses
A representative point flag holding unit 141 for specifying any of the types is included. The user designates the representative point flag through an application program. This representative point flag is provided to the CPU 600 via the memory controller 400, and is reflected in the Z value calculation in the geometry calculation of the drawing command. As a result, the user can select a desired representative point according to the type and use of the drawing figure, and can appropriately change the priority of the figure accuracy and the processing speed.

【0071】一方、ソート選択部150はグループソー
ト選択部151、グループソートフラグ格納部153、
グループ内ソート選択部152及びグループソートフラ
グ格納部154を備えている。選択部151,152は
その指定に応じて、対応するフラグ格納部153,15
4のフラグをセット/リセットする。ソート処理部13
0は、非ソート部131、グループソート部132及び
グループ内ソート部133を備え、ソート選択部150
からの指定されるソートフラグの種別に応じたソートを
実行する。
On the other hand, the sort selection section 150 includes a group sort selection section 151, a group sort flag storage section 153,
It has an intra-group sort selection section 152 and a group sort flag storage section 154. The selection units 151 and 152 respond to the designation by corresponding flag storage units 153 and 15.
4 is set / reset. Sort processing unit 13
0 includes a non-sorting unit 131, a group sorting unit 132, and an in-group sorting unit 133, and a sort selecting unit 150.
Performs sorting according to the type of the sort flag specified from.

【0072】この構成により、表示精度を無視して処理
速度を最優先する場合には、非ソートフラグがセットさ
れ、単なる配線でしかない非ソート部161を経由し
て、描画コマンドを発行順にコマンドバッファ220に
書き込む。この場合、GPT200、CPT210は不
要であるため、メインメモリ20上にはGPT200と
CPT210のメモリ領域は確保しない。
With this configuration, when the processing speed is the highest priority ignoring the display accuracy, the non-sort flag is set, and the drawing commands are issued in the order of issuance via the non-sort unit 161 which is merely a wiring. Write to buffer 220. In this case, since the GPT 200 and the CPT 210 are unnecessary, a memory area for the GPT 200 and the CPT 210 is not secured on the main memory 20.

【0073】表示精度より表示速度が優先される場合は
グループソートフラグがセットされ、グループソート部
162のみが起動されて、描画コマンドはZ値別のグル
ープに分配される。表示精度が最優先される場合はグル
ープ内ソートフラグがセットされ、グループソート部1
62とグループ内ソート163が起動され、図7に示し
たZソートが行なわれる。
When the display speed is prioritized over the display accuracy, the group sort flag is set, only the group sort unit 162 is activated, and the drawing commands are distributed to the groups for each Z value. If the display accuracy is given the highest priority, the intra-group sort flag is set, and the group sort unit 1
62 and the in-group sort 163 are activated, and the Z sort shown in FIG. 7 is performed.

【0074】本実施例によれば、描画精度または描画速
度の優先度合に応じたシステムの処理性能が実現できる
ので、描画の種類や用途に応じた最適な使い分けが可能
になる。また、システム内のメモリ領域をより有効に活
用することができる。
According to this embodiment, the processing performance of the system can be realized in accordance with the priority of the drawing accuracy or the drawing speed, so that the optimum use can be made in accordance with the type and purpose of drawing. Further, the memory area in the system can be more effectively utilized.

【0075】次に、本発明のさらに他の実施例を説明す
る。本実施例のグラフイックス表示装置は、メインメモ
リ20内に複数バッファを備える構成を特徴とする。
Next, still another embodiment of the present invention will be described. The graphics display device of the present embodiment is characterized in that the main memory 20 includes a plurality of buffers.

【0076】図16はその一例で、ダブルバッファ構造
のグラフイックス表示装置の構成を示している。図1と
同様のGPTA200、CPTA210、コマンドバッ
ファA220に対し、それぞれGPTB240、CPT
B250、コマンドバッファB260をペアにしてい
る。このダブルバッファの制御は、Zソート部100に
設けられたバッファ選択部160で行なわれる。なお、
図1のZソート部100に設けられる他の要素は図示を
省略しているが、設けた方ベターである。
FIG. 16 shows an example of the structure of a graphics display device having a double buffer structure. The GPTBs 240 and CPTs are respectively applied to the GPTA 200, the CPTA 210, and the command buffer A220 as in FIG.
B250 and the command buffer B260 are paired. The control of the double buffer is performed by a buffer selection section 160 provided in the Z sort section 100. In addition,
Other elements provided in the Z sort unit 100 in FIG. 1 are not shown, but are provided better.

【0077】バッファ選択部160は、テーブルバッフ
ァ選択部161とテーブルバッファフラグ保持部162
をもつ。二つのバッファ及びテーブルの内、どちらを読
み出しに用い、どちらを書き込みに用いるかは、CPU
600がテーブルバッファ選択部161を介して、テー
ブルバッファフラグ保持部162のセット/リセットに
より行なう。
The buffer selecting section 160 includes a table buffer selecting section 161 and a table buffer flag holding section 162.
With. Which of the two buffers and tables to use for reading and which to use for writing depends on the CPU.
600 is performed by setting / resetting the table buffer flag holding unit 162 via the table buffer selecting unit 161.

【0078】例えば、テーブルバッファフラグ保持部1
62にフラグがセットされている場合、GPTA20
0,CPTA210,コマンドバッファA220を書き
込み用に、GPTB240、CPTB250、コマンド
バッファB260を読み出し用に用いる。この結果、読
み出しと書き込みが並列処理されるため、無駄な待ち時
間が少なくなり、グラフィックス表示装置の描画処理が
スピードアップされる。
For example, the table buffer flag holding unit 1
If the flag is set to 62, GPTA20
0, CPTA 210, and command buffer A 220 are used for writing, and GPTB 240, CPTB 250, and command buffer B 260 are used for reading. As a result, since reading and writing are performed in parallel, useless waiting time is reduced, and the drawing process of the graphics display device is sped up.

【0079】ところで、監視画像などでは人間や車両な
どのように刻々と変動する画像と、背景のようにほとん
ど変動しない画像を合成して描画することが多い。図1
8(a)はこの例を示し、変動する人間Aと背景にあり
変動しない建物Bを描画している。この場合、AとBの
間に図形が何もないと、Zソート時のGPT200の分
解能が低下し、フレームバッファ230に描画される図
形データの精度が悪くなることがある。また、Bのよう
な背景図形は複数フレームに亘って描画コマンドが変化
しない場合が多く、フレーム単位のZソートはオーバヘ
ッドの増大となる。
By the way, in surveillance images and the like, an image that fluctuates every moment, such as a person or a vehicle, and an image that hardly fluctuates, such as a background, are often synthesized and drawn. FIG.
FIG. 8A shows this example, in which a fluctuating human A and a building B in the background that do not fluctuate are drawn. In this case, if there is no figure between A and B, the resolution of the GPT 200 at the time of the Z sort is reduced, and the accuracy of the figure data drawn in the frame buffer 230 may be deteriorated. In many cases, the drawing command of a background graphic such as B does not change over a plurality of frames, and Z-sorting on a frame basis increases overhead.

【0080】そこで、複数フレームに亘って変化しない
描画コマンドを別扱いとして、この問題点を克服する。
図17に、トリプルバッファ構造によるグラフイックス
表示装置を示す。
Thus, this drawback is overcome by treating drawing commands that do not change over a plurality of frames separately.
FIG. 17 shows a graphics display device having a triple buffer structure.

【0081】トリプル構造は、図16に示したダブルバ
ッファ構造に加えて、背景画などを扱うGPTC27
0、CPTC280、コマンドバッファC290を設け
ている。ダブルバッファ構造部では、テーブルバッファ
フラグ162によりフレーム単位で交替に書き込みと読
み出しが行なわれているのに対し、この付加部分に対し
ては、バッファ選択部160のテーブルバッファ選択部
161を介して、CPU600からテーブル処理順序フ
ラグ163がセットされた場合にのみ、GPT270と
CPT280によるリンク張り替えと該当フレームの書
き込み処理が行なわれる。
The triple structure has a GPTC 27 for handling background images and the like in addition to the double buffer structure shown in FIG.
0, a CPTC 280, and a command buffer C290. In the double buffer structure unit, writing and reading are performed alternately on a frame basis by the table buffer flag 162. On the other hand, for this additional portion, the table buffer selecting unit 161 of the buffer selecting unit 160 Only when the table processing order flag 163 is set from the CPU 600, the link reassignment by the GPT 270 and the CPT 280 and the writing processing of the corresponding frame are performed.

【0082】これによれば、Zソートを含む描画処理が
高速化できるとともに、背景図形のような静止画像を毎
回Zソートの対象としないので、描画精度が維持できる
とともに処理が高速化できる。図18(b)に、本実施
例によるカーナビゲーションの画面例を示す。図示の枠
部や右下のボタンは固定物で、フレーム毎にコマンドを
発行する必要はない。従って、これらの描画コマンドに
対する処理順序フラグ163は最初にセットされるのみ
である。また、道路や建物などの背景図形は、矢印で示
される車の位置が一定距離以上変化したときに更新され
るので、このときフラグ163が発行されて背景の再描
画が行なわれる。
According to this, the drawing process including the Z sort can be speeded up, and still images such as background figures are not subjected to the Z sort every time, so that the drawing accuracy can be maintained and the process can be sped up. FIG. 18B illustrates a screen example of the car navigation according to the present embodiment. The illustrated frame portion and the lower right button are fixed objects, and it is not necessary to issue a command for each frame. Therefore, the processing order flag 163 for these drawing commands is only set first. The background graphic such as a road or a building is updated when the position of the car indicated by the arrow changes by a certain distance or more. At this time, the flag 163 is issued and the background is redrawn.

【0083】従って、静止画像や背景図形などの描画コ
マンドとリンクをGPTC、CPTC、コマンドバッフ
ァCに格納し、テーブル処理順序フラグ163がセット
された場合に更新し、常時はダブルバッファとして動作
するGPTA、CPTA、コマンドバッファA及びGP
TB、CPTB、コマンドバッファBで車の図形のZソ
ートと描画を実行し、その後にコマンドバッファCの描
画を実行すれば、少ないコマンド転送量で高速の描画が
実現できる。
Therefore, drawing commands and links such as still images and background graphics are stored in the GPTC, CPTC, and command buffer C, updated when the table processing order flag 163 is set, and always operated as a double buffer. , CPTA, command buffer A and GP
If Z-sorting and drawing of a car figure is executed by the TB, CPTB, and command buffer B, and then drawing of the command buffer C is executed, high-speed drawing can be realized with a small command transfer amount.

【0084】[0084]

【発明の効果】本発明の三次元グラフィックス表示装置
によれば、グラフィックス処理の陰面消去方法の一つで
あるZソートを行う場合に、グループ分割数を最適化し
て描画コマンドを各グループに分配することで、高速か
つ高精度な描画処理が可能になる。
According to the three-dimensional graphics display device of the present invention, when performing Z-sorting, which is one of the hidden surface elimination methods of graphics processing, the number of group divisions is optimized and the drawing command is assigned to each group. By distributing, high-speed and high-accuracy drawing processing becomes possible.

【0085】また、フレーム毎のコマンドからZ値範囲
を検出してグループ分割を行なうので、全てのコマンド
を対応するZ値のグループに分配でき、且つコマンドの
配分されない無駄なグループを低減できる。
Further, since the Z value range is detected from the command for each frame and group division is performed, all commands can be distributed to the corresponding Z value groups, and useless groups to which commands are not distributed can be reduced.

【0086】本発明によれば、グループ内のZソートが
Zソートテーブルのリンクを辿るだけの簡単な処理とな
る。特に、同グループの前回コマンドないしそのリンク
先を基準にしてリンクを張り替えるので、グループ内の
Zソートを高速化できる。
According to the present invention, Z-sorting within a group is a simple process only by following the link in the Z-sort table. In particular, since the link is changed based on the previous command of the same group or its link destination, the Z sort in the group can be speeded up.

【0087】これにより、低価格性と高速性が要求され
る個人向け情報端末機器などに適用して、高品質の三次
元グラフィックス表示装置が提供できる。
As a result, a high-quality three-dimensional graphics display device can be provided by applying the present invention to personal information terminal devices and the like that require low price and high speed.

【0088】また、本発明によれば、ソートに用いるZ
値を複数の代表点から選択可能にしているので、表示精
度と処理速度の要求に応じて適宜選択でき、システムの
性能と使い勝手を向上できる。
According to the present invention, Z used for sorting is
Since the value can be selected from a plurality of representative points, the value can be appropriately selected according to the requirements of display accuracy and processing speed, and the performance and usability of the system can be improved.

【0089】また、本発明によれば、ソートの要否及や
ソートレベル(グループ分配のみかグループ内ソートを
含むか)を選択可能に構成しているので、表示精度と処
理速度の要求に応じて適宜選択でき、システムの性能と
使い勝手を向上できる。
Further, according to the present invention, the necessity of sorting and the sort level (whether only group distribution or sorting within a group are included) can be selected. Can be selected appropriately, and the performance and usability of the system can be improved.

【0090】さらに、本発明によれば、複数のZソート
テーブルとコマンドバッファを備えて、それらの書き込
みと読み出しを制御可能に構成にしているので、従来の
ダブルバッファやトリプルバッファによる描画処理にそ
のまま適用できる。
Further, according to the present invention, since a plurality of Z sort tables and a command buffer are provided and their writing and reading can be controlled, the drawing processing by the conventional double buffer or triple buffer can be directly performed. Applicable.

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

【図1】本発明のグラフィックス表示装置の一実施形態
を示す構成図。
FIG. 1 is a configuration diagram showing an embodiment of a graphics display device of the present invention.

【図2】本発明のZソート方式の概念を示す説明図。FIG. 2 is an explanatory diagram showing the concept of the Z-sort method of the present invention.

【図3】near面とfar面を固定した場合の問題点
を示す説明図。
FIG. 3 is an explanatory diagram showing a problem when a near plane and a far plane are fixed.

【図4】Z値範囲検出部の一実施例を示す構成図。FIG. 4 is a configuration diagram illustrating an embodiment of a Z value range detection unit.

【図5】グループ分割数算出部の一実施例を示す構成
図。
FIG. 5 is a configuration diagram showing an embodiment of a group division number calculation unit.

【図6】グループ分割数算出部の他の実施例を示す構成
図。
FIG. 6 is a configuration diagram showing another embodiment of a group division number calculation unit.

【図7】本発明の一実施形態によるZソートの処理方法
の概略を示すフローチャート。
FIG. 7 is a flowchart showing an outline of a Z-sort processing method according to an embodiment of the present invention.

【図8】図7のZソート処理方法のグループ内判定とリ
ンク張り替え処理の詳細を示すフローチャート。
FIG. 8 is a flowchart showing details of the in-group determination and link reassignment processing of the Z-sort processing method of FIG. 7;

【図9】図9の続きを示すフローチャート。FIG. 9 is a flowchart showing a continuation of FIG. 9;

【図10】GPTとCPTの構成とテーブルの初期内容
を示す説明図。
FIG. 10 is an explanatory diagram showing the configuration of GPT and CPT and the initial contents of a table.

【図11】図10からの遷移内容を示す説明図。FIG. 11 is an explanatory diagram showing transition contents from FIG. 10;

【図12】図11からの遷移内容を示す説明図。FIG. 12 is an explanatory diagram showing transition contents from FIG. 11;

【図13】図12からの遷移内容を示す説明図。FIG. 13 is an explanatory diagram showing transition contents from FIG. 12;

【図14】Zソート部の他の実施例を示す構成図。FIG. 14 is a configuration diagram showing another embodiment of the Z sort unit.

【図15】Z値の代表点である最小Z値、重心Z値及び
第一頂点Z値の説明図。
FIG. 15 is an explanatory diagram of a minimum Z value, a center of gravity Z value, and a first vertex Z value which are representative points of the Z value.

【図16】ダブルバッファ構造のメインメモリとZソー
ト部の構成図。
FIG. 16 is a configuration diagram of a main memory having a double buffer structure and a Z sort unit.

【図17】トリプルバッファ構造のメインメモリとZソ
ート部の構成図。
FIG. 17 is a configuration diagram of a main memory and a Z sort unit having a triple buffer structure.

【図18】トリプルバッファの適用図形を示す説明図。FIG. 18 is an explanatory diagram showing a figure to which a triple buffer is applied.

【符号の説明】[Explanation of symbols]

10…処理部、20…メインメモリ、100…Zソート
部、110…Z値範囲検出部、111…最大値検出部、
114…最小値検出部、120…グループ分割数算出
部、121…コマンド数依存最適化部、125…Z値依
存最適化部、130…ソート処理部、131…非ソート
部、132…グループソート部、133…グループ内ソ
ート部、140…代表点選択部、150…ソート選択
部、151…グループソート選択部、152…グループ
内ソート選択部、160…バッファ選択部、161…テ
ーブルバッファ選択部、162…テーブルバッファフラ
グ、163…テーブル処理順序フラグ、200…GPT
(グループポインタテーブル)、210…CPT(コマ
ンドポインタテーブル)、220…コマンドバッファ、
230…フレームバッファ、300…グラフィックスプ
ロセッサ、400…メモリコントローラ、500…表示
プロセッサ。
10 processing section, 20 main memory, 100 Z sorting section, 110 Z value range detecting section, 111 maximum value detecting section,
114: minimum value detection unit, 120: group division number calculation unit, 121: command number dependence optimization unit, 125: Z value dependence optimization unit, 130: sort processing unit, 131: non-sort unit, 132: group sort unit 133: within-group sort section, 140: representative point selection section, 150: sort selection section, 151: group sort selection section, 152: within-group sort selection section, 160: buffer selection section, 161: table buffer selection section, 162 ... Table buffer flag, 163 ... Table processing order flag, 200 ... GPT
(Group pointer table), 210 ... CPT (command pointer table), 220 ... command buffer,
230: frame buffer, 300: graphics processor, 400: memory controller, 500: display processor.

フロントページの続き (72)発明者 飯村 伊智郎 茨城県日立市大みか町七丁目1番1号 株 式会社日立製作所日立研究所内 (72)発明者 渡辺 範人 茨城県日立市大みか町七丁目1番1号 株 式会社日立製作所日立研究所内 (72)発明者 佐藤 潤 東京都小平市上水本町五丁目20番1号 株 式会社日立製作所半導体事業部内Continuing from the front page (72) Inventor Ichiro Iimura 7-1-1, Omika-cho, Hitachi City, Ibaraki Prefecture Inside the Hitachi Research Laboratory, Hitachi, Ltd. (72) Inventor Norito Watanabe 7-1-1, Omika-cho, Hitachi City, Ibaraki Prefecture No. Hitachi, Ltd.Hitachi Research Laboratories (72) Inventor Jun Sato 5-2-1, Josuihonmachi, Kodaira-shi, Tokyo Semiconductor Company, Hitachi Ltd.

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】 奥行き情報を含む図形データの描画コマ
ンドを記憶するメモリと、前記描画コマンドを所定順に
読み出して描画するプロセッサと、画面表示する表示部
を備える3次元のグラフィックス表示装置において、 1フレーム中の描画コマンドから3次元空間上で存在し
得る範囲を検出する存在範囲検出手段と、この存在範囲
を複数のブロックに分割するブロック分割手段と、各ブ
ロックに対応する描画コマンドを分配するソート手段を
設け、前記存在範囲における昇順あるいは降順に各ブロ
ックを描画することを特徴とするグラフィックス表示装
置。
1. A three-dimensional graphics display device comprising: a memory for storing a drawing command of graphic data including depth information; a processor for reading and drawing the drawing commands in a predetermined order; and a display unit for displaying a screen. Existence range detecting means for detecting a range that can exist in a three-dimensional space from drawing commands in a frame, block dividing means for dividing the existing range into a plurality of blocks, and sorting for distributing drawing commands corresponding to each block Means for rendering each block in ascending or descending order in the existence range.
【請求項2】 請求項1において、 前記存在範囲検出手段は、前記奥行き情報(以下、Z値
と呼ぶ)の最大値と最小値によるZ値範囲を検出し、 前記ソート手段は、各描画コマンドのZ値に基づいて各
ブロックに対応する描画コマンドを分配するとともに、
ブロック内の描画コマンドを前記Z値範囲の昇順または
降順にZソートすることを特徴とするグラフィックス表
示装置。
2. The method according to claim 1, wherein the existence range detection unit detects a Z value range based on a maximum value and a minimum value of the depth information (hereinafter, referred to as a Z value). And distribute drawing commands corresponding to each block based on the Z value of
A graphics display device, wherein drawing commands in a block are Z-sorted in ascending order or descending order of the Z value range.
【請求項3】 請求項1または2において、 前記ブロック分割手段は、1フレームの描画コマンド数
または前記存在範囲の値に基づいて、ブロックの分割数
を最適化することを特徴とするグラフィックス表示装
置。
3. The graphics display according to claim 1, wherein the block dividing unit optimizes the number of divided blocks based on the number of drawing commands in one frame or the value of the existence range. apparatus.
【請求項4】 Z値を含む図形データの描画コマンドを
記憶するメモリと、前記描画コマンドを所定順に読み出
して描画するプロセッサと、画面表示する表示部を備え
る3次元のグラフィックス表示装置において、 Z値の方向を複数のブロックに分割する際に、視点から
みて最も手前と最も奥のグループの各々に、1フレーム
中の少なくとも一つの描画コマンドが分配されるように
分割するブロック分割手段と、発行された描画コマンド
をそのZ値に対応するグループに分配するソート手段を
設けたことを特徴とするグラフィックス表示装置。
4. A three-dimensional graphics display device comprising: a memory for storing a drawing command of graphic data including a Z value; a processor for reading and drawing the drawing commands in a predetermined order; and a display unit for displaying a screen. When dividing the value direction into a plurality of blocks, block dividing means for dividing so that at least one drawing command in one frame is distributed to each of the foreground and backmost groups from the viewpoint, A graphics display device provided with sorting means for distributing the rendered drawing command to a group corresponding to the Z value.
【請求項5】 請求項1〜4のいずれか1項において、 前記ソート手段は、前記描画コマンドをグループ分けし
てソートするためのZソートリンクテーブルを有し、前
記描画コマンドが発行される度にそのZ値に応じて前記
テーブルの該当グループにリンクし、グループ内に存在
する複数の描画コマンドに対しZ値の昇順または降順に
リンクを張り替えることを特徴とするグラフィックス表
示装置。
5. The method according to claim 1, wherein the sorting unit has a Z sort link table for grouping and sorting the drawing commands, and each time the drawing command is issued. A graphics display device for linking to a corresponding group of the table according to the Z value, and re-linking a plurality of drawing commands existing in the group in ascending or descending order of the Z value.
【請求項6】 請求項2〜5のいずれか1項において、 前記描画コマンドに含まれるZ値の算出方法を、前記描
画コマンドで表現される多角形の最小Z値、重心Z値ま
たは第一頂点Z値のいずれか一つから選択する、Z値代
表点選択手段を設けたことを特徴とするグラフィックス
表示装置。
6. The method according to claim 2, wherein the method of calculating the Z value included in the drawing command is the minimum Z value, the center of gravity Z value, or the first Z value of a polygon represented by the drawing command. A graphics display device comprising Z value representative point selecting means for selecting from any one of vertex Z values.
【請求項7】 Z値を含む図形データの描画コマンドを
複数のバッファで記憶するメモリと、前記描画コマンド
を所定順に読み出して描画するプロセッサと、画面表示
する表示部を備える3次元のグラフィックス表示装置に
おいて、 1フレームの描画コマンドに含まれるZ値範囲を複数の
ブロックに分割するブロック分割手段と、発行された描
画コマンドをそのZ値に対応するグループに分配すると
ともにグループ内でZ値の昇順または降順にソートする
ソート手段と、ソートされた描画コマンドの描画順序を
記憶する前記バッファと同数のZソートリンクテーブル
を設けたことを特徴とするグラフィックス表示装置。
7. A three-dimensional graphics display comprising: a memory for storing a drawing command of graphic data including a Z value in a plurality of buffers; a processor for reading and drawing the drawing commands in a predetermined order; In the apparatus, a block dividing unit that divides a Z value range included in a drawing command of one frame into a plurality of blocks, distributes the issued drawing command to a group corresponding to the Z value, and increases the Z value in the group. Or a sorter for sorting in descending order and the same number of Z sort link tables as the buffers for storing the drawing order of the sorted drawing commands.
【請求項8】 請求項7において、 前記バッファと前記Zソートリンクテーブルの組が二重
に構成され、各組の書き込みと読み出しをフレーム毎に
交替に行なうことを特徴とするグラフィックス表示装
置。
8. The graphics display device according to claim 7, wherein a set of the buffer and the Z-sort link table is configured in a double manner, and writing and reading of each set are performed alternately for each frame.
【請求項9】 請求項7において、 前記バッファと前記Zソートリンクテーブルの組が三重
に構成され、その二組を書き込みと読み出しをフレーム
毎に交替に行ない、残る一組の書き込みを背景図形の更
新時などに行なうことを特徴とするグラフィックス表示
装置。
9. The system according to claim 7, wherein the set of the buffer and the Z-sort link table is formed in triple, and the two sets are alternately written and read for each frame, and the remaining set is written as a background figure. A graphics display device which is performed at the time of updating.
JP8285353A 1996-10-28 1996-10-28 Graphics display device Pending JPH10134204A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8285353A JPH10134204A (en) 1996-10-28 1996-10-28 Graphics display device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8285353A JPH10134204A (en) 1996-10-28 1996-10-28 Graphics display device

Publications (1)

Publication Number Publication Date
JPH10134204A true JPH10134204A (en) 1998-05-22

Family

ID=17690468

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8285353A Pending JPH10134204A (en) 1996-10-28 1996-10-28 Graphics display device

Country Status (1)

Country Link
JP (1) JPH10134204A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006285372A (en) * 2005-03-31 2006-10-19 S I Electron:Kk Z-sorting processing circuit and three-dimensional image drawing device using the same
US7518607B2 (en) 2004-04-05 2009-04-14 Fujitsu Limited Hidden-line removal method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7518607B2 (en) 2004-04-05 2009-04-14 Fujitsu Limited Hidden-line removal method
JP2006285372A (en) * 2005-03-31 2006-10-19 S I Electron:Kk Z-sorting processing circuit and three-dimensional image drawing device using the same
JP4610394B2 (en) * 2005-03-31 2011-01-12 株式会社エスアイエレクトロニクス Z sort processing circuit and three-dimensional image drawing apparatus using the same

Similar Documents

Publication Publication Date Title
US6052129A (en) Method and apparatus for deferred clipping of polygons
EP0747861B1 (en) Computer graphics system having high performance primitive clipping preprocessing
US5440682A (en) Draw processor for a high performance three dimensional graphic accelerator
US5434591A (en) Scrolling method and apparatus in which data being displayed is altered during scrolling
US4736200A (en) Graphic processing apparatus with clipping circuit
US7081894B1 (en) Picture drawing apparatus and picture drawing method
US7551176B2 (en) Systems and methods for providing shared attribute evaluation circuits in a graphics processing unit
EP1847965A1 (en) Plotting device and plotting method
WO2000019377B1 (en) Graphics processor with deferred shading
JP2004537129A (en) 3D graphic system
JPH07104734A (en) Device for displaying and parallel processing figure data
JP2005514711A (en) Efficient graphics state management for zone rendering
EP1364298B1 (en) 3-d rendering engine with embedded memory
EP0631252B1 (en) Draw processor for a high performance three dimensional graphics accelerator
JPH09500462A (en) Computer graphics system with high performance multi-layer z-buffer
EP1125252B1 (en) Shading and texturing 3-dimensional computer generated images
US6181346B1 (en) Graphics system
JP3839871B2 (en) Apparatus for generating pixel data representing a triangle
JPH10134204A (en) Graphics display device
US5657436A (en) Preprocessing apparatus and method for line scan conversion in a computer graphics system
JPH07295787A (en) Arithmetic processor
US7372466B2 (en) Image processing apparatus and method of same
JP2947984B2 (en) Figure Drawing Method in Multiprocessor System
US5714986A (en) Run slice line draw engine with enhanced line configurations
JPH03252885A (en) Section displaying system