JPH07296188A - Pseudo three-dimensional character plotting device - Google Patents

Pseudo three-dimensional character plotting device

Info

Publication number
JPH07296188A
JPH07296188A JP8198194A JP8198194A JPH07296188A JP H07296188 A JPH07296188 A JP H07296188A JP 8198194 A JP8198194 A JP 8198194A JP 8198194 A JP8198194 A JP 8198194A JP H07296188 A JPH07296188 A JP H07296188A
Authority
JP
Japan
Prior art keywords
value
register
pseudo
memory
storing
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
JP8198194A
Other languages
Japanese (ja)
Inventor
Yukio Kishimoto
行生 岸本
Toshiji Hanaoka
利治 花岡
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.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP8198194A priority Critical patent/JPH07296188A/en
Publication of JPH07296188A publication Critical patent/JPH07296188A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Digital Computer Display Output (AREA)
  • Image Generation (AREA)

Abstract

PURPOSE:To provide a stereoscopic image by plotting the image of fine detail simultaneously with a three-dimensional computer graphics image composed of polygons or the like. CONSTITUTION:Concerning this device, a position register 11 for storing coordinate positions on a screen, Z register 10 for storing the Z value of depth information and RGB register 9 for storing the respective luminance values and respective transparent degrees of three primary colors R, G and B are provided for each pixel of pseudo three-dimensional character data, and for each pixel on the screen, this device is equipped with a memory part 5 for storing Z values and the respective luminance values and transparent degrees of RGB, address generating part 12 for calculating an address on the memory part from the coordinate value on the screen, Z value reading part 13 for reading the Z value corresponding to the address from the memory part 5, Z value comparing part 14 for comparing the Z value read from the memory part 5 with the Z value stored in the Z register 10 so as to decide whether the Z value in the memory 5 is updated into the Z value in the Z register 10 or not, and Z value writing part 16 for writing the Z value stored in the Z register 10 corresponding to the Z value in the memory part 5 to be updated and the luminance values and transparent degrees stored in the RGB register 10 to the memory part 5.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、3次元コンピュータグ
ラフィックス画像生成装置に用いられる疑似3次元キャ
ラクタ描画装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a pseudo three-dimensional character drawing device used in a three-dimensional computer graphics image generating device.

【0002】[0002]

【従来の技術】ポリゴンで構成された3次元コンピュー
タグラフィックス画像ではスクリーン上の各ピクセル毎
の輝度値を直接指定する手段が無いため、ディテールの
細かなイメージを描画することが困難である。
2. Description of the Related Art In a three-dimensional computer graphics image composed of polygons, it is difficult to draw an image with fine details because there is no means for directly specifying the brightness value of each pixel on the screen.

【0003】一方、ビデオゲーム機やパーソナルコンピ
ュータなどの動画表示装置において、人物のようなディ
テールの細かな2次元のイメージを高速に描画する手法
として「オブジェクト」を用いることが一般に行われて
おり、効果を上げている。この「オブジェクト」を用い
た画像表示装置は、例えば特開平3−230191号公
報に開示されている。「オブジェクト」とは、各ピクセ
ル毎の輝度、色情報を有する2次元のイメージデータで
ある。水平及び垂直方向にそれぞれ複数のドットからな
る一つ以上のキャラクタを組み合わせ、属性として輝
度、色などの情報が付与されており、水平走査線に合わ
せてメモリからデータを転送することにより2次元のイ
メージが描画される。例えば、図7(a)に示すような
イメージを描画する場合、図7(b)に示すようなデー
タが用いられる。
On the other hand, in a moving image display device such as a video game machine or a personal computer, it is general to use an "object" as a method for drawing a two-dimensional image with a small detail such as a person at high speed. It is effective. An image display device using this "object" is disclosed in, for example, Japanese Patent Application Laid-Open No. 3-230191. The "object" is two-dimensional image data having luminance and color information for each pixel. Information such as brightness and color is added as an attribute by combining one or more characters each consisting of a plurality of dots in the horizontal and vertical directions. By transferring data from a memory in accordance with a horizontal scanning line, two-dimensional characters can be obtained. The image is drawn. For example, when drawing the image as shown in FIG. 7A, the data as shown in FIG. 7B is used.

【0004】特開平3−230191号公報に開示され
ている「オブジェクト」などのピクセルキャラクタによ
る動画表示装置は、図8に示すように、マイクロプロセ
ッサからのデータをラッチするデータラッチやアドレス
デコーダなどからなるCPUインタフェース70と、C
PUインタフェース70を介して得られたプログラムデ
ータに従ってキャラクタデータ記憶領域からオブジェク
トのグラフィックデータを読み出して出力する動画像デ
ータ発生回路71と、CPUインタフェース70を介し
て得られたプログラムデータに従って背景パターン記憶
領域から背景画像のパターンデータを読み出して出力す
る背景画データ発生回路72と、オブジェクトと背景パ
ターンとを合成する合成回路73とから構成されてい
る。
A moving image display device using pixel characters such as "object" disclosed in Japanese Patent Laid-Open No. 3-230191, as shown in FIG. 8, includes a data latch for latching data from a microprocessor and an address decoder. CPU interface 70 and C
A moving image data generation circuit 71 that reads out and outputs graphic data of an object from a character data storage area according to program data obtained through the PU interface 70, and a background pattern storage area according to program data obtained through the CPU interface 70. The background image data generation circuit 72 reads out the pattern data of the background image and outputs it, and the synthesis circuit 73 synthesizes the object and the background pattern.

【0005】CPUインタフェース70を介して得られ
たプログラムデータに従って動画像データ発生回路71
によりキャラクタデータ記憶領域からオブジェクトのグ
ラフィックデータが読み出されて出力される。CPUイ
ンタフェース70を介して得られたプログラムデータに
従って背景画データ発生回路72により背景パターン記
憶領域から背景画像のパターンデータが読み出されて出
力される。合成回路73によりスキャンラインに合わせ
てオブジェクトのグラフィックデータと背景画像のパタ
ーンデータとが合成されて出力される。
A moving image data generation circuit 71 according to program data obtained through the CPU interface 70.
Thus, the graphic data of the object is read from the character data storage area and output. In accordance with the program data obtained via the CPU interface 70, the background image data generation circuit 72 reads the pattern data of the background image from the background pattern storage area and outputs it. The synthesizing circuit 73 synthesizes the graphic data of the object and the pattern data of the background image in accordance with the scan line and outputs the synthesized data.

【0006】[0006]

【発明が解決しようとする課題】3次元コンピュータグ
ラフィックスにおいて、ディテールの細かなイメージを
「オブジェクト」などのピクセルキャラクタを用いて描
画しようとする場合、上述したように、ピクセルキャラ
クタが他のグラフィックスとは独立に処理されるため、
ハードウェアの構成によってスクリーン上の優先度が決
まり、奥行き位置が同じ3次元コンピュータグラフィッ
クス画像とピクセルキャラクタを同時に描画しようとす
ると、ピクセルキャラクタに奥行きがないため、図4
(a)に示すように、ピクセルキャラクタが浮いている
ような画像となる。ピクセルキャラクタ全体に奥行き情
報を与え、その奥行き情報に従って表示するピクセルを
決定しながら、ポリゴングラフィックスなどと同時に描
画する場合、ピクセルキャラクタが平面であるために、
図4(b)に示すように、2次元のキャラクタが背景に
めり込んだようになり、3次元画像としての立体感が失
われる。
In three-dimensional computer graphics, when an image with fine details is to be drawn using pixel characters such as "objects", as described above, the pixel characters are different from other graphics. Is processed independently of
When the priority on the screen is determined by the hardware configuration and the 3D computer graphics image and the pixel character having the same depth position are simultaneously drawn, the pixel character has no depth.
As shown in (a), the image has a floating pixel character. When drawing information at the same time as polygon graphics etc. while giving depth information to the whole pixel character and deciding the pixel to be displayed according to the depth information, since the pixel character is a plane,
As shown in FIG. 4B, a two-dimensional character appears to be embedded in the background, and the stereoscopic effect as a three-dimensional image is lost.

【0007】本発明は、上記の課題を解消するためにな
されたもので、ディテールの細かなイメージをポリゴン
などで構成される3次元コンピュータグラフィックス画
像と同時に描画でき、立体感のある画像を得られる疑似
3次元キャラクタ描画装置を提供することを目的とす
る。
The present invention has been made in order to solve the above problems, and an image with fine details can be drawn simultaneously with a three-dimensional computer graphics image composed of polygons, etc., and an image having a stereoscopic effect can be obtained. It is an object of the present invention to provide a pseudo three-dimensional character drawing device.

【0008】[0008]

【課題を解決するための手段】本発明によれば、前述の
目的は、スクリーン上の座標位置を格納する位置レジス
タ手段と、奥行き情報としてのZ値を格納する第1のZ
レジスタ手段と、RGB3原色の各輝度値及びRGB3
原色の各透明度を格納するRGBレジスタ手段とをコン
ピュータグラフィックス上に描画される疑似3次元キャ
ラクタデータの各ピクセルに関して備え、スクリーン上
の各ピクセルに関して奥行き情報としてのZ値並びにR
BG3原色の各輝度値及び透明度とを格納するメモリ手
段と、スクリーン上の座標値からメモリ手段上のアドレ
スを求めるアドレス生成手段と、メモリ手段よりアドレ
スに対応するZ値を読み込むZ値読み込み手段と、メモ
リ手段から読み込んだZ値と第1のZレジスタ手段に格
納されたZ値とを比較してメモリ手段上のZ値を第1の
レジスタ手段に格納されたZ値に更新するかどうかを判
定するZ値比較手段と、更新されるべきメモリ手段上の
Z値に対応する第1のZレジスタ手段に格納されたZ値
並びにRGBレジスタ手段に格納された輝度値及び透明
度を読み出すセレクタ手段と、セレクタ手段によって読
み出されたZ値並びにRGBの輝度値及び透明度をメモ
リ手段に書き出すZ値書き出し手段とを備える請求項1
の疑似3次元キャラクタ描画装置によって達成される。
According to the present invention, the aforementioned object is to provide position register means for storing coordinate positions on a screen and a first Z for storing Z values as depth information.
Register means, luminance values of RGB3 primary colors and RGB3
RGB register means for storing the transparency of each primary color is provided for each pixel of pseudo three-dimensional character data drawn on computer graphics, and Z value and R as depth information for each pixel on the screen are provided.
Memory means for storing each brightness value and transparency of the BG3 primary colors, address generating means for obtaining an address on the memory means from coordinate values on the screen, and Z value reading means for reading the Z value corresponding to the address from the memory means. , Comparing the Z value read from the memory means with the Z value stored in the first Z register means to determine whether to update the Z value on the memory means to the Z value stored in the first register means. Z value comparing means for judging, and selector means for reading the Z value stored in the first Z register means corresponding to the Z value on the memory means to be updated, and the brightness value and transparency stored in the RGB register means. A Z value writing means for writing the Z value read by the selector means, the RGB brightness value, and the transparency to the memory means.
This is achieved by the pseudo three-dimensional character drawing device.

【0009】本発明によれば、前述の目的は、第1のZ
レジスタ手段が、各ピクセルのキャラクタ全体に対する
相対的な奥行き情報としてのZ値を格納する第2のZレ
ジスタ手段と、疑似3次元キャラクタ全体の奥行き情報
としての他のZ値を格納する第3のZレジスタ手段と、
第2のZレジスタ手段のZ値と第3のZレジスタ手段の
他のZ値とを加算するZ値加算手段とから構成されてい
る請求項2の疑似3次元キャラクタ描画装置によって達
成される。
According to the invention, the aforementioned object is achieved by the first Z
The register means stores the Z value as depth information relative to the entire character of each pixel, and the third Z register means stores other Z value as the depth information of the entire pseudo three-dimensional character. Z register means,
This is achieved by the pseudo three-dimensional character drawing device according to claim 2, comprising Z value adding means for adding the Z value of the second Z register means and the other Z value of the third Z register means.

【0010】本発明によれば、前述の目的は、メモリ手
段が、奥行き情報としてのZ値、RGBの各輝度値及び
透明度を保持するZバッファ手段と、Zバッファ手段の
データの読み書きを制御するZバッファ制御手段とから
構成される請求項3の疑似3次元キャラクタ描画装置に
よって達成される。
According to the present invention, for the above-mentioned object, the memory means controls the Z buffer means for holding the Z value as depth information, each luminance value of RGB, and the transparency, and the reading and writing of data in the Z buffer means. This is achieved by the pseudo three-dimensional character drawing device according to claim 3, which comprises Z buffer control means.

【0011】本発明によれば、前述の目的は、比較手段
が、メモリ手段から読み込んだZ値より第1のZレジス
タ手段に格納されたZ値が視点に近いことを表している
場合にメモリ上のZ値を更新するように判定する請求項
4の疑似3次元キャラクタ描画装置によって達成され
る。
According to the present invention, the above object is achieved when the comparison means indicates that the Z value stored in the first Z register means is closer to the viewpoint than the Z value read from the memory means. This is achieved by the pseudo three-dimensional character drawing device according to claim 4, wherein the Z value is determined to be updated.

【0012】[0012]

【作用】請求項1の疑似3次元キャラクタ描画装置にお
いては、疑似3次元キャラクタデータの各ピクセルに関
して、位置レジスタ手段によりスクリーン上の座標位置
が格納され、第1のZレジスタ手段により奥行き情報と
してのZ値が格納され、RGBレジスタ手段によりRG
B3原色の各輝度値及びRGB3原色の各透明度が格納
される。スクリーン上の各ピクセルに関して奥行き情報
としてのZ値並びにRGB3原色の輝度値及び透明度が
メモリ手段に格納され、アドレス生成手段によりスクリ
ーン上の座標値からメモリ手段上のアドレスが求めら
れ、Z値読み込み手段によりメモリ手段よりアドレスに
該当するZ値が読み込まれ、Z値比較手段によりメモリ
手段より読み込んだZ値と第1のZレジスタ手段が格納
するZ値とが比較されると共にメモリ手段上のZ値を第
1のZレジスタ手段に格納されたZ値に更新するかどう
かが判定され、セレクタ手段により更新されるべきメモ
リ手段上のZ値に対応する第1のZレジスタ手段に格納
されたZ値並びにRGBレジスタに格納された輝度値及
び透明度が読み出され、Z値書き出し手段により読み出
されたZ値並びにRGBの輝度値及び透明度がメモリ手
段に書き出される。疑似3次元キャラクタデータの各ピ
クセル毎に、奥行き情報、RGB3原色の各輝度値及び
透明度の情報が付与されていることにより、ディテール
の細かなイメージをポリゴンなどで構成される3次元コ
ンピュータグラフィックス画像と同時に描画できると共
に立体感のある画像を得られる。
In the pseudo three-dimensional character drawing device of the first aspect, the coordinate position on the screen is stored by the position register means for each pixel of the pseudo three-dimensional character data, and the first Z register means stores the depth information. The Z value is stored, and the RGB register means RG.
The brightness values of the B3 primary colors and the transparency of the RGB3 primary colors are stored. For each pixel on the screen, the Z value as depth information and the brightness and transparency of the RGB three primary colors are stored in the memory means, the address generating means obtains the address on the memory means from the coordinate value on the screen, and the Z value reading means. The Z value corresponding to the address is read from the memory means, the Z value read from the memory means is compared with the Z value stored in the first Z register means by the Z value comparison means, and the Z value on the memory means is compared. Is determined to be updated to the Z value stored in the first Z register means, and the Z value stored in the first Z register means corresponding to the Z value on the memory means to be updated by the selector means is determined. Also, the brightness value and the transparency stored in the RGB register are read out, and the Z value and the brightness of the RGB read out by the Z value writing means are read out. Value and clarity are written in the memory means. The depth information, the brightness values of the three RGB primary colors, and the transparency information are added to each pixel of the pseudo three-dimensional character data, so that a detailed image is a three-dimensional computer graphics image including polygons and the like. At the same time, it is possible to draw and obtain a stereoscopic image.

【0013】請求項2の疑似3次元キャラクタ描画装置
においては、第2のZレジスタ手段により各ピクセルの
キャラクタ全体に対する相対的な奥行き情報としてのZ
値が格納され、第3のZレジスタ手段により疑似3次元
キャラクタ全体の奥行き情報としての他のZ値が格納さ
れ、Z値加算手段によりZレジスタ手段のZ値と第3の
Zレジスタ手段の他のZ値とが加算されることにより、
キャラクタを前後方向に移動させる場合でも各ピクセル
の絶対奥行き位置を予め用意しておく必要がなくなり、
メモリ容量を低減し得る。
In the pseudo three-dimensional character drawing device according to the second aspect, Z as the depth information relative to the entire character of each pixel by the second Z register means.
A value is stored, another Z value as depth information of the entire pseudo three-dimensional character is stored by the third Z register means, and the Z value of the Z register means and the other Z value by the Z value adding means. By adding the Z value of
Even when moving the character forward and backward, it is not necessary to prepare the absolute depth position of each pixel in advance,
The memory capacity can be reduced.

【0014】請求項3の疑似3次元キャラクタ描画装置
においては、メモリ手段が奥行き情報としてのZ値、R
GBの各輝度値及び透明度を保持するZバッファ手段
と、Zバッファのデータの読み書きを制御するZバッフ
ァ制御手段とから構成されていることにより、メモリの
読み書きにCPUが要する時間が短縮でき、イメージの
描画時間を短縮し得る。
According to another aspect of the pseudo three-dimensional character drawing apparatus of the present invention, the memory means has a Z value and R as depth information.
By comprising the Z buffer means for holding each brightness value and transparency of GB and the Z buffer control means for controlling the reading and writing of the data in the Z buffer, the time required for the CPU to read and write the memory can be shortened, and the image Drawing time can be shortened.

【0015】請求項4の疑似3次元キャラクタ描画装置
においては、比較手段がメモリ手段から読み込んだZ値
より第1のZレジスタ手段に格納されたZ値が視点に近
いことを表している場合にメモリ上のZ値を更新するよ
う判定することにより、背景であるコンピュータグラフ
ィックスの画像にキャラクタデータを立体的に描画し得
る。
In the pseudo three-dimensional character drawing apparatus according to the fourth aspect, when the comparison means indicates that the Z value stored in the first Z register means is closer to the viewpoint than the Z value read from the memory means. By determining to update the Z value in the memory, the character data can be three-dimensionally drawn on the background computer graphics image.

【0016】[0016]

【実施例】以下、本発明の実施例を図を参照しながら説
明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0017】本発明に係る疑似3次元キャラクタ描画装
置を備える3次元コンピュータグラフィックス画像生成
装置は、図1に示すように、装置全体の制御を行うCP
U1を有しており、CPU1には、CPU1より送出さ
れた疑似3次元キャラクタイメージデータ及びポリゴン
グラフィックスのモデルデータを格納するデータ格納部
2が接続されている。データ格納部2には、データ格納
部2に格納されたポリゴングラフィックスのモデルデー
タから3次元画像を生成するポリゴングラフィックス描
画部3と、データ格納部2に格納された疑似3次元キャ
ラクタイメージデータから疑似3次元キャラクタの画像
を生成する疑似3次元キャラクタ描画部4とが接続され
ている。ポリゴングラフィックス描画部3及び疑似3次
元キャラクタ描画部4は、それぞれメモリ部5に接続さ
れており、メモリ部5は、Z値及びRGBのそれぞれの
輝度値を保持するZバッファ手段としてのZバッファ6
と、Zバッファ6のデータの読み書きを制御するZバッ
ファ制御手段としてのZバッファ制御部7とにより構成
されている。Zバッファ制御部7には、Zバッファ6の
内容をCRT等のスクリーンに出力する画像出力部8が
接続されている。
As shown in FIG. 1, a 3D computer graphics image generating apparatus equipped with a pseudo 3D character drawing apparatus according to the present invention controls the entire apparatus.
A data storage unit 2 having U1 is connected to the CPU 1 for storing the pseudo three-dimensional character image data and the polygon graphics model data sent from the CPU1. The data storage unit 2 includes a polygon graphics drawing unit 3 for generating a three-dimensional image from the polygon graphics model data stored in the data storage unit 2, and pseudo three-dimensional character image data stored in the data storage unit 2. Is connected to the pseudo three-dimensional character drawing unit 4 for generating an image of the pseudo three-dimensional character. The polygon graphics drawing unit 3 and the pseudo three-dimensional character drawing unit 4 are connected to a memory unit 5, respectively, and the memory unit 5 is a Z buffer serving as a Z buffer means for holding Z values and RGB brightness values. 6
And a Z buffer control unit 7 as Z buffer control means for controlling the reading and writing of data in the Z buffer 6. An image output unit 8 that outputs the contents of the Z buffer 6 to a screen such as a CRT is connected to the Z buffer control unit 7.

【0018】疑似3次元キャラクタ描画部4は、図2に
詳示するように、RGBの各輝度値及び各透明度の情報
を格納するRGBレジスタ手段としてのRGBレジスタ
9と、Z値を格納する第1のZレジスタ手段としてのZ
レジスタ10と、スクリーン座標上の座標値すなわち位
置情報を格納する位置レジスタ手段としての位置レジス
タ11とを備える。位置レジスタ11には、位置レジス
タ11が格納する位置情報からメモリ5上のアドレスを
生成するアドレス生成手段としてのアドレス生成部12
が接続されている。アドレス生成部12は、メモリ5に
接続されている。また、メモリ5には、アドレス生成部
12により生成されたアドレスに相当するメモリ部5に
格納されているZ値を読み込むZ値読み込み手段として
のZ値読み込み部13が接続されている。Z値読み込み
部13及びZレジスタ10には、Z値読み込み部13に
より読み込まれたZ値とZレジスタ10に格納されてい
るZ値とを比較するZ値比較手段としてのZ値比較部1
4が接続されている。RGBレジスタ9及びZ値比較部
14には、メモリ部5へのデータの書き出しを制御する
セレクタ手段としてのセレクタ部15が接続されてい
る。セレクタ部15には、メモリ部5へのデータの書き
出しを行うZ値書き出し手段としてのZ値書き出し部1
6が接続されている。Z値書き出し部16には、メモリ
5が接続されている。
As shown in detail in FIG. 2, the pseudo three-dimensional character drawing section 4 has an RGB register 9 as RGB register means for storing information on each RGB luminance value and each transparency, and a Z value storing section. Z as one Z register means
A register 10 and a position register 11 as position register means for storing coordinate values on screen coordinates, that is, position information are provided. The position register 11 includes an address generation unit 12 as an address generation unit that generates an address on the memory 5 from the position information stored in the position register 11.
Are connected. The address generator 12 is connected to the memory 5. Further, the memory 5 is connected to a Z value reading unit 13 as Z value reading means for reading the Z value stored in the memory unit 5 corresponding to the address generated by the address generating unit 12. The Z value reading unit 13 and the Z register 10 include a Z value comparing unit 1 as Z value comparing means for comparing the Z value read by the Z value reading unit 13 with the Z value stored in the Z register 10.
4 is connected. The RGB register 9 and the Z value comparison unit 14 are connected to a selector unit 15 as a selector unit that controls writing of data to the memory unit 5. The selector unit 15 has a Z value writing unit 1 as a Z value writing unit that writes data to the memory unit 5.
6 is connected. The memory 5 is connected to the Z value writing unit 16.

【0019】以下、本実施例の動作について図を参照し
ながら説明する。
The operation of this embodiment will be described below with reference to the drawings.

【0020】CPU1によりデータ格納部2に描画する
データの指定と描画の開始とが指示される。データ格納
部2にはポリゴングラフィックスにおけるモデルデータ
などと共に疑似3次元キャラクタイメージデータが格納
されている。モデルデータには、描画する3次元物体を
構成する面の各頂点の座標、法線ベクトル値、属性値、
これらのモデルの移動や回転などの情報、視点や視線の
情報、光源情報等が含まれている。疑似3次元キャラク
タイメージデータは、図3(a)に示すようなキャラク
タを構成する各ピクセルのRGBの輝度値及び透明度の
情報と、図3(b)に示すようなキャラクタを構成する
各ピクセルのZ値と、描画するキャラクタイメージのス
クリーン座標上での位置情報とが含まれている。
The CPU 1 instructs the data storage unit 2 to specify the data to be drawn and to start the drawing. The data storage unit 2 stores pseudo three-dimensional character image data together with model data in polygon graphics. The model data includes the coordinates of the vertices of the surface forming the three-dimensional object to be drawn, the normal vector value, the attribute value,
Information about movement and rotation of these models, viewpoint and line-of-sight information, light source information, and the like are included. Pseudo three-dimensional character image data includes RGB luminance value and transparency information of each pixel forming a character as shown in FIG. 3A, and each pixel forming a character as shown in FIG. 3B. The Z value and the position information on the screen coordinates of the character image to be drawn are included.

【0021】ポリゴングラフィックスの場合、指定され
たモデルデータ等がデータ格納部2からポリゴングラフ
ィックス描画部3へ送られ、ポリゴングラフィックス描
画部3により送られたデータに従って座標計算や輝度計
算が行われ、Z値を持った3次元画像データが生成され
る。生成された3次元画像はZバッファ制御部7に送ら
れ、Zバッファ制御部7により奥行き情報及び輝度情報
がZバッファ6に格納される。
In the case of polygon graphics, designated model data and the like are sent from the data storage unit 2 to the polygon graphics drawing unit 3, and coordinate calculation and brightness calculation are performed according to the data sent by the polygon graphics drawing unit 3. That is, three-dimensional image data having a Z value is generated. The generated three-dimensional image is sent to the Z buffer control unit 7, and the Z buffer control unit 7 stores the depth information and the brightness information in the Z buffer 6.

【0022】疑似3次元キャラクタを描画する場合、デ
ータ格納部2から送られる情報の内で、RGBそれぞれ
の輝度値及び透明度情報はRGBレジスタ9に格納さ
れ、Z値はZレジスタ10に格納され、スクリーン座標
上でのX座標値及びY座標値で示される位置情報は位置
レジスタ11に格納される。位置レジスタ10の位置情
報から位置情報の座標値に該当するメモリ5上のアドレ
スがアドレス生成部12により求められる。アドレス生
成部12により求められたアドレスに格納されている奥
行き情報としてのpreZ値がZ値読み込み部13によ
りメモリ部5から読み込まれる。読み込まれたpreZ
値とZレジスタ10が格納するZ値はZ値比較部14へ
送られ、Z値比較部14により大小比較が行われる。奥
行き情報は値が大きいほど視点に近いことを示している
ため、Z値がpreZ値より大きい場合には、Z値比較
部14よりセレクタ部15にZ値が送られる。Z値比較
部14よりZ値が送られた場合、セレクタ部15により
RGBレジスタ9からRGBそれぞれの輝度値及び透明
度が取り出されてZ値と共にZ値書き出し部16に送ら
れ、Z値書き出し部16によりZ値、RGB輝度値及び
透明度がメモリ5に書き込まれる。比較部14によりZ
値がpreZ値より小さいと判断された場合、比較部1
4よりセレクタ部15へは信号が送られないため、Z値
書き出し部16によりメモリ5のデータの更新は行われ
ない。
In the case of drawing a pseudo three-dimensional character, among the information sent from the data storage unit 2, the brightness value and transparency information of each of RGB are stored in the RGB register 9, the Z value is stored in the Z register 10, The position information indicated by the X coordinate value and the Y coordinate value on the screen coordinate is stored in the position register 11. From the position information of the position register 10, the address on the memory 5 corresponding to the coordinate value of the position information is obtained by the address generator 12. The Z value reading unit 13 reads the preZ value as depth information stored at the address obtained by the address generating unit 12 from the memory unit 5. PreZ read
The value and the Z value stored in the Z register 10 are sent to the Z value comparison unit 14, and the Z value comparison unit 14 compares the values. The larger the value of the depth information, the closer to the viewpoint. Therefore, when the Z value is larger than the preZ value, the Z value comparison unit 14 sends the Z value to the selector unit 15. When the Z value is sent from the Z value comparison unit 14, the selector unit 15 extracts the brightness value and the transparency of each of the RGB from the RGB register 9 and sends them to the Z value writing unit 16 together with the Z value, and the Z value writing unit 16 The Z value, the RGB brightness value, and the transparency are written in the memory 5 by. Z by the comparison unit 14
When it is determined that the value is smaller than the preZ value, the comparison unit 1
Since a signal is not sent to the selector unit 15 from 4, the Z value writing unit 16 does not update the data in the memory 5.

【0023】このように疑似3次元キャラクタ描画部4
から書き出されたZ値及びRGBの輝度値と、ポリゴン
グラフィックス描画部3から書き出されるZ値及びRG
Bの輝度値とがZバッファ制御部7を介してZバッファ
6に保持される。全ての疑似3次元キャラクタイメージ
データ及びポリゴングラフィックスのモデルデータにつ
いて描画処理が終わった段階で、Zバッファ制御部7に
よりZバッファ6に保持されたRGBの輝度値が順に画
像出力部8へ出力され、CRT等のスクリーンに表示さ
れる。疑似3次元キャラクタ描画部4を備える3次元コ
ンピュータグラフィックス画像生成装置において、以上
のような処理を行うことにより、図4(c)に示すよう
に、ポリゴングラフィックスによる3次元画像と立体感
のある疑似3次元キャラクタが同時に描画可能になる。
In this way, the pseudo three-dimensional character drawing unit 4
Value and RGB brightness value written from the Z value and RG written from the polygon graphics drawing unit 3.
The brightness value of B is held in the Z buffer 6 via the Z buffer control unit 7. At the stage where the drawing process is completed for all the pseudo three-dimensional character image data and the polygon graphics model data, the RGB brightness values held in the Z buffer 6 are sequentially output to the image output unit 8 by the Z buffer control unit 7. , CRT, etc. are displayed on the screen. In the three-dimensional computer graphics image generation apparatus including the pseudo three-dimensional character drawing unit 4, by performing the above-described processing, as shown in FIG. A pseudo three-dimensional character can be drawn simultaneously.

【0024】なお、キャラクタイメージの各ピクセルに
対して奥行き情報を与えるというのは、従来のピクセル
キャラクタが図5(a)のように見えるデータであるの
に対して、図5(b)に示すように視点から見えるキャ
ラクタイメージは全く同じでありながら、視点との距離
が各ピクセル毎に与えられていることをさす。視線的に
垂直な平面でキャラクタを遮る場合、図5(a)のキャ
ラクタでは見えるか見えないかのどちらかしか有り得な
いが、図5(b)のキャラクタでは平面の位置によって
はキャラクタの一部のみが見えることがあり、キャラク
タが立体的に見えるようになる。従って、3次元コンピ
ュータグラフィックス画像中において、キャラクタイメ
ージを疑似3次元イメージとして描画することが可能と
なる。3次元コンピュータグラフィックス画像において
もディテールの細かなイメージを立体感を損なうことな
く重ねて描画することが可能になる。上述した実施例に
よれば、疑似3次元キャラクタの描画とポリゴンなどに
よる3次元コンピュータグラフィックスの描画とは奥行
き情報の比較以外は独立に処理するので、描画速度が低
下することがない。
It should be noted that giving depth information to each pixel of a character image is data shown in FIG. 5B, whereas the conventional pixel character is data that looks like FIG. 5A. Although the character images seen from the viewpoint are exactly the same, the distance from the viewpoint is given for each pixel. When the character is interrupted by a plane perpendicular to the line of sight, the character in FIG. 5A can only be seen or invisible, but the character in FIG. Only the characters can be seen, and the character becomes three-dimensional. Therefore, the character image can be drawn as a pseudo three-dimensional image in the three-dimensional computer graphics image. Even in a three-dimensional computer graphics image, it is possible to draw images with fine details in an overlapping manner without impairing the stereoscopic effect. According to the above-described embodiment, the drawing of the pseudo three-dimensional character and the drawing of the three-dimensional computer graphics such as polygons are processed independently except for the comparison of the depth information, so that the drawing speed does not decrease.

【0025】なお、データ格納部2から疑似3次元キャ
ラクタ描画部4に送られるZ値が正規化座標系での絶対
値ではなく、各ピクセルのキャラクタにおける相対値と
キャラクタに対する絶対値であるbaseZ値が与えら
れる場合、Zレジスタ10を、図6に示すように、各ピ
クセルのキャラクタ全体に対する相対的なZ値を格納す
る第2のZレジスタ手段としてのZレジスタ17と、疑
似3次元キャラクタ全体の奥行き情報としてのbase
Z値を格納するbaseZレジスタ手段としてのbas
eZレジスタ18と、Zレジスタ17のZ値とbase
Zレジスタ18のbaseZ値とを加算するZ値加算手
段としてのZ値加算部19とにより構成するとよい。こ
のようにすると、Z値とbaseZ値とを加算した値が
該当するピクセルのZ値となってZ値比較部14へ送ら
れる。これにより、キャラクタを前後方向に移動させる
場合でも各ピクセルの絶対奥行き位置を予め用意してお
く必要がなくなり、メモリ容量を低減することができ
る。
The Z value sent from the data storage unit 2 to the pseudo three-dimensional character drawing unit 4 is not the absolute value in the normalized coordinate system, but the relative value in each pixel and the baseZ value which is the absolute value for the character. , The Z register 10 is used as a second Z register means for storing the relative Z value of each pixel with respect to the entire character, as shown in FIG. Base as depth information
Bas as baseZ register means for storing Z value
eZ register 18 and Z value of Z register 17 and base
It may be configured by a Z value addition unit 19 as Z value addition means for adding the baseZ value of the Z register 18. In this way, the value obtained by adding the Z value and the baseZ value becomes the Z value of the corresponding pixel and is sent to the Z value comparison unit 14. This eliminates the need to prepare the absolute depth position of each pixel even when the character is moved in the front-back direction, and the memory capacity can be reduced.

【0026】[0026]

【発明の効果】請求項1の疑似3次元キャラクタ描画装
置においては、疑似3次元キャラクタデータの各ピクセ
ル毎に、奥行き情報、RGB3原色の各輝度値及び透明
度の情報が付与されていることにより、ディテールの細
かなイメージをポリゴンなどで構成される3次元コンピ
ュータグラフィックス画像と同時に描画できると共に立
体感のある画像を得られる。
According to the pseudo three-dimensional character drawing device of the first aspect, depth information, brightness values of RGB three primary colors, and transparency information are added to each pixel of the pseudo three-dimensional character data. It is possible to draw a detailed image at the same time as a three-dimensional computer graphics image composed of polygons and the like, and to obtain an image having a stereoscopic effect.

【0027】請求項2の疑似3次元キャラクタ描画装置
においては、キャラクタを前後方向に移動させる場合で
も各ピクセルの絶対奥行き位置を予め用意しておく必要
がなくなり、メモリ容量を低減し得る。
In the pseudo three-dimensional character drawing device according to the second aspect, even when the character is moved in the front-back direction, it is not necessary to prepare the absolute depth position of each pixel in advance, and the memory capacity can be reduced.

【0028】請求項3の疑似3次元キャラクタ描画装置
においては、メモリの読み書きにCPUが要する時間が
短縮でき、イメージの描画時間を短縮し得る。
In the pseudo three-dimensional character drawing device of the third aspect, the time required for the CPU to read and write the memory can be shortened, and the image drawing time can be shortened.

【0029】請求項4の疑似3次元キャラクタ描画装置
においては、背景であるコンピュータグラフィックスの
画像にキャラクタデータを立体的に描画し得る。
In the pseudo three-dimensional character drawing device of the fourth aspect, the character data can be three-dimensionally drawn on the image of the computer graphics which is the background.

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

【図1】本発明の疑似3次元キャラクタ描画装置を備え
る3次元コンピュータグラフィックス画像生成装置の構
成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a three-dimensional computer graphics image generation apparatus including a pseudo three-dimensional character drawing apparatus of the present invention.

【図2】本発明の疑似3次元キャラクタ描画装置の実施
例の構成を示すブロック図である。
FIG. 2 is a block diagram showing a configuration of an embodiment of a pseudo three-dimensional character drawing device of the present invention.

【図3】疑似3次元キャラクタのデータを示す図であ
る。
FIG. 3 is a diagram showing data of a pseudo three-dimensional character.

【図4】キャラクタイメージを3次元コンピュータグラ
フィックス画像中に描画した場合のイメージの説明図で
ある。
FIG. 4 is an explanatory diagram of an image when a character image is drawn in a three-dimensional computer graphics image.

【図5】ピクセルキャラクタと疑似3次元キャラクタの
説明図である。
FIG. 5 is an explanatory diagram of a pixel character and a pseudo three-dimensional character.

【図6】本発明の疑似3次元キャラクタ描画装置の実施
例のZレジスタの構成を示すブロック図である。
FIG. 6 is a block diagram showing a configuration of a Z register of an embodiment of the pseudo three-dimensional character drawing device of the present invention.

【図7】ピクセルキャラクタの一例の説明図である。FIG. 7 is an explanatory diagram of an example of a pixel character.

【図8】従来の画像表示装置の構成を示すブロック図で
ある。
FIG. 8 is a block diagram showing a configuration of a conventional image display device.

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

4 疑似3次元キャラクタ描画装置 5 メモリ部 6 Zバッファ 7 Zバッファ制御部 9 RGBレジスタ 10 Zレジスタ 11 位置レジスタ 12 アドレス生成部 13 Z値読み込み部 14 Z値比較部 15 セレクタ部 16 Z値書き出し部 17 Zレジスタ 18 baseZレジスタ 19 Z値加算部 4 Pseudo three-dimensional character drawing device 5 Memory section 6 Z buffer 7 Z buffer control section 9 RGB register 10 Z register 11 Position register 12 Address generation section 13 Z value reading section 14 Z value comparing section 15 Selector section 16 Z value writing section 17 Z register 18 base Z register 19 Z value adder

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 スクリーン上の座標位置を格納する位置
レジスタ手段と、奥行き情報としてのZ値を格納する第
1のZレジスタ手段と、RGB3原色の各輝度値及びR
GB3原色の各透明度を格納するRGBレジスタ手段と
をコンピュータグラフィックス上に描画される疑似3次
元キャラクタデータの各ピクセルに関して備え、スクリ
ーン上の各ピクセルに関して奥行き情報としてのZ値並
びにRBG3原色の各輝度値及び透明度とを格納するメ
モリ手段と、スクリーン上の座標値からメモリ手段上の
アドレスを求めるアドレス生成手段と、メモリ手段より
アドレスに対応するZ値を読み込むZ値読み込み手段
と、メモリ手段から読み込んだZ値と第1のZレジスタ
手段に格納されたZ値とを比較してメモリ手段上のZ値
を第1のZレジスタ手段に格納されたZ値に更新するか
どうかを判定するZ値比較手段と、更新されるべきメモ
リ手段上のZ値に対応する第1のZレジスタ手段に格納
されたZ値並びにRGBレジスタ手段に格納された輝度
値及び透明度を読み出すセレクタ手段と、セレクタ手段
によって読み出されたZ値並びにRGBの輝度値及び透
明度をメモリ手段に書き出すZ値書き出し手段とを備え
る疑似3次元キャラクタ描画装置。
1. A position register means for storing a coordinate position on a screen, a first Z register means for storing a Z value as depth information, and respective brightness values and R of RGB three primary colors.
An RGB register means for storing each transparency of the GB3 primary color is provided for each pixel of the pseudo three-dimensional character data drawn on computer graphics, and a Z value as depth information for each pixel on the screen and each luminance of the RBG3 primary color. Memory means for storing a value and transparency, address generating means for obtaining an address on the memory means from coordinate values on the screen, Z value reading means for reading the Z value corresponding to the address from the memory means, and reading from the memory means. Z value for determining whether to update the Z value stored in the first Z register means by comparing the Z value stored in the first Z register means with the Z value stored in the first Z register means. Z value and R stored in the first Z register means corresponding to the Z value on the memory means to be updated Pseudo three-dimensional character drawing including selector means for reading the brightness value and transparency stored in the B register means, and Z value writing means for writing the Z value read by the selector means and the RGB brightness value and transparency in the memory means. apparatus.
【請求項2】 第1のZレジスタ手段が、各ピクセルの
キャラクタ全体に対する相対的な奥行き情報としてのZ
値を格納する第2のZレジスタ手段と、疑似3次元キャ
ラクタ全体の奥行き情報としての他のZ値を格納する第
3のZレジスタ手段と、第2のZレジスタ手段のZ値と
第3のZレジスタ手段の他のZ値とを加算するZ値加算
手段とから構成されている請求項1に記載の疑似3次元
キャラクタ描画装置。
2. A first Z register means is provided as Z as depth information relative to the entire character of each pixel.
A second Z register means for storing a value, a third Z register means for storing another Z value as depth information of the entire pseudo three-dimensional character, a Z value of the second Z register means and a third The pseudo three-dimensional character drawing device according to claim 1, comprising Z value adding means for adding another Z value of the Z register means.
【請求項3】 メモリ手段が、奥行き情報としてのZ
値、RGBの各輝度値及び透明度を保持するZバッファ
手段と、Zバッファのデータの読み書きを制御するZバ
ッファ制御手段とから構成されている請求項1に記載の
疑似3次元キャラクタ描画装置。
3. The memory means uses Z as depth information.
2. The pseudo three-dimensional character drawing device according to claim 1, comprising Z buffer means for holding values, RGB brightness values and transparency, and Z buffer control means for controlling reading and writing of data in the Z buffer.
【請求項4】 比較手段が、メモリ手段から読み込んだ
Z値より第1のZレジスタ手段に格納されたZ値が視点
に近いことを表している場合にメモリ上のZ値を更新す
るように判定する請求項1に記載の疑似3次元キャラク
タ描画装置。
4. The comparing means updates the Z value on the memory when the Z value stored in the first Z register means is closer to the viewpoint than the Z value read from the memory means. The pseudo three-dimensional character drawing device according to claim 1, wherein the determination is performed.
JP8198194A 1994-04-20 1994-04-20 Pseudo three-dimensional character plotting device Pending JPH07296188A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8198194A JPH07296188A (en) 1994-04-20 1994-04-20 Pseudo three-dimensional character plotting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8198194A JPH07296188A (en) 1994-04-20 1994-04-20 Pseudo three-dimensional character plotting device

Publications (1)

Publication Number Publication Date
JPH07296188A true JPH07296188A (en) 1995-11-10

Family

ID=13761667

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8198194A Pending JPH07296188A (en) 1994-04-20 1994-04-20 Pseudo three-dimensional character plotting device

Country Status (1)

Country Link
JP (1) JPH07296188A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2369542A (en) * 2000-11-18 2002-05-29 Lsi Logic Corp Generation of graphics in computer systems
JP2003225427A (en) * 2002-02-05 2003-08-12 Shinnichi Electronics Kk Picture display device for pachinko machine, and picture displaying method and picture displaying program for the picture display device
US6930688B1 (en) 2000-11-16 2005-08-16 Lsi Logic Corporation Generator of graphics in computer system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6930688B1 (en) 2000-11-16 2005-08-16 Lsi Logic Corporation Generator of graphics in computer system
GB2369542A (en) * 2000-11-18 2002-05-29 Lsi Logic Corp Generation of graphics in computer systems
JP2003225427A (en) * 2002-02-05 2003-08-12 Shinnichi Electronics Kk Picture display device for pachinko machine, and picture displaying method and picture displaying program for the picture display device

Similar Documents

Publication Publication Date Title
KR100357269B1 (en) Image processing apparatus and image processing method
EP2105905A2 (en) Image generation apparatus
US6411294B1 (en) Image display apparatus and image display method
US20090009515A1 (en) Game machine, game machine control method, and information storage medium
JPH10302079A (en) Solid texture mapping processor and three-dimensional image generating device using the processor
JP4122573B2 (en) Image processing method and recording medium recording image processing program
JPH07146952A (en) Three-dimensional image processor
JPH1166340A (en) Device and method for processing image and recording medium recording image processing program
JP3352982B2 (en) Rendering method and device, game device, and computer-readable recording medium for storing program for rendering three-dimensional model
JP3372234B2 (en) Reflected image display method, game apparatus, and recording medium
JP2004005452A (en) Image processor, image processing method, semiconductor device, computer program and record medium
US20010017629A1 (en) Methods and apparatus for drawing contours of objects in video games
US20020004421A1 (en) Computer readable recording medium recording a program for causing a light source to be displayed on a game screen and the program, and game screen display method and apparatus
JP3527672B2 (en) Computer-readable recording medium recording a three-dimensional computer image processing program, shadow drawing processing method, and video game apparatus
US6712700B1 (en) Stereo model displaying method and apparatus in video game, game apparatus, and computer-readable recording medium stored with stereo model displaying program for video game
KR100489572B1 (en) Image processing method
JP3756888B2 (en) Graphics processor, graphics card and graphics processing system
JPH07296188A (en) Pseudo three-dimensional character plotting device
JP2002140063A (en) Graphics drawing device
JP2001273519A (en) Game system, picture plotting method for this system, and computer-readable recording medium for storing program for game
US7173618B2 (en) Image creation program and method of creating image
WO2000072269A1 (en) Method and apparatus for generating outlines
US6831639B2 (en) Computer readable storage medium storing 3-D game image processing program, 3-D game image processing method, video game machine, and 3-D game image processing program
JP3110975B2 (en) Display with character mask function
JP4204114B2 (en) Polygon data processing method