JP2011076145A - Image display method - Google Patents

Image display method Download PDF

Info

Publication number
JP2011076145A
JP2011076145A JP2009223794A JP2009223794A JP2011076145A JP 2011076145 A JP2011076145 A JP 2011076145A JP 2009223794 A JP2009223794 A JP 2009223794A JP 2009223794 A JP2009223794 A JP 2009223794A JP 2011076145 A JP2011076145 A JP 2011076145A
Authority
JP
Japan
Prior art keywords
pattern
value
gradation value
image
coordinates
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
JP2009223794A
Other languages
Japanese (ja)
Inventor
Yasuhiro Furuta
泰大 古田
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2009223794A priority Critical patent/JP2011076145A/en
Publication of JP2011076145A publication Critical patent/JP2011076145A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To display the rendering image of a three-dimensional model with high quality while reducing a processing load. <P>SOLUTION: A computer 20 attaches, to a three-dimensional model, each bit position in case of expressing coordinates (x, y) as a binary digit, a monochrome vertically striped pattern for x coordinates corresponding to a bit value and an inversion pattern obtained by inverting this, and a monochrome horizontally striped pattern for y coordinates and an inversion pattern obtained by inverting this for performing rendering, and compares the vertically striped pattern with the inversion pattern, and compares the horizontally striped pattern with the inversion pattern, in the rendered image, and discriminates the black and white of each coordinate (x, y) of the vertically striped pattern and the horizontally striped pattern, and sets correspondence between coordinates (x, y) of the rendered image and coordinates (Xt(x, y), Yt(x, y)) of the texture. A viewer 40 performs image plotting in the coordinates (x, y) of the display image based on the gradation values of the coordinates (Xt(x, y), Yt(x, y)) of the texture according to preliminarily set image plotting information. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、画像を表示する画像表示方法に関する。   The present invention relates to an image display method for displaying an image.

従来、この種の画像表示方法としては、リアルタイムで3次元モデルをレンダリングしてディスプレイに表示するものや(例えば、特許文献1参照)、3次元モデルを予めレンダリングしてビットマップ画像を作成して保存しておき、ディスプレイの表示はビットマップ画像を読み込んで行なうものなどが提案されている。   Conventionally, as this kind of image display method, a three-dimensional model is rendered in real time and displayed on a display (see, for example, Patent Document 1), and a three-dimensional model is rendered in advance to create a bitmap image. It has been proposed that the display is performed by reading a bitmap image.

特開平07−152925号公報Japanese Patent Application Laid-Open No. 07-152925

前者の手法では、画面の表示周期よりも短い周期でレンダリング処理を行なう必要があるため、高い演算能力が要求される。したがって、用いるコンピューターによっては、演算能力に不足が生じ、レイトレーシングなどの高品質のレンダリングは行なうことができない。一方、後者の手法では、ビットマップ画像を表示するだけであるから、予め高品質のレンダリングを行なってビットマップ画像を作成しておくことにより、高品質の画像を表示することができるものの、現状では後から異なるテクスチャーに差し替えて使用することはできない。   In the former method, since it is necessary to perform the rendering process at a cycle shorter than the display cycle of the screen, a high calculation capability is required. Therefore, depending on the computer to be used, there is a shortage in computing ability, and high quality rendering such as ray tracing cannot be performed. On the other hand, since the latter method only displays a bitmap image, it is possible to display a high-quality image by creating a bitmap image by performing high-quality rendering in advance. Then you can't replace it with a different texture later.

本発明の画像表示方法は、処理負担が少なく、高品質の3次元モデルのレンダリング画像を表示することを主目的とする。   The main object of the image display method of the present invention is to display a high-quality rendering image of a three-dimensional model with less processing load.

本発明の画像表示方法は、上述の主目的を達成するために以下の手段を採った。   The image display method of the present invention employs the following means in order to achieve the main object described above.

本発明の画像表示方法は、
画像を表示する画像表示方法であって、
(a)座標毎に異なる階調値を設定した第1のパターンと該第1のパターンの階調値を反転した第2のパターンとを作成すると共に該作成した第1のパターンと第2のパターンとをテクスチャーとして3次元モデルに貼り付けてそれぞれレンダリングし、
(b)前記第1のパターンのレンダリングによりビットマップ画像として得られた第1のレンダリング済み画像の階調値と前記第2のパターンのレンダリングによりビットマップ画像として得られた第2のレンダリング済み画像の階調値とを座標毎に比較することにより前記レンダリング済み画像の座標と前記パターンの座標との対応関係を設定して画像描画情報として保存し、
(c)所望のテクスチャーを画像として表示する場合、前記保存した画像描画情報に基づいて前記レンダリング済み画像中に前記所望のテクスチャーを配置して表示する
ことを要旨とする。
The image display method of the present invention includes:
An image display method for displaying an image,
(A) A first pattern in which different gradation values are set for each coordinate and a second pattern in which the gradation values of the first pattern are inverted are created, and the created first pattern and second pattern are created. Paste the pattern as a texture on the 3D model and render each.
(B) The gradation value of the first rendered image obtained as a bitmap image by rendering the first pattern and the second rendered image obtained as a bitmap image by rendering the second pattern By comparing the gradation value for each coordinate, the correspondence between the coordinates of the rendered image and the coordinates of the pattern is set and stored as image drawing information,
(C) When displaying a desired texture as an image, the gist is to arrange and display the desired texture in the rendered image based on the stored image drawing information.

この本発明の画像表示方法では、座標毎に異なる階調値を設定した第1のパターンと第1のパターンの階調値を反転した第2のパターンとを作成すると共に作成した第1のパターンと第2のパターンとをテクスチャーとして3次元モデルに貼り付けてそれぞれレンダリングし、第1のパターンのレンダリングによりビットマップ画像として得られた第1のレンダリング済み画像の階調値と第2のパターンのレンダリングによりビットマップ画像として得られた第2のレンダリング済み画像の階調値とを座標毎に比較することによりレンダリング済み画像の座標とパターンの座標との対応関係を設定して画像描画情報として保存し、所望のテクスチャーを画像として表示する場合、保存した画像描画情報に基づいてレンダリング済み画像中に所望のテクスチャーを配置して表示する。これにより、所望のテクスチャーを差し替えて表示することができると共にリアルタイムで3次元モデルをレンダリングして表示するものに比して処理負担を少なくすることができる。また、第1のレンダリング済み画像の座標と第1のパターンの座標との対応関係を適切に設定することができ、所望のテクスチャーをレンダリング済み画像に配置する際のずれを少なくすることができる。   In the image display method according to the present invention, a first pattern in which a first pattern in which a different gradation value is set for each coordinate and a second pattern in which the gradation value of the first pattern is inverted are created and the first pattern is created. And the second pattern as textures and pasted on the three-dimensional model, respectively, and rendered. The gradation values of the first rendered image obtained as a bitmap image by rendering the first pattern and the second pattern By comparing the gradation value of the second rendered image obtained as a bitmap image by rendering with the coordinates for each coordinate, the correspondence between the coordinates of the rendered image and the coordinates of the pattern is set and saved as image drawing information However, when displaying a desired texture as an image, it is included in the rendered image based on the saved image drawing information. Arranging and displaying the texture. Thereby, a desired texture can be replaced and displayed, and a processing load can be reduced as compared with a case where a three-dimensional model is rendered and displayed in real time. In addition, the correspondence between the coordinates of the first rendered image and the coordinates of the first pattern can be appropriately set, and a shift in arranging a desired texture in the rendered image can be reduced.

こうした本発明の画像表示方法において、前記ステップ(a)は、座標を2進数で表現した場合に各ビット位置に対応する複数のパターンを用いて各パターン毎に対応するビット位置のビット値が値1の座標に第1の階調値を設定し該ビット値が値0の座標に該第1の階調値とは異なる第2の階調値を設定することにより前記第1のパターンを作成すると共に同数の複数のパターンを用いて各パターン毎に対応するビット位置のビット値が値1の座標に前記第2の階調値を設定し該ビット値が値0の座標に前記第1の階調値を設定することにより前記第2のパターンを作成し、前記作成した各パターンを前記3次元モデルに貼り付けてそれぞれレンダリングするステップであるものとすることもできる。こうすれば、レンダリング済み画像の各座標について第1の階調値か第2の階調値かを判定するだけでレンダリング済み画像の座標と各パターンの座標との対応関係を設定することができる。この態様の本発明の画像表示方法において、前記第1の階調値は、前記第2の階調値よりも大きな値であり、前記ステップ(a)は、各ビット位置に対応するパターン毎に、前記第1のレンダリング済み画像の前記パターンが貼り付けられた部位の階調値が前記第2のレンダリング済み画像の対応するパターンが貼り付けられた部位の階調値よりも大きい座標をビット値が値1の座標と判定し、前記第1のレンダリング済み画像の前記パターンが貼り付けられた部位の階調値が前記第2のレンダリング済み画像の対応するパターンが貼り付けられた部位の階調値以下の座標をビット値が値0の座標と判定することにより前記対応関係を設定するステップであるものとすることもできる。これらの場合、前記2進数は、交番2進数であるものとすることもできる。こうすれば、隣接する座標に移行する際に常に1ビットの変化しか生じないから、画像の階調値の誤差に起因して誤ったデータが取得されてしまうのを抑制することができる。   In such an image display method of the present invention, the step (a) uses the plurality of patterns corresponding to each bit position when the coordinates are expressed in binary numbers, and the bit value of the bit position corresponding to each pattern is a value. The first pattern is created by setting a first gradation value at a coordinate of 1 and setting a second gradation value different from the first gradation value at a coordinate whose bit value is 0 And using the same number of patterns, the second gradation value is set to the coordinates where the bit value of the bit position corresponding to each pattern is the value 1, and the bit value is the coordinates of the value 0. The second pattern may be created by setting gradation values, and the created pattern may be pasted on the three-dimensional model and rendered. By doing this, it is possible to set the correspondence between the coordinates of the rendered image and the coordinates of each pattern only by determining whether each coordinate of the rendered image is the first gradation value or the second gradation value. . In this aspect of the image display method of the present invention, the first gradation value is larger than the second gradation value, and the step (a) is performed for each pattern corresponding to each bit position. , The coordinates where the tone value of the part where the pattern of the first rendered image is pasted are larger than the tone value of the part where the corresponding pattern of the second rendered image is pasted. Is the coordinate of the value 1, and the gradation value of the part where the pattern of the first rendered image is pasted is the gradation of the part where the corresponding pattern of the second rendered image is pasted It may be a step of setting the correspondence relationship by determining the coordinates below the value as the coordinates having the bit value of 0. In these cases, the binary number may be an alternating binary number. In this way, since only 1-bit change always occurs when moving to an adjacent coordinate, it is possible to suppress erroneous data from being acquired due to an error in the gradation value of the image.

また、本発明の画像表示方法において、前記ステップ(a)は、さらに、最小階調値を設定した最小階調値パターンを作成すると共に該作成した最小階調値パターンを前記3次元モデルに貼り付けてレンダリングし、前記ステップ(b)は、前記最小階調値パターンのレンダリングにより得られたレンダリング済み画像における階調値であるバイアス値を前記画像描画情報として保存し、前記ステップ(c)は、前記保存したバイアス値に基づいて前記所望のテクスチャーの階調値をオフセットすることにより前記レンダリング済み画像の階調値に変換して表示するものとすることもできる。こうすれば、3次元モデルのレンダリングによる効果のうち元のテクスチャーに依存しないものを反映させることができる。   In the image display method of the present invention, the step (a) further creates a minimum gradation value pattern in which a minimum gradation value is set, and pastes the created minimum gradation value pattern on the three-dimensional model. The step (b) stores a bias value that is a gradation value in the rendered image obtained by rendering the minimum gradation value pattern as the image drawing information, and the step (c) The gradation value of the desired texture may be offset based on the stored bias value to be converted into the gradation value of the rendered image and displayed. By doing this, it is possible to reflect the effect of rendering the three-dimensional model that does not depend on the original texture.

さらに、本発明の画像表示方法において、前記ステップ(a)は、さらに、最小階調値を設定した最小階調値パターンと最大階調値を設定した最大階調値パターンとを作成すると共に前記最小階調値パターンと前記最大階調値パターンとをそれぞれパターン毎に前記3次元モデルに貼り付けてレンダリングし、前記ステップ(b)は、前記最小階調値パターンのレンダリングと前記最大階調値パターンのレンダリングよりそれぞれ得られたレンダリング済み画像における該最大階調値パターンの階調値と該最大階調値パターンの階調値との偏差であるゲインを算出して前記画像描画情報として保存し、前記ステップ(c)は、前記保存したゲインに基づいて前記所望のテクスチャーの階調値を前記レンダリング済み画像の階調値に変換して表示するものとすることもできる。こうすれば、3次元モデルのレンダリングによる効果のうち元のテクスチャーの階調値に影響を受けるものを反映させることができる。この態様の本発明の画像表示方法において、前記ステップ(a)は、前記ステップ(c)により前記第1のレンダリング済み画像に複数の所望のテクスチャーを配置して表示する場合には、前記配置する所望のテクスチャーの数だけ設けられたセット群であって各セットが1つの前記最大階調値パターンと前記配置するテクスチャーの数から値1を減じた数の前記最小階調値パターンとからなると共に各セット毎に前記3次元モデルに前記最小階調値パターンを貼り付ける箇所が異なる第1のセット群と、前記配置する所望のテクスチャーの数と同数の前記最小階調値パターンからなる1つの第2のセットとをそれぞれセット毎に前記3次元モデルに貼り付けてレンダリングし、前記ステップ(b)は、前記第1のセット群を各セット毎にレンダリングすることにより得られる各レンダリング済み画像の階調値と前記第2のセットをレンダリングすることにより得られるレンダリング済み画像の階調値とを前記第1のセット群の各セット毎に比較することにより、前記3次元モデルにテクスチャーが貼り付けられた領域であるテクスチャー領域を特定し、該特定したテクスチャー領域に対して前記ゲインを算出するものとすることもできる。これらの場合、前記ステップ(a)は、前記第1および第2のパターンを第1のレンダリング処理によりレンダリングし、前記最小階調値パターンおよび前記最大階調値パターンを前記第1のレンダリング処理よりも低品質の第2のレンダリング処理によりレンダリングするステップであるものとすることもできる。こうすれば、レンダリング処理に要する時間を短縮することができる。   Further, in the image display method of the present invention, the step (a) further creates a minimum gradation value pattern in which a minimum gradation value is set and a maximum gradation value pattern in which a maximum gradation value is set, and The minimum gradation value pattern and the maximum gradation value pattern are pasted and rendered on the three-dimensional model for each pattern, and the step (b) includes rendering the minimum gradation value pattern and the maximum gradation value. A gain that is a deviation between the gradation value of the maximum gradation value pattern and the gradation value of the maximum gradation value pattern in the rendered image obtained by each pattern rendering is calculated and stored as the image drawing information. The step (c) converts the gradation value of the desired texture into the gradation value of the rendered image based on the stored gain. It can also be assumed to be. In this way, it is possible to reflect the effect of the original texture gradation value among the effects of rendering the three-dimensional model. In the image display method of the present invention according to this aspect, the step (a) is arranged when a plurality of desired textures are arranged and displayed on the first rendered image in the step (c). A set group provided with the number of desired textures, each set including one maximum gradation value pattern and the minimum gradation value pattern obtained by subtracting the value 1 from the number of textures to be arranged; A first set group including a first set group in which the minimum gradation value pattern is pasted on the three-dimensional model for each set, and one minimum gradation value pattern equal in number to the desired texture to be arranged. Each set of 2 is pasted and rendered on the three-dimensional model, and the step (b) records the first set group for each set. Comparing the tone value of each rendered image obtained by dulling with the tone value of the rendered image obtained by rendering the second set for each set of the first set group. Thus, a texture region that is a region where a texture is pasted on the three-dimensional model can be specified, and the gain can be calculated for the specified texture region. In these cases, in the step (a), the first and second patterns are rendered by a first rendering process, and the minimum gradation value pattern and the maximum gradation value pattern are rendered by the first rendering process. Can also be a step of rendering by a low quality second rendering process. In this way, the time required for the rendering process can be shortened.

また、本発明の画像表示方法において、画像をフレーム単位で描画して動画像として表示するものとすることもできる。   In the image display method of the present invention, an image can be drawn in units of frames and displayed as a moving image.

画像表示方法に用いるコンピューター20の構成の概略を示す構成図。The block diagram which shows the outline of a structure of the computer 20 used for the image display method. 特殊テクスチャー生成処理の一例を示すフローチャート。The flowchart which shows an example of a special texture production | generation process. 特殊テクスチャーの一例を示す説明図。Explanatory drawing which shows an example of a special texture. セット毎に特殊テクスチャーをレンダリングする様子を示す説明図。Explanatory drawing which shows a mode that a special texture is rendered for every set. レンダリング済み画像解析処理の一例を示すフローチャート。10 is a flowchart illustrating an example of rendered image analysis processing. バイアスBc,t(x,y)とゲインGc,t(x,y)を説明する説明図。Explanatory drawing explaining bias Bc, t (x, y) and gain Gc, t (x, y). バイアスBc,t(x,y)とゲインGc,t(x,y)を説明する説明図。Explanatory drawing explaining bias Bc, t (x, y) and gain Gc, t (x, y). 縦縞模様パターンと反転縦縞模様パターンの各階調値の関係を示す説明図。Explanatory drawing which shows the relationship between each gradation value of a vertical stripe pattern and a reverse vertical stripe pattern. 差し替え用テクスチャーの一例を示す説明図。Explanatory drawing which shows an example of the texture for replacement. 差し替え用テクスチャーのスライドショー表示の一例を示す説明図。Explanatory drawing which shows an example of the slide show display of the texture for replacement. 変形例の特殊テクスチャーを示す説明図。Explanatory drawing which shows the special texture of a modification.

次に、本発明の実施の形態を図面を用いて説明する。図1は、本発明の一実施形態である画像表示方法に用いるコンピューター20とビューワー40の構成の概略を示す構成図である。本実施形態のコンピューター20は、中央演算処理装置としてのCPUや処理プログラムを記憶するROM、データを一時的に記憶するRAM、グラフィックプロセッサー(GPU)、ハードディスク(HDD)、ディスプレイ22などからなる汎用のコンピューターとして構成されており、その機能ブロックとしては、3次元モデリングデータ(以下、3Dモデルという)やこれに貼り付けるテクスチャーデータ(以下、テクスチャーという)などを記憶する記憶部31と、3次元モデルに貼り付ける前処理用の特殊なテクスチャーを生成する特殊テクスチャー生成処理部32と、3次元モデルをレンダリングしてビットマップ画像を生成するレンダリング処理部34と、レンダリングにより得られたビットマップ画像としてのレンダリング済み画像を解析するレンダリング済み画像解析処理部36と、を備える。   Next, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a configuration diagram showing an outline of the configuration of a computer 20 and a viewer 40 used in an image display method according to an embodiment of the present invention. The computer 20 of this embodiment is a general-purpose computer comprising a central processing unit (CPU), a ROM for storing processing programs, a RAM for temporarily storing data, a graphic processor (GPU), a hard disk (HDD), a display 22 and the like. It is configured as a computer, and its functional blocks include 3D modeling data (hereinafter referred to as 3D model), texture data (hereinafter referred to as texture) to be pasted on this, and a 3D model. A special texture generation processing unit 32 that generates a special texture for preprocessing to be pasted, a rendering processing unit 34 that generates a bitmap image by rendering a three-dimensional model, and a renderin as a bitmap image obtained by rendering It includes a rendered image analysis processing section 36 for the finished image analysis, the.

特殊テクスチャー生成処理部32は、レンダリング処理部34でレンダリングされる3Dモデルに貼り付ける所定パターンのテクスチャーを生成する処理部であり、具体的には、所定パターンとして、値0.0〜1.0の階調値範囲内で階調値が値1.0の白ベタのパターンや、階調値が値0.0の黒ベタのパターン,値0.0と値1.0の階調値が横方向に交互に現われる縦縞模様のパターン,この縦縞模様を反転した反転縦縞模様のパターン,値0.0と値1.0の階調値が縦方向に交互に現われる横縞模様のパターン,この横縞模様を反転した反転横縞模様のパターンを生成する。なお、これらの各パターンがもつ役割については後述する。   The special texture generation processing unit 32 is a processing unit that generates a predetermined pattern of texture to be pasted on the 3D model rendered by the rendering processing unit 34. Specifically, as the predetermined pattern, a value of 0.0 to 1.0 is used. A solid white pattern with a gradation value of 1.0 within a gradation value range, a black solid pattern with a gradation value of 0.0, and a gradation value of 0.0 and 1.0 A vertical stripe pattern that appears alternately in the horizontal direction, an inverted vertical stripe pattern that is an inversion of this vertical stripe pattern, a horizontal stripe pattern in which the gradation values 0.0 and 1.0 appear alternately in the vertical direction, and this horizontal stripe A pattern of an inverted horizontal stripe pattern in which the pattern is inverted is generated. The role of each pattern will be described later.

レンダリング処理部34は、3Dレンダリング用のソフトウエアがコンピューター20にインストールされることにより機能する処理部であり、3Dモデルに特殊テクスチャー生成処理部32で生成されたテクスチャーを貼り付けてレンダリングすることにより所定のフレームレート(例えば、1秒間に30回や60回など)でフレーム単位にビットマップ画像を再生して動画を表示する。本実施形態では、光源からの光をたどりながらオブジェクト面の反射や光の屈折などを計算してレンダリングするレイトレーシング法を用いてレンダリング処理を行なうものとした。   The rendering processing unit 34 is a processing unit that functions when software for 3D rendering is installed in the computer 20. By rendering the 3D model by pasting the texture generated by the special texture generation processing unit 32, rendering is performed. A bitmap image is reproduced in units of frames at a predetermined frame rate (for example, 30 times or 60 times per second) to display a moving image. In the present embodiment, the rendering process is performed using a ray tracing method that calculates and renders reflection of an object surface, light refraction, and the like while tracing light from a light source.

レンダリング済み画像解析処理部36は、レンダリング処理部34により生成されたビットマップ画像(レンダリング済み画像)を解析することにより、所定パターンのテクスチャーに代えて写真などの所望の画像データを配置してレンダリング済み画像をビューワー40側で表示できるようにするための画像描画情報を生成する。   The rendered image analysis processing unit 36 analyzes the bitmap image (rendered image) generated by the rendering processing unit 34, and arranges and renders desired image data such as a photograph instead of a predetermined pattern texture. Image drawing information is generated for displaying the completed image on the viewer 40 side.

本実施形態のビューワー40は、コンピューター20のレンダリング済み画像解析処理部36で解析された結果としての画像描画情報を記憶する記憶部41と、3Dモデルのレンダリング済み画像に所望のテクスチャーを配置して描画することにより表示する表示処理部42と、写真などの画像データが記憶されたメモリーカード46とのデータのやり取りを司るメモリーカードコントローラー44と、を備える。このビューワー40は、ユーザーからの指示によりメモリーカード46に記憶されている複数の画像データを順次読み込むと共に読み込んだ画像データを画像描画情報を用いて3Dモデルのレンダリング済み画像に貼り付けて順次再生を行なうスライドショー表示を行なうことができるようになっている。   The viewer 40 of the present embodiment arranges a desired texture on the rendered image of the 3D model, and a storage unit 41 that stores image rendering information as a result analyzed by the rendered image analysis processing unit 36 of the computer 20. A display processing unit 42 that displays images by drawing and a memory card controller 44 that manages data exchange with a memory card 46 that stores image data such as photographs. The viewer 40 sequentially reads a plurality of image data stored in the memory card 46 according to an instruction from the user, and pastes the read image data on the rendered image of the 3D model using image drawing information, and sequentially reproduces the image data. The slide show to be performed can be performed.

次に、こうして構成された本実施形態のコンピューター20の特殊テクスチャー生成処理部32,レンダリング処理部34,レンダリング済み画像解析処理部36の動作や、ビューワー40の表示処理部42の動作について説明する。まず、特殊テクスチャー生成処理部32の処理について説明する。図2は、特殊テクスチャー生成処理の一例を示すフローチャートである。   Next, the operations of the special texture generation processing unit 32, the rendering processing unit 34, and the rendered image analysis processing unit 36 of the computer 20 configured as described above, and the operation of the display processing unit 42 of the viewer 40 will be described. First, the processing of the special texture generation processing unit 32 will be described. FIG. 2 is a flowchart illustrating an example of the special texture generation process.

特殊テクスチャー生成処理では、まず、対象セット番号iを値1に初期化し(ステップS100)、対象セット番号iに対してRGBの色成分毎にn個の特殊テクスチャーを生成して(ステップS110)、対象セット番号iを値1だけインクリメントし(ステップS120)、対象セット番号iと値nとを比較して(ステップS130)、対象セット番号iが値n以下のときにはステップS110に戻って次の対象セット番号iに対してn個の特殊テクスチャーを生成する処理を繰り返し、対象セット番号iが値nを超えたときには次の処理に進む。ここで、対象セット番号iが値1から値nまでの特殊テクスチャーの生成は、次式(1)に示すように、1番からn番までの対象テクスチャー番号jを1番から値1ずつシフトしながら対象テクスチャー番号jと対象セット番号iと比較し、両者が一致する対象テクスチャー番号jに対しては最小値0.0(黒)〜最大値1.0(白)の階調値範囲で全座標(x,y)に値1.0の階調値を設定することにより白ベタの特殊テクスチャーを生成し、両者が一致しない対象テクスチャー番号jに対しては全座標(x,y)に値0.0の階調値を設定することにより黒ベタの特殊テクスチャーを生成することにより行なわれる。ここで、式(1)中の「c」は、画像データのRGB値の各色に対応する値を示し、「n」は1画面に配置するテクスチャーの数を示し、「b」はテクスチャーの座標を2進数で表わしたときのビット数を示し、「Tc,i,j(x,y)」は色成分c,対象セット番号i,対象テクスチャー番号jにおける特殊テクスチャーの座標(x,y)の階調値を示す(以下、同じ)。   In the special texture generation process, first, the target set number i is initialized to a value 1 (step S100), and n special textures are generated for each RGB color component for the target set number i (step S110). The target set number i is incremented by 1 (step S120), the target set number i is compared with the value n (step S130), and when the target set number i is less than or equal to the value n, the process returns to step S110 and the next target The process of generating n special textures for the set number i is repeated. When the target set number i exceeds the value n, the process proceeds to the next process. Here, the generation of the special texture with the target set number i from the value 1 to the value n shifts the target texture number j from the first to the nth by the value 1 from the first as shown in the following equation (1). While comparing the target texture number j and the target set number i, the target texture number j that matches the target texture number j is in the gradation value range from the minimum value 0.0 (black) to the maximum value 1.0 (white). A special white solid texture is generated by setting a gradation value of 1.0 to all coordinates (x, y), and the target texture number j that does not match is set to all coordinates (x, y). This is done by generating a solid black special texture by setting a gradation value of 0.0. Here, “c” in the formula (1) indicates a value corresponding to each color of the RGB values of the image data, “n” indicates the number of textures arranged on one screen, and “b” indicates the texture coordinates. Indicates the number of bits when expressed as a binary number, and “Tc, i, j (x, y)” indicates the coordinates (x, y) of the special texture in the color component c, the target set number i, and the target texture number j. Indicates a gradation value (hereinafter the same).

対象セット番号iが値1〜値nの特殊テクスチャーを生成すると、次に、対象セット番号iが値(n+1)の色成分毎のn個の特殊テクスチャーを生成し(ステップS140)、対象セット番号iを値1だけインクリメントする(ステップS150)。ここで、対象セット番号iが値(n+1)の特殊テクスチャーの生成は、次式(2)に示すように、1番からn番までのすべての対象テクスチャー番号jに対して全座標(x,y)に値0.0の階調値を設定することにより黒ベタの特殊テクスチャーを生成することにより行なわれる。   When the special texture having the target set number i having the value 1 to the value n is generated, n special textures for each color component having the target set number i having the value (n + 1) are generated (step S140). i is incremented by 1 (step S150). Here, the generation of the special texture having the target set number i of the value (n + 1) is performed with respect to all the target texture numbers j from 1 to n as shown in the following equation (2). This is done by generating a solid black special texture by setting a gradation value of 0.0 to y).

対象セット番号iが値(n+1)の特殊テクスチャーを生成すると、次に、対象セット番号iに対してテクスチャーの座標を交番2進数(グレイコード)表現としたときの第{i−(n+2)}ビットに対応する縦縞模様の色成分毎のn個の特殊テクスチャーを次式(3)により生成して(ステップS160)、対象セット番号iを値1だけインクリメントし(ステップS170)、対象セット番号iと値(n+b+1)とを比較し(ステップS180)、対象セット番号iが値(n+b+1)以下のときにはステップS160に戻って次の対象セット番号iに対してn個の特殊テクスチャーを生成する処理を繰り返し、対象セット番号iが値(n+b+1)を超えたときには次の処理に進む。ここで、式(3)中の「gray(a)」は数値aのグレイコード表現であり、「and(a,b)」はaとbのビット毎の論理積を示す(以下、同じ)。(n+2)番から(n+b+1)番までの対象セット番号iは、それぞれテクスチャーの座標を2進数で表現したときに第0ビット(最上位ビット)から第(b−1)ビット(最下位ビット)までの各ビット位置に対応しており、対象セット番号iに対応するビットの値が値1のときには値1.0(白)の階調値を設定し、対応するビットの値が値0のときには値0.0(黒)の階調値を設定することにより縦縞模様の特殊テクスチャーが生成される。本実施形態では、テクスチャーの座標を交番2進数で表現しており、例えば、テクスチャー数nが値3で座標が値1〜8の3ビット(b=3)とすると、対象セット番号iが第0ビット(最上位ビット)を示す値5の特殊テクスチャーとしてはx座標が値1〜4については黒の階調値が設定され値5〜8については白の階調値が設定され、対象セット番号iが第1ビットを示す値6の特殊テクスチャーとしてはx座標が値1,2については黒の階調値が設定され3〜6については白の階調値が設定され値7,8については黒の階調値が設定され、対象セット番号iが第2ビット(最下位ビット)を示す値7の特殊テクスチャーとしてはx座標が値1については黒の階調値が設定され値2,3については白の階調値が設定され値4,5については黒の階調値が設定され値6,7については白の階調値が設定され値8については黒の階調値が設定されることになる。   When the special texture having the target set number i of the value (n + 1) is generated, the {i− (n + 2)} th when the texture coordinates are expressed as an alternating binary number (gray code) for the target set number i. N special textures for each color component of the vertical stripe pattern corresponding to the bit are generated by the following equation (3) (step S160), the target set number i is incremented by 1 (step S170), and the target set number i Is compared with the value (n + b + 1) (step S180), and when the target set number i is equal to or smaller than the value (n + b + 1), the process returns to step S160 to generate n special textures for the next target set number i. Repeatedly, when the target set number i exceeds the value (n + b + 1), the process proceeds to the next process. Here, “gray (a)” in the expression (3) is a Gray code representation of the numerical value “a”, and “and (a, b)” indicates a logical product of bits a and b (hereinafter the same). . The target set numbers i from (n + 2) to (n + b + 1) are the 0th bit (most significant bit) to the (b-1) th bit (least significant bit) when the texture coordinates are expressed in binary numbers, respectively. When the value of the bit corresponding to the target set number i is 1, the gradation value of 1.0 (white) is set, and the value of the corresponding bit is 0. Sometimes a special texture with a vertical stripe pattern is generated by setting a gradation value of 0.0 (black). In this embodiment, the texture coordinates are expressed in alternating binary numbers. For example, if the texture number n is 3 and the coordinates are 3 bits (b = 3), the target set number i is the first number. As a special texture with a value of 5 indicating 0 bit (most significant bit), a black gradation value is set for an x coordinate value of 1 to 4, a white gradation value is set for a value of 5 to 8, and a target set is set. As for the special texture having the value 6 in which the number i indicates the first bit, the black coordinate value is set for the x coordinate values 1 and 2, the white tone value is set for the values 3 to 6, and the values 7 and 8 are set. Is a black gradation value, and the target set number i is a special texture with a value 7 indicating the second bit (least significant bit). For 3 the white tone value is set and for values 4 and 5 So that the black gradation value is set for the gradation value set value 8 white for black gradation value set value 6,7.

対象セット番号iが値(n+2)〜値(n+b+1)の特殊テクスチャーを生成すると、次に、対象セット番号iに対してテクスチャーのx座標をグレイコード表現としたときの第{i−(n+b+2)}ビットに対応する縦縞模様の色成分毎のn個の特殊テクスチャーを次式(4)により生成して(ステップS190)、対象セット番号iを値1だけインクリメントし(ステップS200)、対象セット番号iと値(n+2b+1)とを比較し(ステップS210)、対象セット番号iが値(n+2b+1)以下のときにはステップS190に戻って次の対象セット番号iに対してn個の特殊テクスチャーを生成する処理を繰り返し、対象セット番号iが値(n+2b+1)を超えたときには次の処理に進む。この処理は、式(4)からわかるように、前述したステップS160〜S180で生成した縦縞模様の特殊テクスチャーの白を黒に黒を白に反転した反転縦縞模様の特殊テクスチャーを生成するものとなる。   When the special texture having the target set number i of the value (n + 2) to the value (n + b + 1) is generated, the {i− (n + b + 2) th when the x coordinate of the texture is represented by the Gray code expression with respect to the target set number i. } N special textures for each color component of the vertical stripe pattern corresponding to the bit are generated by the following equation (4) (step S190), the target set number i is incremented by 1 (step S200), and the target set number i is compared with the value (n + 2b + 1) (step S210). When the target set number i is equal to or smaller than the value (n + 2b + 1), the process returns to step S190 to generate n special textures for the next target set number i. And when the target set number i exceeds the value (n + 2b + 1), the process proceeds to the next process. As can be seen from the equation (4), this processing generates a special texture of the inverted vertical stripe pattern obtained by inverting the white of the vertical stripe pattern special texture generated in steps S160 to S180 described above to black and black to white. .

対象セット番号iが値(n+b+2)〜値(n+2b+1)の特殊テクスチャーを生成すると、次に、対象セット番号iに対してテクスチャーのy座標をグレイコード表現としたときの第{i−(n+2b+2)}ビットに対応する横縞模様の色成分毎のn個の特殊テクスチャーを次式(5)により生成して(ステップS220)、対象セット番号iを値1だけインクリメントし(ステップS230)、対象セット番号iと値(n+3b+1)とを比較し(ステップS240)、対象セット番号iが値(n+3b+1)以下のときにはステップS220に戻って次の対象セット番号iに対してn個の特殊テクスチャーを生成する処理を繰り返し、対象セット番号iが値(n+3b+1)を超えたときには次の処理に進む。(n+2b+2)番から(n+3b+1)番までの対象セット番号iは、それぞれテクスチャーの座標を2進数で表現したときに第0ビット(最上位ビット)から第(b−1)ビット(最下位ビット)までの各ビットに対応しており、対象セット番号iに対応するビットの値が値1のときには値1.0(白)の階調値を設定し、対応するビットの値が値0のときには値0.0(黒)の階調値を設定することにより横縞模様の特殊テクスチャーが生成される。本実施形態では、テクスチャーの座標をグレイコードで表現しており、例えば、テクスチャー数nが値3でy座標が値1〜8の3ビット(b=3)とすると、対象セット番号iが第0ビット(最上位ビット)を示す値8の特殊テクスチャーとしてはy座標が値1〜4については黒の階調値が設定され値5〜8については白の階調値が設定され、対象セット番号iが第1ビットを示す値9の特殊テクスチャーとしてはy座標が値1,2については黒の階調値が設定され値3〜6については白の階調値が設定され値7,8については黒の階調値が設定され、対象セット番号iが第2ビット(最下位ビット)を示す値10の特殊テクスチャーとしてはy座標が値1については黒の階調値が設定され値2,3については白の階調値が設定され値4,5については黒の階調値が設定され値6,7については白の階調値が設定され値8については黒の階調値が設定されることになる。   When the special texture having the target set number i of the value (n + b + 2) to the value (n + 2b + 1) is generated, the {i− (n + 2b + 2)} when the y coordinate of the texture is represented by the Gray code expression with respect to the target set number i. } N special textures for each color component of the horizontal stripe pattern corresponding to the bit are generated by the following equation (5) (step S220), the target set number i is incremented by 1 (step S230), and the target set number i is compared with the value (n + 3b + 1) (step S240), and when the target set number i is equal to or smaller than the value (n + 3b + 1), the process returns to step S220 to generate n special textures for the next target set number i. And when the target set number i exceeds the value (n + 3b + 1), the process proceeds to the next process. The target set numbers i from (n + 2b + 2) to (n + 3b + 1) are the 0th bit (most significant bit) to the (b-1) th bit (least significant bit) when the texture coordinates are expressed in binary numbers, respectively. The gradation value of 1.0 (white) is set when the value of the bit corresponding to the target set number i is 1, and the value of the corresponding bit is 0. A special texture with a horizontal stripe pattern is generated by setting a gradation value of 0.0 (black). In this embodiment, the texture coordinates are expressed in gray code. For example, if the texture number n is 3 and the y coordinate is 3 bits (b = 3), the target set number i is the first number. As a special texture of value 8 indicating 0 bit (most significant bit), a black gradation value is set for values 1 to 4 and a white gradation value is set for values 5 to 8, and the target set is set. As for the special texture with the number 9 indicating the first bit as the number i, a black gradation value is set for the y coordinate values 1 and 2, and a white gradation value is set for the values 3 to 6, and the values 7 and 8 are used. As for a special texture having a value 10 indicating that the target set number i indicates the second bit (least significant bit), a black gradation value is set for a value 1 and a black gradation value is set. , 3 are set to white gradation values and values 4, 5 For so that black gradation value is set for the gradation value set value 8 white for black gradation value set value 6,7.

対象セット番号iが値(n+2b+2)〜値(n+3b+1)の特殊テクスチャーを生成すると、次に、対象セット番号iに対してテクスチャーのy座標をグレイコード表現としたときに第{i−(n+3b+2)}ビットに対応する横縞模様の色成分毎のn個の特殊テクスチャーを次式(6)により生成して(ステップS250)、対象セット番号iを値1だけインクリメントし(ステップS260)、対象セット番号iと値(n+4b+1)とを比較し(ステップS270)、対象セット番号iが値(n+4b+1)以下のときにはステップS250に戻って次の対象セット番号iに対してn個の特殊テクスチャーを生成する処理を繰り返し、対象セット番号iが値(n+4b+1)を超えたときにはすべての特殊テクスチャーの生成が完了したとして、本処理を終了する。この処理は、式(6)からわかるように、前述したステップS220〜S240で生成した横縞模様の特殊テクスチャーの白を黒に黒を白に反転した反転縦縞模様の特殊テクスチャーを生成するものとなる。図3に、テクスチャー数nが値3で座標のビット数bが値3のときに生成される特殊テクスチャーの一覧を示す。   When a special texture having the target set number i of the value (n + 2b + 2) to the value (n + 3b + 1) is generated, when the y coordinate of the texture is expressed as a gray code expression for the target set number i, the {i− (n + 3b + 2) th } N special textures for each color component of the horizontal stripe pattern corresponding to the bit are generated by the following equation (6) (step S250), the target set number i is incremented by 1 (step S260), and the target set number i is compared with the value (n + 4b + 1) (step S270). When the target set number i is equal to or smaller than the value (n + 4b + 1), the process returns to step S250 to generate n special textures for the next target set number i. When the target set number i exceeds the value (n + 4b + 1), all special textures are generated. As was completion, the process is terminated. As can be seen from the equation (6), this processing generates a special texture of inverted vertical stripe pattern in which white of the horizontal stripe pattern special texture generated in steps S220 to S240 described above is inverted from black to black. . FIG. 3 shows a list of special textures generated when the number of textures n is 3 and the number of coordinate bits b is 3.

レンダリング処理部34は、セット毎に、対応するn個の特殊テクスチャーを3次元モデルに貼り付けてレンダリング処理を行なう。レンダリング処理は、セット番号iが値1〜(n+1)のセットについてはアンチエイリアシングなどの高画質化処理を伴って行ない、セット番号iが値(n+2)〜値(n+4b+1)のセットについては高画質化処理を無効にして行なうものとした。図4にレンダリング処理の様子を示す。本実施形態では、3次元モデルを動画としてレンダリングし、テクスチャー数nが値3でビット数bが値3としたから、合計16セット分のレンダリング処理が行なわれて16セット分の動画が生成されることになる。なお、この動画は、フレーム1〜Tまでの各フレーム毎に生成されたビットマップ画像(レンダリング済み画像)により構成される。   For each set, the rendering processing unit 34 performs rendering processing by pasting the corresponding n special textures onto the three-dimensional model. The rendering process is performed for a set whose set number i is a value from 1 to (n + 1) with an image quality enhancement process such as anti-aliasing, and a set whose i is a value from (n + 2) to a value (n + 4b + 1). It was assumed that the processing was disabled. FIG. 4 shows the rendering process. In this embodiment, since the three-dimensional model is rendered as a moving image, the number of textures n is 3 and the number of bits b is 3, the total 16 sets of rendering processing are performed and 16 sets of moving images are generated. Will be. This moving image is composed of bitmap images (rendered images) generated for each frame from frames 1 to T.

次に、レンダリング処理部34により生成されたレンダリング済み画像を解析する処理について説明する。図5は、レンダリング済み画像解析処理部36により実行されるレンダリング済み画像解析処理の一例を示すフローチャートである。   Next, processing for analyzing a rendered image generated by the rendering processing unit 34 will be described. FIG. 5 is a flowchart illustrating an example of a rendered image analysis process executed by the rendered image analysis processing unit 36.

レンダリング済み画像解析処理では、まず、次式(7)に示すように各フレーム番号t(=1〜T)におけるレンダリング済み画像の座標(x,y)の変数It(x,y)を値0に初期化し(ステップS300)、対象フレームtにおけるセット番号1〜nのレンダリング済み画像中の白ベタ領域(座標)を特定して、この白ベタ領域の変数It(x,y)に、対応するテクスチャー番号(=対象セット番号i)を設定する(ステップS310)。この処理は、次式(8)に示すように、対象セット番号iを1番からn番まで順次シフトしながら対象セット番号iのレンダリング済み画像の階調値(各色成分毎の階調値の総和)とセット番号(n+1)のレンダリング済み画像の階調値(各色成分毎の階調値の総和)とを比較することにより行なうことができる。ここで、式(7)中の「w」はレンダリング済み画像の幅方向のサイズを示し、「h」はレンダリング済み画像の高さ方向のサイズを示す(以下、同じ)。また、式(8)中の「Ac,i,t(x,y)」は色成分c,セット番号i(1〜n),フレーム番号tにおけるレンダリング済み画像の座標(x,y)の階調値を示す(以下、同じ)。   In the rendered image analysis process, first, the variable It (x, y) of the coordinates (x, y) of the rendered image at each frame number t (= 1 to T) is set to the value 0 as shown in the following equation (7). (Step S300), a white solid area (coordinates) in the rendered image of the set numbers 1 to n in the target frame t is specified, and the variable It (x, y) of this white solid area is corresponded. A texture number (= target set number i) is set (step S310). As shown in the following equation (8), this processing is performed by sequentially shifting the target set number i from the first to the nth, and the gradation value of the rendered image of the target set number i (the gradation value for each color component). This can be done by comparing the sum of the tone values of the rendered image with the set number (n + 1) (the sum of the tone values for each color component). Here, “w” in Expression (7) indicates the size in the width direction of the rendered image, and “h” indicates the size in the height direction of the rendered image (the same applies hereinafter). In addition, “Ac, i, t (x, y)” in Expression (8) is a rank of the coordinate (x, y) of the rendered image at the color component c, the set number i (1 to n), and the frame number t. Indicates the key value (hereinafter the same).

続いて、次式(9)によりセット番号(n+1)のレンダリング済み画像の階調値をバイアスBc,t(x,y)として設定すると共に(ステップS320)、変数It(x,y)が値0でないレンダリング済み画像の座標(x,y)、即ち白ベタ領域について次式(10)によりゲインGc,t(x,y)を計算する(ステップS330)。ここで、式(10)中の「Ac,It(x,y),t(x,y)」は色成分c,変数It(x,y)に格納されたセット番号i,フレーム番号tにおけるレンダリング済み画像の座標(x,y)の階調値を示す。図6および図7に、バイアスBc,t(x,y)とゲインGc,t(x,y)との関係を示す。3Dモデルにテクスチャーを貼り付けてレンダリングする場合、図示するように、黒ベタパターンのレンダリング後の座標(x,y)における階調値がバイアスBc,t(x,y)となり、白ベタパターンのレンダリング後の座標(x,y)における階調値から黒ベタパターンのレンダリング後の座標(X,Y)における階調値を減じたものがゲインGc,t(x,y)となる。これは、元のテクスチャーの階調値に依存しないオフセット分がバイアスBc,t(x,y)に相当し、元のテクスチャーの階調値の変化に対するレンダリング済み画像の階調値の変化の傾きがゲインGc,t(x,y)に相当するものとなる。   Subsequently, the gradation value of the rendered image with the set number (n + 1) is set as the bias Bc, t (x, y) by the following equation (9) (step S320), and the variable It (x, y) is a value. The gain Gc, t (x, y) is calculated by the following equation (10) for the coordinates (x, y) of the rendered image that is not 0, that is, the white solid region (step S330). Here, “Ac, It (x, y), t (x, y)” in the expression (10) is the color component c and the set number i and the frame number t stored in the variable It (x, y). Indicates the gradation value of the coordinates (x, y) of the rendered image. 6 and 7 show the relationship between the bias Bc, t (x, y) and the gain Gc, t (x, y). When rendering with a texture attached to the 3D model, as shown in the figure, the gradation value at the coordinates (x, y) after rendering the black solid pattern becomes the bias Bc, t (x, y), and the white solid pattern The gain Gc, t (x, y) is obtained by subtracting the gradation value at the coordinate (X, Y) after rendering of the black solid pattern from the gradation value at the coordinate (x, y) after rendering. This is because the offset that does not depend on the tone value of the original texture corresponds to the bias Bc, t (x, y), and the gradient of the change in the tone value of the rendered image relative to the change in the tone value of the original texture Corresponds to the gain Gc, t (x, y).

そして、次式(11)によりテクスチャーのグレイコード表現の座標(X't(x,y),Y't(x,y))を値0に初期化し(ステップS340)、セット番号(n+2)〜(n+b+1)の縦縞模様のレンダリング済み画像の座標(x,y)の階調値と対応するセット番号(n+b+2)〜(n+2b+1)の反転縦縞模様のレンダリング済み画像の座標(x,y)の階調値とを比較して(ステップS350)、レンダリング済み画像の座標(x,y)とテクスチャーの座標X't(x,y)との対応関係を設定すると共に(ステップS360)、セット番号(n+2b+2)〜(n+3b+1)の横縞模様のレンダリング済み画像の座標(x,y)の階調値と対応するセット番号(n+3b+2)〜(n+4b+1)の反転横縞模様のレンダリング済み画像の座標(x,y)の階調値とを比較して(ステップS370)、レンダリング済み画像の座標(x,y)とテクスチャーの座標Y't(x,y)との対応関係を設定する(ステップS380)。ここで、ステップS350〜S380の処理は、次式(12)により行なわれる。レンダリング済み画像の座標(x,y)とテクスチャーの座標X't(x,y)との対応関係の設定は、変数iを値1から値b(座標のビット数)まで順次シフトしながらセット番号(i+n+1)のレンダリング済み画像の階調値Ac,i+n+1,t(x,y)が反転模様の対応するセット番号(i+b+n+1)のレンダリング済み画像の階調値Ac,i+b+n+1,t(x,y)よりも大きいか否かにより、即ち、セット番号(i+n+1)のレンダリング済み画像の階調値Ac,i+n+1,t(x,y)が白に相当するか否かを判定し、白の場合にはグレイコード表現の座標X't(x,y)の対応する第(i−1)ビットのビット値に値1を設定することにより行なわれる。また、レンダリング済み画像の座標(x,y)とテクスチャーの座標Y't(x,y)との対応関係の設定は、変数iを値1から値bまで順次シフトしながらセット番号(i+2b+n+1)のレンダリング済み画像の階調値Ac,i+2b+n+1,t(x,y)が反転模様の対応するセット番号(i+3b+n+1)のレンダリング済み画像の階調値Ac,i+3b+n+1,t(x,y)よりも大きいか否かにより、即ち、セット番号(i+2b+n+1)のレンダリング済み画像の階調値Ac,i+2b+n+1,t(x,y)が白に相当するか否かを判定し、白の場合にはグレイコード表現の座標Y't(x,y)の対応する第(i−1)ビットのビット値に値1を設定することにより行なわれる。ここで、式(12)中の「or(a,b)」はaとbのビット毎の論理和を示す。図8は、縦縞模様パターンと反転縦縞模様パターンの各階調値の関係を示す説明図である。レンダリング済み画像の座標(x,y)とテクスチャーの座標(X't(x,y),Y't(x,y))との対応関係の設定は、変数iが値1〜値bのセット番号(i+n+1)の縦縞模様のパターンをレンダリングしたレンダリング済み画像の階調値Ac,i+n+1,t(x,y)や、セット番号(i+2b+n+1)の横縞模様のパターンをレンダリングしたレンダリング済み画像の階調値Ac,i+2b+n+1,t(x,y)が白に相当するか否かを判定することにより行なうが、これらのレンダリングの際に光源から光の当たり具合などによっては本来の白色が灰色や黒色に近い状態となる場合があり、この場合、色を誤判定するおそれがある。本実施形態では、変数iが値1〜値bのセット番号(i+b+n+1)の反転縦縞模様のパターンとセット番号(i+2b+n+1)の反転横縞模様のパターンとを作成してレンダリングし、これらの反転縦縞模様や反転横縞模様との対比(図8参照)として縦縞模様のパターンをレンダリングしたレンダリング済み画像の階調値Ac,i+n+1,t(x,y)や横縞模様のパターンをレンダリングしたレンダリング済み画像の階調値Ac,i+2b+n+1,t(x,y)が白に相当するか否かを判定するから、色の誤判定を防止することができる。   Then, the coordinates (X't (x, y), Y't (x, y)) of the texture gray code expression are initialized to the value 0 by the following equation (11) (step S340), and the set number (n + 2) The coordinates (x, y) of the rendered image of the inverted vertical stripe pattern of (n + b + 2) to (n + 2b + 1) corresponding to the gradation value of the coordinate (x, y) of the rendered image of the vertical stripe pattern of (n + b + 1) The gradation value is compared (step S350), the correspondence between the coordinates (x, y) of the rendered image and the coordinates X't (x, y) of the texture is set (step S360), and the set number is set. The coordinates (x, y) of the inverted horizontal stripe pattern of the set number (n + 3b + 2) to (n + 4b + 1) corresponding to the gradation value of the coordinate (x, y) of the horizontal stripe pattern rendered image of (n + 2b + 2) to (n + 3b + 1) Compare the tone value of y) S370), the correspondence between the coordinates (x, y) of the rendered image and the coordinates Y't (x, y) of the texture is set (step S380). Here, the processing of steps S350 to S380 is performed by the following equation (12). The setting of the correspondence between the coordinates (x, y) of the rendered image and the coordinates X't (x, y) of the texture is set by sequentially shifting the variable i from the value 1 to the value b (bit number of coordinates). The gradation value Ac, i + b of the rendered image with the set number (i + b + n + 1) corresponding to the inverted pattern is the gradation value Ac, i + n + 1, t (x, y) of the rendered image with the number (i + n + 1). Depending on whether it is larger than + n + 1, t (x, y), that is, the gradation value Ac, i + n + 1, t (x, y) of the rendered image of the set number (i + n + 1) is white In the case of white, the value 1 is set to the bit value of the (i−1) -th bit corresponding to the coordinates X′t (x, y) in the gray code expression. It is. The correspondence between the rendered image coordinate (x, y) and the texture coordinate Y't (x, y) is set by sequentially shifting the variable i from the value 1 to the value b, with the set number (i + 2b + n + 1). Gradation value Ac, i + 2b + n + 1, t (x, y) of the rendered image of gradation value Ac, i + 3b + n of the rendered image of the set number (i + 3b + n + 1) corresponding to the reverse pattern Depending on whether it is larger than + 1, t (x, y), that is, the gradation value Ac, i + 2b + n + 1, t (x, y) of the rendered image of the set number (i + 2b + n + 1) is white And in the case of white, the value 1 is set to the bit value of the (i−1) -th bit corresponding to the coordinates Y′t (x, y) in the gray code expression. It is. Here, “or (a, b)” in the equation (12) indicates a logical sum of bits a and b. FIG. 8 is an explanatory diagram showing the relationship between the gradation values of the vertical stripe pattern and the inverted vertical stripe pattern. The correspondence between the rendered image coordinates (x, y) and the texture coordinates (X't (x, y), Y't (x, y)) Rendering of rendered image gradation value Ac, i + n + 1, t (x, y) rendered set number (i + n + 1) and horizontal stripe pattern set number (i + 2b + n + 1) The gradation value Ac, i + 2b + n + 1, t (x, y) of the finished image is determined by determining whether it corresponds to white. Depending on the situation, the original white color may be close to gray or black. In this case, the color may be erroneously determined. In the present embodiment, an inverted vertical striped pattern having a set number (i + b + n + 1) and a inverted horizontal striped pattern having a set number (i + 2b + n + 1) having a variable i of values 1 to b are created and rendered, and these inverted vertical striped patterns are rendered. Rendering of rendered image with gradation values Ac, i + n + 1, t (x, y) and horizontal stripe pattern rendered as a contrast between vertical stripe pattern and reverse horizontal stripe pattern (see Fig. 8) Since it is determined whether or not the gradation value Ac, i + 2b + n + 1, t (x, y) of the completed image corresponds to white, it is possible to prevent erroneous color determination.

こうして座標の対応関係を設定すると、グレイコード表現のテクスチャーの座標(X't(x,y),Y't(x,y))を次式(13)を用いて復号化して復号化後座標(Xt(x,y),Yt(x,y))を算出し(ステップS390)、これまでの設定あるいは算出結果を画像描画情報として記憶部31に保存し(ステップS400)、値1〜Tまでの全フレームについて処理が完了したか否かを判定し(ステップS410)、全フレームについて処理が完了していないときには次のフレームを対象フレームtに設定してステップS300に戻って処理を繰り返し、全フレームについて処理が完了したときに本処理を終了する。ここで、式(13)中の「gray-1(a)」はグレイコードaを復号化した値を示し、「Xt(x,y)」はフレーム番号tのレンダリング済み画像の座標(x,y)に対応するテクスチャーのx座標を示し、「Yt(x,y)」はフレーム番号tのレンダリング済み画像の座標(x,y)に対応するテクスチャーのy座標を示す。なお、本実施形態では、座標(X't(x,y),Y't(x,y))の原点を(1,1)としているから、グレイコードを復号化した値に値1を加算している。なお、画像描画情報としては、変数It(x,y)とバイアスBc,t(x,y)とゲインGc,t(x,y)と座標(Xt(x,y),Yt(x,y))とが含まれる。   When the correspondence of coordinates is set in this way, the texture coordinates (X't (x, y), Y't (x, y)) of the gray code representation are decoded using the following equation (13) and decoded. The coordinates (Xt (x, y), Yt (x, y)) are calculated (step S390), and the settings or calculation results so far are stored in the storage unit 31 as image drawing information (step S400). It is determined whether or not the processing has been completed for all the frames up to T (step S410). If the processing has not been completed for all the frames, the next frame is set as the target frame t and the processing returns to step S300 to repeat the processing. When the processing is completed for all frames, this processing is terminated. Here, “gray-1 (a)” in Expression (13) indicates a value obtained by decoding the Gray code a, and “Xt (x, y)” indicates the coordinates (x, y) represents the x coordinate of the texture, and “Yt (x, y)” represents the y coordinate of the texture corresponding to the coordinate (x, y) of the rendered image of frame number t. In this embodiment, since the origin of the coordinates (X′t (x, y), Y′t (x, y)) is (1,1), the value 1 is set to the value obtained by decoding the Gray code. It is adding. The image drawing information includes a variable It (x, y), bias Bc, t (x, y), gain Gc, t (x, y), and coordinates (Xt (x, y), Yt (x, y) )).

ビューワー40の表示処理部42では、コンピューター20のレンダリング処理部34により生成されたレンダリング済み画像(ビットマップ画像)とレンダリング済み画像解析処理部36により生成された画像描画情報とを予め記憶部41に記憶させておけば、メモリーカード46に記憶されている写真などの複数の画像データを差し替え用テクスチャーとして読み込むと共に次式(14)を用いてレンダリング済み画像に合成して順次描画することにより、テクスチャーを差し替えながら3次元モデルのレンダリング済み画像を表示するスライドショー再生を行なうことができる。ここで、式(14)中の「Uc,i(x,y)」は色成分c,テクスチャー番号iにおける差し替え用テクスチャーの座標(x,y)の階調値(0.0〜1.0)を示し、「Pc,t(x,y)」は色成分c,フレーム番号tにおける表示画像(レンダリング済み画像)の座標(x,y)の階調値(0.0〜1.0)を示す。式(14)に示すように、表示画像の階調値Pc,t(x,y)の設定は、変数It(x,y)が値0でないテクスチャー配置領域に対しては表示画像の座標(x,y)に対応する差し替え用テクスチャーの座標(Xt(c,y),Yt(x,y))の階調値にゲインGc,t(x,y)を乗じてバイアスBc,t(x,y)を加えたものを設定し、変数It(x,y)が値0であるテクスチャー配置領域以外の領域に対してはバイアスBc,t(x,y)を設定することにより行なわれる。図9にテクスチャー番号が1〜3の3つの差し替え用テクスチャーを示し、図10にレンダリング済み画像に図9の差し替え用テクスチャーを配置して描画する様子を示す。   In the display processing unit 42 of the viewer 40, the rendered image (bitmap image) generated by the rendering processing unit 34 of the computer 20 and the image drawing information generated by the rendered image analysis processing unit 36 are stored in the storage unit 41 in advance. If stored, a plurality of image data such as photographs stored in the memory card 46 is read as a replacement texture, and is synthesized into a rendered image using the following equation (14) and sequentially drawn to create a texture. It is possible to perform a slide show reproduction that displays the rendered image of the three-dimensional model while replacing. Here, “Uc, i (x, y)” in Expression (14) is the tone value (0.0 to 1.0) of the coordinate (x, y) of the replacement texture in the color component c and texture number i. "Pc, t (x, y)" indicates the gradation value (0.0 to 1.0) of the coordinates (x, y) of the display image (rendered image) in the color component c and frame number t. Indicates. As shown in the equation (14), the gradation value Pc, t (x, y) of the display image is set with respect to the texture arrangement region in which the variable It (x, y) is not 0 (the coordinate of the display image ( Bias Bc, t (x) by multiplying the tone value of the replacement texture coordinate (Xt (c, y), Yt (x, y)) corresponding to x, y) by the gain Gc, t (x, y) , y) is set, and a bias Bc, t (x, y) is set for a region other than the texture placement region in which the variable It (x, y) is 0. FIG. 9 shows three replacement textures having texture numbers 1 to 3, and FIG. 10 shows a state in which the replacement texture of FIG. 9 is arranged and rendered on the rendered image.

以上説明した本実施形態の画像表示方法によれば、コンピューター20側では、座標(x,y)を2進数表現したときの各ビットの値に対応するx座標用の白と黒の縦縞模様のパターンおよびこれに対応する反転縦縞模様のパターンとy座標用の白と黒の横縞模様のパターンおよびこれに対応する反転横縞模様のパターンとをテクスチャーとして3次元モデルに貼り付けてレンダリングし、レンダリングによりビットマップ画像として得られたレンダリング済み画像における縦縞模様のパターンと反転縦縞模様のパターンとを比較すると共に横縞模様のパターンと反転横縞模様のパターンとを比較して縦縞模様のパターンと横縞模様のパターンの各座標(x,y)の白黒を判別することによりレンダリング済み画像の座標(x,y)とテクスチャーの座標(Xt(x,y),Yt(x,y))との対応関係を設定して画像描画情報として保存し、ビューワー40側でレンダリング済み画像を用いて画像を表示するときには、予め記憶した画像描画情報によりテクスチャーの座標(Xt(x,y),Yt(x,y))の階調値に基づいて表示画像の座標(x,y)に描画するから、3次元モデルのレンダリング済み画像をテクスチャーを自由に差し替えて再生することができると共にリアルタイムで3次元モデルをレンダリングして表示するものに比して処理負担を少なくすることができる。このとき、レンダリングした後のx座標用の縦縞模様パターンやy座標用の横縞模様パターンの色(白色)を反転縦縞模様パターンや反転横縞模様パターンとの対比により判別するから、レンダリング済み画像の座標(x,y)とテクスチャーの座標(Xt(x,y),Yt(x,y))との対応関係を正確に設定することができ、誤った対応関係を用いることによる表示時の画像の歪みなどを抑制することができる。しかも、ゲインGc,t(x,y)やバイアスBc,t(x,y)を用いてテクスチャーの階調値を変換して表示画像の階調値を設定するから、3次元モデルをレンダリングしたときの屈折光や鏡面反射,影などの影響も反映させることができる。さらに、座標の対応関係を特定するための特殊テクスチャーとして交番2進数に対応する縦縞模様のパターンと横縞模様のパターンとを形成するから、隣接する座標に移行する際には常に1ビットの変化となり、画像の階調値の誤差に起因して誤ったデータが取得されてしまうのを抑制することができる。また、レンダリング処理としてはバイアスBc,t(x,y)やゲインGc,t(x,y)を設定するためのセット番号iが値1〜(n+1)のセットについてはアンチエイリアシングなどの高画質化処理を伴って行ない、座標の対応関係を設定するために色(白黒)の判別を行なうだけでよいセット番号iが値(n+2)〜値(n+4b+1)のセットについては高画質化処理を無効にして行なうものするから、画質を確保しつつレンダリングに必要な時間を短縮することができる。   According to the image display method of the present embodiment described above, on the computer 20 side, white and black vertical stripe patterns for the x coordinate corresponding to the value of each bit when the coordinates (x, y) are expressed in binary numbers are used. Paste the pattern and the corresponding inverted vertical stripe pattern, the white and black horizontal stripe pattern for y-coordinate and the corresponding inverted horizontal stripe pattern to the 3D model as a texture, and render by rendering. Compare the vertical stripe pattern and the inverted vertical stripe pattern in the rendered image obtained as a bitmap image, and compare the horizontal stripe pattern and the inverted horizontal stripe pattern to the vertical stripe pattern and horizontal stripe pattern. The coordinates (x, y) of the rendered image and the texture coordinates (Xt (x, y), Yt (x, y)) is set and saved as image drawing information. When an image is displayed using the rendered image on the viewer 40 side, texture coordinates (Xt Since rendering is performed at the coordinates (x, y) of the display image based on the gradation values of (x, y), Yt (x, y)), the rendered image of the three-dimensional model can be freely replaced and played. In addition, the processing load can be reduced as compared with the case where the three-dimensional model is rendered and displayed in real time. At this time, since the color (white) of the vertical stripe pattern for x-coordinate and horizontal stripe pattern for y-coordinate after rendering is determined by comparison with the inverted vertical stripe pattern and the inverted horizontal stripe pattern, the coordinates of the rendered image The correspondence between (x, y) and the texture coordinates (Xt (x, y), Yt (x, y)) can be set accurately. Distortion and the like can be suppressed. In addition, since the tone value of the texture is converted by using the gain Gc, t (x, y) and the bias Bc, t (x, y) and the tone value of the display image is set, the three-dimensional model is rendered. It is also possible to reflect the effects of refracted light, specular reflection, and shadows. Furthermore, since a vertical striped pattern and a horizontal striped pattern corresponding to alternating binary numbers are formed as a special texture for specifying the correspondence of coordinates, a change of 1 bit always occurs when moving to adjacent coordinates. Therefore, it is possible to suppress erroneous data from being acquired due to an error in the gradation value of the image. In addition, as rendering processing, the set number i for setting the bias Bc, t (x, y) and the gain Gc, t (x, y) has a high image quality such as anti-aliasing for a set whose value is 1 to (n + 1). If the set number i is a value (n + 2) to a value (n + 4b + 1) that only needs to be determined for color (monochrome) in order to set the coordinate correspondence, the image quality improvement processing is invalidated. Thus, the time required for rendering can be shortened while ensuring the image quality.

本実施形態では、対象セット番号iが値(n+2)〜値(n+2b+1)の縦縞模様パターンの特殊テクスチャーを座標を交番2進数表現したときに各ビットの値に対応するものとすると共に対象セット番号iが値(n+2b+2)〜値(n+4b+1)の横縞模様パターンの特殊テクスチャーを座標を交番2進数表現したときの各ビットの値に対応するものとしたが、これらのパターンを、座標を一般の2進数表現したときに各ビットの値に対応するものとして生成するものとしてもよい。この場合の特殊テクスチャーの一例を図11に示す。   In the present embodiment, the special texture of the vertical stripe pattern whose target set number i is a value (n + 2) to a value (n + 2b + 1) corresponds to the value of each bit when the coordinates are expressed in alternating binary numbers, and the target set number The special texture of the horizontal stripe pattern with i being the value (n + 2b + 2) to the value (n + 4b + 1) corresponds to the value of each bit when the coordinates are expressed in alternating binary numbers. It may be generated as a value corresponding to the value of each bit when expressed in decimal. An example of the special texture in this case is shown in FIG.

本実施形態では、レンダリング処理としてセット番号iが値1〜(n+1)のセットについてはアンチエイリアシングなどの高画質化処理を伴って行ない、セット番号iが値(n+2)〜値(n+4b+1)のセットについては高画質化処理を無効にして行なうものとしたが、いずれについても高画質化処理を伴ってレンダリング処理を行なうものとしてもよいし、高画質化処理を伴わずに低品質のレンダリング処理を行なうものとしてもよい。   In the present embodiment, as a rendering process, a set with a set number i having a value of 1 to (n + 1) is performed with an image quality enhancement process such as anti-aliasing, and the set number i is a set with a value (n + 2) to a value (n + 4b + 1). However, it is also possible to perform rendering processing with high image quality processing, or perform low quality rendering processing without high image quality processing. It may be done.

本実施形態では、ビューワー40により画像を再生するものとしたが、画像を再生できる機器であれば、液晶画面付きの携帯電話やプリンターなど如何なる機器を用いるものとしても構わない。   In the present embodiment, an image is reproduced by the viewer 40, but any device such as a mobile phone with a liquid crystal screen or a printer may be used as long as the device can reproduce an image.

なお、本発明は上述した実施形態に何ら限定されることはなく、本発明の技術的範囲に属する限り種々の態様で実施し得ることはいうまでもない。   It should be noted that the present invention is not limited to the above-described embodiment, and it goes without saying that the present invention can be implemented in various modes as long as it belongs to the technical scope of the present invention.

20 コンピューター、22 ディスプレイ、31 記憶部、32 特殊テクスチャー生成処理部、34 レンダリング処理部、36 レンダリング済み画像解析処理部、40 ビューワー、41 記憶部、42 表示処理部、44 メモリーカードコントローラー、46 メモリーカード。   20 Computer, 22 Display, 31 Storage unit, 32 Special texture generation processing unit, 34 Rendering processing unit, 36 Rendered image analysis processing unit, 40 Viewer, 41 Storage unit, 42 Display processing unit, 44 Memory card controller, 46 Memory card .

Claims (9)

画像を表示する画像表示方法であって、
(a)座標毎に異なる階調値を設定した第1のパターンと該第1のパターンの階調値を反転した第2のパターンとを作成すると共に該作成した第1のパターンと第2のパターンとをテクスチャーとして3次元モデルに貼り付けてそれぞれレンダリングし、
(b)前記第1のパターンのレンダリングによりビットマップ画像として得られた第1のレンダリング済み画像の階調値と前記第2のパターンのレンダリングによりビットマップ画像として得られた第2のレンダリング済み画像の階調値とを座標毎に比較することにより前記レンダリング済み画像の座標と前記パターンの座標との対応関係を設定して画像描画情報として保存し、
(c)所望のテクスチャーを画像として表示する場合、前記保存した画像描画情報に基づいて前記レンダリング済み画像中に前記所望のテクスチャーを配置して表示する
画像表示方法。
An image display method for displaying an image,
(A) A first pattern in which different gradation values are set for each coordinate and a second pattern in which the gradation values of the first pattern are inverted are created, and the created first pattern and second pattern are created. Paste the pattern as a texture on the 3D model and render each.
(B) The gradation value of the first rendered image obtained as a bitmap image by rendering the first pattern and the second rendered image obtained as a bitmap image by rendering the second pattern By comparing the gradation value for each coordinate, the correspondence between the coordinates of the rendered image and the coordinates of the pattern is set and stored as image drawing information,
(C) An image display method in which when a desired texture is displayed as an image, the desired texture is arranged and displayed in the rendered image based on the stored image drawing information.
前記ステップ(a)は、座標を2進数で表現した場合に各ビット位置に対応する複数のパターンを用いて各パターン毎に対応するビット位置のビット値が値1の座標に第1の階調値を設定し該ビット値が値0の座標に該第1の階調値とは異なる第2の階調値を設定することにより前記第1のパターンを作成すると共に同数の複数のパターンを用いて各パターン毎に対応するビット位置のビット値が値1の座標に前記第2の階調値を設定し該ビット値が値0の座標に前記第1の階調値を設定することにより前記第2のパターンを作成し、前記作成した各パターンを前記3次元モデルに貼り付けてそれぞれレンダリングするステップである請求項1記載の画像表示方法。   The step (a) uses a plurality of patterns corresponding to each bit position when the coordinates are expressed in binary numbers, and the bit value of the bit position corresponding to each pattern is the first gradation at the coordinates of the value 1 The first pattern is created by setting a value and setting a second gradation value different from the first gradation value at the coordinates where the bit value is 0, and using the same number of patterns By setting the second gradation value at the coordinate where the bit value of the bit position corresponding to each pattern is the value 1, and setting the first gradation value at the coordinate where the bit value is the value 0, The image display method according to claim 1, wherein the second pattern is created, and each of the created patterns is pasted on the three-dimensional model and rendered. 請求項2記載の画像表示方法であって、
前記第1の階調値は、前記第2の階調値よりも大きな値であり、
前記ステップ(a)は、各ビット位置に対応するパターン毎に、前記第1のレンダリング済み画像の前記パターンが貼り付けられた部位の階調値が前記第2のレンダリング済み画像の対応するパターンが貼り付けられた部位の階調値よりも大きい座標をビット値が値1の座標と判定し、前記第1のレンダリング済み画像の前記パターンが貼り付けられた部位の階調値が前記第2のレンダリング済み画像の対応するパターンが貼り付けられた部位の階調値以下の座標をビット値が値0の座標と判定することにより前記対応関係を設定するステップである画像表示方法。
The image display method according to claim 2,
The first gradation value is larger than the second gradation value,
In the step (a), for each pattern corresponding to each bit position, a gradation value of a portion where the pattern of the first rendered image is pasted is a pattern corresponding to the second rendered image. Coordinates larger than the gradation value of the pasted part are determined as coordinates having a bit value of 1, and the gradation value of the part where the pattern of the first rendered image is pasted is the second value. An image display method, which is a step of setting the correspondence relationship by determining coordinates below a gradation value of a portion where a corresponding pattern of a rendered image is pasted as a coordinate having a bit value of 0.
前記2進数は、交番2進数である請求項2または3記載の画像表示方法。   4. The image display method according to claim 2, wherein the binary number is an alternating binary number. 請求項1ないし4いずれか1項に記載の画像表示方法であって、
前記ステップ(a)は、さらに、最小階調値を設定した最小階調値パターンを作成すると共に該作成した最小階調値パターンを前記3次元モデルに貼り付けてレンダリングし、
前記ステップ(b)は、前記最小階調値パターンのレンダリングにより得られたレンダリング済み画像における階調値であるバイアス値を前記画像描画情報として保存し、
前記ステップ(c)は、前記保存したバイアス値に基づいて前記所望のテクスチャーの階調値をオフセットすることにより前記レンダリング済み画像の階調値に変換して表示する
画像表示方法。
The image display method according to any one of claims 1 to 4,
The step (a) further creates a minimum gradation value pattern in which a minimum gradation value is set, and renders the created minimum gradation value pattern by pasting it on the three-dimensional model,
The step (b) stores a bias value, which is a gradation value in a rendered image obtained by rendering the minimum gradation value pattern, as the image drawing information.
The step (c) is an image display method in which the gradation value of the desired texture is offset based on the stored bias value to be converted into the gradation value of the rendered image and displayed.
請求項1ないし5いずれか1項に記載の画像表示方法であって、
前記ステップ(a)は、さらに、最小階調値を設定した最小階調値パターンと最大階調値を設定した最大階調値パターンとを作成すると共に前記最小階調値パターンと前記最大階調値パターンとをそれぞれパターン毎に前記3次元モデルに貼り付けてレンダリングし、
前記ステップ(b)は、前記最小階調値パターンのレンダリングと前記最大階調値パターンのレンダリングよりそれぞれ得られたレンダリング済み画像における該最大階調値パターンの階調値と該最大階調値パターンの階調値との偏差であるゲインを算出して前記画像描画情報として保存し、
前記ステップ(c)は、前記保存したゲインに基づいて前記所望のテクスチャーの階調値を前記レンダリング済み画像の階調値に変換して表示する
画像表示方法。
The image display method according to any one of claims 1 to 5,
The step (a) further creates a minimum gradation value pattern in which a minimum gradation value is set and a maximum gradation value pattern in which a maximum gradation value is set, and the minimum gradation value pattern and the maximum gradation value Each value pattern is pasted and rendered on the 3D model for each pattern,
The step (b) includes the gradation value of the maximum gradation value pattern and the maximum gradation value pattern in the rendered image obtained by rendering the minimum gradation value pattern and the rendering of the maximum gradation value pattern, respectively. A gain that is a deviation from the tone value of the image is calculated and stored as the image drawing information,
The step (c) is an image display method in which the gradation value of the desired texture is converted into the gradation value of the rendered image based on the stored gain and displayed.
請求項6記載の画像表示方法であって、
前記ステップ(a)は、前記ステップ(c)により前記第1のレンダリング済み画像に複数の所望のテクスチャーを配置して表示する場合には、前記配置する所望のテクスチャーの数だけ設けられたセット群であって各セットが1つの前記最大階調値パターンと前記配置するテクスチャーの数から値1を減じた数の前記最小階調値パターンとからなると共に各セット毎に前記3次元モデルに前記最小階調値パターンを貼り付ける箇所が異なる第1のセット群と、前記配置する所望のテクスチャーの数と同数の前記最小階調値パターンからなる1つの第2のセットとをそれぞれセット毎に前記3次元モデルに貼り付けてレンダリングし、
前記ステップ(b)は、前記第1のセット群を各セット毎にレンダリングすることにより得られる各レンダリング済み画像の階調値と前記第2のセットをレンダリングすることにより得られるレンダリング済み画像の階調値とを前記第1のセット群の各セット毎に比較することにより、前記3次元モデルにテクスチャーが貼り付けられた領域であるテクスチャー領域を特定し、該特定したテクスチャー領域に対して前記ゲインを算出する
画像表示方法。
The image display method according to claim 6,
In the step (a), when a plurality of desired textures are arranged and displayed on the first rendered image in the step (c), a set group provided by the number of the desired textures to be arranged. Each set includes one maximum gradation value pattern and the minimum gradation value patterns obtained by subtracting the value 1 from the number of textures to be arranged, and the minimum is added to the three-dimensional model for each set. The first set group in which the place where the gradation value pattern is pasted is different from the first set group including the minimum number of gradation value patterns of the same number as the desired number of textures to be arranged. Render by pasting on a dimensional model,
The step (b) includes the gradation value of each rendered image obtained by rendering the first set group for each set and the level of the rendered image obtained by rendering the second set. By comparing the tone value for each set of the first set group, a texture region that is a region where a texture is pasted on the three-dimensional model is specified, and the gain is determined with respect to the specified texture region. Image display method to calculate
前記ステップ(a)は、前記第1および第2のパターンを第1のレンダリング処理によりレンダリングし、前記最小階調値パターンおよび前記最大階調値パターンを前記第1のレンダリング処理よりも低品質の第2のレンダリング処理によりレンダリングするステップである請求項6または7記載の画像表示方法。   In the step (a), the first and second patterns are rendered by a first rendering process, and the minimum gradation value pattern and the maximum gradation value pattern are rendered with lower quality than the first rendering process. The image display method according to claim 6, wherein the image display method is a step of rendering by a second rendering process. 画像をフレーム単位で描画して動画像として表示する請求項1ないし8いずれか1項に記載の画像表示方法。   The image display method according to claim 1, wherein the image is displayed in a frame unit and displayed as a moving image.
JP2009223794A 2009-09-29 2009-09-29 Image display method Pending JP2011076145A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009223794A JP2011076145A (en) 2009-09-29 2009-09-29 Image display method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009223794A JP2011076145A (en) 2009-09-29 2009-09-29 Image display method

Publications (1)

Publication Number Publication Date
JP2011076145A true JP2011076145A (en) 2011-04-14

Family

ID=44020104

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009223794A Pending JP2011076145A (en) 2009-09-29 2009-09-29 Image display method

Country Status (1)

Country Link
JP (1) JP2011076145A (en)

Similar Documents

Publication Publication Date Title
JP5573316B2 (en) Image processing method and image processing apparatus
US10672183B2 (en) Graphics processing using directional representations of lighting at probe positions within a scene
JP5482394B2 (en) Image processing method and image processing apparatus
KR100833842B1 (en) Method for processing pixel rasterization at 3-dimensions graphic engine and device for processing the same
KR20160051154A (en) Rendering method and apparatus, and electronic apparatus
JP2008176788A (en) Three-dimensional graphics accelerator and its pixel distributing method
US8471852B1 (en) Method and system for tessellation of subdivision surfaces
JP7096661B2 (en) Methods, equipment, computer programs and recording media to determine the LOD for texturing a cubemap
JPH10302079A (en) Solid texture mapping processor and three-dimensional image generating device using the processor
US20140071124A1 (en) Image processing apparatus
TW201344632A (en) 3D texture mapping method, apparatus with function for selecting level of detail by image content and computer readable storage medium storing the method
JP5413081B2 (en) Image display method and image display apparatus
JP2008059582A (en) Level of detail value calculating method for reducing power consumption, and 3-dimensional rendering system using the same
KR102285840B1 (en) Method for rendering image and Image outputting device thereof
CN115810101A (en) Three-dimensional model stylizing method and device, electronic equipment and storage medium
JP2010257224A (en) Moving image display device
JP2011076145A (en) Image display method
US20080165208A1 (en) 3-Dimensional graphic processing apparatus and operating method thereof
JP2011070569A (en) Image display method
JP2011081531A (en) Image display method
US8704831B2 (en) Irradiance rigs
KR100684558B1 (en) Texture mipmapping device and the same method
JP5151946B2 (en) Drawing device
JP2010288267A (en) Image processing method and image processing apparatus
JP5106992B2 (en) Method and apparatus for rendering 3D graphics data in consideration of fog effect