【特許請求の範囲】
【請求項1】
重なり合う複数のポリゴンに対する画像処理を行って、表示用画像データを生成する画像処理装置において、
表示画面内の手前側から深さ方向に順に並べた時のn番目のポリゴンに、ピクセル色データTXCOn と、不透明度αn または透明度(1−αn)と、光源色データINTnが与えられ、
前記画像処理装置は、
重なり合うピクセルの前記透明度(1−αn)の乗算値Xnを、前記手前側から深さ方向の順に求めるブレンド処理ユニットと、
ピクセルの光源データに従って、深さ方向の各ピクセルに対する光源色データINTnを求める光源計算ユニットと、
ポリゴン色データPCOLn及びテクスチャ座標に従って、前記深さ方向の各ピクセルに対するピクセル色データTXCOnを求めるテクスチャ処理ユニットと、
前記深さ方向の各ピクセルに対して、当該ピクセルのピクセル色データTXCOnを、光源色データINTn、不透明度αn、及び一つ手前側のピクセルの前記乗算値Xn-1に応じて修正し累積するカラー合成処理を行うカラー合成ユニットとを有し、
前記光源計算ユニット及びテクスチャ処理ユニットの少なくとも一方が、対応するデータ生成処理を並列に行い、前記カラー合成ユニットが、前記カラー合成処理を深さ方向のピクセルについて順不同で行うことを特徴とする画像処理装置。
【請求項2】
請求項1において、
更に、フレーム内の複数のポリゴンデータまたはそのピクセルデータを、前記表示画面内の手前側から深さ方向に順番に並び替えるソーターユニットを有し、当該ソーターユニットが、光源計算ユニット及びテクスチャ処理ユニットに、前記ピクセルデータを供給し、前記ブレンド処理ユニットに前記ピクセルデータを手前側から深さ方向の順に供給することを特徴とする画像処理装置。
【請求項3】
請求項1において、
前記カラー合成処理は、処理中のピクセルのピクセル色データTXCOn、光源色データINTn、不透明度αn、及び一つ手前側のピクセルの前記乗算値Xn-1との乗算値を求め、それらを累積する処理であることを特徴とする画像処理装置。
【請求項4】
請求項3において、
前記カラー合成処理により求められた累積値が、前記表示用画像データとして使用されることを特徴とする画像処理装置。
【請求項5】
請求項1において、
更に、深さ方向のピクセルの前記乗算値Xn、ピクセル色データTXCOn、光源色データINTn、不透明度αnのデータを記録するピクセルワークメモリユニットを有し、前記カラー合成ユニットは、該ピクセルワークメモリユニットに上記データが全て記録されたピクセルについて、前記カラー合成処理を行うことを特徴とする画像処理装置。
【請求項6】
請求項1において、
前記ブレンド処理ユニットは、更に、前記ソーターユニットから供給されるポリゴンの不透明度または透明度と、テクスチャの不透明度または透明度から、ピクセルの不透明度αnまたは透明度(1−αn)を生成することを特徴とする画像処理装置。
【請求項7】
請求項1において、
前記テクスチャ処理ユニットは、更に、ポリゴン色データPCOLnと前記テクスチャ座標に対応するテクスチャの色データTとに従って、前記ピクセル色データTXCOnを求める複数のテクスチャ処理回路を有し、空き状態にあるテクスチャ処理回路が順次前記ピクセル色データを生成することを特徴とする画像処理装置。
【請求項8】
請求項1において、
前記光源計算ユニットは、光源色データINTnを求める複数の光源計算回路を有し、空き状態にある光源処理回路が順次前記光源色データを生成することを特徴とする画像処理装置。
【請求項9】
重なり合う複数のポリゴンに対する画像処理を行って、表示用画像データを生成する画像処理装置において、
表示画面内の手前側から深さ方向に順に並べた時のn番目のポリゴンに、ピクセル色データTXCOn と、光源色データINTnと、ディスティネーション混合係数DEn 及びソース混合係数SRn についてのデータが与えられ、
前記画像処理装置は、
重なり合うピクセルの前記ソース混合係数SRnの乗算値Xnを、前記手前側から深さ方向の順に求めるブレンド処理ユニットと、
ピクセルの光源データに従って、深さ方向の各ピクセルに対する光源色データINTnを求める光源計算ユニットと、
ポリゴン色データPCOLn及びテクスチャ座標に従って、前記深さ方向の各ピクセルに対するピクセル色データTXCOnを求めるテクスチャ処理ユニットと、
前記深さ方向の各ピクセルに対して、当該ピクセルのピクセル色データTXCOnを、光源色データINTn、ディスティネーション混合係数DEn、及び一つ手前側のピクセルの前記乗算値Xn-1に応じて修正し累積するカラー合成処理を行うカラー合成ユニットとを有し、
前記光源計算ユニット及びテクスチャ処理ユニットの少なくとも一方が、対応するデータ生成処理を並列に行い、前記カラー合成ユニットが、前記カラー合成処理を深さ方向のピクセルについて順不同で行うことを特徴とする画像処理装置。
【請求項10】
請求項9において、
前記カラー合成処理は、処理中のピクセルのピクセル色データTXCOn、光源色データINTn、ディスティネーション混合係数DEn、及び、一つ手前側のピクセルの前記乗算値Xn-1との乗算値を求め、それらを累積する処理であり、当該累積値が前記表示用画像データとして使用されることを特徴とする画像処理装置。
【請求項11】
重なり合う複数のポリゴンに対する画像処理を行って、表示用画像データを生成する画像処理方法において、
表示画面内の手前側から深さ方向に順に並べた時のn番目のポリゴンに、ピクセル色データTXCOn と、不透明度αn または透明度(1−αn)と、光源色データINTnとが与えられ、
前記画像処理方法は、
重なり合うピクセルの前記透明度(1−αn)の乗算値Xnを、前記手前側から深さ方向の順に求めるブレンド処理工程と、
ピクセルの光源データに従って、深さ方向の各ピクセルに対する光源色データINTnを求める光源計算処理工程と、
ポリゴン色データPCOLn及びテクスチャ座標に従って、前記深さ方向の各ピクセルに対するピクセル色データTXCOnを求めるテクスチャ処理工程と、
前記深さ方向の各ピクセルに対して、当該ピクセルのピクセル色データTXCOnを、光源色データINTn、不透明度αn、及び一つ手前側のピクセルの前記乗算値Xn-1に応じて修正し累積するカラー合成処理を行うカラー合成工程とを有し、
前記光源計算工程及びテクスチャ処理工程の少なくとも一方で、対応するデータ生成処理を並列に行い、前記カラー合成工程で、前記カラー合成処理を深さ方向のピクセルについて順不同で行うことを特徴とする画像処理方法。
【請求項12】
重なり合う複数のポリゴンに対する画像処理を行って、表示用画像データを生成する画像処理方法において、
表示画面内の手前側から深さ方向に順に並べた時のn番目のポリゴンに、ピクセル色データTXCOn と、光源色データINTnと、ディスティネーション混合係数DEn 及びソース混合係数SRn についてのデータが与えられ、
前記画像処理方法は、
重なり合うピクセルの前記ソース混合係数SRnの乗算値Xnを、前記手前側から深さ方向の順に求めるブレンド処理工程と、
ピクセルの光源データに従って、深さ方向の各ピクセルに対する光源色データINTnを求める光源計算工程と、
ポリゴン色データPCOLn及びテクスチャ座標に従って、前記深さ方向のピクセルに対するピクセル色データTXCOnを求めるテクスチャ処理工程と、
前記深さ方向の各ピクセルに対して、当該ピクセルのピクセル色データTXCOnを、光源色データINTn、ディスティネーション混合係数DEn、及び一つ手前側のピクセルの前記乗算値Xn-1に応じて修正し累積するカラー合成処理を行うカラー合成工程とを有し、
前記光源計算工程及びテクスチャ処理工程の少なくとも一方で、対応するデータ生成処理を並列に行い、前記カラー合成工程で、前記カラー合成処理を深さ方向のピクセルについて順不同で行うことを特徴とする画像処理方法。
[Claims]
[Claim 1]
In an image processing device that generates image data for display by performing image processing on a plurality of overlapping polygons.
Pixel color data TXCOn, opacity αn or transparency (1-αn), and light source color data INTn are given to the nth polygon when arranged in order from the front side in the display screen in the depth direction.
The image processing device is
A blending processing unit that obtains the multiplication value Xn of the transparency (1-αn) of overlapping pixels in the order of the depth direction from the front side.
A light source calculation unit that obtains the light source color data INTn for each pixel in the depth direction according to the light source data of the pixels.
A texture processing unit that obtains pixel color data TXCOn for each pixel in the depth direction according to polygon color data PCOLn and texture coordinates.
For each pixel in the depth direction, the pixel color data TXCOn of the pixel is modified and accumulated according to the light source color data INTn, the opacity αn, and the multiplication value Xn-1 of the pixel one before. It has a color composition unit that performs color composition processing.
Image processing characterized in that at least one of the light source calculation unit and the texture processing unit performs the corresponding data generation processing in parallel, and the color composition unit performs the color composition processing for pixels in the depth direction in no particular order. apparatus.
2.
In claim 1,
Further, it has a sorter unit that rearranges a plurality of polygon data or its pixel data in a frame in order from the front side in the display screen in the depth direction, and the sorter unit becomes a light source calculation unit and a texture processing unit. , An image processing apparatus characterized in that the pixel data is supplied and the pixel data is supplied to the blend processing unit in order from the front side to the depth direction.
3.
In claim 1,
In the color composition process, the pixel color data TXCOn of the pixel being processed, the light source color data INTn, the opacity αn, and the multiplication value of the pixel on the previous side Xn-1 are obtained and accumulated. An image processing device characterized by being processed.
4.
In claim 3,
An image processing apparatus characterized in that the cumulative value obtained by the color composition process is used as the display image data.
5.
In claim 1,
Further, the pixel work memory unit has a pixel work memory unit for recording the multiplication value Xn of the pixels in the depth direction, the pixel color data TXCOn, the light source color data INTn, and the opacity αn, and the color composition unit is the pixel work memory unit. An image processing apparatus characterized in that the color composition processing is performed on pixels in which all the above data are recorded.
6.
In claim 1,
The blending unit is further characterized by generating pixel opacity αn or transparency (1-αn) from the opacity or transparency of the polygons supplied by the sorter unit and the opacity or transparency of the texture. Image processing device.
7.
In claim 1,
The texture processing unit further has a plurality of texture processing circuits for obtaining the pixel color data TXCOn according to the polygon color data PCOLn and the texture color data T corresponding to the texture coordinates, and is an empty texture processing circuit. Is an image processing apparatus characterized in that the pixel color data is sequentially generated.
8.
In claim 1,
The light source calculation unit is an image processing device having a plurality of light source calculation circuits for obtaining light source color data INTn, and a light source processing circuit in an empty state sequentially generates the light source color data.
9.
In an image processing device that generates image data for display by performing image processing on a plurality of overlapping polygons.
Data on pixel color data TXCOn, light source color data INTn, destination mixing coefficient DEn, and source mixing coefficient SRn are given to the nth polygon when arranged in order from the front side in the display screen in the depth direction. ,
The image processing device is
A blending processing unit that obtains the multiplication value Xn of the source mixing coefficient SRn of the overlapping pixels in the order of the depth direction from the front side.
A light source calculation unit that obtains the light source color data INTn for each pixel in the depth direction according to the light source data of the pixels.
A texture processing unit that obtains pixel color data TXCOn for each pixel in the depth direction according to polygon color data PCOLn and texture coordinates.
For each pixel in the depth direction, the pixel color data TXCOn of the pixel is modified according to the light source color data INTn, the destination mixing coefficient DEn, and the multiplication value Xn-1 of the pixel one before. It has a color composition unit that performs cumulative color composition processing.
Image processing characterized in that at least one of the light source calculation unit and the texture processing unit performs the corresponding data generation processing in parallel, and the color composition unit performs the color composition processing for pixels in the depth direction in no particular order. apparatus.
10.
In claim 9,
In the color composition process, the pixel color data TXCOn of the pixel being processed, the light source color data INTn, the destination mixing coefficient DEn, and the multiplication value of the pixel on the previous side Xn-1 are obtained, and these are obtained. An image processing apparatus for accumulating the above-mentioned cumulative values, wherein the accumulated values are used as the display image data.
11.
In an image processing method that generates image data for display by performing image processing on a plurality of overlapping polygons.
Pixel color data TXCOn, opacity αn or transparency (1-αn), and light source color data INTn are given to the nth polygon when arranged in order from the front side in the display screen in the depth direction.
The image processing method is
A blending process in which the multiplication value Xn of the transparency (1-αn) of overlapping pixels is obtained in order from the front side to the depth direction.
Accordance source data of pixels, and light source calculation processing step of calculating a light source color data INTn for each pixel in the depth direction,
A texture processing step for obtaining pixel color data TXCOn for each pixel in the depth direction according to polygon color data PCOLn and texture coordinates.
For each pixel in the depth direction, the pixel color data TXCOn of the pixel is modified and accumulated according to the light source color data INTn, the opacity αn, and the multiplication value Xn-1 of the pixel one before. It has a color composition process that performs color composition processing.
Image processing characterized in that corresponding data generation processing is performed in parallel in at least one of the light source calculation step and the texture processing step, and the color composition processing is performed in random order for pixels in the depth direction in the color composition step. Method.
12.
In an image processing method that generates image data for display by performing image processing on a plurality of overlapping polygons.
Data on pixel color data TXCOn, light source color data INTn, destination mixing coefficient DEn, and source mixing coefficient SRn are given to the nth polygon when arranged in order from the front side in the display screen in the depth direction. ,
The image processing method is
A blending process in which the multiplication value Xn of the source mixing coefficient SRn of the overlapping pixels is obtained in the order of the depth direction from the front side.
A light source calculation process for obtaining the light source color data INTn for each pixel in the depth direction according to the light source data of the pixels.
A texture processing step for obtaining pixel color data TXCOn for pixels in the depth direction according to polygon color data PCOLn and texture coordinates.
For each pixel in the depth direction, the pixel color data TXCOn of the pixel is modified according to the light source color data INTn, the destination mixing coefficient DEn, and the multiplication value Xn-1 of the pixel one before. It has a color composition step that performs cumulative color composition processing.
Image processing characterized in that corresponding data generation processing is performed in parallel in at least one of the light source calculation step and the texture processing step, and the color composition processing is performed in random order for pixels in the depth direction in the color composition step. Method.