JP2006293470A - Drawing system, method therefor, and drawing program - Google Patents
Drawing system, method therefor, and drawing program Download PDFInfo
- Publication number
- JP2006293470A JP2006293470A JP2005109856A JP2005109856A JP2006293470A JP 2006293470 A JP2006293470 A JP 2006293470A JP 2005109856 A JP2005109856 A JP 2005109856A JP 2005109856 A JP2005109856 A JP 2005109856A JP 2006293470 A JP2006293470 A JP 2006293470A
- Authority
- JP
- Japan
- Prior art keywords
- depth information
- translucent
- image
- image information
- writing
- 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
Links
Images
Landscapes
- Image Generation (AREA)
Abstract
Description
本発明は、背景画像が透けて見える半透明の三次元物体を描画する描画装置、方法および描画プログラムに関する。 The present invention relates to a drawing apparatus, a method, and a drawing program for drawing a translucent three-dimensional object through which a background image can be seen.
従来から、Zバッファを用いて半透明の物体を描画する各種の手法が知られている。例えば、半透明ポリゴン(ブレンディングポリゴン)を順序テーブルに登録しておいて最奥の半透明ポリゴンから順番に描画することにより、1つあるいは複数の半透明ポリゴンと他の不透明ポリゴンとが重なった画像を描画する描画装置が知られている(例えば、特許文献1参照。)。また、不透明用バッファおよび半透明用バッファとこれらに共通のZバッファとを備え、最初に共通のZバッファを用いて不透明ポリゴンの描画を不透明用バッファに対して行い、次に同じZバッファを用いて半透明ポリゴンの描画を半透明用バッファに対して行い、その後、不透明用バッファに格納された画像と半透明用バッファに格納された画像を用いてαブレンディングによる描画を行うようにした描画装置が知られている(例えば、特許文献2参照。)。
ところで、特許文献1に開示された描画装置では、1つの物体が複数のポリゴンによって構成されている場合にこの物体を半透明表示、すなわちこの物体を構成する複数のポリゴンのそれぞれを半透明ポリゴンとして描画を行うと、これら複数のポリゴンが透けて見えることになるため、表示が煩雑あるいは不自然になるおそれがあるという問題があった。例えば、ある物体を通して背景が透けて見えるような画像表示を意図して半透明ポリゴンを使う場合が多いが、物体表面および内部を構成するポリゴンの形状や色の組み合わせ等が複雑な場合にこれらの全てを半透明表示すると、半透明の物体に対応して表示される輪郭線や色が多くなりすぎて背景の画像が合成されたときに表示内容の把握が難しくなる。また、ポリゴンを使用して描画が行われる一般のゲーム装置に用いられている各物体を考えたときに、主に物体表面の形状や色を精確に描画するために各ポリゴンの形状等を決定するが、表示の対象にならない内部形状等については簡略化する場合があり、このような場合内部形状まで透けて見えると形状や色が不自然になる場合がある。
By the way, in the drawing apparatus disclosed in
また、特許文献2に開示された描画装置では、半透明ポリゴンを不透明ポリゴンとして半透明用バッファに対して各半透明ポリゴンの描画を行っており、不透明用バッファ以外に半透明用バッファが必要になるため、表示に必要なメモリ容量が増大するという問題があった。また、半透明の複数の物体を重ねて表示したい場合であっても最前の半透明の物体の背後にある半透明の物体は表示が行われなくなるため、やはり表示が不自然になるという問題があった。例えば、移動中の2つの不透明の物体が交差するような場合を考えると、最前の物体を通して背景の画像が透けて見えるが、この物体と背景の間に進入した他の物体が全く見えないことになるので、2つの物体の交差状態に着目すると、実際の半透明物体の交差状態とはかなりかけ離れた画像が得られることになる。 Further, the drawing apparatus disclosed in Patent Document 2 draws each semi-transparent polygon with respect to the semi-transparent buffer using the semi-transparent polygon as an opaque polygon, and a semi-transparent buffer is required in addition to the opaque buffer. Therefore, there is a problem that the memory capacity necessary for display increases. Also, even if you want to display a plurality of semi-transparent objects on top of each other, the semi-transparent object behind the front semi-transparent object will not be displayed. there were. For example, consider the case where two moving opaque objects intersect, and the background image can be seen through the foreground object, but no other objects that have entered between this object and the background can be seen at all. Therefore, if attention is paid to the intersecting state of the two objects, an image considerably different from the actual intersecting state of the translucent object can be obtained.
本発明は、このような点に鑑みて創作されたものであり、その目的は、半透明物体を表示したときに表示が必要以上に煩雑、不自然にならず、表示に必要なメモリ容量を少なくすることができる描画装置、方法および描画プログラムを提供することにある。 The present invention has been created in view of the above points, and its purpose is to display a memory capacity necessary for display without making the display unnecessarily complicated or unnatural when a translucent object is displayed. It is an object to provide a drawing apparatus, method, and drawing program that can be reduced.
上述した課題を解決するために、本発明の描画装置は、複数のポリゴンによって構成されて半透明表示の対象となる半透明オブジェクトに対応する画像を、半透明オブジェクトの背後に配置された背景オブジェクトに対応する画像に重ねて描画を行っており、半透明オブジェクトと背景オブジェクトのそれぞれの奥行き情報を格納する奥行き情報格納手段と、半透明オブジェクトと背景オブジェクトのそれぞれに対応する画像情報を格納する画像情報格納手段と、画像情報格納手段への画像情報の書込み動作を伴わずに、半透明オブジェクトを構成する複数のポリゴンのそれぞれについて奥行き情報格納手段に格納された奥行き情報を更新する奥行き情報更新手段と、背景オブジェクトに対応する画像情報が画像情報格納手段に書き込まれた後であって、奥行き情報更新手段による更新処理が行われた後に、奥行き情報格納手段に格納された奥行き情報を用いて画像情報格納手段に対して半透明オブジェクトに対応する画像情報の書込みを行う半透明画像書込み手段とを備えている。 In order to solve the above-described problem, the drawing apparatus of the present invention provides a background object in which an image corresponding to a translucent object that is configured by a plurality of polygons and is a target of translucent display is arranged behind the translucent object. The depth information storage means for storing the depth information of each of the translucent object and the background object, and the image for storing the image information corresponding to each of the translucent object and the background object. Information storage means and depth information update means for updating the depth information stored in the depth information storage means for each of a plurality of polygons constituting the translucent object, without writing image information to the image information storage means And the image information corresponding to the background object is written in the image information storage means. Then, after the update process by the depth information update unit is performed, the image information corresponding to the semi-transparent object is written into the image information storage unit using the depth information stored in the depth information storage unit. Transparent image writing means.
また、本発明の描画方法は、複数のポリゴンによって構成されて半透明表示の対象となる半透明オブジェクトと半透明オブジェクトの背後に配置された背景オブジェクトのそれぞれの奥行き情報を格納する奥行き情報格納手段と、半透明オブジェクトと背景オブジェクトのそれぞれに対応する画像情報を格納する画像情報格納手段とを備える描画装置において、半透明オブジェクトに対応する画像を背景オブジェクトに対応する画像に重ねて描画を行うものであり、画像情報格納手段への画像情報の書込み動作を伴わずに、半透明オブジェクトを構成する複数のポリゴンのそれぞれについて奥行き情報格納手段に格納された奥行き情報を更新する奥行き情報更新ステップと、背景オブジェクトに対応する画像情報が画像情報格納手段に書き込まれた後であって、奥行き情報更新ステップにおける更新処理が行われた後に、奥行き情報格納手段に格納された奥行き情報を用いて画像情報格納手段に対して半透明オブジェクトに対応する画像情報の書込みを行う半透明画像書込みステップとを備えている。 The drawing method of the present invention also includes depth information storage means for storing depth information of each of a translucent object that is formed of a plurality of polygons and is a target of translucent display and a background object disposed behind the translucent object. And an image information storage means for storing image information corresponding to each of the translucent object and the background object, wherein the image corresponding to the translucent object is drawn on the image corresponding to the background object. A depth information update step for updating the depth information stored in the depth information storage means for each of the plurality of polygons constituting the translucent object without the image information writing operation in the image information storage means; Image information corresponding to the background object is written to the image information storage means. After the update processing in the depth information update step is performed, the image information corresponding to the translucent object is written into the image information storage unit using the depth information stored in the depth information storage unit. A translucent image writing step.
また、本発明の描画プログラムは、コンピュータを、複数のポリゴンによって構成されて半透明表示の対象となる半透明オブジェクトと半透明オブジェクトの背後に配置された背景オブジェクトのそれぞれの奥行き情報を格納する奥行き情報格納手段と、半透明オブジェクトと背景オブジェクトのそれぞれに対応する画像情報を格納する画像情報格納手段と、画像情報格納手段への画像情報の書込み動作を伴わずに、半透明オブジェクトを構成する複数のポリゴンのそれぞれについて奥行き情報格納手段に格納された奥行き情報を更新する奥行き情報更新手段と、背景オブジェクトに対応する画像情報が画像情報格納手段に書き込まれた後であって、奥行き情報更新手段による更新処理が行われた後に、奥行き情報格納手段に格納された奥行き情報を用いて画像情報格納手段に対して半透明オブジェクトに対応する画像情報の書込みを行う半透明画像書込み手段として機能させ、半透明オブジェクトに対応する画像を背景オブジェクトに対応する画像に重ねて描画を行うためのものである。 In addition, the drawing program of the present invention stores the depth information for storing the depth information of each of the semi-transparent object that is configured by a plurality of polygons and is the target of the semi-transparent display and the background object arranged behind the semi-transparent object. Information storage means, image information storage means for storing image information corresponding to each of the translucent object and the background object, and a plurality of translucent objects that constitute the translucent object without writing image information to the image information storage means Depth information updating means for updating the depth information stored in the depth information storage means for each of the polygons, and after the image information corresponding to the background object has been written in the image information storage means, by the depth information updating means Depth stored in depth information storage means after update processing The image information storage means using the information functions as a semi-transparent image writing means for writing image information corresponding to the semi-transparent object, and the image corresponding to the semi-transparent object is drawn on the image corresponding to the background object. Is for doing.
半透明オブジェクトの画像情報を書き込む前に奥行き情報の更新が行われるため、最も手前にある面についてのみ画像情報の描画を行うことができ、表示が煩雑あるいは不自然になることを防止することができる。また、背景オブジェクトに対応する画像情報の書き込みが終了した後に、更新が終了した奥行き情報を用いて半透明オブジェクトに対応する画像情報を書き込むことができるため、半透明オブジェクト用にフレームバッファ等の画像情報格納手段を用意する必要がなく、表示用のメモリ容量を少なくすることができる。 Since the depth information is updated before the image information of the translucent object is written, the image information can be drawn only on the frontmost surface, thereby preventing the display from becoming complicated or unnatural. it can. In addition, since the image information corresponding to the translucent object can be written using the updated depth information after the writing of the image information corresponding to the background object is completed, an image such as a frame buffer is used for the translucent object. There is no need to prepare information storage means, and the memory capacity for display can be reduced.
また、上述した奥行き情報更新手段は、半透明オブジェクトを構成する複数のポリゴンに対応する各画素の奥行き情報が、描画位置が重複する他の画素の奥行き情報よりも視点位置に近いことを示しているときに、この描画位置に対応する奥行き情報の更新を行うことが望ましい。これにより、表示画面の手前側にある画素についてのみ奥行き情報を更新するため、最終的に最も手前にある面を抽出することが可能になる。 Further, the depth information updating means described above indicates that the depth information of each pixel corresponding to a plurality of polygons constituting the translucent object is closer to the viewpoint position than the depth information of other pixels having overlapping drawing positions. It is desirable to update the depth information corresponding to this drawing position. Thereby, since the depth information is updated only for the pixels on the front side of the display screen, it is possible to finally extract the frontmost surface.
また、上述した半透明画像書込み手段は、半透明オブジェクトを構成する複数のポリゴンに対応する複数の画素の中で描画位置が重複する画素が存在するときに、これら描画位置が重複する複数の画素の中から視点位置に最も近い画素を用いて半透明オブジェクトに対応する画像情報の書込みを行うことが望ましい。これにより、複数のポリゴンが複雑に組み合わさって半透明物体が構成される場合であっても、最も手前にある面の画像情報のみを用いて半透明処理が行われ、この面よりも後側にある面の画像情報が反映されないため、表示が必要以上に煩雑になることを確実に防止することができる。 The translucent image writing means described above is configured such that when there are pixels with overlapping drawing positions among a plurality of pixels corresponding to a plurality of polygons constituting the translucent object, the plurality of pixels with the same drawing position are overlapped. It is desirable to write the image information corresponding to the translucent object using the pixel closest to the viewpoint position from among the above. As a result, even when a plurality of polygons are complexly combined to form a translucent object, translucency processing is performed using only the image information of the frontmost surface, and the rear side of this surface Therefore, it is possible to reliably prevent display from being complicated more than necessary.
また、上述した描画装置は、半透明オブジェクトが複数存在するときに、複数の半透明オブジェクトのそれぞれの奥行き情報を比較する奥行き情報比較手段をさらに備え、奥行き情報比較手段による比較結果に基づいて視点位置から遠い順に、一の半透明オブジェクト毎に、奥行き情報更新手段による更新処理と半透明書込み手段による画像情報の書込み処理を繰り返し行うことが望ましい。あるいは、半透明オブジェクトが複数存在するとともに、背景オブジェクトおよび複数の半透明オブジェクト以外に複数のポリゴンによって構成されて不透明表示の対象となる不透明オブジェクトが存在しており、上述した描画装置は、奥行き情報格納手段に格納された奥行き情報を用いて画像情報格納手段に対して不透明オブジェクトに対応する画像情報の書込みを行う不透明画像書込み手段と、複数の半透明オブジェクトと不透明オブジェクトのそれぞれの奥行き情報を比較する奥行き情報比較手段とをさらに備え、奥行き情報比較手段による比較結果に基づいて視点位置から遠い順に、不透明オブジェクトについては不透明画像書込み手段による画像情報の書込み処理を行い、半透明オブジェクトについては一の半透明オブジェクト毎に、奥行き情報更新手段による更新処理と半透明書込み手段による画像情報の書込み処理を繰り返し行うことが望ましい。これにより、複数の半透明オブジェクトが重なる場合に、これら複数の半透明オブジェクトが透過して見える自然な表示を実現することができる。しかも、それぞれの半透明オブジェクトの描画は手前側にある面についてのみ行われるため、表示内容が必要以上に煩雑になることを防止することができる。 The drawing apparatus described above further includes a depth information comparison unit that compares depth information of each of the plurality of translucent objects when there are a plurality of translucent objects, and a viewpoint based on a comparison result by the depth information comparison unit. It is desirable that the update process by the depth information update unit and the image information write process by the translucent writing unit are repeatedly performed for each semi-transparent object in order from the position. Alternatively, there are a plurality of semi-transparent objects, and there is an opaque object that is configured by a plurality of polygons in addition to the background object and the plurality of semi-transparent objects, and is subject to opaque display. Compare the depth information of each of a plurality of translucent objects and opaque objects with the opaque image writing means for writing image information corresponding to the opaque object to the image information storage means using the depth information stored in the storage means. Depth information comparing means for performing the processing of writing image information by the opaque image writing means for the opaque object in order from the viewpoint position based on the comparison result by the depth information comparing means. For each translucent object It is desirable to repeat the write processing of the image information by the updating process and the semi-transparent writing means according to the depth information update unit. Thereby, when a plurality of semi-transparent objects overlap, it is possible to realize a natural display in which the plurality of semi-transparent objects can be seen through. In addition, since each translucent object is drawn only on the front side, it is possible to prevent display contents from becoming more complicated than necessary.
以下、本発明を適用した一実施形態の描画装置について、図面を参照しながら詳細に説明する。図1は、一実施形態の描画装置の構成を示す図である。図1に示す描画装置は、仮想的な三次元空間内に配置された各種の物体である三次元オブジェクトの画像を描画して表示を行うものであり、例えばコンピュータを利用したゲーム装置として動作する。図1に示す描画装置は、コンピュータとして動作するためのCPU10、ROM12、RAM14、外部記憶装置16、入力装置18、画像処理装置20、ディスプレイ装置22、ビデオメモリ24を備えている。
Hereinafter, a drawing apparatus according to an embodiment to which the present invention is applied will be described in detail with reference to the drawings. FIG. 1 is a diagram illustrating a configuration of a drawing apparatus according to an embodiment. The drawing device shown in FIG. 1 draws and displays images of three-dimensional objects, which are various objects arranged in a virtual three-dimensional space, and operates as a game device using a computer, for example. . The drawing apparatus shown in FIG. 1 includes a
CPU10は、ROM12、RAM14あるいは外部記憶装置16に格納されたプログラムを実行することにより、ゲームの進行に伴う三次元オブジェクトの描画処理を行う。外部記憶装置16は、DVDとDVD読み取り装置を用いて実現することができるが、ハードディスク装置やその他の装置(例えば大容量の半導体メモリ等)を用いて実現するようにしてもよい。この外部記憶装置16には、ゲームの進行や三次元オブジェクトの表示等に必要なプログラムの他に、描画に必要な各種のデータ(例えばテクスチャデータ等)も格納されている。
The
入力装置18は、ユーザ(プレーヤ)が操作して指示を入力するためのものである。通常、ゲーム装置に対して指示を行うコントローラが入力装置18として用いられることが多いが、一般のコンピュータにおいて各種の入力を行うキーボードやマウス等を入力装置18として用いるようにしてもよい。
The
画像処理装置20は、CPU10の指示に応じて画像の描画および表示に関する処理を行う。例えば、仮想的な三次元空間内にゲームの進行に伴って登場する各三次元オブジェクトが複数のポリゴンによって構成されているものとし、CPU10によって仮想的な視点位置や照明の配置を含む描画条件が設定されると、画像処理装置20は、視点位置を基準とした透視投影変換処理を行うとともに、視点位置から見ることができる三次元オブジェクトに対応するレンダリング処理を含むテクスチャマッピング処理を行って各三次元オブジェクトの画像を描画してビデオメモリ24に書き込むとともに、書き込んだ描画データを読み出してディスプレイ装置22に表示する処理を行う。なお、本実施形態において描画対象となるオブジェクトには、背景オブジェクト、不透明オブジェクト、半透明オブジェクトが存在するものとする。なお、背景オブジェクトは不透明オブジェクトに含ませるようにしてもよい。
The
ビデオメモリ24は、画像処理装置20による描画および表示に用いられ、フレームバッファ26とZバッファ28が含まれている。フレームバッファ26は、視点位置から見ることができる背景オブジェクト、不透明オブジェクト、半透明オブジェクトのそれぞれの画像情報をフレーム単位で画素毎に格納する。例えば、表示レートを1/60秒とすると、1/60秒ごとに1フレーム分のフレームバッファ26の表示内容が更新される。また、画像情報としては各画素に対応したRGBデータが用いられる。なお、描画用と表示用に少なくとも2つのフレームバッファ26を備えておいて、一方のフレームバッファ26を用いてディスプレイ装置22に対する表示を行っているときに、次の表示用に他方のフレームバッファ26を用いて描画処理を行うようにしてもよい。これについてはZバッファ28も同様である。
The
Zバッファ28は、背景オブジェクト、不透明オブジェクト、半透明オブジェクトのそれぞれの奥行き情報としてのZ値を格納する。本実施形態では、視点位置から各三次元オブジェクトを見たときに視点位置からの距離が遠ざかる向きをZ方向とし、このZ方向に沿った位置をZ値とする。このZ値が大きいほど表示画面の奥側に配置されていることになり、反対にZ値が小さいほど表示画面の手前側に配置されていることになる。したがって、不透明オブジェクトがZ方向に沿って重なっており、同じ表示値に対応してZ値が異なる2つの画素が存在する場合には、Z値が小さく手前側に配置された画素について表示が行われる。なお、上述した例では、表示画面の奥側(視点位置から遠い側)に対応してZ値が大きく、表示画面の手前側(視点位置に近い側)に対応してZ値が小さくなるようにZ値を定義したが、反対に、表示画面の奥側に対応してZ値が小さく、表示画面の手前側に対応してZ値が大きくなるようにしてもよい。
The
図2は、図1に示した描画装置によって実現される描画処理部の詳細を示す図である。図2に示すように、描画処理部100は、背景画像書込み部110、不透明画像書込み部112、半透明画像書込み部114、Z値比較部118、描画順番設定部120、描画条件設定部122を備えている。この描画処理部100に含まれる各構成は、図1に示したCPU10および画像処理装置20によって実現される機能ブロックであり、本発明の描画動作に関係するものを抽出したものである。
FIG. 2 is a diagram showing details of a drawing processing unit realized by the drawing apparatus shown in FIG. As shown in FIG. 2, the
背景画像書込み部110は、背景オブジェクトを構成する各画素の画像情報をフレームバッファ26に書き込む処理を行う。背景オブジェクトは、二次元オブジェクトを用いて実現されるが三次元オブジェクトを用いるようにしてもよい。また、背景オブジェクトに対応するZ値は十分大きな値が設定されている。
The background
不透明画像書込み部112は、Zバッファ28に格納されたZ値に基づいて、フレームバッファ26に対して不透明オブジェクトに対応する画像情報の書込みを行う。具体的には、不透明画像書込み部112は、不透明オブジェクトを構成する各ポリゴンに対応する各画素(着目画素)について、同じ表示位置に他の画素が存在する場合には着目画素のZ値の方がこの他の画素のZ値よりも小さいときに着目画素のZ値を用いてZバッファ28の内容を更新するとともに着目画素の画像情報を用いてフレームバッファ26の内容を更新し、反対に着目画素のZ値の方がこの他の画素のZ値よりも大きいときにはZバッファ28とフレームバッファ26の内容更新を行わない。また、不透明画像書込み部112は、着目画素と同じ表示位置に他の画素が存在しない場合には、着目画素のZ値を用いてZバッファ28の内容を更新するとともに着目画素の画像情報を用いてフレームバッファ26の内容を更新する。
The opaque
半透明画像書込み部114は、Zバッファ28に格納されたZ値に基づいて、フレームバッファ26に対して半透明オブジェクトに対応する画像情報の書込みを行う。具体的には、半透明画像書込み部114は、2つの動作モードを備えている。一方は、フレームバッファ26への画像情報の書込み動作を伴わずに、半透明オブジェクトを構成する各ポリゴンに対応する各画素(着目画素)について、同じ表示位置に他の画素が存在する場合に着目画素のZ値の方がこの他の画素のZ値よりも小さいときに着目画素のZ値を用いてZバッファ28の内容更新のみを行うZバッファ更新モードである。また、他方は、Zバッファ更新モードの動作が終了した後に、Zバッファ28に格納された各画素毎のZ値を用いて、フレームバッファ26に対して半透明オブジェクトに対応する画像情報の書込みを行うフレームバッファ更新モードである。Zバッファ更新モードの動作が終了した時点で、不透明オブジェクトを構成する複数のポリゴンに対応する各画素の中で表示位置が重なる画素については最も視点位置に近い画素のZ値がZバッファ28に格納されている。したがって、このようにしてZ値の書き込みが行われたZバッファ28を用いて、次にフレームバッファ更新モードによるフレームバッファ26に対する画像情報の書き込みを行うと、各表示位置について最もZ値が小さな画像情報を用いた描画が行われる。なお、半透明オブジェクトに対応する画像情報の描画は、例えばアルファブレンディング法を用いて行われる。
The translucent
Z値比較部118は、表示範囲内に半透明オブジェクトや不透明オブジェクトが複数存在する場合に、各オブジェクトに対応するZ値の大小比較を行う。この比較動作は、各オブジェクトのZ方向に沿った相対的な位置、すなわち、どちらのオブジェクトの方が背景よりにあるかを調べるために行うものであり、各オブジェクトに含まれる全ての画素について行う必要はない。
When there are a plurality of semi-transparent objects and opaque objects in the display range, the Z
描画順番設定部120は、表示範囲内に半透明オブジェクトや不透明オブジェクトが複数存在する場合に、Z値比較部118による比較結果に基づいて、半透明画像書込み部114あるいは不透明画像書込み部112による画像情報の書き込み動作、すなわち描画動作を行うオブジェクトの順番を決定する。
When there are a plurality of semi-transparent objects and opaque objects in the display range, the drawing
描画条件設定部122は、各種の描画条件の設定を行う。各種の描画条件には、仮想的な視点位置や、レンダリング処理に必要な照明の配置などが含まれる。また、各種の描画条件には、フレームバッファ26やZバッファ28の各内容の更新の有効/無効の指定が含まれる。半透明画像書込み部114によってZバッファ更新モードの動作が行われる場合には、Zバッファ28の内容更新を有効(Zバッファ書き込みオン)にするとともに、フレームバッファ26の内容更新を無効(フレームバッファ書き込みオフ)にする描画条件が設定される。また、半透明画像書込み部114によってフレームバッファ更新モードの動作が行われる場合には、Zバッファ28の内容更新を無効(Zバッファ書き込みオフ)にするとともに、フレームバッファ26の内容更新を有効(フレームバッファ書き込みオン)にする描画条件が設定される。
The drawing
上述したZバッファ28が奥行き情報格納手段に、フレームバッファ26が画像情報格納手段に、半透明画像書込部114が奥行き情報更新手段、半透明画像書込み手段に、不透明画像書込み部112が不透明画像書込み手段に、Z値比較部118が奥行き情報比較手段にそれぞれ対応する。
The
本実施形態の描画装置はこのような構成を有しており、次にその動作を、一つの半透明オブジェクトのみが存在する場合と、半透明オブジェクトや不透明オブジェクトが複数存在する場合とで場合を分けて説明する。 The drawing apparatus according to the present embodiment has such a configuration. Next, the operation is performed when there is only one semi-transparent object and when there are a plurality of semi-transparent objects and opaque objects. Separately described.
〔一つの半透明オブジェクトのみが存在する場合〕
図3は、背景の他に一つの半透明オブジェクト(物体A)のみが存在する場合の描画処理の動作手順を示す流れ図である。また、物体Aを背景に重ねて表示するための描画動作に着目して説明を行うものとする。
[When there is only one translucent object]
FIG. 3 is a flowchart showing the operation procedure of the drawing process when only one translucent object (object A) exists in addition to the background. Also, the description will be given focusing on the drawing operation for displaying the object A over the background.
まず、描画条件設定部122は、物体Aの画像情報を背景の画像情報に重ねて描画するために、描画条件としての視点位置と照明の配置を決定する(ステップ100)。視点位置は、三次元オブジェクトとしての物体Aの画像情報を平面的なフレームバッファ26に書き込むために必要な透視投影変換に用いられる。また、照明の配置は、画像情報作成のために必要なレンダリング処理に用いられる。
First, the drawing
次に、描画条件設定部122は、フレームバッファ書き込みオン(フレームバッファ26の内容更新有効)を指定するとともに(ステップ101)、Zバッファ書き込みオン(Zバッファ28の内容更新有効)を指定する(ステップ102)。背景画像書込み部110は、これらの描画条件に基づいて背景オブジェクトの描画処理を行う(ステップ103)。具体的には、フレームバッファ書き込みオンおよびZバッファ書き込みオンが指定されているため、背景画像書込み部110は、Zバッファ28のZ値を必要に応じて更新しながらフレームバッファ26に画像情報を書き込むことにより、背景オブジェクトの描画処理を行う。
Next, the drawing
次に、描画条件設定部122は、フレームバッファ書き込みオフ(フレームバッファ26の内容更新無効)を指定する(ステップ104)。なお、Zバッファ28については、ステップ102において指定されたZバッファ書き込みオンの状態が維持される。半透明画像書込み部114は、これらの描画条件に基づいて物体Aの描画処理を行う(ステップ105)。具体的には、フレームバッファ書き込みオフおよびZバッファ書き込みオンが指定されているため、半透明画像書込み部114は、フレームバッファ26に対する画像情報の書き込みは行わずに、Zバッファ28のZ値の更新のみを行う。
Next, the drawing
次に、描画条件設定部122は、フレームバッファ書き込みオンを指定するとともに(ステップ106)、Zバッファ書き込みオフ(Zバッファ28の内容更新無効)を指定する(ステップ107)。半透明画像書込み部114は、これらの描画条件に基づいて物体Aの描画処理を行う(ステップ108)。具体的には、フレームバッファ書き込みオンおよびZバッファ書き込みオフが指定されているため、半透明画像書込み部114は、Zバッファ28のZ値の更新は行わずに、Zバッファ28に格納されたZ値を用いてフレームバッファ26に対する画像情報の書き込みを行う。なお、上述した例では、ステップ107においてZバッファ書き込みオフを指定したが、Zバッファ書き込みオンを指定してもZバッファ28の内容更新が行われないため(ステップ105において既にZバッファ28の内容更新が行われているため)、ステップ107におけるZバッファ書き込みオフの指定は行わなくてもよい。また、フレームバッファ26に対する物体Aの画像情報の書込み(画素単位のRGBデータの書込み)は、背景のRGBデータと物体A(半透明オブジェクト)のRGBデータとをアルファブレンディング法を用いて合成して新たなRGBデータを算出し、この算出されたRGBデータをフレームバッファ26に書き込むことによって行われる。このようにして、半透明オブジェクトである物体Aの描画処理が終了する。この描画処理は、フレームレート毎(あるいは、2つのフレームバッファ26を用いて交互に書込みと読出しを行う場合にはフレームレートの2倍の時間間隔で)行われる。
Next, the drawing
図4は、物体Aを構成するポリゴンの説明図である。図4に示す物体Aは、立方体と直方体を組み合わせた形状を有しており、簡単のため、立方体と直方体のそれぞれの各面が一のポリゴンで構成されているものとする。 FIG. 4 is an explanatory diagram of polygons constituting the object A. The object A shown in FIG. 4 has a shape in which a cube and a rectangular parallelepiped are combined. For simplicity, it is assumed that each surface of the cube and the rectangular parallelepiped is composed of one polygon.
図5は、物体Aの描画が行われる前のフレームバッファ26とZバッファ28の内容を示す図である。図5(A)にはフレームバッファ26の内容が、図5(B)にはZバッファ28の内容がそれぞれ示されている。図5(A)に示すように、フレームバッファ26にはステップ103で書き込まれた背景オブジェクトの画像情報が格納されている。また、図5(B)に示すように、Zバッファ28には、背景オブジェクトを構成する各画素に対応する均一なZ値が格納されている。なお、背景オブジェクトのZ値は必ずしも均一である必要はなく、背景オブジェクトの内容に応じたZ値を設定してもよいが、説明を簡単にするために均一なZ値が設定されているものとする。
FIG. 5 is a diagram showing the contents of the
図6は、ステップ105における物体Aの描画処理が終了した時点でのフレームバッファ26とZバッファ28の内容を示す図である。図6(A)にはフレームバッファ26の内容が、図6(B)にはZバッファ28の内容がそれぞれ示されている。ステップ104においてフレームバッファ書き込みオフの描画条件が設定されているため、図6(A)に示すように、フレームバッファ26の内容はそれ以前と同じ内容(背景オブジェクトの画像情報)が維持される。一方、図6(B)に示すように、Zバッファ28については物体Aの内容に応じてZ値が更新されるため、最終的に最も手前(視点位置に近い側)に対応する画素のZ値を用いてZ値の更新が行われる。
FIG. 6 is a diagram showing the contents of the
図7は、ステップ108における物体Aの描画処理が終了した時点でのフレームバッファ26とZバッファ28の内容を示す図である。図7(A)にはフレームバッファ26の内容が、図7(B)にはZバッファ28の内容がそれぞれ示されている。ステップ106においてフレームバッファ書き込みオンの描画条件が設定されているため、図7(A)に示すように、フレームバッファ26の内容更新が行われ、物体Aが存在する表示位置では背景オブジェクトの画像情報と物体Aの画像情報とがアルファブレンディング法によって合成されて新たな画像情報が生成され、フレームバッファ26に格納される。また、ステップ107においてZバッファ書き込みオフの描画条件が設定されているため、図7(B)に示すように、Zバッファ28については内容更新が行われない。
FIG. 7 is a diagram showing the contents of the
このように、半透明オブジェクトの画像情報をフレームバッファ26に書き込む前にZバッファ28のZ値の更新が行われるため、最も手前にある面についてのみ画像情報の描画を行うことができ、表示が煩雑あるいは不自然になることを防止することができる。また、背景オブジェクトに対応する画像情報のフレームバッファ26への書き込みが終了した後に、更新が終了したZ値を用いて半透明オブジェクトに対応する画像情報を同じフレームバッファ26に書き込むことができるため、半透明オブジェクト用に専用のフレームバッファを用意する必要がなく、表示用のメモリ容量を少なくすることができる。
As described above, since the Z value of the
〔半透明オブジェクトや不透明オブジェクトが複数存在する場合〕
図8は、半透明オブジェクトや不透明オブジェクトが複数存在する場合の描画処理の動作手順を示す流れ図である。また、半透明オブジェクトあるいは不透明オブジェクトの物体を背景に重ねて表示するための描画動作に着目して説明を行うものとする。ステップ100〜ステップ103の各動作については図3に示した各動作と同じであるため、ステップ103の次に行われるステップ110以降の動作について説明を行う。
[When there are multiple semi-transparent objects and opaque objects]
FIG. 8 is a flowchart showing the operation procedure of the drawing process when there are a plurality of semi-transparent objects and opaque objects. Further, the description will be given focusing on a drawing operation for displaying a semi-transparent object or an opaque object on the background. Since each operation of
Z値比較部118は、背景オブジェクトに重ねて表示される半透明オブジェクトおよび不透明オブジェクト(どちらか一方しか含まれない場合であってもよい)のZ値の大小比較を行い、描画順番設定部120は、この比較結果に基づいてこれらのオブジェクトを画面奥から順に(視点位置から遠い順に)並べ替える(ステップ110)。
The Z
次に、描画順番設定部120は、最も奥にある物体を選択するとともに(ステップ111)、この物体について半透明表示が行われるか否か、すなわち半透明オブジェクトであるか否かを判定する(ステップ112)。選択された物体が半透明オブジェクトである場合には肯定判断が行われ、次に、描画条件設定部122は、フレームバッファ書き込みオフを指定する(ステップ113)。なお、Zバッファ28については、ステップ102において指定されたZバッファ書き込みオンの状態が維持される。半透明画像書込み部114は、これらの描画条件に基づいて半透明オブジェクトである物体の描画処理を行う(ステップ114)。具体的には、フレームバッファ書き込みオフおよびZバッファ書き込みオンが指定されているため、半透明画像書込み部114は、フレームバッファ26に対する画像情報の書き込みは行わずに、Zバッファ28のZ値の更新のみを行う。
Next, the drawing
次に、描画条件設定部122は、フレームバッファ書き込みオンを指定し(ステップ115)、半透明画像書込み部114は、指定された描画条件に基づいて物体の描画処理を行う(ステップ116)。具体的には、フレームバッファ書き込みオンが指定されているため、半透明画像書込み部114は、Zバッファ28に格納されたZ値を用いてフレームバッファ26に対する画像情報の書き込み(アルファブレンディング法による処理)を行う。
Next, the drawing
一方、選択された物体が不透明オブジェクトである場合にはステップ112において否定判断が行われ、次に、不透明画像書込み部112は、Zバッファ28の内容更新を行いながらフレームバッファ26に画像情報を書き込む不透明物体の描画処理を行う(ステップ117)。
On the other hand, if the selected object is an opaque object, a negative determination is made in
このようにしてステップ116あるいは117による物体の描画処理が終了した後、描画順番設定部120は、描画されていない他の物体が存在するか否かを判定し(ステップ118)、他の物体が存在する場合には肯定判断を行って、次に1つ手前にある物体を選択する(ステップ119)。その後、ステップ112に戻って、新たに選択された物体に関する描画動作が繰り返される。また、描画されていない他の物体が存在しない場合にはステップ118の判定において否定判断が行われ、複数のオブジェクトに関する一連の描画動作を終了する。
After the object drawing process in
このように、半透明オブジェクトと不透明オブジェクトの並べ替えを行って最も画面奥にあるオブジェクトから順番に描画を行うことにより、複数の半透明オブジェクトが重なる場合であっても、これら複数の半透明オブジェクトが透過して見える自然な表示を実現することができる。しかも、それぞれの半透明オブジェクトの描画は手前側にある面についてのみ行われるため、表示内容が必要以上に煩雑になることを防止することができる。 In this way, by rearranging semi-transparent objects and opaque objects and drawing in order from the object at the back of the screen, even if multiple semi-transparent objects overlap, these multiple semi-transparent objects It is possible to realize a natural display in which the image appears transparent. In addition, since each translucent object is drawn only on the front side, it is possible to prevent display contents from becoming more complicated than necessary.
なお、本発明は上記実施形態に限定されるものではなく、本発明の要旨の範囲内で種々の変形実施が可能である。例えば、上述した実施形態では、画像処理装置20を用いて透視投影変換等を行ってビデオメモリ24の内容を書き替えるようにしたが、これらの処理をCPU10が直接行うようにしてもよい。また、図2に示す描画処理部100の各構成を専用のハードウエアで実現するようにしてもよい。
In addition, this invention is not limited to the said embodiment, A various deformation | transformation implementation is possible within the range of the summary of this invention. For example, in the above-described embodiment, the content of the
10 CPU
12 ROM
14 RAM
16 外部記憶装置
18 入力装置
20 画像処理装置
22 ディスプレイ装置
24 ビデオメモリ
26 フレームバッファ
28 Zバッファ
100 描画処理部
110 背景画像書込み部
112 不透明画像書込み部
114 半透明画像書込み部
118 Z値比較部
120 描画順番設定部
122 描画条件設定部
10 CPU
12 ROM
14 RAM
16
Claims (11)
前記半透明オブジェクトと前記背景オブジェクトのそれぞれの奥行き情報を格納する奥行き情報格納手段と、
前記半透明オブジェクトと前記背景オブジェクトのそれぞれに対応する画像情報を格納する画像情報格納手段と、
前記画像情報格納手段への画像情報の書込み動作を伴わずに、前記半透明オブジェクトを構成する前記複数のポリゴンのそれぞれについて前記奥行き情報格納手段に格納された奥行き情報を更新する奥行き情報更新手段と、
前記背景オブジェクトに対応する画像情報が前記画像情報格納手段に書き込まれた後であって、前記奥行き情報更新手段による更新処理が行われた後に、前記奥行き情報格納手段に格納された奥行き情報を用いて前記画像情報格納手段に対して前記半透明オブジェクトに対応する画像情報の書込みを行う半透明画像書込み手段と、
を備えることを特徴とする描画装置。 In a drawing apparatus that draws an image corresponding to a semi-transparent object that is composed of a plurality of polygons and that is a target of semi-transparent display on an image corresponding to a background object arranged behind the semi-transparent object,
Depth information storage means for storing depth information of each of the translucent object and the background object;
Image information storage means for storing image information corresponding to each of the translucent object and the background object;
Depth information updating means for updating depth information stored in the depth information storage means for each of the plurality of polygons constituting the translucent object without an image information writing operation in the image information storage means; ,
After the image information corresponding to the background object is written in the image information storage unit and after the update process by the depth information update unit is performed, the depth information stored in the depth information storage unit is used. Translucent image writing means for writing image information corresponding to the translucent object to the image information storage means,
A drawing apparatus comprising:
前記奥行き情報更新手段は、前記半透明オブジェクトを構成する前記複数のポリゴンに対応する各画素の奥行き情報が、描画位置が重複する他の画素の奥行き情報よりも視点位置に近いことを示しているときに、この描画位置に対応する奥行き情報の更新を行うことを特徴とする描画装置。 In claim 1,
The depth information update means indicates that the depth information of each pixel corresponding to the plurality of polygons constituting the translucent object is closer to the viewpoint position than the depth information of other pixels having overlapping drawing positions. In some cases, the drawing apparatus updates the depth information corresponding to the drawing position.
前記半透明画像書込み手段は、前記半透明オブジェクトを構成する前記複数のポリゴンに対応する複数の画素の中で描画位置が重複する画素が存在するときに、これら描画位置が重複する複数の画素の中から視点位置に最も近い画素を用いて前記半透明オブジェクトに対応する画像情報の書込みを行うことを特徴とする描画装置。 In claim 1 or 2,
The translucent image writing means may include a plurality of pixels having overlapping drawing positions when there are overlapping pixels in the plurality of pixels corresponding to the plurality of polygons constituting the translucent object. A drawing apparatus, wherein image information corresponding to the translucent object is written using a pixel closest to the viewpoint position from the inside.
前記半透明オブジェクトが複数存在するときに、複数の前記半透明オブジェクトのそれぞれの奥行き情報を比較する奥行き情報比較手段をさらに備え、
前記奥行き情報比較手段による比較結果に基づいて視点位置から遠い順に、一の前記半透明オブジェクト毎に、前記奥行き情報更新手段による更新処理と前記半透明書込み手段による画像情報の書込み処理を繰り返し行うことを特徴とする描画装置。 In any one of Claims 1-3,
A depth information comparison unit that compares depth information of each of the plurality of translucent objects when there are a plurality of the translucent objects;
An update process by the depth information update unit and an image information write process by the translucent writing unit are repeatedly performed for each of the semi-transparent objects in order from the viewpoint position based on the comparison result by the depth information comparing unit. A drawing apparatus characterized by.
前記半透明オブジェクトが複数存在するとともに、前記背景オブジェクトおよび複数の前記半透明オブジェクト以外に複数のポリゴンによって構成されて不透明表示の対象となる不透明オブジェクトが存在しており、
前記奥行き情報格納手段に格納された奥行き情報を用いて前記画像情報格納手段に対して前記不透明オブジェクトに対応する画像情報の書込みを行う不透明画像書込み手段と、
複数の前記半透明オブジェクトと前記不透明オブジェクトのそれぞれの奥行き情報を比較する奥行き情報比較手段と、
をさらに備え、前記奥行き情報比較手段による比較結果に基づいて視点位置から遠い順に、前記不透明オブジェクトについては前記不透明画像書込み手段による画像情報の書込み処理を行い、前記半透明オブジェクトについては一の前記半透明オブジェクト毎に、前記奥行き情報更新手段による更新処理と前記半透明書込み手段による画像情報の書込み処理を繰り返し行うことを特徴とする描画装置。 In any one of Claims 1-3,
There are a plurality of the semi-transparent objects, and there is an opaque object that is made up of a plurality of polygons and is an object of opaque display in addition to the background object and the plurality of the semi-transparent objects,
Opaque image writing means for writing image information corresponding to the opaque object to the image information storage means using the depth information stored in the depth information storage means;
Depth information comparison means for comparing depth information of each of the plurality of translucent objects and opaque objects;
The opaque information is written by the opaque image writing means for the opaque object in order from the viewpoint position based on the comparison result by the depth information comparison means, and the semi-transparent object A drawing apparatus, wherein an updating process by the depth information updating unit and an image information writing process by the translucent writing unit are repeatedly performed for each transparent object.
前記画像情報格納手段への画像情報の書込み動作を伴わずに、前記半透明オブジェクトを構成する前記複数のポリゴンのそれぞれについて前記奥行き情報格納手段に格納された奥行き情報を更新する奥行き情報更新ステップと、
前記背景オブジェクトに対応する画像情報が前記画像情報格納手段に書き込まれた後であって、前記奥行き情報更新ステップにおける更新処理が行われた後に、前記奥行き情報格納手段に格納された奥行き情報を用いて前記画像情報格納手段に対して前記半透明オブジェクトに対応する画像情報の書込みを行う半透明画像書込みステップと、
を備えることを特徴とする描画方法。 Depth information storage means for storing depth information of a translucent object composed of a plurality of polygons and a background object arranged behind the translucent object, the translucent object, and the translucent object In a drawing apparatus comprising image information storage means for storing image information corresponding to each of the background objects, in a drawing method for drawing an image corresponding to the translucent object on an image corresponding to the background object,
A depth information update step of updating the depth information stored in the depth information storage means for each of the plurality of polygons constituting the translucent object without an image information writing operation to the image information storage means; ,
After the image information corresponding to the background object is written in the image information storage means, and after the update process in the depth information update step is performed, the depth information stored in the depth information storage means is used. A translucent image writing step of writing image information corresponding to the translucent object to the image information storage means;
A drawing method comprising:
前記半透明オブジェクトが複数存在するときに、複数の前記半透明オブジェクトのそれぞれの奥行き情報を比較する奥行き情報比較ステップをさらに備え、
前記奥行き情報比較ステップにおける比較結果に基づいて視点位置から遠い順に、一の前記半透明オブジェクト毎に、前記奥行き情報更新ステップによる更新処理と前記半透明書込みステップによる画像情報の書込み処理を繰り返し行うことを特徴とする描画方法。 In claim 6,
A depth information comparison step of comparing depth information of each of the plurality of translucent objects when there are a plurality of the translucent objects;
Based on the comparison result in the depth information comparison step, the update processing by the depth information update step and the image information writing processing by the translucent writing step are repeatedly performed for each of the semi-transparent objects in order from the viewpoint position. A drawing method characterized by.
前記半透明オブジェクトが複数存在するとともに、前記背景オブジェクトおよび複数の前記半透明オブジェクト以外に複数のポリゴンによって構成されて不透明表示の対象となる不透明オブジェクトが存在しており、
前記奥行き情報格納手段に格納された奥行き情報を用いて前記画像情報格納手段に対して前記不透明オブジェクトに対応する画像情報の書込みを行う不透明画像書込みステップと、
複数の前記半透明オブジェクトと前記不透明オブジェクトのそれぞれの奥行き情報を比較する奥行き情報比較ステップと、
をさらに備え、前記奥行き情報比較ステップにおける比較結果に基づいて視点位置から遠い順に、前記不透明オブジェクトについては前記不透明画像書込みステップによる画像情報の書込み処理を行い、前記半透明オブジェクトについては一の前記半透明オブジェクト毎に、前記奥行き情報更新ステップによる更新処理と前記半透明書込みステップによる画像情報の書込み処理を繰り返し行うことを特徴とする描画方法。 In claim 6,
There are a plurality of the semi-transparent objects, and there is an opaque object that is made up of a plurality of polygons and is an object of opaque display in addition to the background object and the plurality of the semi-transparent objects,
An opaque image writing step of writing image information corresponding to the opaque object to the image information storage means using the depth information stored in the depth information storage means;
A depth information comparison step of comparing depth information of each of the plurality of translucent objects and the opaque object;
The opaque information is written in the order of increasing distance from the viewpoint position based on the comparison result in the depth information comparison step, and the opaque information is written in the opaque image writing step. A rendering method characterized by repeatedly performing update processing by the depth information update step and image information write processing by the translucent writing step for each transparent object.
複数のポリゴンによって構成されて半透明表示の対象となる半透明オブジェクトと前記半透明オブジェクトの背後に配置された背景オブジェクトのそれぞれの奥行き情報を格納する奥行き情報格納手段と、
前記半透明オブジェクトと前記背景オブジェクトのそれぞれに対応する画像情報を格納する画像情報格納手段と、
前記画像情報格納手段への画像情報の書込み動作を伴わずに、前記半透明オブジェクトを構成する前記複数のポリゴンのそれぞれについて前記奥行き情報格納手段に格納された奥行き情報を更新する奥行き情報更新手段と、
前記背景オブジェクトに対応する画像情報が前記画像情報格納手段に書き込まれた後であって、前記奥行き情報更新手段による更新処理が行われた後に、前記奥行き情報格納手段に格納された奥行き情報を用いて前記画像情報格納手段に対して前記半透明オブジェクトに対応する画像情報の書込みを行う半透明画像書込み手段と、
して機能させ、前記半透明オブジェクトに対応する画像を前記背景オブジェクトに対応する画像に重ねて描画を行うための描画プログラム。 Computer
Depth information storage means for storing depth information of a translucent object composed of a plurality of polygons and subject to translucent display and a background object arranged behind the translucent object;
Image information storage means for storing image information corresponding to each of the translucent object and the background object;
Depth information updating means for updating depth information stored in the depth information storage means for each of the plurality of polygons constituting the translucent object without writing image information to the image information storage means; ,
After the image information corresponding to the background object is written in the image information storage unit and after the update process by the depth information update unit is performed, the depth information stored in the depth information storage unit is used. Translucent image writing means for writing image information corresponding to the translucent object to the image information storage means,
A drawing program for performing an image by superimposing an image corresponding to the translucent object on an image corresponding to the background object.
コンピュータを、前記半透明オブジェクトが複数存在するときに、複数の前記半透明オブジェクトのそれぞれの奥行き情報を比較する奥行き情報比較手段としてさらに機能させ、前記奥行き情報比較手段による比較結果に基づいて視点位置から遠い順に、一の前記半透明オブジェクト毎に、前記奥行き情報更新手段による更新処理と前記半透明書込み手段による画像情報の書込み処理を繰り返し行う描画プログラム。 In claim 9,
When a plurality of the translucent objects exist, the computer further functions as a depth information comparison unit that compares depth information of the plurality of translucent objects, and a viewpoint position based on a comparison result by the depth information comparison unit A drawing program that repeatedly performs update processing by the depth information update unit and image information write processing by the translucent writing unit for each of the semi-transparent objects in order from a distance from
前記半透明オブジェクトが複数存在するとともに、前記背景オブジェクトおよび複数の前記半透明オブジェクト以外に複数のポリゴンによって構成されて不透明表示の対象となる不透明オブジェクトが存在しており、
コンピュータを、前記奥行き情報格納手段に格納された奥行き情報を用いて前記画像情報格納手段に対して前記不透明オブジェクトに対応する画像情報の書込みを行う不透明画像書込み手段と、複数の前記半透明オブジェクトと前記不透明オブジェクトのそれぞれの奥行き情報を比較する奥行き情報比較手段としてさらに機能させ、
前記奥行き情報比較手段による比較結果に基づいて視点位置から遠い順に、前記不透明オブジェクトについては前記不透明画像書込み手段による画像情報の書込み処理を行い、前記半透明オブジェクトについては一の前記半透明オブジェクト毎に、前記奥行き情報更新手段による更新処理と前記半透明書込み手段による画像情報の書込み処理を繰り返し行う描画プログラム。
In claim 9,
There are a plurality of the semi-transparent objects, and there is an opaque object that is made up of a plurality of polygons and is an object of opaque display in addition to the background object and the plurality of the semi-transparent objects,
An opaque image writing unit that writes image information corresponding to the opaque object to the image information storage unit using the depth information stored in the depth information storage unit, and a plurality of the translucent objects Further functioning as depth information comparison means for comparing the respective depth information of the opaque object,
Based on the comparison result by the depth information comparison unit, the image information is written by the opaque image writing unit for the opaque object in order from the viewpoint position, and for each semi-transparent object for the semi-transparent object. A drawing program for repeatedly performing update processing by the depth information update means and image information write processing by the translucent writing means.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005109856A JP2006293470A (en) | 2005-04-06 | 2005-04-06 | Drawing system, method therefor, and drawing program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005109856A JP2006293470A (en) | 2005-04-06 | 2005-04-06 | Drawing system, method therefor, and drawing program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2006293470A true JP2006293470A (en) | 2006-10-26 |
Family
ID=37414013
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005109856A Pending JP2006293470A (en) | 2005-04-06 | 2005-04-06 | Drawing system, method therefor, and drawing program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2006293470A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008186158A (en) * | 2007-01-29 | 2008-08-14 | Samii Kk | Image generating device, game machine, and image generating program |
JP2009171994A (en) * | 2008-01-21 | 2009-08-06 | Sammy Corp | Image generating apparatus, game machine and program |
JP2009199202A (en) * | 2008-02-20 | 2009-09-03 | Copcom Co Ltd | Game program, recording medium with the game program recorded thereon, and computer |
JP2013084181A (en) * | 2011-10-12 | 2013-05-09 | Fujitsu Semiconductor Ltd | Image generation device, image generation program, and image display system having image generation device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002222431A (en) * | 2001-01-29 | 2002-08-09 | Namco Ltd | System, program, and information storage medium for image generation |
JP2002298152A (en) * | 2001-04-02 | 2002-10-11 | Konami Computer Entertainment Japan Inc | Image plotting method, and program used therefor |
JP2003242523A (en) * | 2002-02-15 | 2003-08-29 | Namco Ltd | Image formation system, program and information storage medium |
JP3495189B2 (en) * | 1996-06-19 | 2004-02-09 | 株式会社ソニー・コンピュータエンタテインメント | Drawing apparatus and drawing method |
JP2004246930A (en) * | 2004-06-03 | 2004-09-02 | Sony Computer Entertainment Inc | Image processor and method |
-
2005
- 2005-04-06 JP JP2005109856A patent/JP2006293470A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3495189B2 (en) * | 1996-06-19 | 2004-02-09 | 株式会社ソニー・コンピュータエンタテインメント | Drawing apparatus and drawing method |
JP2002222431A (en) * | 2001-01-29 | 2002-08-09 | Namco Ltd | System, program, and information storage medium for image generation |
JP2002298152A (en) * | 2001-04-02 | 2002-10-11 | Konami Computer Entertainment Japan Inc | Image plotting method, and program used therefor |
JP2003242523A (en) * | 2002-02-15 | 2003-08-29 | Namco Ltd | Image formation system, program and information storage medium |
JP2004246930A (en) * | 2004-06-03 | 2004-09-02 | Sony Computer Entertainment Inc | Image processor and method |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008186158A (en) * | 2007-01-29 | 2008-08-14 | Samii Kk | Image generating device, game machine, and image generating program |
JP2009171994A (en) * | 2008-01-21 | 2009-08-06 | Sammy Corp | Image generating apparatus, game machine and program |
JP2009199202A (en) * | 2008-02-20 | 2009-09-03 | Copcom Co Ltd | Game program, recording medium with the game program recorded thereon, and computer |
JP2013084181A (en) * | 2011-10-12 | 2013-05-09 | Fujitsu Semiconductor Ltd | Image generation device, image generation program, and image display system having image generation device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3635051B2 (en) | Image generation method and apparatus, recording medium storing image processing program, and image processing program | |
US6038031A (en) | 3D graphics object copying with reduced edge artifacts | |
TW201816724A (en) | Method for efficient construction of high resolution display buffers | |
JP2006068138A (en) | Game apparatus and image processing program | |
TWI622016B (en) | Depicting device | |
JP2007296218A (en) | Program and device for game image processing | |
JP3352982B2 (en) | Rendering method and device, game device, and computer-readable recording medium for storing program for rendering three-dimensional model | |
TW389857B (en) | Image drawing apparatus | |
JP4307222B2 (en) | Mixed reality presentation method and mixed reality presentation device | |
JP3527672B2 (en) | Computer-readable recording medium recording a three-dimensional computer image processing program, shadow drawing processing method, and video game apparatus | |
JP2006195882A (en) | Program, information storage medium and image generation system | |
US20040075657A1 (en) | Method of rendering a graphics image | |
JP2006293470A (en) | Drawing system, method therefor, and drawing program | |
JP3037865B2 (en) | 3D sprite drawing device | |
JP3770121B2 (en) | Image processing device | |
JP4513423B2 (en) | Object image display control method using virtual three-dimensional coordinate polygon and image display apparatus using the same | |
JP3639286B2 (en) | GAME PROGRAM AND GAME DEVICE | |
JP3756888B2 (en) | Graphics processor, graphics card and graphics processing system | |
US7528839B1 (en) | Faster clears for three-dimensional modeling applications | |
CN111625237B (en) | Character vision deformation method, system and medium | |
KR20150107747A (en) | Video generation device, video generation program, and video generation method | |
US20010026275A1 (en) | Three dimensional graphics drawing apparatus for drawing polygons by adding an offset value to vertex data and method thereof | |
JP3579680B2 (en) | Image processing apparatus and program | |
JP6035057B2 (en) | 3D image display apparatus and 3D image display method | |
JP4433525B2 (en) | Image processing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20080401 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20100809 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100824 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20101023 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20101201 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20110329 |