JPH11203498A - Method and device for generating texture coordinate by using normal vector - Google Patents

Method and device for generating texture coordinate by using normal vector

Info

Publication number
JPH11203498A
JPH11203498A JP2031698A JP2031698A JPH11203498A JP H11203498 A JPH11203498 A JP H11203498A JP 2031698 A JP2031698 A JP 2031698A JP 2031698 A JP2031698 A JP 2031698A JP H11203498 A JPH11203498 A JP H11203498A
Authority
JP
Japan
Prior art keywords
texture
data
normal
coordinate data
texture coordinate
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
JP2031698A
Other languages
Japanese (ja)
Inventor
Takayuki Terajima
貴之 寺島
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP2031698A priority Critical patent/JPH11203498A/en
Publication of JPH11203498A publication Critical patent/JPH11203498A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a texture coordinate generating device using a normal vector capable of reducing the recalculation frequency of texture coordinate data due to a change in a visual point even when a plane-like texture image is stuck to a three-dimerasinal(3D) graphic. SOLUTION: A coordinate data input means 11 inputs the coordinate data of a polygon to a coodinate data transformation means 12X which transforms the polygon coordinate data into texture coodinate data and a normal data input means 13 inputs the polygon coordinate data to a coordinate correction means 14. The means 14 corrects the texture coordinate data by using the vector value of normal data of the polygon so that the interval ratio of respective points on a 3D graphic is close to an interval ratio of respective stores projected to a texture image.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は、三次元グラフィ
ックス処理において、ポリゴン(多面体)の座標から変
換したテクスチャ座標データをポリゴンの法線データの
ベクトル値によって三次元図形上の各点の間隔比とテク
スチャ画像上に投影された後の間隔比が近くなる方向に
補正する法線ベクトルを用いたテクスチャ座標生成方法
および装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a three-dimensional graphics process, in which the texture coordinate data converted from the coordinates of a polygon (polyhedron) is converted to the interval ratio of each point on the three-dimensional figure by the vector value of the normal data of the polygon. And a texture coordinate generation method and apparatus using a normal vector that corrects in a direction in which an interval ratio after being projected on a texture image becomes closer.

【0002】[0002]

【従来の技術】コンピュータグラフィックスにおいて
は、ポリゴンを用いた三次元図形の表示を行う際に、そ
の表面の質感の表現をリアルに行うために、しばしば用
いられる方法として、テクスチャマッピングがある。こ
のテクスチャマッピングに関しては、たとえば、特開平
05−46775号公報には、想定したカメラスクリー
ンと被写体との相対的な位置関係に応じテクスチャの解
像度を決定し、二次元平面上のベクトル値関数として規
定されたテクスチャパターンより決定した解像度のテク
スチャを生成し、生成したテクスチャをコーディネート
した被写体のカメラスクリーンに撮影されると想定され
る撮影像を生成することが開示されている。
2. Description of the Related Art In computer graphics, when a three-dimensional figure is displayed using polygons, texture mapping is often used to realistically express the texture of the surface. Regarding this texture mapping, for example, Japanese Unexamined Patent Publication No. 05-46775 discloses that the resolution of a texture is determined in accordance with an assumed relative positional relationship between a camera screen and a subject, and is defined as a vector value function on a two-dimensional plane. It is disclosed that a texture having a resolution determined from a generated texture pattern is generated, and a captured image assumed to be captured on a camera screen of a subject coordinated with the generated texture is generated.

【0003】また、特開平06−176129号公報に
は、物体表面三次元形状を構成する複数のポリゴンを展
開して得られる展開図にマッピング用のテクスチャ画像
を重ね合わせ、展開図とテクスチャ画像との位置合わせ
を対話的に行い、マッピングされた展開図をもとに投影
画像を制作することが開示されている。さらに、特開平
09−190550号公報には、三次元空間中の観測位
置の全周囲を覆う一組の画像を撮影し、観測位置を中心
とした球面の形状を近時的に表現する多角形平面モデル
を作成し、この多角形平面モデルの各多角形平面モデル
の各多角形平面に貼り付けるテクスチャ画像を前記撮影
した画像群に基づき、テクスチャ画像を生成することが
開示されている。
Japanese Patent Application Laid-Open No. 06-176129 discloses that a texture image for mapping is superimposed on a development view obtained by developing a plurality of polygons constituting a three-dimensional shape of an object surface, and the development view and the texture image are compared with each other. It is disclosed to interactively perform the registration of the images and produce a projection image based on the mapped development view. Further, Japanese Patent Application Laid-Open No. 09-190550 discloses a polygon that captures a set of images covering the entire periphery of an observation position in a three-dimensional space and recently expresses the shape of a sphere centered on the observation position. It is disclosed that a plane model is created, and a texture image to be attached to each polygon plane of each polygon plane model of the polygon plane model is generated based on the captured image group.

【0004】テクスチャマッピングは、図形の表面の細
かい凹凸や、模様を細分化されたポリゴンによって表現
する代わりに、ポリゴン上に凹凸や模様をあらかじめ描
いた画像データを貼り付けることにより、表現する技術
である。テクスチャマッピングを行って三次元図形の表
面の質感を表現する場合には、テクスチャ座標を書くポ
リゴンの頂点に対して与える必要がある。さらに、貼り
付けるべきテクスチャデータも三次元図形を見渡す視点
に応じて複数を用意する必要がある。
[0004] Texture mapping is a technique for expressing a pattern by pasting image data in which irregularities and patterns are drawn in advance on polygons, instead of expressing fine irregularities and patterns on the surface of a figure by subdivided polygons. is there. When expressing the texture of the surface of a three-dimensional figure by performing texture mapping, it is necessary to give texture coordinates to vertices of a polygon to be written. Further, it is necessary to prepare a plurality of pieces of texture data to be pasted according to the viewpoint overlooking the three-dimensional figure.

【0005】これらのテクスチャ画像は、一般に写真な
どの平面的なデータから生成されており、テクスチャの
貼り付けは図形に対してテクスチャ画像を投影したよう
になされる。このように、平面的なテクスチャ画像を用
いた場合には、図形を見渡す始点を変更した際に、図形
の側面のテクスチャ画像が歪むという課題がある。これ
を解決するための方法としては、図形を見渡す視点を変
更した個々の場合に応じたテクスチャ画像を多数用意す
る方法、三次元ディジタイザを用いて三次元テクスチャ
画像を用意する方法、または、特開平08−24949
1号公報に記載されているように、テクスチャ画像に厚
みを持たせる方法などが提案されている。
[0005] These texture images are generally generated from planar data such as photographs, and the pasting of the texture is performed as if the texture image was projected onto a figure. As described above, when a planar texture image is used, there is a problem that the texture image on the side surface of the graphic is distorted when the starting point for looking over the graphic is changed. As a method for solving this, a method of preparing a large number of texture images corresponding to individual cases in which the viewpoint overlooking the figure is changed, a method of preparing a three-dimensional texture image using a three-dimensional digitizer, or a method of 08-24949
As described in Japanese Patent Laid-Open No. 1 (Kokai) No. 1, a method of giving a thickness to a texture image has been proposed.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、上記従
来技術では、以下に記載するごとき二つの課題がある。
すなわち、第1の課題は、近年の三次元グラフィックに
対する要求の高度化により、描画すべき三次元図形の個
数が増加するのに伴い、テクスチャ画像データの生成そ
れ自体に要するコストがかかるために、テクスチャ画像
データの生成コストが大きくなる。また、第2の課題
は、平面的なテクスチャ画像をもとにしているために、
その平面に平行な方向で図形を見渡す視点が必ず存在す
ることにより、視点の変更に対するテクスチャ画像デー
タの歪みが大きいことである。ただし、従来技術におい
て、三次元テクスチャ画像を作成した場合はこれに該当
しない。
However, the above-mentioned prior art has two problems as described below.
That is, the first problem is that the cost of generating the texture image data itself increases with the increase in the number of three-dimensional figures to be drawn due to the recent demand for three-dimensional graphics, The cost of generating the texture image data increases. The second problem is that it is based on a flat texture image,
Since there is always a viewpoint overlooking the figure in a direction parallel to the plane, the distortion of the texture image data due to the change of the viewpoint is large. However, this does not apply to the case where a three-dimensional texture image is created in the related art.

【0007】この発明は、上記従来の課題を解決するた
めにさなされたもので、平面的なテクスチャ画像を三次
元図形上に張り付けた場合でも、視点の変更に伴うテク
スチャ座標データの再計算頻度を減少でき、かつ三次元
グラフィックスシステムにおけるテクスチャデータ格納
部の容量を軽減でき、しかも必要とされるテクスチャ画
像データの枚数を減少することができる法線ベクトルを
用いたテクスチャ座標生成方法ようび装置を提供するこ
とを目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned conventional problems. Even when a planar texture image is pasted on a three-dimensional figure, the frequency of recalculation of texture coordinate data due to a change in viewpoint is changed. Coordinate generation method using a normal vector, which can reduce the number of texture image data required in the three-dimensional graphics system, and can reduce the capacity of the texture data storage unit in the three-dimensional graphics system. The purpose is to provide.

【0008】上記目的を達成するために、この発明の法
線ベクトルを用いたテクスチャ座標生成方法は、ポリゴ
ンの座標データをテクスチャ座標データに変換し、前記
テクスチャ座標データをポリゴンの法線データのベクト
ル値によって三次元図形上の各点の間隔比とテクスチャ
画像上に投影された後の間隔比が近くなる方向に補正す
ることを特徴とする。
In order to achieve the above object, a texture coordinate generation method using a normal vector according to the present invention converts polygon coordinate data into texture coordinate data, and converts the texture coordinate data into a vector of polygon normal data. The value is corrected in such a direction that the interval ratio of each point on the three-dimensional figure and the interval ratio after being projected on the texture image become closer.

【0009】また、この発明の法線ベクトルを用いたテ
クスチャ座標生成装置は、座標データ入力手段により入
力されたポリゴンの座標データをテクスチャ座標データ
に変換する座標データ変換手段と、ポリゴンの法線デー
タを入力する法線データ入力手段と、前記テクスチャ座
標データを前記法線データ入力手段により入力された前
記ポリゴンの法線データのベクトル値によって三次元図
形上の各点の間隔比とテクスチャ画像上に投影された後
の間隔比が近くなる方向に補正する座標補正手段とを備
えることを特徴とする。
A texture coordinate generating apparatus using a normal vector according to the present invention comprises: coordinate data converting means for converting coordinate data of a polygon input by coordinate data input means into texture coordinate data; And inputting the texture coordinate data to the interval ratio of each point on the three-dimensional figure and the texture image by the vector value of the normal data of the polygon input by the normal data input means. And a coordinate correcting means for correcting the distance ratio after the projection becomes closer.

【0010】この発明の法線ベクトルを用いたテクスチ
ャ座標生成方法によれば、ポリゴンの座標データをテス
クスチャ座標データに変換する。テスクチャ座標データ
のままでは、三次元図形上のポリゴンの方向とテクスチ
ャ画像の方向とのいずれか大きいポリゴン上にテクスチ
ャ画像が貼り付けられた結果の画像は、テクスチャ画像
の方向に近いポリゴンに比較して大きな歪みを生じる。
そこで、テスクチャ座標データをポリゴンの法線データ
のベクトル値を用いて三次元図形上の各点の間隔比とテ
クスチャ画像上に投影された間隔比が近くなる方向に補
正して、より少ないテクスチャ原画像から三次元画像の
周囲にくまなく張り付け可能のテクスチャ画像データを
生成する。
According to the texture coordinate generation method using normal vectors of the present invention, coordinate data of a polygon is converted into texture coordinate data. With the texture coordinate data as it is, the resulting image in which the texture image is pasted on the larger polygon, either the direction of the polygon on the three-dimensional figure or the direction of the texture image, is compared with the polygon closer to the texture image. Causes large distortion.
Therefore, the texture coordinate data is corrected using the vector values of the normal data of the polygon so that the interval ratio of each point on the three-dimensional figure and the interval ratio projected on the texture image become closer, so that less texture original data is obtained. Texture image data that can be stuck all over the three-dimensional image is generated from the image.

【0011】また、この発明の法線ベクトルを用いたテ
クスチャ座標生成装置によれば、座標データ入力手段に
よりポリゴンの座標データを座標データ変換手段に入力
すると、座標データ変換手段は、ポリゴンの法線データ
をテスクチャ座標データに変換する。テクスチャ座標デ
ータにより変換されたテクスチャ座標データのままで
は、三次元図形上のポリゴンの方向とテクスチャ画像の
方向とのいずれか大きいポリゴン上にテクスチャ画像が
貼り付けられた結果の画像はテクスチャ画像の方向に近
いポリゴンに比較して大きな歪みを生じる。この歪みを
解消するために、法線データ入力手段によりポリゴンの
法線データを入力して、座標補正手段に出力する。座標
補正手段は、座標データ変換手段で変換されたテクスチ
ャ座標データをポリゴンの法線データのベクトル値を用
いて三次元図形上の各点の間隔比とテクスチャ画像上に
投影された後の間隔比が近くなる方向に補正して、テク
スチャ原画像から三次元画像の周囲にくまなく張り付け
可能のテクスチャ画像データを生成する。
According to the texture coordinate generating apparatus using normal vectors of the present invention, when the coordinate data of the polygon is input to the coordinate data converting means by the coordinate data inputting means, the coordinate data converting means sets the normal line of the polygon. Convert the data to texture coordinate data. If the texture coordinate data converted by the texture coordinate data is used as is, the resulting image obtained by pasting the texture image on the polygon, which is either the direction of the polygon on the three-dimensional figure or the direction of the texture image, is the direction of the texture image. Large distortion occurs as compared to polygons close to. In order to eliminate this distortion, normal line data of the polygon is input by the normal line data input means and output to the coordinate correction means. The coordinate correcting means converts the texture coordinate data converted by the coordinate data converting means into an interval ratio of each point on the three-dimensional figure using a vector value of normal data of the polygon and an interval ratio after being projected on the texture image. Is corrected so as to be closer to the original image, and texture image data that can be stuck all around the three-dimensional image is generated from the original texture image.

【0012】[0012]

【発明の実施の形態】以下、この発明による法線ベクト
ルを用いたテクスチャ座標生成装置の第1実施の形態に
ついて図面に基づき説明する。図1は第1実施の形態の
構成を示すブロック図である。この図1において、座標
データ入力手段11により、ポリゴンの座標データを座
標データ変換手段12に入力するようになっており、座
標データ変換手段12は、入力されたポリゴンの座標デ
ータを所定の手段(たとえば、広く知られた高速変換手
段としは、一次変換などがある)により、テクスチャ座
標データに変換するようになっている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, a first embodiment of a texture coordinate generating apparatus using a normal vector according to the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing the configuration of the first embodiment. In FIG. 1, the coordinate data input means 11 inputs coordinate data of a polygon to a coordinate data conversion means 12, and the coordinate data conversion means 12 converts the input coordinate data of the polygon into a predetermined means ( For example, a widely known high-speed conversion means includes a primary conversion, etc.), and the data is converted into texture coordinate data.

【0013】このテクスチャ座標に変換するに際して、
たとえば、座標データの変換手段に一次変換を用いた場
合に、テクスチャ画像を仮想的な平面上に置き、三次元
図形をその平面上に投影した形でマッピングされてい
る。座標データ変換手段12で変換されたテクスチャ座
標データをそのまま用いると、三次元図形上のポリゴン
の方向とテクスチャ画像の方向とのいずれか大きいポリ
ゴン上にテクスチャ画像が貼り付けられた結果の画像
は、テクスチャ画像の方向に近いポリゴンに比べて大き
な歪みを生じる。このため、その図形を他の視点から見
渡した際に不自然さが目立つ。したがって、テクスチャ
座標の再計算が必要となる。
When converting the texture coordinates,
For example, when a primary transformation is used as the transformation means of the coordinate data, the texture image is placed on a virtual plane, and the three-dimensional figure is mapped on the plane by projection. If the texture coordinate data converted by the coordinate data converting means 12 is used as it is, an image obtained as a result of pasting the texture image on a polygon, which is either the direction of the polygon on the three-dimensional figure or the direction of the texture image, is larger. Large distortion occurs compared to a polygon close to the direction of the texture image. Therefore, when the figure is viewed from another viewpoint, unnaturalness is conspicuous. Therefore, it is necessary to recalculate the texture coordinates.

【0014】そこで、この第1実施の形態では、テクス
チャ座標の再計算の頻度を減少させるために、法線デー
タのベクトル値を用いて、テクスチャ座標データを補正
するようにしており、この第1実施の形態の特徴をなす
部分の一つである。したがって、前記座表データ変換手
段12で変換されたテクスチャ座標データは座標補正手
段14に送出するようになっているとともに、変換式デ
ータも座標補正手段14に入力されるようになってい
る。さらに、ポリゴンの法線データが法線データ入力手
段13により座標補正手段14に入力させるようになっ
ている。
In the first embodiment, in order to reduce the frequency of recalculation of the texture coordinates, the texture coordinate data is corrected using the vector values of the normal data. This is one of the features of the embodiment. Therefore, the texture coordinate data converted by the coordinate data conversion means 12 is sent to the coordinate correction means 14, and the conversion formula data is also input to the coordinate correction means 14. Further, the normal data of the polygon is input to the coordinate correcting means 14 by the normal data input means 13.

【0015】座標補正手段14は、座標データ変換手段
12で変換されたテクスチャ座標データをポリゴンの法
線データのベクトル値によって補正するものであり、こ
の補正の際には、ポリゴンの持つ法線ベクトル値を用い
ることにより、三次元図形上の各点の間隔比とテクスチ
ャ画像上に投影された後の間隔比が近くなる方向に補正
するようにしている。このように、一次変換を使用した
際に三次元図形の側面部にマッピングされるテクスチャ
画像の歪みを減少するテクスチャ座標データを生成する
ことができるとともに、より少ないテクスチャ画像から
三次元画像の周囲にくまなく張りつけることができるテ
クスチャ座標データを生成することができるため、視点
を変更した際にテクスチャ座標データを再計算する頻度
を低く抑制することが可能となる。
The coordinate correcting means 14 corrects the texture coordinate data converted by the coordinate data converting means 12 by using the vector value of the normal data of the polygon. By using the value, the correction is made in such a direction that the interval ratio between the points on the three-dimensional figure and the interval ratio after being projected on the texture image become closer. In this way, it is possible to generate texture coordinate data that reduces the distortion of the texture image that is mapped to the side surface of the three-dimensional figure when using the linear transformation, and to reduce the number of texture images around the three-dimensional image from the fewer texture images. Since texture coordinate data that can be stuck all over can be generated, it is possible to suppress the frequency of recalculating the texture coordinate data when the viewpoint is changed.

【0016】次に、上記座標補正手段14の内部構成に
ついて説明する。図2はこの座標補正手段14の構成を
示すブロック図である。上記変換式データは変換式記憶
手段21に入力されるようになっている。変換式記憶手
段21は、適当な変換を用いて計算されたテクスチャ座
標データに対して法線データのベクトル値を用いて適当
な補正変換を施すための変換式を記憶して、その記憶内
容は補正演算手段22に出力するようになっている。こ
の変換式は外部から任意に変更可能である。
Next, the internal configuration of the coordinate correcting means 14 will be described. FIG. 2 is a block diagram showing the configuration of the coordinate correcting means 14. The conversion formula data is inputted to the conversion formula storage means 21. The conversion formula storage means 21 stores a conversion formula for performing an appropriate correction conversion using a vector value of normal data on the texture coordinate data calculated using an appropriate conversion. The data is output to the correction calculating means 22. This conversion formula can be arbitrarily changed from outside.

【0017】補正演算手段22には、上記の変換式記憶
手段21で記憶されている変換式の他に、テクスチャ座
標データとポリゴンの法線データのベクトル値とが入力
するようになっており、この補正演算手段22は変換式
記憶手段21で記憶されている変換式を用いて、テクス
チャ座標データを法線データのベクトル値によって補正
するための補正演算を行うものである。補正演算手段2
2によって計算された補正済みテクスチャ座標データ
は、補正データ出力手段23に出力するようになってい
る。
The correction calculating means 22 receives texture coordinate data and vector values of polygon normal data in addition to the conversion formula stored in the conversion formula storage means 21. The correction operation unit 22 performs a correction operation for correcting the texture coordinate data by the vector value of the normal data using the conversion formula stored in the conversion formula storage unit 21. Correction calculation means 2
2 is output to the correction data output means 23.

【0018】次に、以上のように構成されたこの第1実
施の形態の動作について図3のフローチャートに沿って
説明する。この動作の説明を行うことにより、この発明
による法線ベクトルを用いたテクスチャ座標生成方法の
第1実施の形態の説明を兼ねることにする。まず、テス
クチャ座標補正のために行う補正演算に用いる変換式デ
ータを座標補正手段14の変換式記憶手段21に入力す
る(ステップA1)。次いで、ポリゴンの座標データを
座標データ入力手段11により入力し(ステップA2)
座標データ変換手段12には座標データ入力手段11に
より必要に応じてポリゴンの座標データが供給され、適
当な変換によりテクスチャ座標データを生成する(ステ
ップA3)。
Next, the operation of the first embodiment configured as described above will be described with reference to the flowchart of FIG. The description of this operation also serves as the description of the first embodiment of the texture coordinate generation method using the normal vector according to the present invention. First, the conversion formula data used for the correction calculation for the texture coordinate correction is input to the conversion formula storage unit 21 of the coordinate correction unit 14 (step A1). Next, the coordinate data of the polygon is inputted by the coordinate data input means 11 (step A2).
The coordinate data conversion means 12 is supplied with the coordinate data of the polygon as required by the coordinate data input means 11, and generates texture coordinate data by appropriate conversion (step A3).

【0019】次いで、ポリゴンの法線データを法線デー
タ入力手段13により入力し(ステップA4)、座標補
正手段14の補正演算手段22に入力する。補正演算手
段22は、座標データ変換手段12の生成したテクスチ
ャ座標データと、法線データ入力手段13から供給され
た法線データと、変換式記憶手段21から供給された変
換式を用いた補正演算によりテクスチャ座標データの補
正を行い(ステップA5)、補正データ出力手段23に
対して補正済みテクスチャ座標データを出力する。補正
データ出力手段23は、補正済みテクスチャ座標データ
をこの発明の装置外からの要求に応じて補正済みテクス
チャ座標データを出力し(ステップA6)、すべてのポ
リゴンに対してテクスチャ座標の補正を行ったか,否か
の条件判断を行う(ステップA7)。
Next, the normal data of the polygon is inputted by the normal data input means 13 (step A4), and is inputted to the correction calculating means 22 of the coordinate correcting means 14. The correction operation unit 22 performs the correction operation using the texture coordinate data generated by the coordinate data conversion unit 12, the normal data supplied from the normal data input unit 13, and the conversion formula supplied from the conversion formula storage unit 21. To correct the texture coordinate data (step A5), and output the corrected texture coordinate data to the correction data output means 23. The correction data output unit 23 outputs the corrected texture coordinate data in response to a request from outside the apparatus of the present invention (step A6), and determines whether the texture coordinates have been corrected for all polygons. Is determined (step A7).

【0020】この判断の結果、すべてのポリゴンに対し
ての処理を終えていない場合には、ステップA7からス
テップA2の処理に処理を戻す。また、ステップA7に
おいて、すべてのポリゴンに対しての処理を終えると、
この発明の装置の処理が終了する。
If the result of this determination is that all polygons have not been processed, the process returns from step A7 to step A2. When the processing for all polygons is completed in step A7,
The processing of the apparatus of the present invention ends.

【0021】次に具体例を用いてこの第1実施の形態の
動作を従来例と対比しながら説明する。図4は円柱10
0の斜視図であり、この図4の矢印y1で示すように、
y軸の負の方向に円柱100を見下ろした場合を例にと
ってテクスチャ張り付けの模式図として示すと、図5
(この発明の場合),図9(従来例の場合)のようにな
る。図9において、中心軸がy軸と一致する半径rの円
柱100上にテクスチャを張り付ける場合を想定する。
V座標についても同様なので、簡略化のために、テクス
チャ座標はU座標のみについて考察することにする。
Next, the operation of the first embodiment will be described using a concrete example in comparison with a conventional example. FIG.
0 is a perspective view, and as shown by an arrow y1 in FIG.
FIG. 5 shows a schematic diagram of the texture pasting in a case where the cylinder 100 is looked down in the negative direction of the y-axis as an example.
(In the case of the present invention), as shown in FIG. 9 (in the case of the conventional example). In FIG. 9, it is assumed that a texture is pasted on a cylinder 100 having a radius r whose center axis coincides with the y-axis.
Since the same applies to the V coordinate, for simplification, only the U coordinate will be considered as the texture coordinate.

【0022】この図9における点AはZ軸上の点であ
り、点B、点C、点Dはそれぞれ円柱100の中心から
20度ずつ円柱100の周上を回転した点であるとす
る。この場合、たとえば、U座標を一次変換によってu
=x/rとして求めることとし、さらに、法線ベクトル
N=(a,b,c)による変換式をここでは、仮にu1
=×(a+4)/5と定義する(ステップA1)。点
A、点B、点C、点Dでの補正前のU座標はそれぞれ
0,0.232,0.642,0.866となる(ステ
ップA2およびステップA3)。これらの間隔の比率は
1:0.877:0.655となり、円柱の端にいくに
したがって、テクスチャ画像の歪みが大きくなるため、
視点を移動した際にテクスチャ画像の不自然さが目立
ち、テクスチャ座標の再計算が必要になる。
In FIG. 9, point A is a point on the Z-axis, and points B, C, and D are points rotated on the circumference of the cylinder 100 by 20 degrees from the center of the cylinder 100, respectively. In this case, for example, the U coordinate is converted to u
= X / r, and a conversion equation based on a normal vector N = (a, b, c) is assumed to be u1 here.
= × (a + 4) / 5 (step A1). The U coordinates before correction at points A, B, C, and D are 0, 0.232, 0.642, and 0.866, respectively (steps A2 and A3). The ratio of these intervals is 1: 0.877: 0.655, and the distortion of the texture image increases toward the end of the cylinder.
When the viewpoint is moved, the unnaturalness of the texture image becomes conspicuous, and it is necessary to recalculate the texture coordinates.

【0023】これに対して、この第1実施の形態の場合
には、法線ベクトルによるテクスチャ座標データの補正
を行った結果は図5に示すようになる。図5も図9の場
合と同様に、図4に示した円柱100のY軸の負方向に
見下ろした場合の図であり、このように補正を行った結
果により、点A、点B、点C、点Dでの補正後のU1座
標はそれぞれ0,0.296,0.596,0.893
となる(ステップA4およびステップA5)。これらの
間隔の比率は、1.00:1.01:1.00となり、
歪みが補正されている。
On the other hand, in the case of the first embodiment, the result of correcting the texture coordinate data by the normal vector is as shown in FIG. FIG. 5 is also a diagram when looking down in the negative direction of the Y-axis of the cylinder 100 shown in FIG. 4, as in the case of FIG. 9, and the points A, B, and The corrected U1 coordinates at point C and point D are 0, 0.296, 0.596, and 0.893, respectively.
(Step A4 and Step A5). The ratio of these intervals is 1.00: 1.00: 1.00,
The distortion has been corrected.

【0024】この補正結果を要求に応じて出力する(ス
テップA6)。最後に、すべてのポリゴンに対しての処
理を終えたか、否かの条件判断を行い、すべてのポリゴ
ンに対しての処理をする(ステップA7)。この補正結
果により、視点を移動した際に、テクスチャ画像の歪み
を少なくすることができ、テクスチャ座標の再計算の頻
度が減少する。
The result of this correction is output as required (step A6). Finally, a condition judgment is made as to whether or not processing has been completed for all polygons, and processing is performed for all polygons (step A7). With this correction result, the distortion of the texture image can be reduced when the viewpoint is moved, and the frequency of recalculation of the texture coordinates is reduced.

【0025】次に、この発明の法線ベクトルを用いた座
標生成装置の第2実施の形態について図6ないし図8を
参照して説明する。図6は第2実施の形態の構成を示す
ブロック図である。図6において、構成の説明に際し
て、図1に対応する部分には、40番代の符号を付すと
ともに、1桁目は同一符号を付して重複説明を省略す
る。
Next, a second embodiment of a coordinate generating apparatus using a normal vector according to the present invention will be described with reference to FIGS. FIG. 6 is a block diagram showing the configuration of the second embodiment. 6, in description of the configuration, portions corresponding to those in FIG. 1 are denoted by reference numerals in their forties, and the first digit is denoted by the same reference numeral, and redundant description is omitted.

【0026】図6を図1と比較しても明らかなように、
図6では、図1に示す第1実施の形態の構成に新たに法
線データ変換手段44が追加されている。この法線デー
タ変換手段44は、テクスチャ座標データの補正に用い
るポリゴンの法線データを補正処理以前に適当な変換を
施すためのものである。また、座標補正変換手段は符号
45が付されており、この座標補正変換手段45の内部
構成は、図2の場合と同様であり、図2に対応する部分
には、50番代の符号を付し、1桁目は同一符号を付し
て重複説明を省略するが、前記法線データ変換手段44
を追加したことにより、法線データ変換手段44の変換
結果である変換済み法線データのベクトル値を用いるよ
うにしている。その他の構成は前記第1実施の形態と同
様である。
As is clear from the comparison of FIG. 6 with FIG.
6, a normal data conversion unit 44 is newly added to the configuration of the first embodiment shown in FIG. The normal data conversion means 44 is for performing an appropriate conversion of the normal data of the polygon used for correcting the texture coordinate data before the correction processing. Further, the coordinate correction conversion means 45 is denoted by reference numeral 45, and the internal configuration of the coordinate correction conversion means 45 is the same as that of FIG. 2, and the parts corresponding to FIG. In the first digit, the same reference numerals are given and duplicate explanations are omitted.
Is added, the vector value of the converted normal data, which is the conversion result of the normal data conversion means 44, is used. Other configurations are the same as those of the first embodiment.

【0027】次に、この第2実施の形態の動作について
図8のフローチャートに沿って説明する。この動作の説
明によりこの発明による法線ベクトルを用いたテクスチ
ャ座標生成方法の第2実施の形態の説明を兼ねることに
する。まず、テクスチャ座標補正のために行う補正演算
に用いる変換式データを座標補正手段45の変換式記憶
手段51に入力する(ステップB1)。座標データを座
標データ入力手段41により、この発明の装置に入力す
る(ステップB2)。
Next, the operation of the second embodiment will be described with reference to the flowchart of FIG. The description of this operation also serves as the description of the second embodiment of the texture coordinate generation method using the normal vector according to the present invention. First, the conversion formula data used for the correction calculation for the texture coordinate correction is input to the conversion formula storage means 51 of the coordinate correction means 45 (step B1). The coordinate data is input to the apparatus of the present invention by the coordinate data input means 41 (step B2).

【0028】座標データ変換手段42は、座標データ入
力手段41より必要に応じて、座標データが供給を受
け、適当な変換によりテクスチャ座標データを生成する
(ステップB3)。法線データを法線データ入力手段4
3により、この発明の装置に入力する(ステップB
4)。法線データ変換手段44は、法線データ入力手段
43より必要に応じて法線データが供給され、適当な変
換により変換済み法線データを生成する(ステップB
5)。
The coordinate data converting means 42 receives the coordinate data from the coordinate data input means 41 as necessary, and generates texture coordinate data by appropriate conversion (step B3). Normal line data input means 4
3 to input to the apparatus of the present invention (step B)
4). The normal data conversion unit 44 receives the normal data from the normal data input unit 43 as necessary, and generates converted normal data by appropriate conversion (step B).
5).

【0029】補正演算手段52は、座標データ変換手段
42の生成したテクスチャ座標データと、法線データ変
換手段44から供給された変換済み法線データのベクト
ル値と、変換式記憶手段51から供給された変換式を用
いた補正演算により、テクスチャ座標データの補正を行
い、補正データ出力手段53に対して補正済みテクスチ
ャ座標データを出力する(ステップB6)。補正データ
出力手段53は、補正済みテクスチャ座標データをこの
発明の装置外からの要求に応じて補正済みテクスチャ座
標データを出力し(ステップB7)、すべてのポリゴン
に対してテクスチャ座標の補正を行ったか、否かの条件
判断を行う(ステップB8)。
The correction calculating means 52 receives the texture coordinate data generated by the coordinate data converting means 42, the vector value of the converted normal data supplied from the normal data converting means 44, and the conversion formula storing means 51. The correction of the texture coordinate data is performed by the correction operation using the converted equation, and the corrected texture coordinate data is output to the correction data output means 53 (step B6). The correction data output means 53 outputs the corrected texture coordinate data in response to a request from outside the apparatus of the present invention (step B7), and determines whether the texture coordinates have been corrected for all polygons. Is determined (step B8).

【0030】この判断の結果、すべてのポリゴンに対し
ての処理を終えていない場合には、ステップB8の処理
工程からステップB2の処理工程に処理手順を戻し、以
下前記と同様の処理を実行する。また、ステップB8の
処理工程において、すべてのポリゴンに対しての処理を
終了していると、この発明の装置での一連の処理工程が
終了することになる。
If the result of this determination is that processing has not been completed for all polygons, the processing procedure is returned from the processing step of step B8 to the processing step of step B2, and the same processing as described above is executed. . If the processing for all the polygons has been completed in the processing step of step B8, a series of processing steps in the apparatus of the present invention is completed.

【0031】[0031]

【発明の効果】以上のように、この発明によれば、ポリ
ゴンの座標データを所定手段により変換したテクスチャ
座標データをポリゴンの法線データのベクトル値によっ
て三次元図形上の各点の間隔比とテクスチャ画像上に投
影された後の間隔比が近くなる方向に補正するようにし
たので、平面的なテクスチャ画像データを三次元図形上
に張り付けた場合でも、視点の変更に伴うテクスチャ座
標データの再計算頻度を減少させることが可能となる。
これにともない、新たなテクスチャ画像データを要する
視点の変更角が従来のテクスチャ画像貼り付け方法に比
べて大きくなるため、必要とされるテクスチャ画像デー
タの枚数を減少させることができる。
As described above, according to the present invention, the texture coordinate data obtained by converting the coordinate data of the polygon by the predetermined means is determined by the vector ratio of the normal data of the polygon to the interval ratio of each point on the three-dimensional figure. Since the distance ratio after projection on the texture image is corrected so that it becomes closer, even if the planar texture image data is pasted on a three-dimensional figure, the texture coordinate data associated with the change of the viewpoint is re-created. The calculation frequency can be reduced.
Accordingly, the angle of change of the viewpoint requiring new texture image data becomes larger than that of the conventional texture image pasting method, so that the required number of pieces of texture image data can be reduced.

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

【図1】この発明による法線ベクトルを用いたテクスチ
ャ座標生成装置の第1実施の形態の構成を示すブロック
図である。
FIG. 1 is a block diagram showing a configuration of a first embodiment of a texture coordinate generation device using a normal vector according to the present invention.

【図2】図1の法線ベクトルを用いたテクスチャ座標生
成装置における座標補正手段の構成を示すブロック図で
ある。
FIG. 2 is a block diagram illustrating a configuration of a coordinate correction unit in the texture coordinate generation device using the normal vectors of FIG. 1;

【図3】図1の法線ベクトルを用いたテクスチャ座標生
成装置の動作の流れを示すフローチャートである。
FIG. 3 is a flowchart showing an operation flow of the texture coordinate generation device using the normal vector of FIG. 1;

【図4】図2の座標補正手段によりテクスチャ貼り付け
を適用する円柱の斜視図である。
FIG. 4 is a perspective view of a cylinder to which texture pasting is applied by the coordinate correction unit of FIG. 2;

【図5】図4に示す円柱のY軸の負方向に見下ろした場
合のこの発明の法線ベクトルを用いたテクスチャ座標生
成装置を説明するためのテクスチャ貼り付けの模式図で
ある。
FIG. 5 is a schematic diagram of texture pasting for explaining a texture coordinate generating apparatus using a normal vector according to the present invention when looking down in the negative direction of the Y-axis of the cylinder shown in FIG. 4;

【図6】この発明の法線ベクトルを用いたテクスチャ座
標生成装置の第2実施の形態の構成を示すブロック図で
ある。
FIG. 6 is a block diagram illustrating a configuration of a second embodiment of a texture coordinate generation device using normal vectors according to the present invention.

【図7】図6の法線ベクトルを用いたテクスチャ座標生
成装置における座標補正手段の構成を示すブロック図で
ある。
FIG. 7 is a block diagram illustrating a configuration of a coordinate correcting unit in the texture coordinate generation device using the normal vectors of FIG. 6;

【図8】図6の法線ベクトルを用いたテクスチャ座標生
成装置の動作の流れを示すフローチャートである。
8 is a flowchart showing an operation flow of the texture coordinate generation device using the normal vector of FIG.

【図9】図4に示す円柱のY軸の負方向に見下ろした場
合の従来のテクスチャ座標生成装置を説明するためのテ
クスチャ貼り付けの模式図である。
FIG. 9 is a schematic diagram of texture pasting for describing a conventional texture coordinate generation device when looking down in the negative direction of the Y axis of the cylinder shown in FIG. 4;

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

11,41……座標データ入力手段、12,42……座
標データ変換変換手段、13,43……法線データ入力
手段、14,45……座標補正手段、21,51……変
換式記憶手段、22,52……補正演算手段、23,5
3……補正データ出力手段、44……法線データ変換手
段。
11, 41 ... coordinate data input means, 12, 42 ... coordinate data conversion and conversion means, 13, 43 ... normal data input means, 14, 45 ... coordinate correction means, 21, 51 ... conversion formula storage means , 22, 52 ... Correction calculation means, 23, 5
3 ... Correction data output means, 44 ... Normal data conversion means.

─────────────────────────────────────────────────────
────────────────────────────────────────────────── ───

【手続補正書】[Procedure amendment]

【提出日】平成11年2月4日[Submission date] February 4, 1999

【手続補正1】[Procedure amendment 1]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】請求項8[Correction target item name] Claim 8

【補正方法】変更[Correction method] Change

【補正内容】[Correction contents]

【手続補正2】[Procedure amendment 2]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】請求項10[Correction target item name] Claim 10

【補正方法】変更[Correction method] Change

【補正内容】[Correction contents]

【手続補正3】[Procedure amendment 3]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0005[Correction target item name] 0005

【補正方法】変更[Correction method] Change

【補正内容】[Correction contents]

【0005】これらのテクスチャ画像は、一般に写真な
どの平面的なデータから生成されており、テクスチャの
貼り付けは図形に対してテクスチャ画像を投影したよう
になされる。このように、平面的なテクスチャ画像を用
いた場合には、図形を見渡す視点を変更した際に、図形
の側面のテクスチャ画像が歪むという課題がある。これ
を解決するための方法としては、図形を見渡す視点を変
更した個々の場合に応じたテクスチャ画像を多数用意す
る方法、三次元ディジタイザを用いて三次元テクスチャ
画像を用意する方法、または、特開平08−24949
1号公報記載されているように、テクスチャ画像に厚み
を持たせる方法などが提案されている。
[0005] These texture images are generally generated from planar data such as photographs, and the pasting of the texture is performed as if the texture image was projected onto a figure. As described above, when a planar texture image is used, there is a problem that the texture image on the side surface of the graphic is distorted when the viewpoint overlooking the graphic is changed. As a method for solving this, a method of preparing a large number of texture images corresponding to individual cases in which the viewpoint overlooking the figure is changed, a method of preparing a three-dimensional texture image using a three-dimensional digitizer, or a method of 08-24949
As described in Japanese Patent Laid-Open No. 1 (Kokai) No. 1, a method of giving a thickness to a texture image has been proposed.

【手続補正4】[Procedure amendment 4]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0007[Correction target item name] 0007

【補正方法】変更[Correction method] Change

【補正内容】[Correction contents]

【0007】この発明は、上記従来の課題を解決するた
めになされたもので、平面的なテクスチャ画像を三次元
図形上に貼り付けた場合でも、視点の変更に伴うテクス
チャ座標データの再計算頻度を減少でき、かつ三次元グ
ラフィックシステムにおけるテクスチャデータ格納部の
容量を軽減でき、しかも必要とされるテクスチャ画像デ
ータの枚数を減少することができる法線ベクトルを用い
たテクスチャ座標生成方法および装置を提供することを
目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned conventional problems. Even when a planar texture image is pasted on a three-dimensional figure, the frequency of recalculation of texture coordinate data accompanying a change in viewpoint is changed. And a texture coordinate generation method using a normal vector, which can reduce the number of texture image data required in a three-dimensional graphic system, and can reduce the number of required texture image data. The purpose is to do.

【手続補正5】[Procedure amendment 5]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0021[Correction target item name] 0021

【補正方法】変更[Correction method] Change

【補正内容】[Correction contents]

【0021】次に、具体例を用いてこの第1実施の形態
の動作を従来例と対比しながら説明する。図4は円柱1
00の斜視図であり、この図4の太線の矢印で示すよう
に、y軸の負の方向に円柱100を見下ろした場合を例
にとってテクスチャ貼り付けの模式図として示すと、図
5(この発明の場合)、図9(従来例の場合)のように
なる。図9において、中心軸がy軸と一致する半径rの
円中100上にテクスチャを貼り付ける場合を想定す
る。V座標についても同様なので、簡略化のために、テ
クスチャ座標はU座標のみについて考察することにす
る。
Next, the operation of the first embodiment will be described using a concrete example in comparison with a conventional example. Figure 4 shows the cylinder 1
FIG. 5 is a perspective view of texture sticking, as shown by a thick line arrow in FIG. 4, taking a case where the cylinder 100 is looked down in the negative direction of the y-axis as an example. ) And FIG. 9 (in the case of the conventional example). In FIG. 9, it is assumed that a texture is pasted on a circle 100 having a radius r whose center axis coincides with the y-axis. Since the same applies to the V coordinate, for simplification, only the U coordinate will be considered as the texture coordinate.

【手続補正6】[Procedure amendment 6]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0022[Correction target item name] 0022

【補正方法】変更[Correction method] Change

【補正内容】[Correction contents]

【0022】この図9における点AはZ軸上の点であ
り、点B、点C、点Dはそれぞれ円注100の中心から
20度ずつ円柱100の周上を回転した点であるとす
る。この場合、たとえば、U座標を一次変換によってu
=x/rとして求めることとし、さらに、法線ベクトル
N=(a,b,c)による変換式をここでは、仮にu1
=u×(a+4)/5と定義する(ステップA1)。点
A、点B、点C、点Dでの補正前のU座標はそれぞれ
0,0.232,0.642,0.866となる(ステ
ップA2およびステップA3)。これらの間隔の比率
は、1:0.877:0.655となり、円柱の端に行
くにしたがって、テクスチャ画像の歪みが大きくなるた
め、視点を移動した際にテクスチャ画像の不自然さが目
立ち、テクスチャ座標の再計算が必要になる。
In FIG. 9, point A is a point on the Z axis, and points B, C, and D are points that are rotated on the circumference of the cylinder 100 by 20 degrees from the center of the circle note 100, respectively. . In this case, for example, the U coordinate is converted to u
= X / r, and a conversion equation based on a normal vector N = (a, b, c) is assumed to be u1 here.
= U × (a + 4) / 5 (step A1). The U coordinates before correction at points A, B, C, and D are 0, 0.232, 0.642, and 0.866, respectively (steps A2 and A3). The ratio of these intervals is 1: 0.877: 0.655, and the distortion of the texture image increases toward the end of the cylinder, so that the unnaturalness of the texture image is noticeable when the viewpoint is moved, Recalculation of texture coordinates is required.

【手続補正7】[Procedure amendment 7]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0025[Correction target item name] 0025

【補正方法】変更[Correction method] Change

【補正内容】[Correction contents]

【0025】次に、この発明の法線ベクトルを用いたテ
クスチャ座標生成装置の第2実施の形態について図6な
いし図8を参照して説明する。図6は第2実施の形態の
構成を示すブロック図である。図6において、構成の説
明に際して、図1に対応する部分には、40代の符号を
付すとともに、1桁目は同一符号を付して重複説明を避
ける。
Next, a second embodiment of the texture coordinate generating apparatus using normal vectors according to the present invention will be described with reference to FIGS. FIG. 6 is a block diagram showing the configuration of the second embodiment. 6, in the description of the configuration, portions corresponding to those in FIG. 1 are denoted by reference numerals in their forties, and the first digit is denoted by the same reference numeral to avoid redundant description.

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 ポリゴンの座標データをテクスチャ座標
データに変換し、 前記テクスチャ座標データをポリゴンの法線データのベ
クトル値によって三次元図形上の各点の間隔比とテクス
チャ画像上に投影された後の間隔比が近くなる方向に補
正する、 ことを特徴とする法線ベクトルを用いたテクスチャ座標
生成方法。
1. After converting coordinate data of a polygon into texture coordinate data, the texture coordinate data is projected on a texture image by an interval ratio of each point on a three-dimensional figure by a vector value of normal data of the polygon. A texture coordinate generation method using a normal vector, wherein the texture ratio is corrected in a direction in which the interval ratio of the texture coordinates becomes closer.
【請求項2】 前記テクスチャ座標データは、一次変換
によりポリゴンの座標データから変換されることを特徴
とする請求項1記載の法線ベクトルを用いたテクスチャ
座標生成方法。
2. The texture coordinate generation method using a normal vector according to claim 1, wherein the texture coordinate data is converted from coordinate data of a polygon by a primary conversion.
【請求項3】 前記テクスチャ座標データは、前記テク
スチャ座標データに対して法線データのベクトルを用い
て補正変換を施す変換式と、テクスチャ座標データと、
ポリゴンの法線データのベクトル値とにより前記三次元
図形上の各点の間隔比とテクスチャ画像上に投影された
後の間隔比が近くなる方向に補正されることを特徴とす
る請求項1記載の法線ベクトルを用いたテクスチャ座標
生成方法。
3. The texture coordinate data includes: a conversion formula for performing correction conversion on the texture coordinate data using a vector of normal data; texture coordinate data;
2. The method according to claim 1, wherein an interval ratio between each point on the three-dimensional figure and an interval ratio after being projected on a texture image are corrected by a vector value of normal data of a polygon. Texture coordinate generation method using the normal vector of.
【請求項4】 前記テクスチャ座標データは、ポリゴン
の変換済み法線データのベクトル値によって三次元図形
上の各点の間隔比とテクスチャ画像上に投影された後の
間隔比が近くなる方向に補正されることを特徴とする請
求項1記載の法線ベクトルを用いたテクスチャ座標生成
方法。
4. The texture coordinate data is corrected in such a direction that the interval ratio between points on a three-dimensional figure and the interval ratio after being projected on a texture image become closer by a vector value of converted normal data of a polygon. 2. A texture coordinate generation method using a normal vector according to claim 1, wherein:
【請求項5】 前記テクスチャ座標データは、前記テク
スチャ座標データに対して法線データのベクトル値を用
いて補正変換を施す変換式と、テクスチャ座標データ
と、ポリゴンの変換済み法線データのベクトル値とによ
り前記三次元図形上の各点の間隔比とテクスチャ画像上
に投影された後の間隔比が近くなる方向に補正されるこ
とを特徴とする請求項1記載の法線ベクトルを用いたテ
クスチャ座標生成方法。
5. The texture coordinate data includes a conversion formula for performing correction conversion on the texture coordinate data by using a vector value of normal data, a texture coordinate data, and a vector value of converted normal data of a polygon. 2. A texture using a normal vector according to claim 1, wherein the correction is performed in such a manner that the interval ratio between the points on the three-dimensional figure and the interval ratio after being projected on the texture image become closer. Coordinate generation method.
【請求項6】 座標データ入力手段により入力されたポ
リゴンの座標データをテクスチャ座標データに変換する
座標データ変換手段と、 ポリゴンの法線データを入力する法線データ入力手段
と、 前記テクスチャ座標データを前記法線データ入力手段に
より入力された前記ポリゴンの法線データのベクトル値
によって三次元図形上の各点の間隔比とテクスチャ画像
上に投影された後の間隔比が近くなる方向に補正する座
標補正手段と、 を備えることを特徴とする法線ベクトルを用いたテクス
チャ座標生成装置。
6. A coordinate data converting means for converting coordinate data of a polygon inputted by a coordinate data input means into texture coordinate data; a normal data input means for inputting normal data of a polygon; Coordinates to be corrected in a direction in which the interval ratio of each point on the three-dimensional figure and the interval ratio after being projected on the texture image become closer according to the vector value of the normal data of the polygon input by the normal data input means. A texture coordinate generation device using a normal vector, comprising: a correction unit.
【請求項7】 前記座標データ変換手段は、一次変換に
より前記座標データをテクスチャ座標データに変換する
ことを特徴とする請求項6記載の法線ベクトルを用いた
テクスチャ座標生成装置。
7. The texture coordinate generation device using normal vectors according to claim 6, wherein said coordinate data conversion means converts said coordinate data into texture coordinate data by a primary conversion.
【請求項8】 前記座標補正手段は、前記テクスチャ座
標データに対して法線データのベクトル値を用いて補正
変換を施すための変換式を記憶する変換式記憶手段と、
前記記変換式と、前記テクスチャ座標データと、前記法
線データのベクトル値とを入力して前記変換しにより前
記テクスチャ座標データを前記法線データのベクトル値
によって補正する補正演算手段と、前記補正演算手段に
よ利補正されたてテクスチャ座標データを出力する補正
データ出力手段とを備えることを特徴とする請求項6記
載の法線ベクトルを用いたテクスチャ座標生成装置。
8. A conversion formula storage means for storing a conversion formula for performing correction conversion on the texture coordinate data using a vector value of normal data,
Correction calculating means for inputting the conversion formula, the texture coordinate data, and the vector value of the normal data and performing the conversion to correct the texture coordinate data by the vector value of the normal data; and 7. The texture coordinate generating apparatus using a normal vector according to claim 6, further comprising: correction data output means for outputting texture coordinate data which has been corrected by a calculation means.
【請求項9】 前記座標補正手段は、ポリゴンの変換済
み法線データのベクトル値によって三次元図形上の各点
の間隔比とテクスチャ画像上に投影された後の間隔比が
近くなる方向に前記テクスチャ座標データを補正するこ
とを特徴とする請求項6記載の法線ベクトルを用いたテ
クスチャ座標生成装置。
9. The coordinate correction means according to claim 6, wherein the vector ratio of the converted normal data of the polygon makes the interval ratio of each point on the three-dimensional figure closer to the interval ratio after being projected on the texture image. The texture coordinate generating apparatus using a normal vector according to claim 6, wherein the texture coordinate data is corrected.
【請求項10】 前記座表補正手段は、前記テクスチャ
座標データに対して法線データのベクトル値を用いて補
正変換を施すための変換式を記憶する変換式記憶手段
と、前記変換式と、前記テクスチャ座標データと、変換
済みの法線データのベクトル値とを入力して前記変換に
より前記テクスチャ座標データを前記法線データのベク
トル値によって補正する補正演算手段と、前記補正演算
手段により補正されたてテクスチャ座標データを出力す
る補正データ出力手段とを備えることを特徴とする請求
項6記載の法線ベクトルを用いたテクスチャ座標生成装
置。
10. A conversion formula storage means for storing a conversion formula for performing correction conversion on the texture coordinate data using a vector value of normal data, the conversion formula storage device, A correction operation unit that inputs the texture coordinate data and the vector value of the converted normal data, and corrects the texture coordinate data by the conversion by the vector value of the normal data; 7. A texture coordinate generating apparatus using a normal vector according to claim 6, further comprising correction data output means for outputting vertical texture coordinate data.
JP2031698A 1998-01-16 1998-01-16 Method and device for generating texture coordinate by using normal vector Pending JPH11203498A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2031698A JPH11203498A (en) 1998-01-16 1998-01-16 Method and device for generating texture coordinate by using normal vector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2031698A JPH11203498A (en) 1998-01-16 1998-01-16 Method and device for generating texture coordinate by using normal vector

Publications (1)

Publication Number Publication Date
JPH11203498A true JPH11203498A (en) 1999-07-30

Family

ID=12023737

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2031698A Pending JPH11203498A (en) 1998-01-16 1998-01-16 Method and device for generating texture coordinate by using normal vector

Country Status (1)

Country Link
JP (1) JPH11203498A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002021453A1 (en) * 2000-09-08 2002-03-14 Center For Advanced Science And Technology Incubation, Ltd. Coloring method and recorded medium for three-dimensional model
WO2002023484A1 (en) * 2000-09-13 2002-03-21 Center For Advanced Science And Technology Incubation, Ltd. Texture mapping method and rendering device
WO2006019022A1 (en) * 2004-08-20 2006-02-23 Shima Seiki Manufacturing, Ltd. Mapping device, mapping method and its program
JP2006252424A (en) * 2005-03-14 2006-09-21 Namco Bandai Games Inc Program, information storage medium and image generation system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002021453A1 (en) * 2000-09-08 2002-03-14 Center For Advanced Science And Technology Incubation, Ltd. Coloring method and recorded medium for three-dimensional model
WO2002023484A1 (en) * 2000-09-13 2002-03-21 Center For Advanced Science And Technology Incubation, Ltd. Texture mapping method and rendering device
JPWO2002023484A1 (en) * 2000-09-13 2004-04-08 株式会社先端科学技術インキュベーションセンター Texture mapping method and rendering device
JP4714919B2 (en) * 2000-09-13 2011-07-06 株式会社東京大学Tlo Rendering device, recording medium, and program
WO2006019022A1 (en) * 2004-08-20 2006-02-23 Shima Seiki Manufacturing, Ltd. Mapping device, mapping method and its program
US7800626B2 (en) 2004-08-20 2010-09-21 Shima Seiki Manufacturing, Ltd. Mapping device, mapping method and program thereof
JP2006252424A (en) * 2005-03-14 2006-09-21 Namco Bandai Games Inc Program, information storage medium and image generation system
JP4641831B2 (en) * 2005-03-14 2011-03-02 株式会社バンダイナムコゲームス Program, information storage medium, and image generation system

Similar Documents

Publication Publication Date Title
JP2790815B2 (en) Image data compression method
JP5558973B2 (en) Image correction apparatus, correction image generation method, correction table generation apparatus, correction table generation method, correction table generation program, and correction image generation program
US4975976A (en) Image transformation method and device
JP3466661B2 (en) Image processing apparatus and method
JPH09330423A (en) Three-dimensional shape data transforming device
JP2007325043A (en) Image display apparatus and image display program
JP2006350852A (en) Image generation system
JPH11203498A (en) Method and device for generating texture coordinate by using normal vector
JP2010224691A (en) Image conversion device
JP2747706B2 (en) Picture film distortion correction method
JPH07282292A (en) Texture mapping method and image processor
JP2006215766A (en) Image display device, image display method and image display program
JPH0877389A (en) Three-dimensional shape model generation device
JP3799511B2 (en) Perspective 3D NURB curve automatic restoration method and apparatus
CN112991164B (en) Model-based panoramic bending image distortion correction method
JP2002056407A (en) Image generation system
JPH1166113A (en) System and method for three-dimensional data generation
JP3312560B2 (en) Texture mapping device
JP2011227864A (en) Viewpoint converting device, method, and program for image
JP2000211044A (en) Label, container, label editing system, and recording medium
JP2830339B2 (en) Image conversion method
JPH04165473A (en) Deformation device for 2-dimensional picture
JPH0816822A (en) Three-dimensional moving picture generation method
JP2998689B2 (en) How to map image data
JP4187078B2 (en) Image deformation method and apparatus