[go: up one dir, main page]

JP2006127369A - Drawing device using fuzzy Z - Google Patents

Drawing device using fuzzy Z Download PDF

Info

Publication number
JP2006127369A
JP2006127369A JP2004317855A JP2004317855A JP2006127369A JP 2006127369 A JP2006127369 A JP 2006127369A JP 2004317855 A JP2004317855 A JP 2004317855A JP 2004317855 A JP2004317855 A JP 2004317855A JP 2006127369 A JP2006127369 A JP 2006127369A
Authority
JP
Japan
Prior art keywords
value
ambiguous
pixel
range
depth value
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
JP2004317855A
Other languages
Japanese (ja)
Inventor
Naotake Otani
尚毅 大谷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2004317855A priority Critical patent/JP2006127369A/en
Publication of JP2006127369A publication Critical patent/JP2006127369A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Generation (AREA)

Abstract

【課題】三次元グラフィックスの描画処理において、表現力を向上するために曲面やサブディビジョンを伴ったポリゴンを利用することが増えている。これらはスクリーン上のサイズなどに応じて細かくポリゴンに分割するなどして処理するが、この処理には多大な計算を行う必要が有り、描画処理の性能低下や処理ハードウェアの大規模化を招いていた。
【解決手段】印面処理を行うためのZバッファ法において距離を現すZ値を確定的な1つの値で記録するのではなく、最大値と最小値で表現されるあいまいな範囲で記録する。別のオブジェクトを描画する際にはあいまいなZの範囲が重ならなければ前後判定を行い、範囲が重なる場合は両者のZ値を確定させて判定する。確定的なZ値を計算するよりもあいまいな範囲で計算するほうが計算量を削減できるため、確定的なZ値の計算が少ない場合は計算量を大幅に削減できる。
【選択図】図1
In a 3D graphics rendering process, polygons with curved surfaces and subdivisions are increasingly used to improve expressive power. These are processed by finely dividing them into polygons according to the size on the screen, etc., but this processing requires a lot of calculation, leading to a reduction in drawing processing performance and an increase in processing hardware scale. It was.
In a Z buffer method for performing a stamping process, a Z value representing a distance is not recorded as a definite one value but is recorded in an ambiguous range expressed by a maximum value and a minimum value. When another object is drawn, if the ambiguous Z range does not overlap, the front-rear determination is performed, and if the ranges overlap, the Z values of both are determined and determined. Since the calculation amount can be reduced by calculating in an ambiguous range rather than calculating the deterministic Z value, the calculation amount can be greatly reduced when the definite Z value calculation is small.
[Selection] Figure 1

Description

本発明はコンピューターグラフィクスの描画処理を行なうブロック描画装置に関するものである。   The present invention relates to a block drawing apparatus that performs drawing processing of computer graphics.

専用の半導体集積回路(LSI)または本装置をその一部として取り込んだシステムLSIに組み込む形で実装される場合がほとんどであるが、トランジスタやリレー素子など別の手段であいまいZを用いた描画装置を構成することも可能である。   In most cases, a dedicated semiconductor integrated circuit (LSI) or a system LSI in which this apparatus is incorporated as a part of the system LSI is mounted. However, a drawing apparatus using an ambiguous Z as another means such as a transistor or a relay element. It is also possible to configure.

従来のコンピューターグラフィクスの描画処理を行なう描画装置は、カラーバッファに加えてZバッファと呼ばれる視点からの奥行き値を記録しておくバッファを用いて、後から描画しようとした描画オブジェクト(点、線、ポリゴン、曲面など)の各画素が今まで描画した内容の手前にあって見えるのか、それとも奥に有って見えないのかを判断し、見える場合のみカラーバッファやZバッファを更新することによって陰面処理を行っている。   A conventional drawing apparatus that performs drawing processing of computer graphics uses a buffer that records a depth value from a viewpoint called a Z buffer in addition to a color buffer, and draws objects (dots, lines, (Polygon, curved surface, etc.) Hidden surface processing by judging whether each pixel is visible in front of the contents drawn up to now or in the back, and updating the color buffer and Z buffer only when it is visible It is carried out.

これを高速化するためにさまざまな工夫がなされている。たとえば、何画素かをまとめたグループを導入し、そのグループ内のZ値の最大値と最小値を記録しておく。画素毎のZ値の比較を行う前にこの情報を調べれば、その画素がグループ内のいかなる画素よりも遠くに有る場合は本当のZバッファを参照しなくても済む場合が有る。グループのサイズを適当に選べばこの情報は小さく出来るため、Zバッファ全体を高速アクセス可能なLSI内部に持つことが出来ない場合でも、この情報だけをLSI内部に持ち、高速にアクセスすることによってシステムの処理速度を向上可能である。   Various ideas have been made to increase the speed. For example, a group in which some pixels are collected is introduced, and the maximum value and the minimum value of the Z value in the group are recorded. If this information is examined before comparing the Z value for each pixel, it may not be necessary to refer to the true Z buffer if the pixel is further than any pixel in the group. Since this information can be reduced if the size of the group is appropriately selected, even if the entire Z buffer cannot be held inside the LSI that can be accessed at high speed, the system can be accessed by having only this information inside the LSI and accessing it at high speed. The processing speed can be improved.

また、画素毎のZ値の最大値と最小値を使用する手法も以下の特許文献1に示されている。ただしこの特許文献1では記録するのは各画素内のZ値の最大値と最小値を正確に計算した結果で、あいまいなZ値を使って計算量を削減しているのではない。正確に計算した画素内のZ値の範囲の情報を、ポリゴンとポリゴンの境界線上で、Zの範囲が連続するかどうかでアンチエリアス処理が必要かどうかを判断するのに使用している。
特開平9−326043号公報
Also, a technique using the maximum value and the minimum value of the Z value for each pixel is shown in Patent Document 1 below. However, in Patent Document 1, what is recorded is a result of accurately calculating the maximum value and the minimum value of the Z value in each pixel, and the amount of calculation is not reduced by using an ambiguous Z value. The accurately calculated Z value range information in the pixel is used to determine whether anti-aliasing processing is necessary based on whether the Z range is continuous on the boundary line between polygons.
JP-A-9-326043

三次元グラフィックス処理において、表現力を向上するために従来の単純なポリゴンによる表現に加えて、曲面データやサブディビジョンを伴ったポリゴンを利用することが増えてきている。これらは画面上で滑らかに見えるように、必要な量のポリゴンに分割して描画されることが多い。   In three-dimensional graphics processing, in order to improve expressiveness, polygons with curved surface data and subdivisions are increasingly used in addition to the conventional simple polygon representation. These are often drawn by being divided into a necessary amount of polygons so that they appear smooth on the screen.

このアルゴリズムは比較的簡単であるし、元データのデータ量も少なくて済むため非常に有効な手法である。しかし、分割数を多くすればするほど膨大な計算量が必要となり、現状の描画用LSIなどでは充分な性能が見込めない場合も多い。   This algorithm is very effective because it is relatively simple and requires only a small amount of original data. However, the larger the number of divisions, the greater the amount of calculation required, and there are many cases where sufficient performance cannot be expected with the current drawing LSI or the like.

ポリゴンへの分割数を多くすればするほど形状は滑らかになり、光源計算も多数の頂点位置で行われるため照度の変化も緻密に反映できる。しかし計算量が膨大になるため、何らかの軽減措置をとらないと計算時間が幾ら有っても足りなくなる。   As the number of polygons is increased, the shape becomes smoother, and light source calculations are performed at a number of vertex positions, so that changes in illuminance can be accurately reflected. However, since the amount of calculation becomes enormous, the calculation time will be insufficient if some mitigation measures are not taken.

表示しようとしている形状データ(1個以上の描画オブジェクトが集まったもの)のアウトラインに当たる部分が荒い折れ線であるのか、滑らかな曲線であるのかは見た目に大きく影響する。また、形状データと形状データが交わる場合、その交線が荒い折れ線であるのか、滑らかな曲線であるのかも見た目に大きく影響する。しかし、それ以外の部分ではそれほど細かくポリゴン分割する必要は無く、大雑把な分割にして計算量を削減すべきである。   Whether the portion corresponding to the outline of the shape data to be displayed (a collection of one or more drawing objects) is a rough polygonal line or a smooth curve greatly affects the appearance. Further, when the shape data and the shape data intersect, whether the intersection line is a rough broken line or a smooth curve greatly affects the appearance. However, it is not necessary to divide polygons so finely in other parts, and the amount of calculation should be reduced by rough division.

大雑把な分割しかしなければ、きちんと光源計算を行った頂点の量が減るため、照度計算の精度が少し悪くなる。しかし、人間の目はこの違いに比較的鈍感なので、問題は起こらない場合が多い。   If there is only a rough division, the amount of vertices for which light source calculation has been performed properly will be reduced, and the accuracy of illuminance calculation will be slightly worse. However, since the human eye is relatively insensitive to this difference, problems often do not occur.

本発明は形状データと形状データが交わる場合にだけ細かくポリゴンを分割するなどして正確な視点からの距離を計算するが、そうでない場合には荒っぽい分割で済ませ、計算量を大幅に削減することを目的としている。   The present invention calculates the distance from the correct viewpoint by dividing the polygon finely only when the shape data and shape data cross, but if not, rough division is sufficient, and the amount of calculation is greatly reduced. It is an object.

なお、アウトライン部分を細かく分割する方法は本発明では触れていないので別途工夫する必要がある。   Note that the method of finely dividing the outline portion is not touched in the present invention, and therefore needs to be devised separately.

前記従来の課題を解決するために、本発明のあいまいZを用いた描画装置は、各画素毎にあいまいZ値(奥行き値の取りうる範囲)を保存することができるバッファを持つ。あいまいZ値の実装方法としては最大値と最小値のペアで実装しても、最小値と範囲の幅のペアで実装しても、さらに異なる方法で実装しても構わない。以下では最大値と最小値のペアで実装したものとして説明する。   In order to solve the above-described conventional problem, the drawing apparatus using the ambiguous Z of the present invention has a buffer capable of storing an ambiguous Z value (a range in which a depth value can be taken) for each pixel. As a mounting method of the ambiguous Z value, it may be mounted by a pair of maximum value and minimum value, a pair of minimum value and range width, or a different method. In the following description, it is assumed that the package is implemented as a pair of maximum and minimum values.

また、IDも画素毎に記録しておく。このIDとは、必要に応じて奥行き値の範囲を正確にするための情報へのインデックスである。具体的には、描画オブジェクトの番号を使っても良いし、奥行き値を正確に計算するための情報だけを別途管理して、それを示す番号を使用しても良い。以下の説明でいずれの方法で実装しているかは本質ではないので、特に明記していない。   The ID is also recorded for each pixel. This ID is an index to information for making the range of depth values accurate as necessary. Specifically, the number of the drawing object may be used, or only the information for accurately calculating the depth value may be separately managed and the number indicating it may be used. In the following explanation, it is not essential to use any method, so it is not specified.

曲面パッチやサブディビジョンを伴うポリゴンの場合、細かく分割しなければ大幅に計算量を削減できる。また、大まかなZ値の範囲はバウンディングボックス等で比較的簡単に計算できる。   In the case of polygons with curved patches and subdivisions, the computational complexity can be greatly reduced if they are not divided finely. Also, the rough range of the Z value can be calculated relatively easily with a bounding box or the like.

そこで最初に絵を描く場合はそれほど細かく分轄せず、あいまいZ値を記録するに留めておく。   Therefore, when drawing a picture for the first time, it is not divided so finely, and only the ambiguous Z value is recorded.

この構成で描画を行った場合、既に書き込まれている内容のあいまいZ値の範囲と、これから書き込もうとしている内容のあいまいZ値の範囲が重ならなかった場合は、それだけで前後関係が判断できる。ただし、範囲が重なってしまった場合はZ値を確定して前後関係を判定する必要が有る。   When drawing with this configuration, if the range of the ambiguous Z value of the content already written and the range of the ambiguous Z value of the content to be written do not overlap, the context can be determined by that alone. . However, if the ranges overlap, it is necessary to determine the context by determining the Z value.

今から描き込もうとしているオブジェクトに関しては情報を残しておけば画素毎に正確な奥行き値を計算することが可能である。既に書き込まれている内容に関してはIDが記録されているので、その情報から既に書き込まれている内容の正確なZ値を再計算する。言うまでもなく正確なZ値を計算することができるため、前後関係を判断することが可能である。   It is possible to calculate an accurate depth value for each pixel by leaving information about the object to be drawn. Since the ID is recorded for the contents already written, the accurate Z value of the contents already written is recalculated from the information. Needless to say, since an accurate Z value can be calculated, the context can be determined.

本発明のあいまいZを用いた描画装置によれば、あいまいZの範囲が重ならなかった場合は、あいまいな値を計算しているだけであり、計算量が大幅に少ない。そのため比較的少ないハードウェア資源の描画LSIでも描画処理を高速化することができる。   According to the drawing apparatus using the ambiguous Z of the present invention, when the ranges of the ambiguous Z do not overlap, only the ambiguous value is calculated, and the amount of calculation is greatly reduced. Therefore, the drawing process can be speeded up even with a drawing LSI having relatively few hardware resources.

以下本発明の実施の形態について、図面を参照しながら説明する。   Embodiments of the present invention will be described below with reference to the drawings.

(実施の形態1)
図2は従来のZバッファ法を用いた描画装置のアルゴリズムを示す概念図である。スクリーン201に描画オブジェクト202を描画する様子を示している。以下では説明上描画オブジェクト202をベジェ曲面パッチとするが、その他の形式の曲面データや、サブディビジョン処理で必要なだけ細分化できるポリゴンデータ、もしくはLOD形式の形状データなど、必要に応じて細かく分轄して高品質にできる形式なら本質的に同じである。
(Embodiment 1)
FIG. 2 is a conceptual diagram showing an algorithm of a drawing apparatus using a conventional Z buffer method. A state in which a drawing object 202 is drawn on the screen 201 is shown. In the following description, the drawing object 202 is assumed to be a Bezier curved surface patch. However, other types of curved surface data, polygon data that can be subdivided as necessary in the subdivision processing, or LOD format shape data are finely divided as necessary. The format that can be made high quality is essentially the same.

従来のZバッファ法では描画オブジェクト202を必要なだけ細分化し、ポリゴンに分轄するなどして描画していた。分轄のための計算に加え、分轄によって発生した多くのポリゴン毎の描画処理を行う必要が有るため、計算量は膨大であった。各画素毎の情報203として、カラー値と奥行き情報を記録し、必要に応じて参照する必要が有った。   In the conventional Z buffer method, the drawing object 202 is subdivided as necessary, and is drawn by dividing it into polygons. In addition to the calculation for the division, it is necessary to perform drawing processing for each polygon generated by the division, so the calculation amount is enormous. It is necessary to record color values and depth information as information 203 for each pixel and refer to them as necessary.

図1は、本発明の実施の形態1におけるあいまいZを用いた描画装置のアルゴリズムを示す概念図である。スクリーン101に描画オブジェクト102を描画する様子を示している。従来のZバッファ法と違い、分轄などは行わず、描画オブジェクト102が取りうるZ値の範囲を計算し、それを各画素毎の情報103として、カラー値とあいまいZ値、IDを記録し、必要に応じて参照する。描画オブジェクト102を細分化しているわけではないので、計算量などはかなり少なく出来る。   FIG. 1 is a conceptual diagram showing an algorithm of a drawing apparatus using an ambiguous Z according to Embodiment 1 of the present invention. A state in which a drawing object 102 is drawn on the screen 101 is shown. Unlike the conventional Z buffer method, division is not performed, the range of the Z value that the drawing object 102 can take is calculated, and the color value, the ambiguous Z value, and the ID are recorded as information 103 for each pixel, Refer as necessary. Since the drawing object 102 is not subdivided, the amount of calculation can be considerably reduced.

なお、この説明では描画オブジェクト102が取りうるZ値の範囲を正確に計算するように書いたが、これは多少多めになっても差し支えない。計算などを正確にせず、概算で済ますこともできる。また、各画素毎の情報103に記録するあいまいZ値は全部同じでも構わないし、もう少し精度を良くしたければ画素毎にもう少し絞り込んで記録しても良い。あいまいZ値の範囲が狭ければ狭いほど前後判定をあいまいZ値だけで済ませることができる可能性が高くなるが、範囲を狭くするには追加で計算が必要になるため、適当にバランスを取る必要が有る。   In this description, the Z value range that the drawing object 102 can take is accurately calculated. However, this may be slightly larger. It is possible to make rough calculations without making calculations accurate. Further, the fuzzy Z values recorded in the information 103 for each pixel may all be the same, or may be recorded by narrowing down a little for each pixel if a little higher accuracy is desired. The narrower the range of the ambiguous Z value, the more likely it will be possible to perform the front-rear determination with only the ambiguous Z value. However, an additional calculation is required to narrow the range, so an appropriate balance is achieved. There is a need.

さらに、あいまいZ値の範囲が無くなり、単一の値しか取らなくなった場合は従来のZバッファ法と同じになる。この場合はそれ以上正確に奥行き値(Z値)を計算する必要が無いので、IDは参照されない。単純なポリゴンのようなオブジェクトの場合は正確にZ値を計算してもハードウェアの負担にならない場合も有る。そのような場合は正確に計算し、範囲の無い状態で運用すれば良い。   Further, when the range of the ambiguous Z value disappears and only a single value can be taken, it becomes the same as the conventional Z buffer method. In this case, since it is not necessary to calculate the depth value (Z value) more accurately, the ID is not referred to. In the case of an object such as a simple polygon, even if the Z value is accurately calculated, there is a case where there is no burden on the hardware. In such a case, it is only necessary to calculate accurately and operate without a range.

図3は本発明の実施の形態1における1画素毎の情報を図示したものである。カラー値301、あいまいZ値302、ID305から構成され、この例ではあいまいZ値302を奥行き範囲の最大値303と奥行き範囲の最小値304から構成している。Z値が正確に計算されている場合は奥行き範囲の最大値303と奥行き範囲の最小値304が全く同じ値となる。   FIG. 3 shows information for each pixel in the first embodiment of the present invention. It is composed of a color value 301, an ambiguous Z value 302, and an ID 305. In this example, the ambiguous Z value 302 is composed of a maximum value 303 in the depth range and a minimum value 304 in the depth range. When the Z value is accurately calculated, the maximum value 303 of the depth range and the minimum value 304 of the depth range are exactly the same value.

図4に本発明の実施の形態1の、画素毎の前後判定処理アルゴリズムをフローチャートで示している。ここではZ値が小さければ視点からの距離が短い(手前に有る)ものとして説明している。   FIG. 4 is a flowchart showing the front-rear determination processing algorithm for each pixel according to the first embodiment of the present invention. Here, it is assumed that if the Z value is small, the distance from the viewpoint is short (in front).

なお、図4のフローチャートでは示さなかったが、実際問題として、特定の画素の奥行き値だけ正確に計算するのは難しく、オブジェクト全体か、その一部分の奥行き値全部を計算しなければならないことが多い。このような場合、計算した正確なZ値は該当する画素全てに対して更新しておくべきである。   Although not shown in the flowchart of FIG. 4, as an actual problem, it is difficult to accurately calculate only the depth value of a specific pixel, and it is often necessary to calculate the entire depth value of the entire object or a part thereof. . In such a case, the exact Z value calculated should be updated for all relevant pixels.

(実施の形態2)
実施の形態1ではあいまいZ値どうしでの比較で前後判定が出来なかった場合、書き込もうとしているオブジェクトと、既に書き込まれている画素の両方で正確なZ値を計算して比較していたが、本実施の形態2では、あいまいZ値どうしでの比較で前後判定が出来なかった場合、まず書き込もうとしているオブジェクトのZ値だけを正確に計算し、既に書き込まれている画素のあいまいZ値と比較して前後判定する点が異なるだけである。
(Embodiment 2)
In the first embodiment, when the comparison between the ambiguous Z values could not be performed, the accurate Z value was calculated and compared for both the object to be written and the already written pixels. In the second embodiment, when the comparison between the ambiguous Z values cannot be made, the Z value of the object to be written is accurately calculated first, and the ambiguous Z value of the pixel already written is calculated. The only difference is that the front and rear judgments are different.

図5に画素毎の前後判定処理アルゴリズムをフローチャートで示している。   FIG. 5 is a flowchart showing the back-and-forth determination algorithm for each pixel.

(実施の形態3)
実施の形態2と異なり、あいまいZ値どうしでの比較で前後判定が出来なかった場合、既に書き込まれている画素のあいまいZだけをまず正確に計算して前後判定を試みる。
(Embodiment 3)
Unlike the second embodiment, if the front-rear determination cannot be made by comparison between the ambiguous Z values, the front-rear determination is attempted by accurately calculating only the ambiguous Z of the already written pixels.

(実施の形態4)
実施の形態2や実施の形態3と異なり、あいまいZ値どうしでの比較で前後判定が出来なかった場合、何らかの方法で書き込もうとしているオブジェクトと、既に書き込まれている画素のいずれかを選んで正確なZ値を計算し、前後判定を試みる。
(Embodiment 4)
Unlike the second and third embodiments, if it is not possible to determine before and after the comparison between the ambiguous Z values, select either the object to be written by some method or the pixel already written. Calculate the correct Z value and try to determine before and after.

いずれを選ぶかは乱数、あいまいZ値の範囲が大きいほうを選ぶなどが考えられる。   As for which one to choose, it is conceivable to choose the one with the larger range of random numbers or ambiguous Z values.

(実施の形態5)
実施の形態1や実施の形態2では必要に応じてあいまいZ値を正確なZ値に変換して前後判定をしているが、正確な値を算出するところまで行かなくても、あいまいZ値の範囲を縮小することができたら、前後判定ができる場合がある。その場合、正確な値を計算するより計算量を削減できる可能性が高い。
(Embodiment 5)
In the first embodiment and the second embodiment, the ambiguous Z value is converted into an accurate Z value as necessary, and the forward / backward determination is performed. However, the ambiguous Z value can be obtained even if the accurate value is not calculated. If the range can be reduced, it may be possible to determine before and after. In that case, there is a high possibility that the calculation amount can be reduced rather than calculating an accurate value.

本発明にかかるブロック描画装置は、3次元コンピューターグラフィクスの処理として有効なだけではなく、2次元の処理方法としても有用である。したがってこれらの機能を含む家電機器、ゲーム機、パソコンなどの分野で利用される可能性が有る。   The block drawing apparatus according to the present invention is not only effective as a three-dimensional computer graphics process but also useful as a two-dimensional processing method. Therefore, it may be used in the fields of home appliances, game machines, personal computers and the like including these functions.

本発明の実施の形態1におけるあいまいZを用いた描画装置のアルゴリズムを示す概念図The conceptual diagram which shows the algorithm of the drawing apparatus using the ambiguous Z in Embodiment 1 of this invention 従来技術のZバッファ法の概念説明図Conceptual illustration of the prior art Z-buffer method 本発明の実施の形態1におけるあいまいZを用いた描画装置の1画素あたり情報の説明図Explanatory drawing of the information per pixel of the drawing apparatus using the ambiguous Z in Embodiment 1 of this invention 本発明の実施の形態1におけるあいまいZを用いた描画装置の画素毎の前後判定アルゴリズムの説明図Explanatory drawing of the back-and-front determination algorithm for every pixel of the drawing apparatus using the ambiguous Z in Embodiment 1 of this invention 本発明の実施の形態2におけるあいまいZを用いた描画装置の画素毎の前後判定アルゴリズムの説明図Explanatory drawing of the back-and-front determination algorithm for every pixel of the drawing apparatus using the ambiguous Z in Embodiment 2 of this invention

符号の説明Explanation of symbols

101 スクリーン
102 描画オブジェクト
103 スクリーンの1画素単位の情報
201 スクリーン
202 描画オブジェクト
203 スクリーンの1画素単位の情報
301 カラー値
302 あいまいZ値
303 奥行き範囲の最大値
304 奥行き範囲の最小値
305 ID
101 Screen 102 Drawing Object 103 Information per Screen Pixel 201 Screen 202 Drawing Object 203 Information per Screen Pixel 301 Color Value 302 Ambiguous Z Value 303 Maximum Depth Range Value 304 Minimum Depth Range Value 305 ID

Claims (10)

画素毎にカラー、あいまいZ値(奥行き値の取りうる範囲)、ID(必要に応じて奥行き値の範囲を正確にするための情報へのインデックス)を記録し利用する三次元グラフィックスの描画装置であって、描画オブジェクト(点、線、ポリゴン、曲面など)の各画素が既に描き込まれている画素より手前にあるかどうかを判断し、手前に有れば描画するという判断を行う際に、
前記描画オブジェクトの各画素のあいまいZ値の範囲と、前記既に描き込まれている画素のあいまいZ値の範囲を比較し、範囲が重ならない場合はそのまま前後関係を判定し、
範囲が重なる場合は、
前記描画オブジェクトの各画素の正確な奥行き値と、前記既に描き込まれている画素の正確な奥行き値をID情報から計算して画素の前後関係を判定し、前記描画オブジェクトの各画素が手前に有る場合のみ前記既に描き込まれている画素を前記描画オブジェクトの各画素の値で更新する描画装置。
3D graphics rendering device that records and uses color, ambiguous Z value (range that depth value can take) and ID (index to information for accurate range of depth value if necessary) for each pixel When determining whether each pixel of a drawing object (point, line, polygon, curved surface, etc.) is in front of the already drawn pixels, and if it is in front ,
The range of the ambiguous Z value of each pixel of the drawing object is compared with the range of the ambiguous Z value of the already drawn pixels, and if the ranges do not overlap, the context is determined as it is.
If the ranges overlap,
An accurate depth value of each pixel of the drawing object and an accurate depth value of the already drawn pixel are calculated from the ID information to determine the front-rear relationship of the pixels, and each pixel of the drawing object is in front. A drawing apparatus that updates the already drawn pixels with the values of the respective pixels of the drawing object only when there are.
あいまいZ値の範囲が重なった場合、まず書き込もうとしている画素の正確な奥行き値だけ計算し、前後関係が判断できるかどうかを試みる、請求項1に記載の描画装置。 The drawing apparatus according to claim 1, wherein when the ranges of the ambiguous Z values are overlapped, first, only an accurate depth value of a pixel to be written is calculated, and an attempt is made to determine whether the context can be determined. あいまいZ値の範囲が重なった場合、まず今までの書き込み結果の正確な奥行き値だけ計算し、前後関係が判断できるかどうかを試みる、請求項1に記載の描画装置。 2. The drawing apparatus according to claim 1, wherein when the ranges of the ambiguous Z values overlap, first, only an accurate depth value of the writing result so far is calculated, and an attempt is made to determine whether the context can be determined. あいまいZ値の範囲が重なった場合、まず書き込もうとしている画素か今までの書き込み結果のいずれかの正確な奥行き値だけ計算し、前後関係が判断できるかどうかを試みる、請求項1に記載の描画装置。 2. The method according to claim 1, wherein when the ranges of the ambiguous Z values overlap, first, only an accurate depth value of either a pixel to be written or a previous writing result is calculated, and an attempt is made to determine whether the context can be determined. Drawing device. あいまいZ値の範囲が重なった場合、正確な奥行き値を計算する前の段階として、書き込もうとしている画素や今までの書き込み結果のあいまいZ値の範囲を狭めるように範囲の推定を細かくし、前後関係が判断できるかどうかを試みる、請求項1に記載の描画装置。 When the range of the ambiguous Z value overlaps, as a step before calculating the accurate depth value, the range estimation is refined so as to narrow the range of the ambiguous Z value of the pixel to be written and the previous writing result, The drawing apparatus according to claim 1, wherein an attempt is made to determine whether the context can be determined. 請求項1に記載の描画装置を備えた集積回路。 An integrated circuit comprising the drawing device according to claim 1. 請求項2に記載の描画装置を備えた集積回路。 An integrated circuit comprising the drawing device according to claim 2. 請求項3に記載の描画装置を備えた集積回路。 An integrated circuit comprising the drawing device according to claim 3. 請求項4に記載の描画装置を備えた集積回路。 An integrated circuit comprising the drawing device according to claim 4. 請求項5に記載の描画装置を備えた集積回路。 An integrated circuit comprising the drawing device according to claim 5.
JP2004317855A 2004-11-01 2004-11-01 Drawing device using fuzzy Z Pending JP2006127369A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004317855A JP2006127369A (en) 2004-11-01 2004-11-01 Drawing device using fuzzy Z

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004317855A JP2006127369A (en) 2004-11-01 2004-11-01 Drawing device using fuzzy Z

Publications (1)

Publication Number Publication Date
JP2006127369A true JP2006127369A (en) 2006-05-18

Family

ID=36722035

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004317855A Pending JP2006127369A (en) 2004-11-01 2004-11-01 Drawing device using fuzzy Z

Country Status (1)

Country Link
JP (1) JP2006127369A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011107816A (en) * 2009-11-13 2011-06-02 Konami Digital Entertainment Co Ltd Image processing apparatus, control method for the same and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011107816A (en) * 2009-11-13 2011-06-02 Konami Digital Entertainment Co Ltd Image processing apparatus, control method for the same and program

Similar Documents

Publication Publication Date Title
US11734879B2 (en) Graphics processing using directional representations of lighting at probe positions within a scene
JP5518967B2 (en) Method, apparatus and computer program product for improving graphic performance
KR102101626B1 (en) Gradient adjustment for texture mapping for multiple render targets with resolution that varies by screen location
US9530241B2 (en) Clipping of graphics primitives
KR20050030595A (en) Image processing apparatus and method
KR102701851B1 (en) Apparatus and method for determining LOD(level Of detail) for texturing cube map
CN100399358C (en) Image processing device and method thereof
US10249077B2 (en) Rendering the global illumination of a 3D scene
KR101507776B1 (en) methof for rendering outline in three dimesion map
CN101714259A (en) Graphics processing systems
EP2756485B1 (en) Accelerated texture lookups using texture coordinate derivatives
CN109377552B (en) Image occlusion calculating method, device, calculating equipment and storage medium
JP4425734B2 (en) How to provide a vector image with hidden lines removed
US6972760B2 (en) Area and span based Z-buffer
JP2006127369A (en) Drawing device using fuzzy Z
Wu et al. Correct resolution rendering of trimmed spline surfaces
US11087523B2 (en) Production ray tracing of feature lines
US7737971B2 (en) Image drawing device, vertex selecting method, vertex selecting program, and integrated circuit
KR100269118B1 (en) Rasterization using quadrangle
KR100848687B1 (en) 3D graphics processing device and its operation method
JP2000293705A (en) Three-dimensional graphics drawing apparatus, three-dimensional graphics drawing method, and medium recording three-dimensional graphics drawing program
JPH0535883A (en) 3D image generation method
GB2359230A (en) Computer graphics rendering of partially transparent object
JP2668863B2 (en) Cross-section drawing device
JP3718888B2 (en) Three-dimensional polygon drawing method and apparatus