JP2003337951A - Three-dimensional polygon surface pattern processing system - Google Patents

Three-dimensional polygon surface pattern processing system

Info

Publication number
JP2003337951A
JP2003337951A JP2002144464A JP2002144464A JP2003337951A JP 2003337951 A JP2003337951 A JP 2003337951A JP 2002144464 A JP2002144464 A JP 2002144464A JP 2002144464 A JP2002144464 A JP 2002144464A JP 2003337951 A JP2003337951 A JP 2003337951A
Authority
JP
Japan
Prior art keywords
polygon
line
pattern
weight
dimensional
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.)
Granted
Application number
JP2002144464A
Other languages
Japanese (ja)
Other versions
JP3589657B2 (en
Inventor
Kazunori Yamamoto
和徳 山本
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.)
Taito Corp
Original Assignee
Taito 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 Taito Corp filed Critical Taito Corp
Priority to JP2002144464A priority Critical patent/JP3589657B2/en
Publication of JP2003337951A publication Critical patent/JP2003337951A/en
Application granted granted Critical
Publication of JP3589657B2 publication Critical patent/JP3589657B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a three-dimensional polygon surface pattern processing system which can reproduce a pattern conforming with deformation of a polygon without increasing the size of data even when the polygon deforms as a result of weighting of line points forming the pattern on the polygon surface. <P>SOLUTION: When a three-dimensional polygon model 1 is projected on screen coordinates and a pattern is plotted on the surface of this three- dimensional polygon model 1, lines points of the pattern drawn on the three- dimensional polygon surface are extracted. Weight representing the position relations of three vertexes of the polygon with the screen coordinates of the respective extracted line points is computed. Weighting data on the line points including the computed weight are stored. When the three-dimensional polygon is reproduced, the three-dimensional polygon model is projected and weighting data corresponding to the surface of the model are read out of a memory means. The remaining weight is computed from the read data and screen coordinates of line points are found from the three vertexes of the polygon model and the weight representing their position relations to plot a pattern. <P>COPYRIGHT: (C)2004,JPO

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、3次元キャラクタ
の表面に描かれる模様を、データサイズを大きくするこ
となく容易に再現できるようにする3次元ポリゴン表面
模様処理方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a three-dimensional polygon surface pattern processing method that enables a pattern drawn on the surface of a three-dimensional character to be easily reproduced without increasing the data size.

【0002】[0002]

【従来の技術】従来のポリゴン表面のラインを構成する
ライン点は、(X,Y,Z)と云うような3次元座標で
表わされている。そのため、土台となるポリゴンモデル
の形状が変形した場合、その変形したポリゴン上にある
ライン点を正確にポリゴンの表面上に載るように制御す
るのは困難であった。例えば関節部分など異なる座標系
に跨がって変形するポリゴンの場合、その上にあるライ
ン点を制御するとき、片方の座標系だけでライン点を制
御するとポリゴンの表面からライン点がずれてしまうか
らである。
2. Description of the Related Art Line points forming a conventional polygon surface line are represented by three-dimensional coordinates such as (X, Y, Z). Therefore, when the shape of the base polygon model is deformed, it is difficult to control so that the line points on the deformed polygon are accurately placed on the surface of the polygon. For example, in the case of a polygon that is deformed across different coordinate systems such as joints, when controlling the line point on it, if the line point is controlled by only one coordinate system, the line point will deviate from the surface of the polygon. Because.

【0003】[0003]

【発明が解決しようとする課題】また、ライン点を3次
元座標で表示する場合、十分な精度を維持するためには
32bit浮動小数点で表すことが必要である。そのた
め、データサイズが大きくなるという欠点があった。本
発明の目的は、ポリゴン表面上の模様を形成するライン
点を重み付けすることによりポリゴンが変形した場合で
もデータサイズを大きくすることなく変形に合わせた模
様を再現することができる3次元ポリゴン表面模様処理
方式を提供することにある。
When displaying line points in three-dimensional coordinates, it is necessary to represent them in 32-bit floating point in order to maintain sufficient accuracy. Therefore, there is a drawback that the data size becomes large. It is an object of the present invention to weight a line point forming a pattern on the surface of a polygon so that even if the polygon is deformed, the pattern adapted to the deformation can be reproduced without increasing the data size. To provide a processing method.

【0004】[0004]

【課題を解決するための手段】前記目的を達成するため
に本発明による3次元ポリゴン表面模様処理方式は、3
次元ポリゴン表面に描かれる模様のデータを作成する3
次元ポリゴン表面模様処理方式において、3次元ポリゴ
ンモデルを投影する投影手段と、前記投影された3次元
ポリゴンモデルの表面に模様書き込みが行われた場合、
前記3次元ポリゴン表面に描かれる模様の元となるライ
ンを構成するライン点を抽出するライン点抽出手段と、
前記抽出されたライン点のスクリーン座標についてポリ
ゴンの3頂点との位置関係を表す重みを演算する重み演
算手段と、前記演算された重みを含む各ライン点の重み
付けデータを記憶するデータ蓄積実行部とを備えてい
る。また、本発明は3次元ポリゴン表面に描かれる模様
を再現する3次元ポリゴン表面模様処理方式において、
3次元ポリゴンモデルを投影する投影手段と、重み付け
データを記憶するメモリ手段と、投影された3次元ポリ
ゴンモデルの表面に対応する重み付けデータを前記メモ
リ手段から読み出す読出手段と、前記読み出された重み
付けデータから残りの重みを演算する重み演算手段と、
ポリゴンモデルの3頂点と、その位置関係を表す重みか
らライン点のスクリーン座標を求めるライン位置判定手
段と、前記スクリーン座標に基づき模様を描画する描画
手段とを備えている。本発明における記憶された前記ラ
イン点の重み付けデータは、ライン点を内包するポリゴ
ン番号,第1重み,第2重みであり、ライン点を(a,
b),内包するポリゴンの3点を(x1 ,y1),(x
2 ,y2),(x3 ,y3)とすると、以下の式により重み
を算出することができる。 a=w11 +w22 +w33 ・・・(1) b=w11 +w22 +w33 ・・・(2) w1 +w2 +w3 =1.0 ・・・(3)
In order to achieve the above-mentioned object, the three-dimensional polygon surface pattern processing method according to the present invention uses three methods.
Creating the data of the pattern drawn on the surface of the three-dimensional polygon 3
In the three-dimensional polygon surface pattern processing method, when projection means for projecting a three-dimensional polygon model and pattern writing on the surface of the projected three-dimensional polygon model are performed,
Line point extracting means for extracting line points forming a line that is a basis of a pattern drawn on the surface of the three-dimensional polygon;
A weight calculation means for calculating a weight representing a positional relationship between the screen coordinates of the extracted line point and the three vertices of the polygon; and a data accumulation executing section for storing weighting data of each line point including the calculated weight. Is equipped with. Further, the present invention provides a three-dimensional polygon surface pattern processing method for reproducing a pattern drawn on a three-dimensional polygon surface,
Projecting means for projecting the three-dimensional polygon model, memory means for storing weighting data, reading means for reading out weighting data corresponding to the surface of the projected three-dimensional polygon model from the memory means, and the read weighting. Weight calculation means for calculating the remaining weight from the data,
It is provided with three vertexes of the polygon model, line position determination means for obtaining the screen coordinates of the line points from the weights representing the positional relationship, and drawing means for drawing a pattern based on the screen coordinates. The stored weighting data of the line points in the present invention are the polygon number including the line point, the first weight, and the second weight, and the line point is represented by (a,
b), the three points of the included polygon are (x 1 , y 1 ), (x
2 , y 2 ), (x 3 , y 3 ), the weight can be calculated by the following equation. a = w 1 x 1 + w 2 x 2 + w 3 x 3 (1) b = w 1 y 1 + w 2 y 2 + w 3 y 3 (2) w 1 + w 2 + w 3 = 1.0・ (3)

【0005】[0005]

【作用】上記構成によれば、3次元形状のポリゴン(多
面体)の表面に点を置き、その点を結ぶラインでポリゴ
ンの表面に簡単に模様を描くことができる。模様ライン
を構成するライン点は(X,Y,Z)といった3次元座
標ではなくポリゴン上の位置関係で表す“重み”で構成
される。ライン点を構成する3つの重みデータは合計す
ると1.0となり、重みデータは全て0.0〜1.0の
範囲に収まるので、32bit浮動小数点ではなく16
bit固定小数点でも十分な精度を維持できデータサイ
ズを小さくすることができる。さらに、合計が1.0で
あるので2つの値が判れば最後の1つは計算して求める
ことができる。
According to the above construction, points can be placed on the surface of a three-dimensional polygon (polyhedron), and a pattern can be easily drawn on the surface of the polygon with a line connecting the points. The line points that make up the pattern line are not made up of three-dimensional coordinates such as (X, Y, Z), but are made up of "weights" expressed by the positional relationship on the polygon. The sum of the three weight data forming the line points is 1.0, and all the weight data is within the range of 0.0 to 1.0.
Even with a bit fixed point, sufficient accuracy can be maintained and the data size can be reduced. Further, since the total is 1.0, if the two values are known, the last one can be calculated and obtained.

【0006】[0006]

【発明の実施の形態】以下、図面を参照して本発明の実
施の形態を詳しく説明する。図1は本発明による3次元
ポリゴン表面模様処理方式を適用したポリゴンモデルの
外形例を示す図である。ポリゴンモデルが画面上に表示
され、(a)に示すような模様が描かれたとする。この
ときの各面のデータは重み付けデータとしてRAM(図
2参照)に格納される。例えば、ゲーム進行中に形状の
ゆがんだポリゴンモデルを再現する場合、ポリゴンモデ
ル面の模様を形成する各点の重み付けデータはRAMよ
り読み出され演算され、そのライン点位置が決定する。
そして、これらライン点を繋ぐ処理をすることにより、
ポリゴンモデルを(b)に示すように模様部分も変形さ
せて再現することができる。
BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. FIG. 1 is a diagram showing an example of the outer shape of a polygon model to which the three-dimensional polygon surface pattern processing method according to the present invention is applied. It is assumed that the polygon model is displayed on the screen and the pattern as shown in (a) is drawn. The data of each surface at this time is stored in the RAM (see FIG. 2) as weighting data. For example, when a polygonal model having a distorted shape is reproduced during the game, the weighting data of each point forming the pattern on the polygonal model surface is read from the RAM and calculated to determine the line point position.
And by connecting these line points,
The polygon model can be reproduced by deforming the pattern portion as shown in (b).

【0007】図2は、本発明による3次元ポリゴン表面
模様処理方式を適用した画像処理部の実施の形態を示す
ブロック図である。この実施の形態は、ゲーム機の画像
処理部分を示すもので、本発明に直接関係する回路のみ
を記載してある。操作部15を操作することによりゲー
ム処理部12がゲーム全体の制御を行い、ゲームを進行
させることができる。ROM16からゲームプログラム
を読み出し実行することによりゲームが開始し、ゲーム
メニュー選択画面が画像表示部19に表示されるととも
にバックグランド音がサウンド処理部20を介してスピ
ーカ21より出力される。
FIG. 2 is a block diagram showing an embodiment of an image processing unit to which the three-dimensional polygon surface pattern processing method according to the present invention is applied. This embodiment shows an image processing portion of a game machine, and only circuits directly related to the present invention are described. By operating the operation unit 15, the game processing unit 12 can control the entire game and progress the game. The game is started by reading out and executing the game program from the ROM 16, the game menu selection screen is displayed on the image display unit 19, and the background sound is output from the speaker 21 via the sound processing unit 20.

【0008】制御部11はゲーム処理部12,ジオメト
リ処理部13およびレンダリング部14より構成されて
いる。ジオメトリ処理部13は、ポリゴンの3次元座標
データを高速に処理する制御部で、ゲーム処理部12か
ら送られてくるポリゴンの座標データにモデルの移動,
変形,回転等に対する処理を行い、クリッピング,視野
変換等の処理を行う。レンダリング部14は、ポリゴン
モデルのレンダリングを高速に処理する制御部で、ゲー
ム処理部12およびジオメトリ処理部13から送られて
くるポリゴンデータに対してレンダリング処理を行い、
陰面処理およびシェーディング処理等を行う。レンダリ
ング部14で処理されたモデルのデータは、1画面毎に
画像制御部18中のグラフィックメモリに格納され、こ
のデータは図示しないD/Aコンバータで映像信号に変
換され、画像表示部19に表示される。
The control unit 11 comprises a game processing unit 12, a geometry processing unit 13 and a rendering unit 14. The geometry processing unit 13 is a control unit that processes the three-dimensional coordinate data of the polygon at high speed, and moves the model to the coordinate data of the polygon sent from the game processing unit 12.
Processing such as deformation and rotation is performed, and processing such as clipping and visual field conversion is performed. The rendering unit 14 is a control unit that processes polygon model rendering at high speed, and performs rendering processing on polygon data sent from the game processing unit 12 and the geometry processing unit 13.
Hidden surface processing and shading processing are performed. The model data processed by the rendering unit 14 is stored in a graphic memory in the image control unit 18 for each screen, and this data is converted into a video signal by a D / A converter (not shown) and displayed on the image display unit 19. To be done.

【0009】レンダリング部14は、レンダリング処理
においてポリゴンモデル表面の模様を描くときの制御、
および描かれたデータに基づきポリゴンモデルを再現す
る制御機能を備えている。すなわち、ポリゴンモデルに
模様を描き、模様を構成するライン点の重み付けデータ
を保存するまでの制御のためにポリゴンモデル投影部1
4a,ライン書込指示部14b,ライン抽出部14c,
ライン点重み演算部14dおよびデータ蓄積実行部14
eを備えている。また、重み付けデータを読み出し、投
影されたポリゴンモデルを再現するまでの制御のために
ポリゴンモデル投影部14a,重み付けデータ読出演算
部14f,ライン点位置判定部14gおよび描画部14
hを備えている。
The rendering unit 14 controls the drawing of the surface of the polygon model in the rendering process.
It also has a control function for reproducing the polygon model based on the drawn data. That is, the polygon model projection unit 1 is used for control until a pattern is drawn on the polygon model and the weighting data of the line points forming the pattern are stored.
4a, a line writing instruction unit 14b, a line extraction unit 14c,
Line point weight calculation unit 14d and data accumulation execution unit 14
e. Further, the polygon model projection unit 14a, the weighting data read calculation unit 14f, the line point position determination unit 14g, and the drawing unit 14 are used for the control of reading the weighting data and reproducing the projected polygon model.
equipped with h.

【0010】ポリゴンモデル投影部14aは、ポリゴン
モデルを作成する場合、または再生する場合にそのポリ
ゴンモデルデータをRAM17より読み出し、ポリゴン
モデルを生成してスクリーン(画面)に投影する。ライ
ン書込指示部14bは、ポリゴンモデル作成時、ポリゴ
ンモデル表面に操作部15を用いて模様(ライン)を書
き込むように指示する。ライン点抽出部14cは、例え
ば図3(a)に示すようにポリゴンモデル表面26に模
様(ライン)25を書き、確定操作をした場合、その模
様(ライン)を構成する各ライン点を抽出する。図3
(b)に模様25の抽出点25a,25b・・・25n
が示されている。
The polygon model projection unit 14a reads the polygon model data from the RAM 17 when creating or reproducing the polygon model, generates the polygon model, and projects it on the screen. The line writing instruction unit 14b instructs the operation unit 15 to write a pattern (line) on the surface of the polygon model when the polygon model is created. The line point extraction unit 14c, for example, writes a pattern (line) 25 on the polygon model surface 26 as shown in FIG. 3A, and when a confirmation operation is performed, extracts each line point forming the pattern (line). . Figure 3
(B) Extraction points 25a, 25b ... 25n of the pattern 25
It is shown.

【0011】ライン点重み演算部14dは、求めたライ
ン点を内包するポリゴンとそのポリゴンの3頂点との位
置関係を表す重みを求める演算を行う。すなわち図4に
示すように求めたライン点(a,b)と、このライン点
を内包するポリゴンの3点(x1 ,y1),(x2
2),(x3 ,y3)を(1) (2) および(3) 式に代入し、
方程式を解いて重みw1 ,w2 ,w3 を求める。 a=w11 +w22 +w33 ・・・(1) b=w11 +w22 +w33 ・・・(2) w1 +w2 +w3 =1.0 ・・・(3)
The line point weight calculation unit 14d performs a calculation for obtaining a weight representing the positional relationship between the polygon containing the obtained line point and the three vertices of the polygon. That is, the line point (a, b) obtained as shown in FIG. 4 and the three points (x 1 , y 1 ), (x 2 ,
Substituting y 2 ), (x 3 , y 3 ) into equations (1) (2) and (3),
The equations are solved to obtain the weights w 1 , w 2 and w 3 . a = w 1 x 1 + w 2 x 2 + w 3 x 3 (1) b = w 1 y 1 + w 2 y 2 + w 3 y 3 (2) w 1 + w 2 + w 3 = 1.0・ (3)

【0012】ポリゴンの中央付近と隅付近では同じよう
な間隔でライン点を抽出しているが、抽出した各ライン
点の内、冗長なライン点は上記重み点を算出した後に削
除される。隣合うライン点の重みの差の絶対値の和を算
出し、ある値(しきい値,例えば0.5)より小さい場
合は冗長点と判断され、間引きされる。図3(c)に冗
長点w' の間引き方法を示してある。ライン上の各点を
w,w',w" とすると、(4) 式の左辺の演算を行う。 |w1 −w1'|+|w2 −w2'|+|w3 −w3'|<0.5・・・(4) 演算の結果、(4) 式の不等式を満たす場合、ライン点
w' の間引きが行われる。満たさない場合は間引きは行
われない。w" についても同様に(4) 式の演算が行われ
る。なお、隣のポリゴンに移ったときの最初のライン点
はかならず残している。入力時は多めにライン点を抽出
し、重み演算の後に冗長なライン点を間引くようにして
いる。
Line points are extracted at similar intervals near the center and corners of the polygon, but redundant line points among the extracted line points are deleted after the weight points are calculated. The sum of the absolute values of the weight differences between adjacent line points is calculated, and if the sum is smaller than a certain value (threshold value, for example, 0.5), it is determined as a redundant point and thinned out. FIG. 3C shows a thinning method for the redundant point w '. 'If, and w ", (4) expression of performing left of the operation. | W 1 -w 1' | each point on the line w, w + | w 2 -w 2 '| + | w 3 -w 3 '| <0.5 ... As a result of the operation (4), if the inequality of the expression (4) is satisfied, the line points w'are thinned out. If they are not satisfied, the thinning out is not performed. About w " Similarly, equation (4) is calculated. The first line point when moving to the next polygon is always left. A large number of line points are extracted at the time of input, and redundant line points are thinned out after the weight calculation.

【0013】データ蓄積実行部14eは算出された重み
1 ,w2 ,w3 のうち、重みw1,w2 と、このライ
ン点を内包するポリゴン番号を重み付けデータとしてR
AM17に格納する。重みw3 を記憶しないのは、ポリ
ゴンモデルを再生する場合、ポリゴンモデルが変形した
とき、その座標の重みが変わるので、再度、重みw3
演算する必要があるからである。このように算出された
全ての重み付けデータを格納することによりポリゴンモ
デルに描かれた模様の作成動作が終了する。
[0013] Among the data storage execution unit 14e weights w 1 is calculated, w 2, w 3, the weight w 1, w 2, a polygon number harboring this line point as weighting data R
Store in AM17. Not to store the weights w 3, when reproducing polygon model, when the polygon model is deformed, since the weight of the coordinates change, because again, it is necessary to calculate the weight w 3. By storing all the weighting data calculated in this way, the operation of creating the pattern drawn on the polygon model is completed.

【0014】重み付けデータ読出演算部14fは、ポリ
ゴンを再生する場合、ポリゴンモデルを投影してスクリ
ーン上に表示したとき、各ポリゴンが内包する重みw
1 ,w 2 を読み出す。そして、(3) 式より重みw3 を導
き、(1) (2) 式を解くことによりライン点(a,b)を
求める。ライン点位置判定部14gは、このライン点デ
ータによりポリゴンモデル上の位置を判定する。描画部
14hは、各ライン点を結合することによりポリゴンモ
デル上に模様を再現する。このようにして再現される模
様は、ポリゴンが移動したり,変形したり,回転したり
する場合、移動,変形,回転に合わせた見え方で表示さ
れる。
The weighted data read operation unit 14f is
When playing a gon, project a polygon model and
Weight w contained in each polygon when displayed on the screen
1 , W 2 Read out. Then, from equation (3), the weight w3 Guide
Then, by solving equations (1) and (2), the line points (a, b) are
Ask. The line point position determination unit 14g uses this line point data.
The position on the polygon model is determined by the data. Drawing part
14h is a polygon model by connecting each line point.
Reproduce the pattern on Dell. A model reproduced in this way
Like, the polygons move, transform, rotate
If you do, it will be displayed in a way that matches the movement, deformation and rotation.
Be done.

【0015】図5は、ポリゴン上に描かれる模様の作成
手順を説明するためのフローチャートである。ユーザが
ポリゴンモデルに模様を描く場合、ゲーム機を立ち上
げ、画面上のキャラクタの模様作成を選択する。これに
より、選択したキャラクタのポリゴンモデルが画像表示
部(スクリーン座標)に投影される(ステップ(以下
「S」という)501)。制御部11はユーザに対し、
ポリゴンモデル表面に描画するように指示を表示する。
この指示に従い、ユーザは操作部によってポリゴンモデ
ル上にラインを描くこととなる(S502)。ライン描
画を終了させる場合には、ユーザはライン描画の確定操
作を行う。
FIG. 5 is a flow chart for explaining a procedure for creating a pattern drawn on a polygon. When the user draws a pattern on the polygon model, the user starts up the game machine and selects to create a pattern for the character on the screen. As a result, the polygon model of the selected character is projected on the image display unit (screen coordinates) (step (hereinafter referred to as "S") 501). The control unit 11
Display instructions to draw on the polygon model surface.
According to this instruction, the user draws a line on the polygon model by the operation unit (S502). To end the line drawing, the user performs a line drawing confirmation operation.

【0016】制御部11は、すべてのラインに対し、ラ
インを構成するライン点を求める(S503)。隣接す
るライン点は、予め決められている間隔になるように設
定される。ライン点が求まると、ライン点とそのライン
点を内包するポリゴンの3頂点の座標との位置関係を示
す(1) (2) および(3) 式よりライン点について重みw
1 ,w2 を算出する(S504)。算出された重みw
1 ,w2 とポリゴン番号はRAM17に格納される。つ
ぎにすべてのライン点についてS504の処理がなされ
たか否かを判断し、すべてのライン点について処理がな
されていない場合にはS504の処理を繰り返し実行す
る。処理がすべて終了すると、ポリゴンモデル模様作成
は終了し、その旨の表示が行われる。
The control unit 11 controls the lines for all lines.
The line points forming the in are calculated (S503). Adjacent
Line points are set so that they are at predetermined intervals.
Is determined. Once the line point is found, the line point and its line
Shows the positional relationship with the coordinates of the three vertices of a polygon containing points
From equations (1), (2) and (3), the weight w
1 , W2 Is calculated (S504). Calculated weight w
1 , W2 And the polygon number are stored in the RAM 17. One
Then, the processing of S504 is performed for all the line points.
Whether all line points are processed
If not, the processing of S504 is repeatedly executed.
It When all processing is completed, polygon model pattern creation
Ends, and a message to that effect is displayed.

【0017】図6は、様々な視点,変形,距離から見る
ポリゴン表面の模様再現の手順を説明するためのフロー
チャートである。ゲーム進行中にユーザが模様作成した
キャラクタが出現する場合、そのポリゴンモデルがスク
リーン座標に投影される(S601)。投影されたポリ
ゴンモデルのポリゴン番号対応の重み付けデータである
重みw1 ,w2 が読み出され、(3) 式により重みw3
演算が行われる(S602)。重みw1 ,w2 ,w3
ポリゴンの頂点の座標を(1) (2) 式に代入することによ
り、ライン点(a,b)が算出される(S603)。1
つのライン点を算出すると、つぎのライン点が残ってい
るか否かを判定し、残っている場合には繰り返し残りの
ライン点を算出する(S604)。すべてのライン点の
算出を終了すると、各ライン点を結んで模様ラインを表
示する(S605)。
FIG. 6 is a flow chart for explaining the procedure for reproducing the pattern on the surface of the polygon viewed from various viewpoints, deformations and distances. When a character in which a pattern is created by the user appears during the progress of the game, the polygon model is projected on the screen coordinates (S601). The weights w 1 and w 2 which are weighting data corresponding to the polygon numbers of the projected polygon model are read out, and the weight w 3 is calculated by the equation (3) (S602). The line points (a, b) are calculated by substituting the weights w 1 , w 2 , w 3 and the coordinates of the vertices of the polygon into the equations (1) and (2) (S603). 1
When one line point is calculated, it is determined whether or not the next line point remains, and if it remains, the remaining line point is repeatedly calculated (S604). When the calculation of all the line points is completed, each line point is connected and a pattern line is displayed (S605).

【0018】以上の実施の形態は、ポリゴンモデルの模
様作成をユーザが行う場合の例について説明したが、当
初、デフォルトでポリゴンモデルの模様作成を行って重
み付けデータをメモリ手段に格納しておいても良い。
In the above embodiments, the case where the user creates the pattern of the polygon model has been described. Initially, the pattern of the polygon model is created by default and the weighting data is stored in the memory means. Is also good.

【0019】[0019]

【発明の効果】以上、説明したように本発明は、3次元
ポリゴンモデルを投影し、この投影された3次元ポリゴ
ンモデルの表面にライン書き込みが行われた場合、3次
元ポリゴン表面に描かれる模様の元となるラインを構成
するライン点を抽出し、抽出されたライン点のスクリー
ン座標についてポリゴンの3頂点との位置関係を表す重
みを演算し、演算された重みを含む各ライン点の重み付
けデータを記憶するものである。また、3次元ポリゴン
を再現する場合は、3次元ポリゴンモデルを投影し、投
影された3次元ポリゴンモデルの表面に対応する重み付
けデータを読み出し、読み出した重み付けデータから残
りの重みを演算し、ポリゴンモデルの3頂点と、その位
置関係を表す重みからライン点のスクリーン座標を求
め、このスクリーン座標に基づき模様を描画するもので
ある。したがって、土台となるポリゴンの変形に同期さ
せてポリゴンの制御とは別に模様ラインを制御する必要
がないため、回路構成が簡易となる。また、土台となる
ポリゴンが変形しても常にポリゴン表面上に模様ライン
を描画するようにしているため模様の作成が容易であ
り、データサイズがコンパクトになるという効果があ
る。レンダリング処理の一部を簡単化できるのでレンダ
リング処理の高速化に寄与できる。
As described above, according to the present invention, when a three-dimensional polygon model is projected and lines are written on the surface of the projected three-dimensional polygon model, the pattern is drawn on the surface of the three-dimensional polygon. The line points that form the original line are extracted, the weights that represent the positional relationship between the screen coordinates of the extracted line points and the three vertices of the polygon are calculated, and the weighted data of each line point that includes the calculated weights. Is to remember. When reproducing a three-dimensional polygon, a three-dimensional polygon model is projected, weighting data corresponding to the surface of the projected three-dimensional polygon model is read, and the remaining weights are calculated from the read weighting data to calculate the polygon model. The screen coordinates of the line points are obtained from the three vertices of (1) and the weight representing the positional relationship, and the pattern is drawn based on the screen coordinates. Therefore, since it is not necessary to control the pattern line separately from the control of the polygon in synchronization with the deformation of the base polygon, the circuit configuration becomes simple. Further, since the pattern line is always drawn on the surface of the polygon even if the base polygon is deformed, it is easy to create the pattern, and the data size can be made compact. Since a part of the rendering process can be simplified, the rendering process can be speeded up.

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

【図1】本発明による3次元ポリゴン表面模様処理方式
を適用したポリゴンモデルの外形例を示す図である。
FIG. 1 is a diagram showing an example of the outer shape of a polygon model to which a three-dimensional polygon surface pattern processing method according to the present invention is applied.

【図2】本発明による3次元ポリゴン表面模様処理方式
に用いる回路の実施の形態を示すブロック図である。
FIG. 2 is a block diagram showing an embodiment of a circuit used in the three-dimensional polygon surface pattern processing method according to the present invention.

【図3】ポリゴン表面上に描いたラインの例を説明する
ための図である。
FIG. 3 is a diagram for explaining an example of lines drawn on the surface of a polygon.

【図4】ポリゴン表面上の一点を算出する重み付けを説
明するための図である。
FIG. 4 is a diagram for explaining weighting for calculating one point on the polygon surface.

【図5】ポリゴン上に描かれる模様の作成手順を説明す
るためのフローチャートである。
FIG. 5 is a flowchart for explaining a procedure for creating a pattern drawn on a polygon.

【図6】様々な視点,変形,距離から見るポリゴン表面
の模様の再現手順を説明するためのフローチャートであ
る。
FIG. 6 is a flowchart for explaining a procedure for reproducing a pattern on the surface of a polygon viewed from various viewpoints, deformations, and distances.

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

1 作成時のポリゴンモデル 2 再現時のポリゴンモデル 11 制御部 12 ゲーム処理部 13 ジオメトリ処理部 14 レンダリング部 14a ポリゴンモデル投影部 14b ライン書込指示部 14c ライン点抽出部 14d ライン点重み演算部 14e データ蓄積実行部 14f 重み付けデータ読出演算部 14g ライン点位置判定部 14h 描画部 15 操作部 16 ROM 17 RAM 18 画像制御部 19 画像表示部 20 サウンド処理部 21 スピーカ 1 Polygon model at the time of creation 2 Polygon model during reproduction 11 Control unit 12 Game processing unit 13 Geometry processing section 14 Rendering section 14a Polygon model projection unit 14b Line writing instruction section 14c Line point extraction unit 14d Line point weight calculator 14e Data accumulation execution unit 14f Weighted data read operation unit 14g Line point position determination unit 14h Drawing part 15 Operation part 16 ROM 17 RAM 18 Image control unit 19 Image display section 20 Sound processing section 21 speakers

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 3次元ポリゴン表面に描かれる模様のデ
ータを作成する3次元ポリゴン表面模様処理方式におい
て、 3次元ポリゴンモデルを投影する投影手段と、 前記投影された3次元ポリゴンモデルの表面に模様書き
込みが行われた場合、前記3次元ポリゴン表面に描かれ
る模様の元となるラインを構成するライン点を抽出する
ライン点抽出手段と、 前記抽出されたライン点のスクリーン座標についてポリ
ゴンの3頂点との位置関係を表す重みを演算する重み演
算手段と、 前記演算された重みを含む各ライン点の重み付けデータ
を記憶するデータ蓄積実行部と、 を備えたことを特徴とする3次元ポリゴン表面模様処理
方式。
1. A three-dimensional polygon surface pattern processing method for creating data of a pattern drawn on a three-dimensional polygon surface, projecting means for projecting a three-dimensional polygon model, and a pattern on the surface of the projected three-dimensional polygon model. When writing is performed, a line point extracting unit that extracts line points that form a line that is a basis of a pattern drawn on the surface of the three-dimensional polygon, and three vertexes of the polygon with respect to screen coordinates of the extracted line points. A three-dimensional polygon surface pattern processing, comprising: a weight calculating means for calculating a weight representing the positional relationship of the above, and a data accumulation executing section for storing weight data of each line point including the calculated weight. method.
【請求項2】 3次元ポリゴン表面に描かれる模様を再
現する3次元ポリゴン表面模様処理方式において、 3次元ポリゴンモデルを投影する投影手段と、 重み付けデータを記憶するメモリ手段と、 投影された3次元ポリゴンモデルの表面に対応する重み
付けデータを前記メモリ手段から読み出す読出手段と、 前記読み出された重み付けデータから残りの重みを演算
する重み演算手段と、 ポリゴンモデルの3頂点と、その位置関係を表す重みか
らライン点のスクリーン座標を求めるライン位置判定手
段と、 前記スクリーン座標に基づき模様を描画する描画手段
と、 を備えたことを特徴とする3次元ポリゴン表面模様処理
方式。
2. A three-dimensional polygon surface pattern processing method for reproducing a pattern drawn on a three-dimensional polygon surface, projecting means for projecting a three-dimensional polygon model, memory means for storing weighting data, and projected three-dimensional A reading means for reading weighting data corresponding to the surface of the polygon model from the memory means, a weight calculating means for calculating the remaining weights from the read weighting data, three vertices of the polygon model, and their positional relationship. A three-dimensional polygon surface pattern processing method, comprising: a line position determining unit that determines a screen coordinate of a line point from a weight; and a drawing unit that draws a pattern based on the screen coordinate.
【請求項3】 記憶された前記ライン点の重み付けデー
タは、ライン点を内包するポリゴン番号,第1重み,第
2重みであり、ライン点を(a,b),内包するポリゴ
ンの3点を(x1 ,y1),(x2 ,y2),(x3 ,y3)
とすると、以下の(1) (2) および(3) 式により重みを算
出することを特徴とする請求項1または2記載の3次元
ポリゴン表面模様処理方式。 a=w11 +w22 +w33 ・・・(1) b=w11 +w22 +w33 ・・・(2) w1 +w2 +w3 =1.0 ・・・(3)
3. The stored weighting data of the line points are a polygon number including the line point, a first weight and a second weight, and three points of the line point (a, b) and the included polygon are included. (X 1 , y 1 ), (x 2 , y 2 ), (x 3 , y 3 )
Then, the weight is calculated by the following equations (1), (2), and (3), and the three-dimensional polygon surface pattern processing method according to claim 1 or 2. a = w 1 x 1 + w 2 x 2 + w 3 x 3 (1) b = w 1 y 1 + w 2 y 2 + w 3 y 3 (2) w 1 + w 2 + w 3 = 1.0・ (3)
JP2002144464A 2002-05-20 2002-05-20 3D polygon surface pattern processing method Expired - Lifetime JP3589657B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002144464A JP3589657B2 (en) 2002-05-20 2002-05-20 3D polygon surface pattern processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002144464A JP3589657B2 (en) 2002-05-20 2002-05-20 3D polygon surface pattern processing method

Publications (2)

Publication Number Publication Date
JP2003337951A true JP2003337951A (en) 2003-11-28
JP3589657B2 JP3589657B2 (en) 2004-11-17

Family

ID=29704131

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002144464A Expired - Lifetime JP3589657B2 (en) 2002-05-20 2002-05-20 3D polygon surface pattern processing method

Country Status (1)

Country Link
JP (1) JP3589657B2 (en)

Also Published As

Publication number Publication date
JP3589657B2 (en) 2004-11-17

Similar Documents

Publication Publication Date Title
JP4177381B2 (en) Image generation method, image generation apparatus, and image generation program
KR100707206B1 (en) Depth Image-based Representation method for 3D objects, Modeling method and apparatus using it, and Rendering method and apparatus using the same
EP0865003A2 (en) Method and apparatus for graffiti animation
US20040110561A1 (en) Game apparatus storing game sound control program and game sound control thereof
JPH11185060A (en) Device and method for generating hierarchized polygon data, and device and method for generating three-dimensional real-time image while using relevant hierarchized polygon data
EP2468370A1 (en) Content creation support device, image processing device, content creation support method, image processing method, and data structure of image display content
JP3363137B2 (en) Hit determination method, apparatus thereof, computer-readable recording medium having a hit determination processing program recorded therein, and video game apparatus
JP3372234B2 (en) Reflected image display method, game apparatus, and recording medium
JP3617839B2 (en) GAME SOUND CONTROL PROGRAM, GAME SOUND CONTROL METHOD, AND GAME DEVICE
JP4193979B2 (en) Shadow volume generation program and game device
JP5007633B2 (en) Image processing program, computer-readable recording medium storing the program, image processing apparatus, and image processing method
JP2000113226A (en) Video game device, model displaying method in video game and readable recording medium with model displaying program in video game recorded therein.
EP1288866B1 (en) Image generation method
US7327359B2 (en) Computer-readable recording medium recording image display control program, and image display control device and method
JP3589657B2 (en) 3D polygon surface pattern processing method
JP2006092177A (en) Image processing device, image processing method, and program
JP2000279642A (en) Game device, game method, computer-readable recording medium
JP2001184373A (en) Method and system for generating drawing and computer readable recording medium stored with drawing generation program generating two-dimensional drawing from three-dimensional model data
CN111729322A (en) Model stroke processing method and device, computer equipment and readable storage medium
JP3617960B2 (en) Three-dimensional game image processing program, three-dimensional game image processing method, and video game apparatus
JP2000148126A (en) Image display device and method
JP3635037B2 (en) Image drawing method and program used therefor
JP4637199B2 (en) Image processing apparatus, image processing method, and program
JP3183636B2 (en) Three-dimensional game device and information storage medium
JP2002251626A (en) Method for generating image and program used for the same

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040802

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040817

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040817

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 3589657

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R371 Transfer withdrawn

Free format text: JAPANESE INTERMEDIATE CODE: R371

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100827

Year of fee payment: 6

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100827

Year of fee payment: 6

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100827

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110827

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110827

Year of fee payment: 7

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110827

Year of fee payment: 7

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110827

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120827

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120827

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130827

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130827

Year of fee payment: 9

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130827

Year of fee payment: 9

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

EXPY Cancellation because of completion of term