JP3352982B2 - Rendering method and device, game device, and computer-readable recording medium for storing program for rendering three-dimensional model - Google Patents
Rendering method and device, game device, and computer-readable recording medium for storing program for rendering three-dimensional modelInfo
- Publication number
- JP3352982B2 JP3352982B2 JP26007299A JP26007299A JP3352982B2 JP 3352982 B2 JP3352982 B2 JP 3352982B2 JP 26007299 A JP26007299 A JP 26007299A JP 26007299 A JP26007299 A JP 26007299A JP 3352982 B2 JP3352982 B2 JP 3352982B2
- Authority
- JP
- Japan
- Prior art keywords
- model
- dimensional model
- contour drawing
- contour
- drawing model
- 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.)
- Expired - Lifetime
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T15/00—Three-dimensional [3D] image rendering
- G06T15/10—Geometric effects
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/60—Methods for processing data by generating or executing the game program
- A63F2300/66—Methods for processing data by generating or executing the game program for rendering three dimensional images
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Geometry (AREA)
- Computer Graphics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Processing Or Creating Images (AREA)
- Image Generation (AREA)
Description
【0001】[0001]
【発明が属する技術分野】本発明は、コンピュータ・グ
ラフィックス(CG)に関し、より詳しくは仮想三次元
空間内に配置された立体モデル及びその輪郭線をレンダ
リングする方法及び装置並びにレンダリング・プログラ
ムを格納したコンピュータ読み取り可能な記録媒体に関
する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to computer graphics (CG), and more particularly, to a method and an apparatus for rendering a three-dimensional model arranged in a virtual three-dimensional space and its outline, and a rendering program. Computer-readable recording medium.
【0002】[0002]
【従来の技術】近年、CGの分野で非写実的レンダリン
グ(non-photorealistic rendering)の技術が研究され
ている。この非写実的レンダリング技術は、手書き調の
画像をCGで表現しようとするものである。そのひとつ
として、仮想三次元空間内における視点位置、視線方向
あるいは立体モデルの配置位置、方向、形状等の状態が
変更された場合でも自動的に当該立体モデルの輪郭線を
正しく描画する画像生成技術も種々研究されている。2. Description of the Related Art In recent years, non-photorealistic rendering techniques have been studied in the field of computer graphics. This non-realistic rendering technique is intended to represent a handwritten image by CG. One of them is an image generation technology that automatically draws the contour line of the three-dimensional model automatically even when the viewpoint position, line-of-sight direction, or arrangement position, direction, shape, etc. of the three-dimensional model in the virtual three-dimensional space is changed. Have also been studied in various ways.
【0003】例えば特開平7−85310号公報には、
立体モデルがレンダリングされる際に、当該立体モデル
を構成するポリゴンの辺を単位として、各辺が輪郭部分
かどうかを検出して輪郭線を描画する技術が示されてい
る。また、特開平7−160905号公報には、当該立
体モデルがレンダリングされる表示画像中の画素を単位
として、各画素が輪郭部分かどうかを検出して輪郭線を
描画する技術が示されている。For example, Japanese Patent Laid-Open No. 7-85310 discloses that
A technique is described in which, when a three-dimensional model is rendered, a contour is drawn by detecting whether or not each side is a contour part in units of sides of a polygon constituting the three-dimensional model. Also, Japanese Patent Application Laid-Open No. Hei 7-160905 discloses a technique in which each pixel in a display image on which the three-dimensional model is rendered is detected as a unit to detect whether each pixel is a contour part and draw a contour line. .
【0004】[0004]
【発明が解決しようとする課題】このように従来技術に
よれば、輪郭線を描画するためには立体モデルをポリゴ
ンの辺単位又はレンダリングされる画素単位に分解して
輪郭部分を検出する処理が必要である。そのため、輪郭
線を描画する処理が非常に複雑であった。As described above, according to the prior art, in order to draw an outline, a process of decomposing a three-dimensional model into units of polygon sides or pixels to be rendered and detecting an outline portion is performed. is necessary. Therefore, the process of drawing the contour line is very complicated.
【0005】よって本発明の目的は、仮想空間に配置さ
れた立体モデルの輪郭線を簡単な処理で描画できるよう
にするレンダリング方法及び装置並びにレンダリング・
プログラムを格納するコンピュータ読み取り可能な記録
媒体を提供することである。SUMMARY OF THE INVENTION Accordingly, an object of the present invention is to provide a rendering method and apparatus and a rendering method and apparatus for rendering contour lines of a three-dimensional model arranged in a virtual space by simple processing.
An object of the present invention is to provide a computer-readable recording medium for storing a program.
【0006】[0006]
【課題を解決するための手段】本発明の第1の態様に係
る、仮想空間内に配置され且つ表現する物体の外側を表
とする複数の面で構成された立体モデルをレンダリング
する方法は、第1の立体モデルに対応した第2の立体モ
デルを取得する第1ステップと、第2の立体モデルの各
面を反転させて輪郭描画用モデルを生成する第2ステッ
プと、第1の立体モデルを包含する位置に輪郭描画用モ
デルを配置する第3ステップと、第1の立体モデルを所
与の視点位置から描画すると共に、輪郭描画用モデルの
うち視点位置に対して表を向けている面のみを予め定め
られた配色で描画する第4ステップとを含む。According to a first aspect of the present invention, there is provided a method for rendering a three-dimensional model composed of a plurality of surfaces which are arranged in a virtual space and have the outside of an object to be represented as a table. A first step of acquiring a second three-dimensional model corresponding to the first three-dimensional model, a second step of inverting each surface of the second three-dimensional model to generate a contour drawing model, and a first three-dimensional model And a third step of arranging the contour drawing model at a position including the first three-dimensional model from a given viewpoint position, and a surface of the contour drawing model facing the table position with respect to the viewpoint position. And a fourth step of drawing only a predetermined color scheme.
【0007】本発明の第2の態様に係るレンダリング方
法は、立体モデルに対応し且つ立体モデルの各面に対応
する面の表裏が反転された輪郭描画用モデルを取得する
第1ステップと、立体モデルを包含する位置に輪郭描画
用モデルを配置する第2ステップと、立体モデルを所与
の視点位置から描画すると共に、輪郭描画用モデルのう
ち視点位置に対して表を向けている面のみを予め定めら
れた配色で描画する第3ステップとを含む。A rendering method according to a second aspect of the present invention includes a first step of acquiring a contour drawing model corresponding to a three-dimensional model and having a surface corresponding to each side of the three-dimensional model reversed, A second step of arranging the contour drawing model at a position including the model, and drawing the three-dimensional model from a given viewpoint position; Drawing in a predetermined color scheme.
【0008】本発明では、表裏が反転した輪郭描画用モ
デルの視点位置に対して表を向けている面のみを描画す
る。そのため、輪郭描画用モデルの、視点位置から見て
立体モデルと重ならない部分が輪郭線として描画され
る。In the present invention, only the surface facing the front side with respect to the viewpoint position of the contour drawing model whose front and back are reversed is drawn. Therefore, a portion of the contour drawing model that does not overlap with the three-dimensional model when viewed from the viewpoint position is drawn as a contour line.
【0009】上で述べた第1ステップを、立体モデルに
対応し且つ立体モデルよりサイズが大きく且つ立体モデ
ルの各面に対応する面の表裏が反転された輪郭描画用モ
デルを取得するステップとすることも可能である。ま
た、同じく第1ステップを、立体モデルに対応し且つ立
体モデルの各面に対応する面の表裏が反転され且つ立体
モデルを構成する面の各頂点の法線方向に、当該頂点と
対応する頂点が設定された輪郭描画用モデルを取得する
ステップとすることも可能である。The above-mentioned first step is a step of obtaining a contour drawing model corresponding to the three-dimensional model, having a size larger than that of the three-dimensional model, and having the surfaces corresponding to the respective surfaces of the three-dimensional model reversed. It is also possible. Similarly, the first step is performed by reversing the vertices corresponding to the three-dimensional model and corresponding to the respective surfaces of the three-dimensional model in the normal direction of the vertices of the vertices of the surfaces constituting the three-dimensional model. May be a step of acquiring a contour drawing model in which is set.
【0010】輪郭描画用モデルの色は、第1ステップ時
に定義してもよいし、立体モデルの色を引き継いでも良
いし、実際の描画時に定義しても良い。The color of the contour drawing model may be defined at the first step, the color of the three-dimensional model may be taken over, or the color may be defined at the time of actual drawing.
【0011】また上で述べた第1ステップを、立体モデ
ルに対応し、明度又は透明度の変化を含む図柄を有する
テクスチャがマッピングされ且つ立体モデルの各面に対
応する面の表裏が反転された輪郭描画用モデルを取得す
るステップとすることも可能である。このようなテクス
チャ・マッピングを実施すると、描画される輪郭線が手
書き調になる。In the first step, the texture corresponding to the three-dimensional model, which has a pattern including a change in brightness or transparency, is mapped, and the surface corresponding to each surface of the three-dimensional model is inverted. It may be a step of acquiring a drawing model. When such texture mapping is performed, the contour line to be drawn has a handwritten tone.
【0012】本発明の第3の態様に係るレンダリング方
法は、立体モデルに対応する輪郭描画用モデルを取得す
る第1ステップと、立体モデルを包含する位置に輪郭描
画用モデルを配置する第2ステップと、立体モデルを所
与の視点位置から描画すると共に、輪郭描画用モデルの
うち視点位置に対して裏を向けている面のみを予め定め
られた配色で描画する第3ステップとを含む。In a rendering method according to a third aspect of the present invention, a first step of acquiring a contour drawing model corresponding to a three-dimensional model and a second step of arranging the contour drawing model at a position including the three-dimensional model And drawing a three-dimensional model from a given viewpoint position, and drawing only a surface of the contour drawing model facing the viewpoint position in a predetermined color scheme.
【0013】第2の態様と異なる点は、輪郭描画用モデ
ルの面の表裏である。立体モデルを通常どおり描画する
ためには、輪郭描画用モデルにより立体モデルが視点位
置から見て隠れないようにしなければならない。このた
め第2の態様では輪郭描画用モデルの面の表裏を立体モ
デルの対応する面とは逆にして、うら面を描画対象から
除外している。第3の態様では輪郭描画用モデルの面の
表裏は立体モデルと同じなので、描画する際にうら面の
みを描画対象として同様の効果を得るようにしている。The difference from the second mode is the front and back of the surface of the contour drawing model. In order to draw a three-dimensional model as usual, it is necessary to prevent the three-dimensional model from being hidden from the viewpoint position by the contour drawing model. For this reason, in the second embodiment, the front and back of the surface of the contour drawing model are reversed from the corresponding surface of the three-dimensional model, and the back surface is excluded from the drawing target. In the third aspect, since the front and back of the surface of the contour drawing model are the same as the three-dimensional model, the same effect is obtained by drawing only the back surface as a drawing target when drawing.
【0014】上で述べた第2ステップを、第1ステップ
で取得された輪郭描画用モデルのサイズを拡大すると共
に、立体モデルを包含する位置に輪郭描画用モデルを配
置するステップとすることも可能である。The second step described above may be a step of enlarging the size of the contour drawing model obtained in the first step and arranging the contour drawing model at a position including the three-dimensional model. It is.
【0015】また本発明の第3の態様が、先に述べた第
1ステップで取得された輪郭描画用モデルを構成する面
の各頂点を当該各頂点の法線方向に移動することで輪郭
描画用モデルのサイズを拡大する第4ステップをさらに
含み、上で述べた第2ステップを、立体モデルを包含す
る位置に第4ステップで拡大された輪郭描画用モデルを
配置するステップとすることも可能である。面の法線を
求めて、面をこの法線方向に移動させる方法も考えられ
るが、面と面の間を埋めるような処理が追加で必要とな
る。In a third aspect of the present invention, the contour drawing is performed by moving each vertex of the surface constituting the contour drawing model obtained in the first step described above in the normal direction of the vertex. The method further includes a fourth step of enlarging the size of the contour model, and the second step described above may be a step of arranging the contour drawing model enlarged in the fourth step at a position including the three-dimensional model. It is. A method of obtaining the normal of the surface and moving the surface in the normal direction is also conceivable, but additional processing for filling the space between the surfaces is required.
【0016】さらに、上で述べた第2ステップを、立体
モデルのサイズを縮小すると共に、立体モデルを包含す
る位置に輪郭描画用モデルを配置するステップとするこ
とも可能である。輪郭描画用モデルは立体モデルより相
対的に大きければ良いので、立体モデルを縮小すること
も考えられる。Further, the second step described above can be a step of reducing the size of the three-dimensional model and arranging the contour drawing model at a position including the three-dimensional model. Since it is sufficient that the contour drawing model is relatively larger than the three-dimensional model, the three-dimensional model may be reduced.
【0017】さらに上で述べた第3ステップを、立体モ
デルを所与の視点位置から描画すると共に、輪郭描画用
モデルのうち視点位置に対して裏を向けている面に対し
てのみ、明度又は透明度の変化を含む図柄を有するテク
スチャをマッピングし、当該面を描画するステップとす
ることも考えられる。このようなテクスチャ・マッピン
グを実施すると、描画される輪郭線が手書き調になる。In the third step described above, the three-dimensional model is drawn from a given viewpoint position, and the brightness or the brightness of only the surface of the contour drawing model that faces the viewpoint position is determined. A step of mapping a texture having a pattern including a change in transparency and drawing the surface may be considered. When such texture mapping is performed, the contour line to be drawn has a handwritten tone.
【0018】本発明の第4の態様に係る、仮想空間内に
配置され且つ表現する物体の外側を表とする複数の面で
構成された立体モデルをレンダリングするプログラム
は、コンピュータに、立体モデルに対応し且つ立体モデ
ルの各面に対応する面の表裏が反転された輪郭描画用モ
デルを取得する第1ステップと、立体モデルを包含する
位置に輪郭描画用モデルを配置する第2ステップと、立
体モデルを所与の視点位置から描画すると共に、輪郭描
画用モデルのうち視点位置に対して表を向けている面の
みを予め定められた配色で描画する第3ステップとを実
行させるためのプログラムである。According to a fourth aspect of the present invention, there is provided a program for rendering a three-dimensional model composed of a plurality of planes which are arranged in a virtual space and have the outside of an object to be represented as a table. A first step of acquiring a contour drawing model in which the front and back of a surface corresponding to each surface of the three-dimensional model are reversed, a second step of arranging the contour drawing model at a position including the three-dimensional model, A third step of drawing a model from a given viewpoint position and drawing only a surface of the contour drawing model that faces the table with respect to the viewpoint position in a predetermined color scheme. is there.
【0019】本発明の第4の態様においても、第2の態
様において説明した第1ステップの変形は適用可能であ
る。In the fourth aspect of the present invention, the modification of the first step described in the second aspect is applicable.
【0020】本発明の第5の態様に係るレンダリング・
プログラムは、コンピュータに、立体モデルに対応する
輪郭描画用モデルを取得する第1ステップと、立体モデ
ルを包含する位置に輪郭描画用モデルを配置する第2ス
テップと、立体モデルを所与の視点位置から描画すると
共に、輪郭描画用モデルのうち視点位置に対して裏を向
けている面のみを予め定められた配色で描画する第3ス
テップとを実行させるためのプログラムである。The rendering according to the fifth aspect of the present invention
The program causes the computer to acquire a contour drawing model corresponding to the stereo model, a second step of arranging the contour drawing model at a position including the stereo model, and , And a third step of drawing only the surface of the contour drawing model facing the viewpoint position with a predetermined color scheme.
【0021】上で述べた第1ステップを、立体モデルに
対応し且つ立体モデルよりサイズが大きい輪郭描画用モ
デルを取得するステップとすることも可能である。The above-mentioned first step can be a step of acquiring a contour drawing model corresponding to the three-dimensional model and having a larger size than the three-dimensional model.
【0022】本発明の第5の態様に対しても、第3の態
様において説明した第2ステップ及び第3ステップ等の
変形は適用可能である。The modifications such as the second step and the third step described in the third embodiment can be applied to the fifth embodiment of the present invention.
【0023】なお、本発明の第4及び第5の態様に係る
プログラムは、例えばCD−ROM、フロッピーディス
ク、メモリカートリッジ、メモリ、ハードディスクなど
の記録媒体又は記憶装置に格納される。このように記録
媒体又は記憶装置に格納されるプログラムをコンピュー
タに読み込ませることで以下で述べるレンダリング装置
及びゲーム装置を実現できる。また、記録媒体によって
これをソフトウエア製品として装置と独立して容易に配
布、販売することができるようになる。さらに、コンピ
ュータなどのハードウエアを用いてこのプログラムを実
行することにより、これらのハードウエアで本発明のグ
ラフィックス技術が容易に実施できるようになる。The programs according to the fourth and fifth aspects of the present invention are stored in a recording medium such as a CD-ROM, a floppy disk, a memory cartridge, a memory, a hard disk, or a storage device. By causing a computer to read the program stored in the recording medium or the storage device in this manner, a rendering device and a game device described below can be realized. In addition, the recording medium enables the software to be easily distributed and sold as a software product independently of the device. Further, by executing this program using hardware such as a computer, the graphics technology of the present invention can be easily implemented with these hardware.
【0024】本発明の第6の態様に係る、仮想空間内に
配置され且つ表現する物体の外側を表とする複数の面で
構成された立体モデルをレンダリングするレンダリング
装置は、立体モデルに対応し且つ立体モデルの各面に対
応する面の表裏が反転された輪郭描画用モデルを取得す
る取得手段と、立体モデルを包含する位置に輪郭描画用
モデルを配置する配置手段と、立体モデルを所与の視点
位置から描画すると共に、輪郭描画用モデルのうち視点
位置に対して表を向けている面のみを予め定められた配
色で描画する描画手段とを有する。本レンダリング装置
には、本発明の第2の態様に係る変形を適用することが
できる。According to a sixth aspect of the present invention, there is provided a rendering apparatus which renders a three-dimensional model composed of a plurality of surfaces which are arranged in a virtual space and have the outside of an object to be represented as a table. Acquisition means for acquiring a contour drawing model in which the surfaces corresponding to the respective surfaces of the three-dimensional model are reversed, placement means for arranging the contour drawing model at a position including the three-dimensional model, and And drawing means for drawing only the surface of the contour drawing model facing the table with respect to the viewpoint position with a predetermined color scheme. The modification according to the second aspect of the present invention can be applied to the rendering device.
【0025】本発明の第2の態様に係るレンダリング方
法における各ステップをコンピュータに実行させること
により、上で述べたレンダリング方法と同様の効果を得
ることが可能となる。従って、記載された処理ステップ
をコンピュータ等のハードウエアを用いて実行すること
により、これらのハードウエアで本発明のレンダリング
技術が容易に実施できるようになる。By causing a computer to execute each step in the rendering method according to the second aspect of the present invention, it is possible to obtain the same effect as the above-described rendering method. Therefore, by executing the described processing steps using hardware such as a computer, the rendering technology of the present invention can be easily implemented with these hardware.
【0026】また本発明の第7の態様に係るレンダリン
グ装置は、立体モデルに対応する輪郭描画用モデルを取
得する取得手段と、立体モデルを包含する位置に輪郭描
画用モデルを配置する配置手段と、立体モデルを所与の
視点位置から描画すると共に、輪郭描画用モデルのうち
視点位置に対して裏を向けている面のみを予め定められ
た配色で描画する描画手段とを有する。The rendering apparatus according to a seventh aspect of the present invention comprises: an acquiring unit for acquiring a contour drawing model corresponding to the three-dimensional model; and an arranging unit for arranging the contour drawing model at a position including the three-dimensional model. Drawing means for drawing a three-dimensional model from a given viewpoint position, and drawing only a surface of the contour drawing model facing the viewpoint position in a predetermined color scheme.
【0027】本レンダリング装置には、本発明の第3の
態様に係る変形を適用することができる。本発明の第3
の態様に係るレンダリング方法における各ステップをコ
ンピュータに実行させることにより、上で述べたレンダ
リング方法と同様の効果を得ることが可能となる。従っ
て、記載された処理ステップをコンピュータ等のハード
ウエアを用いて実行することにより、これらのハードウ
エアで本発明のレンダリング技術が容易に実施できるよ
うになる。The modification according to the third aspect of the present invention can be applied to the rendering apparatus. Third of the present invention
By causing a computer to execute each step in the rendering method according to the aspect, it is possible to obtain the same effect as the above-described rendering method. Therefore, by executing the described processing steps using hardware such as a computer, the rendering technology of the present invention can be easily implemented with these hardware.
【0028】本発明の第8の態様に係る、仮想空間内に
配置され且つ表現する物体の外側を表とする複数の面で
構成された立体モデルをレンダリングするゲーム装置
は、コンピュータと、コンピュータに実行させるプログ
ラムを格納した、コンピュータ読み取り可能な記録媒体
とを有する。そして、このプログラムは、コンピュータ
に、立体モデルに対応し且つ立体モデルの各面に対応す
る面の表裏が反転された輪郭描画用モデルを取得する取
得機能と、立体モデルを包含する位置に輪郭描画用モデ
ルを配置する配置機能と、立体モデルを所与の視点位置
から描画すると共に、輪郭描画用モデルのうち視点位置
に対して表を向けている面のみを予め定められた配色で
描画する描画機能とを実施させる。本ゲーム装置には、
本発明の第2の態様において述べた変形を適用すること
ができる。According to an eighth aspect of the present invention, there is provided a game apparatus for rendering a three-dimensional model composed of a plurality of planes each of which is arranged in a virtual space and has the outside of an object to be represented as a table. A computer-readable recording medium storing a program to be executed. Then, the program has an acquisition function for acquiring a contour drawing model in which a front side and a back side of a surface corresponding to each surface of the three-dimensional model correspond to the three-dimensional model, and a contour drawing at a position including the three-dimensional model. Function for arranging the model for drawing and drawing for drawing the three-dimensional model from a given viewpoint position and drawing only the surface of the contour drawing model facing the table with respect to the viewpoint position with a predetermined color scheme Function. In this game device,
The modifications described in the second aspect of the present invention can be applied.
【0029】また、本発明の第9の態様に係るゲーム装
置は、コンピュータと、コンピュータに実行させるプロ
グラムを格納した、コンピュータ読み取り可能な記録媒
体とを有する。そして、このプログラムは、コンピュー
タに、立体モデルに対応する輪郭描画用モデルを取得す
る取得機能と、立体モデルを包含する位置に輪郭描画用
モデルを配置する配置機能と、立体モデルを所与の視点
位置から描画すると共に、輪郭描画用モデルのうち視点
位置に対して裏を向けている面のみを予め定められた配
色で描画する描画機能とを実施させる。本ゲーム装置に
は、本発明の第3の態様に係る変形を適用することがで
きる。A game device according to a ninth aspect of the present invention includes a computer and a computer-readable recording medium storing a program to be executed by the computer. Then, the program provides the computer with an acquisition function of acquiring a contour drawing model corresponding to the three-dimensional model, an arrangement function of placing the contour drawing model at a position including the three-dimensional model, and A drawing function of drawing from a position and drawing only a surface of the contour drawing model facing the viewpoint position with a predetermined color scheme is executed. The modification according to the third aspect of the present invention can be applied to the game device.
【0030】[0030]
【発明の実施の形態】最初に、本発明をコンピュータ・
プログラムにより実施する場合において当該コンピュー
タ・プログラムを実行するコンピュータ1000の一例
を図1に示す。コンピュータ1000はコンピュータ本
体101を含んでおり、このコンピュータ本体101
は、その内部バス119に接続された演算処理部10
3、メモリ105、ハードディスク・ドライブHDD1
07、サウンド処理部109、グラフィックス処理部1
11、CD−Rドライブ113、通信インターフェース
115、及びインターフェース部117を含む。DESCRIPTION OF THE PREFERRED EMBODIMENTS First, the present invention is applied to a computer.
FIG. 1 shows an example of a computer 1000 that executes the computer program when the program is implemented by a program. The computer 1000 includes a computer main body 101.
Is the arithmetic processing unit 10 connected to the internal bus 119
3, memory 105, hard disk drive HDD1
07, sound processing unit 109, graphics processing unit 1
11, a CD-R drive 113, a communication interface 115, and an interface unit 117.
【0031】このコンピュータ本体101のサウンド処
理部109はスピーカーであるサウンド出力装置125
に、グラフィックス処理部111は表示画面122を有
する表示装置121に接続されている。また、CD−R
ドライブ113にはCD−R131を装着し得る。通信
インターフェース115はネットワーク151と通信媒
体141を介して接続する。インターフェース部117
には入力装置161が接続されている。The sound processing unit 109 of the computer main body 101 has a sound output device 125 as a speaker.
In addition, the graphics processing unit 111 is connected to a display device 121 having a display screen 122. CD-R
A CD-R 131 can be mounted on the drive 113. The communication interface 115 connects to the network 151 via the communication medium 141. Interface section 117
Is connected to the input device 161.
【0032】演算処理部103は、CPUやROMなど
を含み、HDD107やCD−R131上に格納された
プログラムを実行し、コンピュータ1000の制御を行
う。メモリ105は、演算処理部103のワークエリア
である。HDD107は、プログラムやデータを保存す
るための記憶領域である。サウンド処理部109は、演
算処理部103により実行されているプログラムがサウ
ンド出力を行うよう指示している場合に、その指示を解
釈して、サウンド出力装置125にサウンド信号を出力
する。The arithmetic processing unit 103 includes a CPU, a ROM, and the like, executes programs stored on the HDD 107 and the CD-R 131, and controls the computer 1000. The memory 105 is a work area of the arithmetic processing unit 103. The HDD 107 is a storage area for storing programs and data. When the program executed by the arithmetic processing unit 103 instructs to output a sound, the sound processing unit 109 interprets the instruction and outputs a sound signal to the sound output device 125.
【0033】グラフィックス処理部111は、演算処理
部103から出力される描画命令に従って、表示装置1
21の表示画面122に表示を行うための信号を出力す
る。CD−Rドライブ113は、CD−R131に対し
プログラム及びデータの読み書きを行う。通信インター
フェース115は、通信媒体141を介してネットワー
ク151に接続し、他のコンピュータ等と通信を行う。
インターフェース部117は、入力装置161からの入
力をメモリ105に出力し、演算処理部103がそれを
解釈して演算処理を実施する。[0033] The graphics processing unit 111 controls the display device 1 in accordance with the drawing command output from the arithmetic processing unit 103.
A signal for display on the display screen 122 is output. The CD-R drive 113 reads and writes programs and data from and to the CD-R 131. The communication interface 115 connects to the network 151 via the communication medium 141 and communicates with another computer or the like.
The interface unit 117 outputs an input from the input device 161 to the memory 105, and the arithmetic processing unit 103 interprets the input and performs arithmetic processing.
【0034】本発明に係るプログラム及びデータは最初
例えばCD−R131に記憶されている。そして、この
プログラム及びデータは実行時にCD−Rドライブ11
3により読み出されて、メモリ105にロードされる。
演算処理部103はメモリ105にロードされた、本発
明に係るプログラム及びデータを処理し、描画命令をグ
ラフィックス処理部111に出力する。なお、中間的な
データはメモリ105に記憶される。グラフィックス処
理部111は演算処理部103からの描画命令に従って
処理をし、表示装置121の表示画面122に表示を行
うための信号を出力する。The program and data according to the present invention are initially stored in, for example, the CD-R 131. The program and data are stored in the CD-R drive 11 at the time of execution.
3 and loaded into the memory 105.
The arithmetic processing unit 103 processes the program and data according to the present invention loaded into the memory 105, and outputs a drawing command to the graphics processing unit 111. The intermediate data is stored in the memory 105. The graphics processing unit 111 performs processing in accordance with the drawing command from the arithmetic processing unit 103 and outputs a signal for displaying on the display screen 122 of the display device 121.
【0035】次に図1に示されたグラフィックス処理部
111の一例を図2を用いて詳細に説明する。グラフィ
ックス処理部111は、内部バス119とのやり取りを
行うバス制御部201、バス制御部201とデータのや
り取りを行う幾何演算部207及び三角形描画処理部2
05、三角形描画処理部205からのデータを受け取り
処理を実施するピクセルカラー処理部209、各画素の
Z値を格納し且つピクセルカラー処理部209により使
用されるZバッファ211、及びピクセルカラー処理部
209からの表示画面用データを格納するフレーム・バ
ッファ213とを含む。なお、フレーム・バッファ21
3からの表示信号は、表示装置121に出力される。Next, an example of the graphics processing section 111 shown in FIG. 1 will be described in detail with reference to FIG. The graphics processing unit 111 includes a bus control unit 201 that exchanges data with the internal bus 119, a geometric operation unit 207 that exchanges data with the bus control unit 201, and a triangle rendering processing unit 2.
05, a pixel color processing unit 209 that receives data from the triangle drawing processing unit 205 and performs processing, a Z buffer 211 that stores the Z value of each pixel and is used by the pixel color processing unit 209, and a pixel color processing unit 209 And a frame buffer 213 for storing the display screen data from the CPU. Note that the frame buffer 21
3 is output to the display device 121.
【0036】グラフィックス処理部111のバス制御部
201は、演算処理部103から出力された描画命令を
内部バス119を介して受信し、グラフィックス処理部
111内の幾何演算部207又は三角形描画処理部20
5に出力する。場合によっては、幾何演算部207又は
三角形描画処理部205の出力を内部バス119を介し
てメモリ105に出力するための処理をも行う。幾何演
算部207は、座標変換、光源計算、回転、縮小拡大等
の幾何演算を実施する。幾何演算部207は、幾何演算
の結果を三角形描画処理部205に出力する。The bus control unit 201 of the graphics processing unit 111 receives the drawing command output from the calculation processing unit 103 via the internal bus 119, and receives the geometric calculation unit 207 or the triangle drawing processing in the graphics processing unit 111. Part 20
5 is output. In some cases, a process for outputting the output of the geometric operation unit 207 or the triangle drawing processing unit 205 to the memory 105 via the internal bus 119 is also performed. The geometric operation unit 207 performs geometric operations such as coordinate conversion, light source calculation, rotation, and reduction / enlargement. The geometric operation unit 207 outputs the result of the geometric operation to the triangle drawing processing unit 205.
【0037】三角形描画処理部205は、三角形ポリゴ
ンの各頂点のデータを補間して、三角形ポリゴン内部の
各点におけるデータを生成する。ピクセルカラー処理部
209は、三角形描画処理部205が生成する三角形ポ
リゴン内部の各点におけるデータを使用して、フレーム
バッファ213に表示画像を書き込む。この際、ピクセ
ルカラー処理部209はZバッファ211を使用して隠
面消去を行う。The triangle drawing processing unit 205 generates data at each point inside the triangle polygon by interpolating the data of each vertex of the triangle polygon. The pixel color processing unit 209 writes a display image to the frame buffer 213 using the data at each point inside the triangle polygon generated by the triangle drawing processing unit 205. At this time, the pixel color processing unit 209 performs hidden surface elimination using the Z buffer 211.
【0038】例えば、演算処理部103が、グラフィッ
クス処理部111に、世界座標系における三角形ポリゴ
ンの各頂点の位置及び色並びに光源に関する情報をデー
タとし、透視変換及び光源計算を行う描画命令を出力し
た場合には、以下のような処理がグラフィックス処理部
111内で実施される。描画命令を受信したバス制御部
201は命令を幾何演算部207に出力する。幾何演算
部207は、透視変換及び光源計算を実施し、三角形ポ
リゴンの各頂点のスクリーン座標系における座標値(Z
値を含む)及び色を計算する。幾何演算部207は、こ
の計算結果を三角形描画処理部205に出力する。For example, the arithmetic processing unit 103 outputs, to the graphics processing unit 111, a drawing command for performing perspective transformation and light source calculation, using data on the position, color, and light source of each vertex of a triangular polygon in the world coordinate system as data. In such a case, the following processing is performed in the graphics processing unit 111. Upon receiving the drawing command, the bus control unit 201 outputs the command to the geometric operation unit 207. The geometric operation unit 207 performs a perspective transformation and a light source calculation, and calculates the coordinate values (Z
Value) and color. The geometric operation unit 207 outputs the calculation result to the triangle drawing processing unit 205.
【0039】三角形描画処理部205は、三角形ポリゴ
ンの各頂点における座標値(Z値を含む)及び色を用い
て、三角形ポリゴン内部の各画素における座標値(Z値
を含む)及び色を計算する。さらに、三角形描画処理部
205は、この各画素における座標値(Z値を含む)及
び色をピクセルカラー処理部209に出力する。ピクセ
ルカラー処理部209は、Zバッファ211から当該画
素の現在のZ値を読み出して、三角形描画処理部205
から出力されたZ値と比較する。もし、出力されたZ値
が現在のZ値より小さければ、ピクセルカラー処理部2
09は、出力されたZ値を当該画素に対応するZバッフ
ァ211内の記憶位置に格納し、当該画素の座標値に対
応するフレーム・バッファ213内の記憶位置に当該画
素の色を格納する。The triangle drawing processing unit 205 calculates the coordinate value (including the Z value) and the color of each pixel inside the triangular polygon using the coordinate value (including the Z value) and the color at each vertex of the triangle polygon. . Further, the triangle drawing processing unit 205 outputs the coordinate value (including the Z value) and the color of each pixel to the pixel color processing unit 209. The pixel color processing unit 209 reads the current Z value of the pixel from the Z buffer 211, and
Is compared with the Z value output from. If the output Z value is smaller than the current Z value, the pixel color processing unit 2
In step 09, the output Z value is stored in the storage position in the Z buffer 211 corresponding to the pixel, and the color of the pixel is stored in the storage position in the frame buffer 213 corresponding to the coordinate value of the pixel.
【0040】なお、当該画素の色に透明度が設定されて
いる場合がある。その場合には、ピクセルカラー処理部
209は、当該画素の座標値に対応するフレームバッフ
ァ213内の記憶位置に記憶されている色と、当該画素
の色とを透明度に基づいて合成する。その結果、合成色
が生成される。ピクセルカラー処理部209は、生成さ
れた合成色を前と同じ記憶位置に格納する。In some cases, transparency is set for the color of the pixel. In this case, the pixel color processing unit 209 combines the color stored in the storage position in the frame buffer 213 corresponding to the coordinate value of the pixel and the color of the pixel based on the transparency. As a result, a composite color is generated. The pixel color processing unit 209 stores the generated composite color in the same storage location as before.
【0041】以下に示す各実施の形態は、図1に示され
たコンピュータによって実施される。Each embodiment described below is implemented by the computer shown in FIG.
【0042】1.実施の形態1 次に本発明の実施の形態1の概略を図3の機能ブロック
図を用いて説明する。実施の形態1として図示したレン
ダリング装置には、輪郭描画用モデル取得部300、輪
郭描画用モデル配置用マトリックス設定部305、輪郭
描画用モデル処理部310、かすれ表現テクスチャマッ
ピング部320、隠面消去処理部335を含むピクセル
処理部330、及び立体モデル処理部340が含まれ
る。1. First Embodiment Next, an outline of a first embodiment of the present invention will be described with reference to a functional block diagram of FIG. The rendering apparatus illustrated as the first embodiment includes a contour drawing model acquisition unit 300, a contour drawing model arrangement matrix setting unit 305, a contour drawing model processing unit 310, a blurred expression texture mapping unit 320, a hidden surface erasing process. A pixel processing unit 330 including a unit 335 and a three-dimensional model processing unit 340 are included.
【0043】輪郭描画用モデル取得部300は、例えば
三角形ポリゴンで構成された立体モデルに対応する輪郭
描画用モデルを生成する。なお、輪郭描画用モデルが予
め生成してある場合には、輪郭描画用モデル取得部30
0は当該予め生成されている、三角形ポリゴンで構成さ
れた輪郭描画用モデルを読み出す。なお、取得される輪
郭描画用モデルの各面は、立体モデルの対応する面とは
表裏が逆になっている。また、輪郭描画用モデルは立体
モデルより大きく、輪郭線用の所定の配色にて定義され
る。なお、輪郭描画用モデルは、最終的には対応する立
体モデルより相対的に大きくなければならないが、この
段階における輪郭描画用モデルの大きさは立体モデルと
同じ場合もある。この場合は、輪郭描画用モデル及び立
体モデルが描画されるまでに、輪郭描画用モデルが立体
モデルより相対的に大きく描画されるよう処理される。
また、輪郭描画用モデルの色は、対応する立体モデルの
マテリアルの色をそのまま引き継ぐ場合もある。この場
合、描画用の色は別に指定される。The contour drawing model acquisition section 300 generates a contour drawing model corresponding to a three-dimensional model constituted by, for example, triangular polygons. If the contour drawing model has been generated in advance, the contour drawing model acquisition unit 30
0 reads out the previously generated contour drawing model composed of triangular polygons. In addition, each surface of the acquired contour drawing model is upside down from the corresponding surface of the three-dimensional model. The contour drawing model is larger than the three-dimensional model, and is defined by a predetermined color scheme for the contour line. Note that the contour drawing model must ultimately be relatively larger than the corresponding stereo model, but the size of the contour drawing model at this stage may be the same as the stereo model. In this case, by the time the contour drawing model and the three-dimensional model are drawn, processing is performed so that the contour drawing model is drawn relatively larger than the three-dimensional model.
Further, the color of the contour drawing model may take over the color of the material of the corresponding three-dimensional model as it is. In this case, the drawing color is specified separately.
【0044】この輪郭描画用モデルの基準位置は、通常
対応する立体モデルの基準位置と同じ又はその近傍に位
置するように定義される。例えば図4に輪郭描画用モデ
ル510のサイズが立体モデル500のサイズよりひと
まわり大きく定義されている場合を示す。この図4で
は、各面の矢印方向がおもて面を示している。立体モデ
ル500は六角形の各面の外側がおもて面であり、輪郭
描画用モデル510は六角形の各面の内側がおもて面と
なっている。The reference position of the contour drawing model is usually defined to be the same as or near the reference position of the corresponding solid model. For example, FIG. 4 shows a case where the size of the contour drawing model 510 is defined to be slightly larger than the size of the three-dimensional model 500. In FIG. 4, the arrow direction of each surface indicates the front surface. The three-dimensional model 500 has a front surface outside each hexagonal surface, and the contour drawing model 510 has a front surface inside each hexagonal surface.
【0045】立体モデル500の基準位置である立体モ
デル基準位置520と、輪郭描画用モデル510の基準
位置である輪郭描画用モデル基準位置530は共に各モ
デルの中心に定義される。また輪郭描画用モデル510
は輪郭描画用モデル基準位置530を中心に、立体モデ
ル500よりひとまわり大きく定義される。The three-dimensional model reference position 520, which is the reference position of the three-dimensional model 500, and the contour drawing model reference position 530, which is the reference position of the contour drawing model 510, are both defined at the center of each model. The contour drawing model 510
Is defined to be slightly larger than the three-dimensional model 500 around the contour drawing model reference position 530.
【0046】そして、輪郭描画用モデル配置用マトリッ
クス設定部305(図3)が、仮想空間内の輪郭描画用
モデル基準位置530を、立体描画用モデル基準位置5
20と同じ位置に配置するための配置用マトリックスを
設定する。すなわち、輪郭描画用モデル510の配置用
マトリックスを、輪郭描画用モデル基準位置530を立
体モデル基準位置520の座標に平行移動させる変換を
含むように設定することで、立体モデル500を包含す
る位置に輪郭描画用モデル510が配置される。Then, the contour drawing model arrangement matrix setting section 305 (FIG. 3) sets the contour drawing model reference position 530 in the virtual space to the three-dimensional drawing model reference position 5.
An arrangement matrix to be arranged at the same position as 20 is set. That is, by setting the arrangement matrix of the contour drawing model 510 so as to include a transformation for translating the contour drawing model reference position 530 to the coordinates of the three-dimensional model reference position 520, the position of the three-dimensional model 500 is set to a position that includes the three-dimensional model 500. A contour drawing model 510 is arranged.
【0047】輪郭描画用モデル処理部310は、輪郭描
画用モデルの各頂点につき、頂点変換(拡大・縮小・回
転・平行移動・透視変換)を実施し、且つ輪郭描画用モ
デルの各面(又はポリゴン)の表裏判定を実施する。こ
の頂点変換には上で述べた配置用マトリックスも用いら
れる。なお、ここで光源計算は実施されない。例えば、
仮想三次元空間である仮想空間において指定された状態
に合わせて拡大・縮小・回転・平行移動・透視変換する
だけでなく、輪郭描画用モデル取得部300において立
体モデルと同じ大きさの輪郭描画用モデルを取得した場
合には、輪郭描画用モデル処理部310は、輪郭線描画
用モデルのサイズの拡大を行うための頂点変換を実施す
る。ここで拡大した場合も立体モデルと輪郭描画用モデ
ルの関係は図4のようになる。The contour drawing model processing section 310 carries out vertex conversion (enlargement / reduction / rotation / translation / perspective transformation) for each vertex of the contour drawing model, and performs each surface (or (Front / back) of the polygon. For the vertex conversion, the above-described arrangement matrix is also used. Note that the light source calculation is not performed here. For example,
In addition to performing enlargement / reduction / rotation / translation / perspective transformation in accordance with a designated state in a virtual space which is a virtual three-dimensional space, the contour drawing model acquisition unit 300 is used for drawing a contour having the same size as the three-dimensional model. When the model is obtained, the contour drawing model processing unit 310 performs vertex conversion for enlarging the size of the contour drawing model. FIG. 4 also shows the relationship between the three-dimensional model and the contour drawing model in the case of enlargement.
【0048】また、面の表裏判定は、カメラ550から
の視線540の方向と同じ方向がおもて面の方向である
面を描画の対象から外すために行われる。図4の例で
は、輪郭描画用モデル510のカメラ550に近い面5
11及び512が描画対象から外れる。このようにする
と、立体モデル500の外側にあり且つカメラ550に
近い面は描画対象から外れるので、立体モデル500は
通常どおり描画される。一方、輪郭描画用モデル510
は、立体モデル500より後ろの面513、514、5
15及び516のみが描画対象となる。但し、ピクセル
処理部330の隠面消去処理部335にて隠面消去が行
われるので、描画対象となってもその面の全てが描画さ
れるわけではない。The front / back determination of the surface is performed to exclude a surface whose front direction is the same as the direction of the line of sight 540 from the camera 550 from the drawing target. In the example of FIG. 4, the surface 5 near the camera 550 of the contour drawing model 510
11 and 512 are out of the drawing target. By doing so, the surface outside the three-dimensional model 500 and close to the camera 550 is excluded from the drawing target, and the three-dimensional model 500 is drawn as usual. On the other hand, the contour drawing model 510
Are the faces 513, 514, 5 behind the three-dimensional model 500.
Only 15 and 516 are to be drawn. However, since the hidden surface is removed by the hidden surface removal processing unit 335 of the pixel processing unit 330, not all of the surface is drawn even if it becomes a drawing target.
【0049】かすれ表現テクスチャマッピング部320
は、結果的に描画される輪郭線がかすれているような線
になるように、輪郭描画用モデルにかすれ表現用テクス
チャをマッピングするための処理を実施するものであ
る。このかすれ表現用テクスチャは、明度又は透明度の
変化を含む図柄を有するテクスチャで後に例を示す。な
お、必ずしも輪郭線がかすれている必要は無いので、か
すれ表現テクスチャマッピング部320を選択的に動作
させるようにする。Blurred expression texture mapping section 320
Performs a process for mapping a blurred expression texture to a contour drawing model so that the resulting contour line becomes a blurred line. This blur expression texture is a texture having a design including a change in brightness or transparency, and an example will be described later. Since the outline does not always need to be blurred, the blurred expression texture mapping unit 320 is selectively operated.
【0050】立体モデル処理部340は、立体モデルの
処理を行うものである。すなわち、立体モデル処理部3
40は、立体モデルの各頂点に対し、頂点変換(拡大・
縮小・回転・平行移動・透視変換)及び光源計算を実施
し、立体モデルの各面(又はポリゴン)の表裏判定を行
う。仮想三次元空間において指定された状態に合わせて
拡大・縮小・回転・平行移動・透視変換するだけでな
く、輪郭描画用モデル処理部310で処理された後の輪
郭描画用モデルが立体モデルと同じ大きさである場合に
は、立体モデル処理部340は、立体モデルが輪郭描画
用モデルに対して相対的に小さくなるように立体モデル
のサイズを縮小するための頂点変換を実施する。The three-dimensional model processing unit 340 performs a three-dimensional model process. That is, the three-dimensional model processing unit 3
40 is a vertex transformation (enlargement /
Reduction / rotation / translation / perspective transformation) and light source calculation are performed, and the front and back of each surface (or polygon) of the three-dimensional model is determined. In addition to performing enlargement / reduction / rotation / translation / perspective transformation in accordance with the state specified in the virtual three-dimensional space, the contour drawing model processed by the contour drawing model processing unit 310 is the same as the stereo model. If the size is the size, the three-dimensional model processing unit 340 performs vertex conversion for reducing the size of the three-dimensional model so that the three-dimensional model is relatively smaller than the contour drawing model.
【0051】立体モデル処理部340が縮小処理を行っ
た場合も立体モデル500と輪郭描画用モデル510の
関係は図4のようになる。また、面の表裏判定は、輪郭
描画用モデル処理部310と同じで、立体モデルの面の
うちカメラの視線方向と同じ方向がおもて面の方向であ
る面を描画対象から除外する。図4の例では、カメラか
ら見て後ろの方の面503、504、505及び506
が描画対象から除外される。FIG. 4 shows the relationship between the three-dimensional model 500 and the contour drawing model 510 even when the three-dimensional model processing unit 340 performs the reduction process. The determination of the front and back of the surface is the same as that of the contour drawing model processing unit 310, and the surface of the three-dimensional model whose front direction is the same as the camera's line of sight is excluded from the drawing target. In the example of FIG. 4, the rear surfaces 503, 504, 505, and 506 viewed from the camera.
Are excluded from the drawing target.
【0052】ピクセル処理部330は、各ピクセルの描
画処理を行う。例えば、ピクセル処理部330は、面内
の各ピクセルの色を面の頂点の色から補間して求め、Z
バッファを使用した隠面消去処理を実施しつつ、各ピク
セルの色を決定する。ピクセル処理部330は、当該処
理を、輪郭描画用モデル処理部310及び立体モデル処
理部340において描画対象とされた面について行う。The pixel processing section 330 performs a drawing process for each pixel. For example, the pixel processing unit 330 obtains the color of each pixel in the plane by interpolating from the color of the vertex of the plane,
The color of each pixel is determined while performing the hidden surface removal processing using the buffer. The pixel processing unit 330 performs the process on the surface to be drawn by the contour drawing model processing unit 310 and the three-dimensional model processing unit 340.
【0053】例えば図4の場合には、立体モデル500
のカメラ550に最も近い2つの面501及び502が
描画され、輪郭描画用モデルのカメラ550から遠い4
つの面513、514、515及び516が描画され
る。輪郭描画用モデル510のこの4つの面は、カメラ
550から見ると立体モデル500から左右にはみ出し
ているので、はみ出している部分のみが隠面消去されず
に描画される。このはみ出している部分が輪郭線とな
る。なお、ピクセル処理部330は、輪郭描画用モデル
のマテリアルの色を考慮して色を決定する。なお、この
マテリアルの色を全く無視して輪郭線の色(黒又は暗い
輪郭線用の色)を輪郭描画用モデルの色とする場合もあ
る。For example, in the case of FIG.
The two surfaces 501 and 502 closest to the camera 550 of the contour drawing model are drawn,
Two surfaces 513, 514, 515 and 516 are drawn. When viewed from the camera 550, these four surfaces of the contour drawing model 510 protrude left and right from the three-dimensional model 500, so that only the protruding portions are drawn without erasing the hidden surface. This protruding part becomes the contour line. Note that the pixel processing unit 330 determines the color in consideration of the color of the material of the contour drawing model. In some cases, the color of the outline (black or dark outline color) is used as the color of the outline drawing model, ignoring the color of this material altogether.
【0054】次に、実施の形態1についての処理フロー
を説明する。なお、以下の処理は、演算処理部103
(図1)がコンピュータ本体101内の他の要素を制御
して実施される処理である。Next, a processing flow for the first embodiment will be described. The following processing is performed by the arithmetic processing unit 103
FIG. 1 shows a process executed by controlling other elements in the computer main body 101.
【0055】[CD−R記録処理]図5には、予め行わ
れる輪郭描画用モデルの生成処理が示されている。処理
が開始すると、HDD107に予め記憶された立体モデ
ルのデータが読み出され(ステップS303)、変換対
象モデルとして取得される。[CD-R Recording Process] FIG. 5 shows a process of generating a contour drawing model performed in advance. When the process starts, data of the three-dimensional model stored in the HDD 107 in advance is read (step S303), and is acquired as a conversion target model.
【0056】次に、この変換対象モデルのサイズがひと
まわり大きくなるよう拡大される(ステップS30
5)。例えば、変換対象モデルの各頂点の法線方向に、
当該変換対象モデルの全長の2パーセントの長さだけ当
該頂点が移動され、全体として2パーセント程度拡大さ
れる。すなわち、例えば当該変換対象モデルが人間型
で、その身長が1.8m相当であれば、各頂点は0.0
36mに相当する長さだけ移動される。この拡大率がよ
り大きい場合は輪郭線はより太く描画され、拡大率がよ
り小さく、変換対象モデルがわずかに拡大されただけで
ある場合には輪郭線はより細く描画される。更に、均一
でなく一部がより拡大されれば、より拡大された部分の
輪郭線のみが太く描画される。このサイズの調整は、通
常立体モデルの製作者により行われるので、当該製作者
の意図を反映した輪郭線を描画することができる。Next, the size of the model to be converted is enlarged so as to be slightly larger (step S30).
5). For example, in the normal direction of each vertex of the conversion target model,
The vertex is moved by a length of 2% of the total length of the conversion target model, and is enlarged by about 2% as a whole. That is, for example, if the conversion target model is a humanoid and the height is equivalent to 1.8 m, each vertex is 0.0
It is moved by a length corresponding to 36 m. When the enlargement ratio is larger, the outline is drawn thicker, and when the enlargement ratio is smaller, and when the conversion target model is only slightly enlarged, the outline is drawn thinner. Furthermore, if the part is not uniform and is partially enlarged, only the outline of the enlarged part is drawn thick. Since this size adjustment is usually performed by the maker of the three-dimensional model, a contour line reflecting the intention of the maker can be drawn.
【0057】なお、立体モデルの各頂点の法線が定義さ
れていない場合には、当該頂点を共有する各面の法線を
補間することにより求められる当該頂点の法線を用い
て、当該頂点を当該頂点の法線方向に移動させることも
できる。また、立体モデルの各面の法線方向に当該面を
移動させることもできる。しかし単純に面が移動された
だけである場合には、面と面との間に隙間が生じてしま
うので、それを埋めるための処理が別途必要になる。更
に、通常立体モデルには基準位置が定義されているの
で、対応する変換対象モデルの基準位置を中心に、変換
対象モデルの各頂点を移動させることもできる。If the normal of each vertex of the three-dimensional model is not defined, the normal of the vertex obtained by interpolating the normal of each face sharing the vertex is used to calculate the vertex of the vertex. Can be moved in the normal direction of the vertex. In addition, the plane can be moved in the normal direction of each plane of the three-dimensional model. However, if the surface is simply moved, a gap is generated between the surfaces, and a process for filling the gap is required separately. Furthermore, since a reference position is usually defined in the three-dimensional model, each vertex of the conversion target model can be moved around the reference position of the corresponding conversion target model.
【0058】次に、変換対象モデルの各面のマテリアル
の色が、彩度は同じで明度を低くした色に設定される
(ステップS307)。なお、各面がすべて黒などの単
一色に設定されるとしてもよい。また、かすれ表現用テ
クスチャをマッピングするための設定がされるとしても
よい。マテリアルの色は製作者により調整されるので、
当該製作者の意図した色で輪郭線を描画することができ
る。Next, the color of the material on each surface of the model to be converted is set to a color having the same saturation but lower brightness (step S307). Note that all the surfaces may be set to a single color such as black. Further, the setting for mapping the texture for faint expression may be performed. Since the color of the material is adjusted by the maker,
The outline can be drawn in the color intended by the maker.
【0059】次に、変換対象モデルの各面の表裏を反転
する(ステップS309)。具体的には、変換対象モデ
ルを構成する各三角形の頂点が定義されている順番を一
ヶ所入れ替える。なお、表裏判定方法の詳細は後述す
る。Next, the front and back of each side of the model to be converted are reversed (step S309). More specifically, the order in which the vertices of each triangle constituting the conversion target model are defined is changed by one place. The details of the front / back determination method will be described later.
【0060】ここまでで変換された変換対象モデルのデ
ータを、輪郭描画用モデル・データとしてHDD107
に記憶し(ステップS311)、輪郭描画用モデル生成
処理を終了する(ステップS313)。The data of the model to be converted thus far is used as the contour drawing model data in the HDD 107.
(Step S311), and the contour drawing model generation process ends (step S313).
【0061】次に、HDD107に記憶された、輪郭描
画用モデル・データを含む各種データが、CD−Rドラ
イブ113によりCD−R131に書き込まれる。図6
には、CD−R131に書き込まれたデータの例が模式
的に示されている。Next, various data including the contour drawing model data stored in the HDD 107 is written to the CD-R 131 by the CD-R drive 113. FIG.
2 schematically shows an example of data written on the CD-R 131.
【0062】プログラム領域132には、コンピュータ
1000に本発明を実施させるためのプログラムが格納
される。但し、本発明を実施するプログラムは、CD−
R131に書き込むまでの処理と、後に詳述される図7
に示される処理とに分けることができる。よって、上で
述べた輪郭描画用モデルを生成して輪郭描画用モデル・
データを含む各種データをCD−R131に書き込む処
理を行うプログラムはここには含まないとしてもよい。
このようにする事で、図7に示される処理を、例えばC
D−Rドライブ113の代わりにCD−ROMドライブ
を備えた、コンピュータ1000とは別のコンピュータ
で実施することもできる。The program area 132 stores a program for causing the computer 1000 to carry out the present invention. However, the program for implementing the present invention is a CD-ROM.
Processing until writing to R131 and FIG.
Can be divided into the processing shown in FIG. Therefore, the contour drawing model described above is generated and the contour drawing model
A program for writing various data including data into the CD-R 131 may not be included here.
By doing so, the processing shown in FIG.
The present invention can also be implemented on a computer other than the computer 1000 having a CD-ROM drive instead of the DR drive 113.
【0063】システムデータ領域133には、上で述べ
たプログラム領域132に格納されるプログラムによっ
て処理される各種データが格納される。画像データ領域
134には、輪郭描画用モデル・データ135を含むデ
ータが格納される。但し、後述する輪郭描画用モデル取
得処理において輪郭描画用モデルを生成する場合には、
輪郭描画用モデル・データ135が格納される必要は無
い。なお、立体モデル及びかすれを表現するテクスチャ
等のデータも画像データ領域134に格納される。The system data area 133 stores various data processed by the program stored in the program area 132 described above. The image data area 134 stores data including the contour drawing model data 135. However, when the contour drawing model is generated in the contour drawing model acquisition processing described later,
There is no need to store the contour drawing model data 135. It should be noted that data such as a three-dimensional model and a texture expressing blur are also stored in the image data area 134.
【0064】サウンドデータ領域136には、図1に示
されたサウンド処理部109によりサウンド出力装置1
25からサウンドを出力させるためのデータが格納され
る。なお、サウンド処理は本発明と直接関係は無いの
で、サウンドデータ領域136にデータが格納されてい
る必要は無い。In the sound data area 136, the sound processing unit 109 shown in FIG.
25 stores data for outputting a sound. Since the sound processing is not directly related to the present invention, it is not necessary to store data in the sound data area 136.
【0065】なお、CD−R131に格納される輪郭描
画用モデルのサイズは、対応する立体モデルのサイズと
同じ大きさで定義されるとしてもよい。この場合には、
後述する輪郭描画用モデル取得処理で輪郭描画用モデル
が取得された後に、後述する輪郭描画用モデル配置処理
で輪郭描画用モデルの配置用マトリックスが設定される
までの間に輪郭描画用モデルが拡大される。あるいは、
輪郭描画用モデル配置処理で輪郭描画用モデルの配置用
マトリックスが設定される際に、当該配置用マトリック
スが拡大変換を含むように当該配置用マトリックスが決
定されるとしてもよい。逆に、立体モデルを配置する際
に、立体モデルの配置用マトリックスが縮小変換を含む
ように立体モデルの配置用マトリックスが決定されると
してもよい。Note that the size of the contour drawing model stored in the CD-R 131 may be defined to be the same as the size of the corresponding stereo model. In this case,
After the contour drawing model is acquired in the contour drawing model acquisition processing described later, the contour drawing model is enlarged until the arrangement matrix of the contour drawing model is set in the contour drawing model placement processing described later. Is done. Or,
When the arrangement matrix of the contour drawing model is set in the contour drawing model arrangement processing, the arrangement matrix may be determined so that the arrangement matrix includes the enlargement conversion. Conversely, when arranging the three-dimensional model, the three-dimensional model arrangement matrix may be determined so that the three-dimensional model arrangement matrix includes the reduction conversion.
【0066】また、CD−R131に格納される輪郭描
画用モデルの各面のマテリアルの色は、対応する立体モ
デルの各面のマテリアルの色と同一であっても良い。こ
の場合、後述される輪郭描画用モデルの描画処理の際
に、例えば、黒などの別途定義された色で輪郭描画用モ
デルが描画される。The color of the material of each surface of the contour drawing model stored in the CD-R 131 may be the same as the color of the material of each surface of the corresponding three-dimensional model. In this case, the contour drawing model is drawn in a separately defined color such as, for example, black when drawing the contour drawing model described later.
【0067】[全体の処理フロー]図7に実施の形態1
の全体の処理フローを示す。処理が開始すると、初期設
定が行われる(ステップS2)。この初期設定の処理に
は、後に詳述する輪郭描画用モデルのデータ取得処理
(図8)や、描画すべき立体モデルのデータ取得処理が
含まれる。そして、仮想空間内の状態が設定される(ス
テップS3)。この処理は、例えば視点の位置が変更さ
れたり、光源の位置が変更されたり、モデルが移動させ
たり、モデルが変形された場合に、それに応じて仮想空
間内の状態を変更する処理である。この処理が行われる
ことで、立体モデル及び輪郭描画用モデルの位置座標・
方向・拡大率・縮小率等の決定処理が行われる。より具
体的には立体モデル及び輪郭描画用モデルの配置用マト
リックス(図10で使用)の決定処理が行われる。また
入力装置161(図1)のキー操作等に従ってステップ
S4の輪郭線描画か否かの設定がこのステップS3で行
われる。[Overall Processing Flow] FIG. 7 shows the first embodiment.
2 shows the entire processing flow. When the process starts, initialization is performed (step S2). The processing of the initial setting includes data acquisition processing of a contour drawing model (FIG. 8) described later in detail and data acquisition processing of a three-dimensional model to be drawn. Then, the state in the virtual space is set (step S3). This process is, for example, a process of changing the state in the virtual space when the position of the viewpoint is changed, the position of the light source is changed, the model is moved, or the model is deformed. By performing this processing, the position coordinates of the three-dimensional model and the contour drawing model
A process for determining the direction, enlargement ratio, reduction ratio, and the like is performed. More specifically, a process of determining an arrangement matrix (used in FIG. 10) of the three-dimensional model and the contour drawing model is performed. Further, in step S3, whether or not contour drawing is to be performed in step S4 is performed in accordance with a key operation of the input device 161 (FIG. 1).
【0068】次に、輪郭線を描画するか否かの判断処理
が行われる(ステップS4)。これは上で述べたように
入力装置161のキー操作等による設定又は他のプログ
ラムによる設定に基づき判断される。そして、輪郭線を
描画すると判断された場合には、輪郭線描画用モデルの
描画処理が実施される(ステップS5)。これについて
は後に図10を用いて説明する。そして輪郭線が描画さ
れる場合も描画されない場合も立体モデルの描画処理が
実施される(ステップS6)。この処理についても後に
図14を用いて説明する。このステップS3乃至S6が
処理終了まで繰り返し実施される(ステップS7)。処
理終了であるか否かは、処理を終了すべき旨の操作入力
が行われたか否かによって判断される。Next, a process for determining whether or not to draw an outline is performed (step S4). This is determined based on the setting by the key operation of the input device 161 or the setting by another program as described above. When it is determined that the contour line is to be drawn, a drawing process of the contour line drawing model is performed (step S5). This will be described later with reference to FIG. Then, the drawing process of the three-dimensional model is performed whether or not the contour line is drawn (step S6). This processing will also be described later with reference to FIG. Steps S3 to S6 are repeatedly performed until the processing is completed (step S7). Whether or not the processing has ended is determined based on whether or not an operation input indicating that the processing should be ended has been performed.
【0069】[輪郭描画用モデル取得処理]図8には、
輪郭描画用モデルの取得処理が示されている。ここでは
まず、輪郭描画用モデルが生成されるか否かが判断され
る(ステップS203)。輪郭描画用モデルを予め用意
しておく場合と輪郭描画用モデルをこの段階にて生成す
る場合が存在するためである。ここでこの判断は、例え
ば立体モデルに対応した輪郭描画用モデルがCD−R1
31に格納されているか否かを判定する事により実施さ
れる。格納されていると判断されれば輪郭描画用モデル
は生成されないと判断され、格納されていないと判断さ
れれば、輪郭描画用モデルは生成されると判断される。[Contour Drawing Model Acquisition Processing] FIG.
The process of acquiring a contour drawing model is shown. Here, first, it is determined whether or not a contour drawing model is generated (step S203). This is because there are a case where the contour drawing model is prepared in advance and a case where the contour drawing model is generated at this stage. Here, this determination is made, for example, when the contour drawing model corresponding to the three-dimensional model is CD-R1.
This is performed by determining whether or not the data is stored in the storage 31. If it is determined that the model is stored, it is determined that the contour drawing model is not generated. If it is determined that the model is not stored, it is determined that the contour drawing model is generated.
【0070】輪郭描画用モデルが生成されないと判断さ
れた場合には、CD−R131に格納されている輪郭描
画用モデルのデータが読み出される(ステップS20
7)。この輪郭描画用モデルの各面は、上で図4及び図
5を用いて説明されたように、立体モデルの対応する面
とは表裏が反転されたものである。また読み出される輪
郭描画用モデルのサイズは、対応する立体モデルより一
回り大きく定義される。更に、輪郭描画用モデルの色
は、対応する立体モデルより暗い色で定義される。If it is determined that the contour drawing model is not generated, the data of the contour drawing model stored in the CD-R 131 is read (step S20).
7). As described above with reference to FIGS. 4 and 5, each surface of the contour drawing model is a surface inverted from the corresponding surface of the three-dimensional model. The size of the contour drawing model to be read is defined to be slightly larger than the corresponding three-dimensional model. Further, the color of the contour drawing model is defined as a color darker than the corresponding three-dimensional model.
【0071】もし輪郭描画用モデルが生成されると判断
された場合には、輪郭描画用モデルを生成する処理が行
われる(ステップS205)。ステップS207と同じ
ように、この段階において輪郭描画用モデルが生成され
る場合においても、輪郭描画用モデルの各面は、上で図
4を用いて説明されたように、立体モデルの対応する面
とは表裏反転したものにする。If it is determined that a contour drawing model is to be generated, a process for generating a contour drawing model is performed (step S205). Similarly to step S207, even when the contour drawing model is generated at this stage, the respective surfaces of the contour drawing model are, as described above with reference to FIG. Is turned upside down.
【0072】輪郭描画用モデルのサイズは、対応する立
体モデルより一回り大きく生成される。ステップS30
5(図5)と同じように、例えば立体モデルの各頂点の
法線方向に当該頂点を移動させて拡大された輪郭描画用
モデルが生成される。輪郭描画用モデルが立体モデルに
比してより大きい場合は輪郭線はより太く描画され、輪
郭描画用モデルが立体モデルよりわずかに大きいだけで
ある場合は輪郭線はより細く描画される。The size of the contour drawing model is slightly larger than the corresponding three-dimensional model. Step S30
Similarly to FIG. 5 (FIG. 5), for example, the vertex is moved in the normal direction of each vertex of the three-dimensional model, and an enlarged contour drawing model is generated. When the contour drawing model is larger than the stereo model, the contour is drawn thicker, and when the contour drawing model is only slightly larger than the stereo model, the contour is drawn thinner.
【0073】また、ステップS305(図5)の説明で
述べられているように、立体モデルの各面の法線方向に
当該面を移動させて拡大された輪郭描画用モデルが生成
されるとしてもよい。さらに、通常立体モデルに定義さ
れている基準位置を中心に、その立体モデルの各頂点を
移動させて拡大された輪郭描画用モデルが生成されると
してもよい。As described in the description of step S305 (FIG. 5), even if the plane is moved in the normal direction of each plane of the three-dimensional model, an enlarged contour drawing model is generated. Good. Further, an outline drawing model that is enlarged by moving each vertex of the stereo model around a reference position defined in the normal stereo model may be generated.
【0074】なお、この時点では、輪郭描画用モデルの
サイズは、対応する立体モデルのサイズと同じ大きさで
生成されるとしてもよい。この場合には本輪郭描画用モ
デル取得処理で輪郭描画用モデルが取得された後、後述
する輪郭描画用モデル配置処理で輪郭描画用モデルの配
置マトリックスが設定されるまでの間に輪郭描画用モデ
ルは拡大される。あるいは、輪郭描画用モデル配置処理
で輪郭描画用モデルの配置用マトリックスが設定される
際に、当該配置用マトリックスが拡大変換を含むように
当該配置用マトリックスが決定されるとしてもよい。逆
に、立体モデルを配置する際に、立体モデルの配置用マ
トリックスが縮小変換を含むように立体モデルの配置用
マトリックスが決定されるとしてもよい。At this point, the size of the contour drawing model may be generated in the same size as the size of the corresponding three-dimensional model. In this case, after the contour drawing model is acquired in the contour drawing model acquisition processing, the contour drawing model is set until the arrangement matrix of the contour drawing model is set in the contour drawing model arrangement processing described later. Is expanded. Alternatively, when the arrangement matrix of the outline drawing model is set in the outline drawing model arrangement processing, the arrangement matrix may be determined so that the arrangement matrix includes the enlargement conversion. Conversely, when arranging the three-dimensional model, the three-dimensional model arrangement matrix may be determined so that the three-dimensional model arrangement matrix includes the reduction conversion.
【0075】一方、輪郭描画用モデルの各面のマテリア
ルの色は、対応する立体モデルの各面のマテリアルの色
をより暗くした色で生成される。なお、ステップS30
7(図5)の説明で述べられているのと同様に、この時
点では、生成される輪郭描画用モデルの色は定義されて
いなくてもよい。あるいは、輪郭描画用モデルの各面の
マテリアルの色が、対応する立体モデルの各面のマテリ
アルの色と同一であっても良い。この場合、輪郭描画用
モデルの描画処理の際に、輪郭描画用モデルの色は考慮
されず、例えば黒などの別途定義された色か、かすれを
表現するテクスチャの色で輪郭描画用モデルが描画され
る。On the other hand, the material color of each surface of the contour drawing model is generated as a darker color of the material of each surface of the corresponding three-dimensional model. Step S30
7 (FIG. 5), the color of the contour drawing model to be generated may not be defined at this point. Alternatively, the color of the material of each surface of the contour drawing model may be the same as the color of the material of each surface of the corresponding three-dimensional model. In this case, when the contour drawing model is drawn, the color of the contour drawing model is not considered, and the contour drawing model is drawn with a separately defined color such as, for example, black, or a color of a texture expressing blur. Is done.
【0076】次に、輪郭描画用モデルにかすれを表現す
るテクスチャがマッピングされるか否かが判断される
(ステップS209)。ステップS205で輪郭描画用
モデルが生成された場合には、対応する立体モデルのデ
ータに基づいて当該判断が実施される。一方、ステップ
S207で輪郭描画用モデルが読み出された場合には、
読み出された輪郭描画用モデルのデータに基づいて当該
判断が実施される。かすれを表現するテクスチャがマッ
ピングされると判断された場合には、ステップS211
にて輪郭描画用モデルにかすれを表現するテクスチャが
マッピングされる。すなわち、ポリゴンの各頂点にテク
スチャ座標(U,V)が設定される。Next, it is determined whether or not a texture representing a blur is mapped to the contour drawing model (step S209). When the contour drawing model is generated in step S205, the determination is performed based on the data of the corresponding three-dimensional model. On the other hand, when the contour drawing model is read in step S207,
The determination is performed based on the read data of the contour drawing model. If it is determined that a texture expressing blur is mapped, step S211 is executed.
Is mapped on the contour drawing model. That is, texture coordinates (U, V) are set for each vertex of the polygon.
【0077】なお、上でも述べたように、かすれを表現
するテクスチャは、明度又は透明度の変化を含む図柄を
有する。図9には明度の変化を含むテクスチャの一例が
示されている。これは黒地に白の斜線が細かく入った図
柄を有するテクスチャである。黒部分の明度は低く、白
部分の明度は高いので、図9に示されたテクスチャは明
度の変化を含んでいる。As described above, the texture expressing the blur has a design including a change in brightness or transparency. FIG. 9 shows an example of a texture including a change in brightness. This is a texture having a pattern in which white diagonal lines are finely entered on a black background. Since the brightness of the black portion is low and the brightness of the white portion is high, the texture shown in FIG. 9 includes a change in brightness.
【0078】本発明において輪郭線は、輪郭描画用モデ
ルの一部が線として切り出されて描画される。すなわ
ち、図9のテクスチャがマッピングされた輪郭描画用モ
デルが輪郭線として描画される場合、輪郭描画用モデル
から輪郭線として切り出される線に対応する線が当該テ
クスチャから切り出されて描画される。このとき、当該
テクスチャから略縦方向又は略横方向に線が切り出され
れば、いずれの線も明度の変化を含むことになる。この
ような線が輪郭線として描画されることで、明度の変化
を含む輪郭線が描画される。すなわち、輪郭線のかすれ
が表現され、より手書き調の輪郭線が描画される。In the present invention, the outline is drawn by cutting out a part of the outline drawing model as a line. That is, when the contour drawing model to which the texture of FIG. 9 is mapped is drawn as a contour line, a line corresponding to a line cut out as a contour line from the contour drawing model is cut out from the texture and drawn. At this time, if a line is cut out from the texture in a substantially vertical direction or a substantially horizontal direction, each line includes a change in brightness. By drawing such a line as a contour, a contour including a change in brightness is drawn. That is, the blur of the outline is expressed, and a more hand-drawn outline is drawn.
【0079】図9に示されたテクスチャであれば、いず
れの方向に線が切り出されてもその線は明度の変化を含
む。しかし切り出される方向によってはほとんど明度が
変化しない場合もある。輪郭描画用モデルのどの部分が
どの方向に輪郭線として描画されるかは調整できるの
で、かすれを表現するテクスチャは、主に切り出される
方向に応じてその図柄が調整される。In the case of the texture shown in FIG. 9, even if a line is cut out in any direction, the line includes a change in brightness. However, the brightness may hardly change depending on the cutting direction. Since it is possible to adjust which part of the contour drawing model is drawn in which direction as the contour, the texture of the texture expressing the blur is adjusted mainly according to the cutout direction.
【0080】なお、透明度の変化を含む図柄を含む図柄
を有するテクスチャがマッピングされた輪郭描画用モデ
ルにより輪郭線が描画される場合には、当該輪郭線は透
明度の変化を含む。透明度の高い部分にはその割合に応
じて背景の色に近い色が描画され、低い部分には例えば
黒等の当該テクスチャの色に近い色が描画される。これ
により濃淡の変化を含む輪郭線が描画され、輪郭線のか
すれが表現される。When a contour is drawn by a contour drawing model on which a texture having a pattern including a change in transparency is mapped, the contour includes a change in transparency. A color close to the color of the background is drawn in a portion with high transparency according to the ratio, and a color close to the color of the texture, such as black, is drawn in a low portion. As a result, a contour line including a change in shading is drawn, and the blur of the contour line is expressed.
【0081】かすれを表現するテクスチャがマッピング
されないと判断された場合と、テクスチャがマッピング
される処理が終了した場合は、演算処理部103は輪郭
描画用モデル取得処理を終了する(ステップS21
3)。When it is determined that the texture representing the blur is not mapped, and when the processing for mapping the texture is completed, the arithmetic processing unit 103 ends the contour drawing model acquisition processing (step S21).
3).
【0082】[輪郭描画用モデル配置処理]図7のステ
ップS3において輪郭描画用モデルの配置マトリックス
が設定され、輪郭描画用モデルの配置処理が行われる。
通常輪郭描画用モデルの基準位置は、立体モデルの基準
位置に対応する位置に設けられる。そしてその輪郭描画
用モデルの基準位置が、立体モデルの基準位置と同一又
は近傍に配置されるように、輪郭描画用モデルの配置用
マトリックスが設定される。[Contour Drawing Model Arrangement Processing] In step S3 of FIG. 7, the arrangement matrix of the contour drawing model is set, and the contour drawing model arrangement processing is performed.
Usually, the reference position of the contour drawing model is provided at a position corresponding to the reference position of the three-dimensional model. Then, an arrangement matrix of the contour drawing model is set such that the reference position of the contour drawing model is arranged at or near the reference position of the three-dimensional model.
【0083】ここで立体モデルの方向が変化する場合に
は、輪郭描画用モデルもそれに対応するよう回転変換を
含む配置用マトリックスが設定される。立体モデルの形
状が変化する場合には、輪郭描画用モデルがそれに対応
するように変形処理が行われる。When the direction of the three-dimensional model changes, an arrangement matrix including a rotation transformation is set for the contour drawing model so as to correspond to the change. When the shape of the three-dimensional model changes, a deformation process is performed so that the contour drawing model corresponds to the change.
【0084】この段階において輪郭描画用モデルが対応
する立体モデルと同じ大きさである場合には、輪郭描画
用モデルが拡大される。具体的には、輪郭描画用モデル
の基準位置を中心として輪郭描画用モデルの各頂点が所
定の拡大率に従って拡大変換されるように、輪郭描画用
モデルの配置用マトリックスが設定される。あるいは逆
に、立体モデルが縮小されるとしてもよい。すなわちこ
の場合には、立体モデルの基準位置を中心として立体モ
デルの各頂点が所定の縮小率に従って縮小変換されるよ
うに、立体モデルの配置用マトリックスが設定される。At this stage, if the contour drawing model has the same size as the corresponding three-dimensional model, the contour drawing model is enlarged. More specifically, an arrangement matrix of the contour drawing model is set such that each vertex of the contour drawing model is enlarged and converted according to a predetermined enlargement ratio around the reference position of the contour drawing model. Or conversely, the three-dimensional model may be reduced. That is, in this case, the matrix for arranging the three-dimensional model is set such that each vertex of the three-dimensional model is reduced and converted in accordance with the predetermined reduction ratio with the reference position of the three-dimensional model as the center.
【0085】このようにすると、最終的には、相対的に
大きい輪郭描画用モデルが立体モデルを包含するように
配置される。両モデルの配置位置、方向、形状等の関係
により、輪郭描画用モデルは完全には立体モデルを包含
しない場合も生じ得る。但し、このような場合であって
も、包含している部分については輪郭線が描画される。In this way, the relatively large contour drawing model is finally arranged so as to include the three-dimensional model. The contour drawing model may not completely include the three-dimensional model depending on the relationship between the arrangement positions, directions, shapes, and the like of the two models. However, even in such a case, an outline is drawn for the included part.
【0086】なお、この段階では必ずしも配置用マトリ
ックスが設定されている必要は無く、配置される座標、
方向及び拡大・縮小率等の頂点変換に必要な各要素が確
定していればよい。この場合も、実際の頂点変換は各モ
デルの描画処理の段階で行われる。At this stage, it is not always necessary to set an arrangement matrix.
It is only necessary that the elements required for vertex conversion such as the direction and the enlargement / reduction ratio have been determined. Also in this case, the actual vertex conversion is performed at the stage of the rendering process of each model.
【0087】[輪郭描画用モデル描画処理]輪郭描画用
モデルの描画処理フローを示す図10では、輪郭描画用
モデルの全ての頂点について処理するまで、以下に説明
する処理が繰り返し行われる(ステップS503)。繰
り返し行われる最初の処理は、1つの頂点についての頂
点変換(拡大・縮小・回転・平行移動・透視変換)処理
である(ステップS505)。ここではステップS3で
求められた配置用マトリックスも頂点変換で用いられ
る。[Contour Drawing Model Drawing Processing] In FIG. 10 showing the drawing processing flow of the contour drawing model, the processing described below is repeatedly performed until all vertices of the contour drawing model are processed (step S503). ). The first process that is repeatedly performed is a vertex transformation (enlargement / reduction / rotation / translation / perspective transformation) of one vertex (step S505). Here, the arrangement matrix obtained in step S3 is also used in vertex conversion.
【0088】例えば、この処理は演算処理部103によ
り命令された幾何演算部207が実施する。ここで注意
したいのは輪郭描画用モデルに対しては幾何演算部20
7が光源計算を実施しない点である。これは輪郭線は光
源の位置等によらず描画され、光源計算をするのが無駄
だからである。例えば輪郭描画用モデルのマテリアルの
色は無視される場合もある。通常この頂点変換は、仮想
三次元空間において指定された状態に基づき行われる
が、もし輪郭描画用モデルの大きさが立体モデルと同じ
である場合には、配置処理で設定された配置用マトリッ
クスに従って、この段階において輪郭描画用モデルが拡
大変換される場合もある。For example, this processing is performed by the geometric operation unit 207 instructed by the operation processing unit 103. It should be noted here that the geometric calculation unit 20 is used for the contour drawing model.
7 is that the light source calculation is not performed. This is because the contour line is drawn regardless of the position of the light source, and it is useless to calculate the light source. For example, the color of the material of the contour drawing model may be ignored. Normally, this vertex transformation is performed based on the state specified in the virtual three-dimensional space, but if the size of the contour drawing model is the same as the three-dimensional model, the vertex conversion is performed according to the arrangement matrix set in the arrangement processing At this stage, the outline drawing model may be enlarged and converted.
【0089】そして、当該頂点を含むポリゴン(面)は
おもて面か否かの判断処理が行われる(ステップS50
7)。この判断は、三角形ポリゴンの場合この頂点の前
に処理された2つの頂点から構成される三角形ポリゴン
がいずれの方向を向いているかで判断される。図11に
は、表裏判定方について説明するための、立体モデルを
構成する三角形ポリゴンの例が示されている。この例で
は、図中上部の頂点の頂点番号が0、下部左側の頂点の
頂点番号が1、下部右側の頂点の頂点番号が2である。
すなわち、上部の頂点から反時計回りに、頂点番号が付
与されている。Then, it is determined whether or not the polygon (surface) including the vertex is a front surface (step S50).
7). This determination is made in the case of a triangular polygon based on which direction the triangular polygon composed of the two vertices processed before this vertex faces. FIG. 11 shows an example of a triangular polygon forming a three-dimensional model for explaining the method of determining front and back. In this example, the vertex number of the upper vertex in the figure is 0, the vertex number of the lower left vertex is 1, and the vertex number of the lower right vertex is 2.
That is, the vertex numbers are assigned counterclockwise from the upper vertex.
【0090】実施の形態1では、三角形ポリゴンの各頂
点の頂点番号が反時計回りに付与されているように見え
る面が、おもて面と定義されている(いわゆる右手
系)。従って、図11の三角形ポリゴンは、紙面手前方
向がおもて面である。おもて面の方向に法線ベクトルが
あるとすると、その法線ベクトルと視線ベクトルとの内
積の符号によって、三角形ポリゴンの表裏が判定でき
る。すなわち、内積の符号が正であれば、視点位置に対
しておもて面を向けていることになり、内積の符号が負
であれば、視点位置に対してうら面を向けていることと
なる。In the first embodiment, a surface that appears to have the vertex numbers of the respective vertices of the triangular polygon counterclockwise is defined as a front surface (a so-called right-handed system). Therefore, the front surface of the triangular polygon in FIG. Assuming that there is a normal vector in the direction of the front surface, the front and back of the triangular polygon can be determined by the sign of the inner product of the normal vector and the line-of-sight vector. In other words, if the sign of the inner product is positive, it means that the front surface is facing the viewpoint position, and if the sign of the inner product is negative, it means that the back surface is facing the viewpoint position. Become.
【0091】実際には図12に示されているように、ス
クリーンに投影された頂点0から頂点1へのベクトルa
とスクリーンに投影された頂点0から頂点2へのベクト
ルbの外積a×bが計算され、この外積の結果であるベ
クトルnの方向にておもて面か否かが判断される。ベク
トルnはz軸に平行であり、ベクトルnのz成分の符号
を検査すればおもて面か否かが判定される。すなわち、
正ならおもてで、負ならうらである。図12左側は三角
形の頂点の番号は反時計回りであり、外積の結果である
ベクトルnはz軸の正の方向に向いているのでおもてで
ある。一方図12右側は三角形の頂点の番号は時計回り
であり、外積の結果であるベクトルnはz軸の負の方向
を向いておりうらである。Actually, as shown in FIG. 12, the vector a from the vertex 0 projected to the screen to the vertex 1
And the cross product a × b of the vector b from the vertex 0 to the vertex 2 projected on the screen is calculated, and it is determined whether or not the front surface is in the direction of the vector n which is the result of the cross product. The vector n is parallel to the z-axis, and the sign of the z component of the vector n is inspected to determine whether or not the vector is a front surface. That is,
If it is positive, it is hospitality, and if it is negative, it is back. On the left side of FIG. 12, the numbers of the vertices of the triangle are counterclockwise, and the vector n, which is the result of the outer product, is oriented in the positive direction of the z-axis. On the other hand, on the right side of FIG. 12, the numbers of the vertices of the triangle are clockwise, and the vector n resulting from the cross product is likely to be in the negative direction of the z-axis.
【0092】実施の形態1における輪郭描画用モデルの
場合、輪郭描画用モデルの面は立体モデルの対応する面
とは表裏が逆になっている。図13には図11のポリゴ
ンに対応し、表裏が反転されたポリゴンが示されてい
る。図13に示す三角形ポリゴンの各頂点には、図中上
方、右下、左下の順で0,1,2の頂点番号が付与され
ている。すなわち、対応する三角形ポリゴンには図11
とは逆の順番で頂点番号が付されている。よって、図1
3では紙面手前がうら面と判定される。なお、実施の形
態1ではこの段階において表裏判定を行うが、この段階
より前に表裏判定を行うようにすることも可能である。In the case of the contour drawing model in the first embodiment, the surface of the contour drawing model is upside down from the corresponding surface of the three-dimensional model. FIG. 13 shows a polygon corresponding to the polygon of FIG. 11 and having its front and back reversed. Each vertex of the triangular polygon shown in FIG. 13 is assigned vertex numbers 0, 1, and 2 in the order of upper, lower right, and lower left in the figure. That is, the corresponding triangular polygon is shown in FIG.
Vertex numbers are assigned in the reverse order. Therefore, FIG.
In 3, the front side of the paper is determined to be the back side. In the first embodiment, the front / back determination is performed at this stage, but the front / back determination may be performed before this stage.
【0093】もし、当該頂点を含むポリゴン(面)がう
ら面であった場合にはステップS503に戻る。当該頂
点を含むポリゴン(面)がおもて面であった場合には、
かすれを表現するテクスチャをマッピングするか否かが
判断される(ステップS509)。If the polygon (surface) including the vertex is a back surface, the flow returns to step S503. If the polygon (face) containing the vertex is a front face,
It is determined whether or not to map a texture expressing blur (step S509).
【0094】これはポリゴンに対するテクスチャ・マッ
ピングを意味している。もし、かすれを表現するテクス
チャをマッピングする場合には、その頂点に対する、か
すれを表現するためのテクスチャのテクスチャ座標が計
算される(ステップS511)。テクスチャ・マッピン
グを行う場合、既にポリゴンの頂点にはテクスチャ座標
(U,V)が指定してあるが、当該ポリゴンがスクリー
ンに対して斜めに配置されている場合にはテクスチャが
スクリーン上で歪んで表示されることがある。この歪み
を避けるために、テクスチャ・パースペクティブ処理と
して、ここでは、Q=1/w(wはスクリーンからの奥
行き)を用いて、S=U×Q、T=V×Qの計算が行わ
れる。もし、かすれを表現するテクスチャをマッピング
しない場合にはステップS513に移行する。This means texture mapping for polygons. If the texture expressing the blur is mapped, the texture coordinates of the texture for expressing the blur for the vertex are calculated (step S511). When performing texture mapping, the texture coordinates (U, V) are already specified for the vertices of the polygon, but if the polygon is arranged at an angle to the screen, the texture is distorted on the screen. May be displayed. In order to avoid this distortion, S = U × Q and T = V × Q are calculated using Q = 1 / w (w is the depth from the screen) as the texture perspective processing. If the texture expressing the blur is not mapped, the process proceeds to step S513.
【0095】そして、例えば図2に示した三角形描画処
理部205及びピクセルカラー処理部209が駆動され
る(ステップS513)。上で述べたように三角形描画
処理部205は、三角形ポリゴンの各頂点のデータを補
間して、三角形ポリゴン内部の各ピクセルにおけるデー
タを生成する。各頂点のデータは、マテリアルの色、ス
クリーン座標値、及びステップS511を実施すればテ
クスチャ座標値である。各ピクセルにおけるデータは、
マテリアルの色及びステップS511を実施すればテク
セル・カラーである。Then, for example, the triangle drawing processing unit 205 and the pixel color processing unit 209 shown in FIG. 2 are driven (step S513). As described above, the triangle rendering processing unit 205 interpolates the data of each vertex of the triangle polygon to generate data at each pixel inside the triangle polygon. The data of each vertex is a material color, a screen coordinate value, and a texture coordinate value if step S511 is performed. The data at each pixel is
If the color of the material and step S511 are executed, it is a texel color.
【0096】但し、この時点でマテリアルの色を無視し
て、各頂点に輪郭線の色を設定することも可能である。
またマテリアルの色を考慮して、輝度を設定することも
可能である。ピクセルカラー処理部209は、三角形描
画処理部205が生成する三角形ポリゴン内部の各ピク
セルにおけるデータを使用して、フレームバッファ21
3に表示画像を書き込む。この際、Zバッファ211を
使用して隠面消去を行う。However, at this point, it is also possible to ignore the color of the material and set the color of the outline at each vertex.
It is also possible to set the luminance in consideration of the color of the material. The pixel color processing unit 209 uses the data of each pixel inside the triangular polygon generated by the triangle drawing processing unit 205 to generate the frame buffer 21.
3 is displayed. At this time, the hidden surface is erased using the Z buffer 211.
【0097】隠面消去にはZバッファ211を使用する
例を示しているが、図4に示すような簡単なモデルにつ
いてはZバッファを使用しない、例えばZソート法のよ
うな隠面消去処理を実施しても良い。但し、もっと複雑
なモデル、例えば人物の手などが胴体より前に配置され
ている場合等には、Zバッファを使用した隠面消去を行
わないと、正確に輪郭線を描画することは困難である。An example in which the Z buffer 211 is used for hidden surface elimination is shown. However, for a simple model as shown in FIG. 4, a hidden surface elimination process such as the Z sort method without using the Z buffer is performed. May be implemented. However, when a more complicated model, for example, a person's hand is arranged before the body, it is difficult to draw an outline accurately unless hidden surface removal using a Z buffer is performed. is there.
【0098】[立体モデル描画処理]図14に実施の形
態1及び後に述べる実施の形態2に共通する立体モデル
の描画処理のフローを示す。ここでは、立体モデルの全
ての頂点を処理するまで以下の処理が繰り返し行われる
(ステップS603)。繰り返される第1の処理は、一
つの頂点についての頂点変換(拡大・縮小・回転・平行
移動・透視変換)及び光源計算である(ステップS60
5)。これは例えば演算処理部103からの命令により
幾何演算部207が実行する。立体モデルのデータは例
えばCD−R131に格納されている。[3D Model Drawing Process] FIG. 14 shows a flow of a 3D model drawing process common to the first embodiment and a second embodiment described later. Here, the following processing is repeatedly performed until all vertices of the three-dimensional model are processed (step S603). The first processing to be repeated is vertex transformation (enlargement / reduction / rotation / translation / perspective transformation) and light source calculation for one vertex (step S60).
5). This is executed by the geometric operation unit 207 according to an instruction from the operation processing unit 103, for example. The data of the three-dimensional model is stored in the CD-R 131, for example.
【0099】拡大・縮小・回転・平行移動・透視変換
は、基本的には図7のステップS3において設定された
仮想空間内における状態に基づくものである。但し、輪
郭描画用モデルが立体モデルと同じ大きさである場合に
は、立体モデルのサイズを縮小することにより輪郭描画
用モデルを相対的に大きくする場合もある。この場合に
は、ステップS605において縮小変換が実施される。
なお、立体モデルの中心に向かって各頂点をその法線に
沿って移動させると簡単に縮小できる。ここで透視変換
は、世界座標系のポリゴンの各頂点の座標値をスクリー
ン座標系における座標値に変換するものである。また光
源計算は、光源から発せられた仮想的な光線により生じ
る陰影(輝度)を計算するものである。The enlargement / reduction / rotation / translation / perspective transformation is basically based on the state in the virtual space set in step S3 of FIG. However, if the contour drawing model is the same size as the three-dimensional model, the contour drawing model may be relatively large by reducing the size of the three-dimensional model. In this case, reduction conversion is performed in step S605.
In addition, if each vertex is moved along the normal line toward the center of the three-dimensional model, it can be easily reduced. Here, the perspective transformation is for transforming the coordinate value of each vertex of the polygon in the world coordinate system into the coordinate value in the screen coordinate system. The light source calculation is for calculating a shadow (luminance) generated by a virtual light ray emitted from the light source.
【0100】次に、当該頂点を含むポリゴン(面)はお
もて面か否かが判断される(ステップS607)。この
判断は、三角形ポリゴンの場合この頂点の前に処理され
た2つの頂点から構成される三角形ポリゴンがいずれの
方向を向いているかで判断する。この判断は輪郭描画用
モデルの描画処理で説明した方法を用いることができ
る。なお、実施の形態1ではこの段階において表裏判定
を行うが、この段階より前に表裏判定を行うようにする
ことも可能である。Next, it is determined whether or not the polygon (surface) including the vertex is a front surface (step S607). This determination is made in the case of a triangular polygon based on which direction the triangular polygon composed of two vertices processed before this vertex faces. For this determination, the method described in the drawing processing of the contour drawing model can be used. In the first embodiment, the front / back determination is performed at this stage, but the front / back determination may be performed before this stage.
【0101】もし、当該頂点を含むポリゴン(面)がう
ら面であった場合にはステップS603に戻る。当該頂
点を含むポリゴン(面)がおもて面であった場合にはそ
の頂点のテクスチャ座標の計算処理が行われる(ステッ
プS609)。テクスチャ・マッピング処理が行われる
場合、既にポリゴンの頂点にはテクスチャ座標(U,
V)が指定してあるが、テクスチャ・パースペクティブ
処理として、ここでは、Q=1/w(wはスクリーンか
らの奥行き)を用いて、S=U×Q、T=V×Qの計算
が行われる。但し、テクスチャ・マッピングを行うか否
かは任意である。If the polygon (surface) including the vertex is a back surface, the flow returns to step S603. If the polygon (surface) including the vertex is the front surface, a process of calculating the texture coordinates of the vertex is performed (step S609). When the texture mapping process is performed, the vertex of the polygon already has the texture coordinates (U,
V) is designated, but as texture perspective processing, here, using Q = 1 / w (w is the depth from the screen), S = U × Q and T = V × Q are calculated. Will be However, whether or not to perform texture mapping is optional.
【0102】そして、例えば図2に示した三角形描画処
理部205及びピクセルカラー処理部209が駆動され
る(ステップS611)。上で述べたように三角形描画
処理部205は、三角形ポリゴンの各頂点のデータを補
間して、三角形ポリゴン内部の各ピクセルにおけるデー
タを生成する。各頂点のデータは、マテリアルの色、ス
クリーン座標値、及びテクスチャ座標値である。また、
各ピクセルにおけるデータは、マテリアルの色及びテク
セル・カラーである。ピクセルカラー処理部209は、
三角形描画処理部205が生成する三角形ポリゴン内部
の各ピクセルにおけるデータを使用して、フレームバッ
ファ213に表示画像を書き込む。この際、Zバッファ
211を使用して隠面消去を行う。Then, for example, the triangle drawing processing unit 205 and the pixel color processing unit 209 shown in FIG. 2 are driven (step S611). As described above, the triangle rendering processing unit 205 interpolates the data of each vertex of the triangle polygon to generate data at each pixel inside the triangle polygon. The data of each vertex is a material color, a screen coordinate value, and a texture coordinate value. Also,
The data at each pixel is the material color and texel color. The pixel color processing unit 209 includes:
The display image is written to the frame buffer 213 using the data of each pixel inside the triangular polygon generated by the triangular drawing processing unit 205. At this time, the hidden surface is erased using the Z buffer 211.
【0103】以上のような処理を実施すると、立体モデ
ルは通常どおりレンダリングされ、実施の形態1で導入
された輪郭描画用モデルは、立体モデルの後ろの面のう
ち立体モデルに隠れない部分が描画されるので、その部
分が輪郭線としてレンダリングされる。実施の形態1で
は、輪郭描画用モデルを導入するだけで通常の立体モデ
ルとほぼ同様の処理を行うことにより簡単に輪郭線を描
画できるようになる。When the above-described processing is performed, the three-dimensional model is rendered as usual, and the contour drawing model introduced in the first embodiment draws a portion behind the three-dimensional model that is not hidden by the three-dimensional model. So that part is rendered as a contour line. In the first embodiment, the outline can be easily drawn by performing substantially the same processing as that of a normal three-dimensional model only by introducing the outline drawing model.
【0104】2.実施の形態2 本発明の実施の形態2の概略を図15の機能ブロック図
を用いて説明する。実施の形態2として図示したレンダ
リング装置には、輪郭描画用モデル取得部400、輪郭
描画用モデル配置用マトリックス設定部405、逆転表
裏判定部415を含む輪郭描画用モデル処理部410、
かすれ表現テクスチャマッピング部420、隠面消去処
理部435を含むピクセル処理部430、及び立体モデ
ル処理部440が含まれる。2. Embodiment 2 An outline of Embodiment 2 of the present invention will be described with reference to a functional block diagram of FIG. The rendering device illustrated as the second embodiment includes a contour drawing model acquisition unit 400, a contour drawing model arrangement matrix setting unit 405, a contour drawing model processing unit 410 including a reversal front / back determination unit 415,
A blur expression texture mapping unit 420, a pixel processing unit 430 including a hidden surface elimination processing unit 435, and a stereo model processing unit 440 are included.
【0105】輪郭描画用モデル取得部400は、例えば
三角形ポリゴンで構成された立体モデルに対応する輪郭
描画用モデルを生成する。なお、輪郭描画用モデルが予
め生成してある場合には、輪郭描画用モデル取得部40
0は、当該予め生成されている、三角形ポリゴンで構成
された輪郭描画用モデルを読み出す。実施の形態2は実
施の形態1とは異なり、取得される輪郭描画用モデルの
各面は、立体モデルの対応する面と表裏が同じである。
また輪郭描画用モデルは立体モデルより大きく、輪郭線
用の所定の配色にて定義される。なお、輪郭描画用モデ
ルは、最終的には対応する立体モデルより相対的に大き
くなければならないが、この段階における輪郭描画用オ
ブジェクトの大きさは立体モデルと同じ場合もある。こ
の場合には、輪郭描画用モデルと立体モデルが描画され
るまでに、輪郭描画用モデルが立体モデルより相対的に
大きく描画されるよう処理される。The contour drawing model acquisition section 400 generates a contour drawing model corresponding to, for example, a three-dimensional model constituted by triangular polygons. If the contour drawing model has been generated in advance, the contour drawing model acquisition unit 40
0 reads out the previously generated contour drawing model composed of triangular polygons. The second embodiment differs from the first embodiment in that each surface of the acquired contour drawing model has the same front and back surfaces as the corresponding surface of the three-dimensional model.
The contour drawing model is larger than the three-dimensional model, and is defined by a predetermined color scheme for the contour line. Note that the contour drawing model must ultimately be relatively larger than the corresponding stereo model, but the size of the contour drawing object at this stage may be the same as the stereo model. In this case, processing is performed such that the contour drawing model is drawn relatively larger than the stereo model by the time the contour drawing model and the stereo model are drawn.
【0106】また、輪郭描画用モデルの色は、対応する
立体モデルのマテリアルの色をそのまま引き継ぐ場合も
ある。この場合は描画用の色は別に指定される。この輪
郭描画用モデルの基準位置は、通常対応する立体モデル
の基準位置と同じ又はその近傍に位置するように定義さ
れる。例えば図16には、輪郭描画用モデル610が立
体モデル600よりひとまわり大きく定義されている場
合が示されている。この図16では、各面の矢印方向が
おもて面を示している。立体モデル600も輪郭描画用
モデル610も六角形の各面の外側がおもて面となって
いる。In some cases, the color of the contour drawing model may take over the color of the material of the corresponding three-dimensional model as it is. In this case, the drawing color is specified separately. The reference position of the contour drawing model is usually defined to be the same as or near the reference position of the corresponding stereo model. For example, FIG. 16 shows a case where the contour drawing model 610 is defined to be slightly larger than the three-dimensional model 600. In FIG. 16, the arrow direction of each surface indicates the front surface. Both the three-dimensional model 600 and the contour drawing model 610 have a front surface outside each hexagonal surface.
【0107】立体モデル600の基準位置である立体モ
デル基準位置620と、輪郭描画用モデル610の基準
位置である輪郭描画用モデル基準位置630は共に各モ
デルの中心に定義される。また輪郭描画用モデル610
は輪郭描画用モデル基準位置630を中心に立体モデル
600よりひとまわり大きく定義される。The three-dimensional model reference position 620 as the reference position of the three-dimensional model 600 and the contour drawing model reference position 630 as the reference position of the contour drawing model 610 are both defined at the center of each model. Also, the contour drawing model 610 is used.
Is defined to be slightly larger than the three-dimensional model 600 around the contour drawing model reference position 630.
【0108】そして輪郭描画用モデル配置用マトリック
ス設定部405(図15)が、仮想空間内の輪郭描画用
モデル基準位置630を、立体モデル基準位置620と
同じ位置に配置するための配置用マトリックスを設定す
る。この配置用マトリックスは対応するモデルの各頂点
に対する平行移動、回転、拡大・縮小等の変換のために
用いられる。すなわち、輪郭描画用モデル610の配置
用マトリックスが輪郭描画用モデル基準位置530を立
体モデル基準位置520の座標に平行移動させる変換を
含むよう設定することで、立体モデル600を包含する
位置に輪郭描画用モデル610が配置される。The contour drawing model placement matrix setting section 405 (FIG. 15) sets a placement matrix for placing the contour drawing model reference position 630 in the virtual space at the same position as the three-dimensional model reference position 620. Set. This arrangement matrix is used for conversion such as translation, rotation, enlargement / reduction, etc., with respect to each vertex of the corresponding model. In other words, by setting the arrangement matrix of the contour drawing model 610 to include a transformation for translating the contour drawing model reference position 530 to the coordinates of the stereo model reference position 520, the contour drawing is performed at a position that includes the stereo model 600. Model 610 is arranged.
【0109】輪郭描画用モデル処理部410は、輪郭描
画用モデルの各頂点につき、頂点変換(拡大・縮小・回
転・平行移動・透視変換)を実施し、且つ輪郭描画用モ
デルの各面(又はポリゴン)の表裏判定を実施する。こ
の頂点変換には上で述べた配置用マトリックスが用いら
れる。但し、実施の形態1とは異なり、この表裏判定は
逆転表裏判定部415で行われる。またここでは光源計
算を実施しない。例えば仮想三次元空間である仮想空間
において指定された状態に合わせて拡大・縮小・回転・
平行移動・透視変換するだけでなく、輪郭描画用モデル
取得部400において立体モデルと同じ大きさの輪郭描
画用モデルを取得した場合には、輪郭描画用モデル処理
部410は、輪郭線描画用モデルの拡大を行うための頂
点変換を実施する。ここで拡大した場合も立体モデルと
輪郭描画用モデルの関係は図16のようになる。The contour drawing model processing section 410 carries out vertex conversion (enlargement / reduction / rotation / translation / perspective conversion) for each vertex of the contour drawing model, and performs each surface (or (Front / back) of the polygon. For this vertex conversion, the above-described arrangement matrix is used. However, different from the first embodiment, the front / back determination is performed by the reverse rotation front / back determination unit 415. Here, the light source calculation is not performed. For example, in a virtual space that is a virtual three-dimensional space, zooming, scaling, rotation,
In addition to performing the translation / perspective transformation, when the contour drawing model acquisition unit 400 acquires a contour drawing model having the same size as the three-dimensional model, the contour drawing model processing unit 410 generates the contour line drawing model. Perform vertex transformation to expand. In this case, the relationship between the three-dimensional model and the contour drawing model is also as shown in FIG.
【0110】また、実施の形態2の輪郭描画用モデルの
場合には、おもて面をうらと判断し、うら面をおもてと
判断する。よって、図16の例ではカメラ650からの
視線640の方向と同じ方向に矢印が向いている面61
3,614,615及び616のみを描画対象とする。
この面は通常であればうら面であるから描画対象から外
れるが、実施の形態2では描画対象として取り扱う。こ
のようにすると、立体モデル600の外側にあり且つカ
メラ650に近い面611及び612は描画対象から外
れるので、立体モデル600は通常どおり描画される。
なお、ピクセル処理部430の隠面消去処理部435に
て隠面消去が行われるので、描画対象となってもそれら
の面の全てが描画されるわけではない。In the case of the contour drawing model according to the second embodiment, the front side is determined to be back, and the back side is determined to be front. Therefore, in the example of FIG. 16, the surface 61 on which the arrow points in the same direction as the direction of the line of sight 640 from the camera 650.
Only 3, 614, 615 and 616 are to be drawn.
Since this surface is usually a back surface, it is excluded from the drawing target, but is treated as a drawing target in the second embodiment. In this way, the surfaces 611 and 612 outside the three-dimensional model 600 and close to the camera 650 are excluded from the drawing target, so that the three-dimensional model 600 is drawn as usual.
Note that since the hidden surface is erased by the hidden surface erasure processing unit 435 of the pixel processing unit 430, not all of those surfaces are rendered even if they are to be rendered.
【0111】かすれ表現テクスチャマッピング部420
は、結果的に描画される輪郭線がかすれているような線
になるように、輪郭描画用モデルにかすれ表現用テクス
チャをマッピングするための処理を実施するものであ
る。なお、必ずしも輪郭線がかすれている必要は無いの
で、かすれ表現テクスチャマッピング部420を選択的
に動作させるようにする。Blurred expression texture mapping section 420
Performs a process for mapping a blurred expression texture to a contour drawing model so that the resulting contour line becomes a blurred line. Since the outline does not necessarily need to be blurred, the blurred expression texture mapping unit 420 is selectively operated.
【0112】立体モデル処理部440は、立体モデルの
処理を行うものである。すなわち、立体モデル処理部4
40は、立体モデルの各頂点に対し、頂点変換(拡大・
縮小・回転・平行移動・透視変換)及び光源計算を実施
し、立体モデルの各面(又はポリゴン)の表裏判定を行
う。仮想三次元空間において指定された状態に合わせて
拡大・縮小・回転・平行移動・透視変換するだけでな
く、輪郭描画用モデル処理部410で処理された後の輪
郭描画用モデルが立体モデルと同じ大きさである場合に
は、立体モデル処理部440は、立体モデルが輪郭描画
用モデルに対して相対的に小さくなるように立体モデル
のサイズを縮小するための頂点変換を実施する。ここで
縮小した場合も立体モデルと輪郭描画用モデルの関係は
図16のようになる。The three-dimensional model processing unit 440 performs processing of a three-dimensional model. That is, the three-dimensional model processing unit 4
40 is a vertex transformation (enlargement /
Reduction / rotation / translation / perspective transformation) and light source calculation are performed, and the front and back of each surface (or polygon) of the three-dimensional model is determined. In addition to performing enlargement / reduction / rotation / translation / perspective transformation in accordance with the state specified in the virtual three-dimensional space, the contour drawing model processed by the contour drawing model processing unit 410 is the same as the stereo model. If the size is the size, the three-dimensional model processing unit 440 performs vertex conversion for reducing the size of the three-dimensional model so that the three-dimensional model is relatively smaller than the contour drawing model. In this case, the relationship between the three-dimensional model and the contour drawing model also becomes as shown in FIG.
【0113】また、面の表裏判定は、通常と同じで、す
なわち輪郭描画用モデルの場合とは逆で、立体モデル6
00の面のうちカメラ650の視線640の方向と同じ
方向に矢印が向いている面を描画対象から除外する。図
16の例では、カメラ650から見て後ろの方の面60
3,604,605及び606が描画対象から除外され
る。ここでは、必要に応じて立体モデルのテクスチャ・
マッピングのための処理も行う。The determination of the front / back of the surface is the same as that of the normal model, that is, the opposite of the case of the contour drawing model.
Of the surfaces of 00, those whose arrows point in the same direction as the direction of the line of sight 640 of the camera 650 are excluded from the drawing target. In the example of FIG. 16, the rear surface 60 viewed from the camera 650.
3, 604, 605 and 606 are excluded from the drawing target. Here, the texture of the three-dimensional model
Processing for mapping is also performed.
【0114】ピクセル処理部430は、各ピクセルの描
画処理を行う。例えば、ピクセル処理部430は、面内
の各ピクセルの色を面の頂点の色から補間して求め、Z
バッファを使用した隠面消去処理を実施しつつ、各ピク
セルの色を決定する。ピクセル処理部430は、当該処
理を、輪郭描画用モデル処理部410及び立体モデル処
理部440において描画対象とされた面について行う。The pixel processing section 430 performs a drawing process for each pixel. For example, the pixel processing unit 430 obtains the color of each pixel in the plane by interpolating from the color of the vertex of the plane,
The color of each pixel is determined while performing the hidden surface removal processing using the buffer. The pixel processing unit 430 performs the process on the surface to be drawn by the contour drawing model processing unit 410 and the stereo model processing unit 440.
【0115】例えば図16の場合には、立体モデル60
0のカメラ650に最も近い2つの面601及び602
が描画され、輪郭描画用モデルのカメラ650に遠い4
つの面613,614,615及び616が描画され
る。輪郭描画用モデル610のこの4つの面は、カメラ
650から見ると立体モデル600から左右にはみ出し
ているので、はみ出している部分のみが隠面消去されず
に描画される。このはみ出している部分が輪郭線とな
る。なお、ピクセル処理部430は、輪郭描画用モデル
のマテリアルの色を考慮して色を決定する。なお、マテ
リアルの色を全く無視して輪郭線の色(黒又は暗い輪郭
線用の色)を輪郭描画用モデルの色とする場合もある。For example, in the case of FIG.
The two faces 601 and 602 closest to the camera 650
Is drawn, and the distance 4 to the camera 650 of the contour drawing model is
Two surfaces 613, 614, 615 and 616 are drawn. Since these four surfaces of the contour drawing model 610 protrude left and right from the three-dimensional model 600 when viewed from the camera 650, only the protruding portions are drawn without erasing the hidden surface. This protruding part becomes the contour line. Note that the pixel processing unit 430 determines the color in consideration of the color of the material of the contour drawing model. In some cases, the color of the outline (color for black or dark outline) is used as the color of the outline drawing model ignoring the material color.
【0116】次に、実施の形態2についての処理フロー
を説明する。なお、以下の処理は、演算処理部103が
コンピュータ本体101内の他の要素と連携して行う処
理である。Next, a processing flow for the second embodiment will be described. The following process is a process performed by the arithmetic processing unit 103 in cooperation with other elements in the computer main body 101.
【0117】[CD−R記録処理]図17には、実施の
形態2において予め行われる輪郭描画用モデルの生成処
理が示されている。処理が開始すると、HDD107に
予め記憶された立体モデルのデータが読み出され(ステ
ップS353)、変換対象モデルとして取得される。[CD-R Recording Process] FIG. 17 shows a process of generating a contour drawing model performed in advance in the second embodiment. When the process starts, data of the three-dimensional model stored in the HDD 107 in advance is read (step S353), and is acquired as a conversion target model.
【0118】次に、その変換対象モデルのサイズがひと
まわり大きくなるよう拡大される(ステップS35
5)。例えば、変換対象モデルの各頂点の法線方向に、
当該変換対象モデルの全長の2パーセントの長さだけ当
該頂点が移動され、全体として2パーセント程度拡大さ
れる。すなわち、例えば当該変換対象モデルが人間型
で、その身長が1.8m相当であれば、各頂点は0.0
36m相当の長さだけ移動される。この拡大率がより大
きい場合は輪郭線はより太く描画され、拡大率がより小
さく、変換対象モデルがわずかに拡大されただけである
場合には輪郭線はより細く描画される。更に、均一では
なく一部がより拡大されれば、より拡大された部分の輪
郭線のみが太く描画される。この調整は、通常立体モデ
ルの製作者により行われるので、当該製作者の意図を反
映した輪郭線を描画することができる。Next, the size of the model to be converted is enlarged so as to be slightly larger (step S35).
5). For example, in the normal direction of each vertex of the conversion target model,
The vertex is moved by a length of 2% of the total length of the conversion target model, and is enlarged by about 2% as a whole. That is, for example, if the conversion target model is a humanoid and the height is equivalent to 1.8 m, each vertex is 0.0
It is moved by a length equivalent to 36 m. When the enlargement ratio is larger, the outline is drawn thicker, and when the enlargement ratio is smaller, and when the conversion target model is only slightly enlarged, the outline is drawn thinner. Furthermore, if the part is not uniform and is partially enlarged, only the outline of the enlarged part is drawn thick. Since this adjustment is usually performed by the maker of the three-dimensional model, a contour line reflecting the intention of the maker can be drawn.
【0119】なお、立体モデルの各頂点の法線が定義さ
れていない場合には、当該頂点を共有する各面の法線を
補間することにより求められる当該頂点の法線を用い
て、当該頂点を当該頂点の法線方向に移動させることも
できる。When the normal of each vertex of the three-dimensional model is not defined, the normal of the vertex obtained by interpolating the normal of each face sharing the vertex is used to determine the normal of the vertex. Can be moved in the normal direction of the vertex.
【0120】また、立体モデルの各面の法線方向に当該
面を移動させることもできる。しかし単純に面が移動さ
れただけである場合には、面と面との間に隙間が生じて
しまうので、それを埋めるための処理が別途必要にな
る。更に、通常立体モデルには基準位置が定義されてい
るので、対応する変換対象モデルの基準位置を中心に、
当該変換対象モデルの各頂点を移動させることもでき
る。Further, the plane can be moved in the normal direction of each plane of the three-dimensional model. However, if the surface is simply moved, a gap is generated between the surfaces, and a process for filling the gap is required separately. Furthermore, since the reference position is usually defined in the three-dimensional model, the reference position of the corresponding conversion target model is
Each vertex of the conversion target model can be moved.
【0121】次に、変換対象モデルの各面のマテリアル
の色が、彩度は同じで明度を低くした色に設定される
(ステップS357)。なお、各面はすべて黒などの単
一色に設定されるとしてもよい。また、かすれ表現用テ
クスチャをマッピングするための設定がされるとしても
よい。マテリアルの色は製作者により調整されるので、
当該製作者の意図した色で輪郭線を描画することができ
る。Next, the color of the material on each surface of the model to be converted is set to a color having the same saturation but lower brightness (step S357). Note that all the surfaces may be set to a single color such as black. Further, the setting for mapping the texture for faint expression may be performed. Since the color of the material is adjusted by the maker,
The outline can be drawn in the color intended by the maker.
【0122】実施の形態2では、変換対象モデルの各面
の表裏を反転する処理は行われないので、ここまで処理
された変換対象モデルのデータを、輪郭描画用モデル・
データとしてHDD107に記憶し(ステップS36
1)、輪郭描画用モデル生成処理を終了する(ステップ
S363)。In the second embodiment, since the process of inverting each surface of the conversion target model is not performed, the data of the conversion target model processed so far is used as the outline drawing model /
The data is stored in the HDD 107 (step S36).
1), the contour drawing model generation process ends (step S363).
【0123】次に、HDD107に記憶された、輪郭描
画用モデル・データを含む各種データが、CD−Rドラ
イブ113によりCD−R131に書き込まれる。図6
に記載されているレベルでは、CD−R131に書き込
まれたデータの例は実施の形態1と同じである。すなわ
ち、プログラム領域132には、コンピュータ1000
に本発明を実施させるためのプログラムが格納される。
このプログラムは、CD−R131に書き込むまでの処
理を含まないとしてもよい。システムデータ領域133
には、上で述べたプログラム領域132に格納されるプ
ログラムによって処理される各種データが格納される。Next, various data including the contour drawing model data stored in the HDD 107 is written to the CD-R 131 by the CD-R drive 113. FIG.
, The example of data written to the CD-R 131 is the same as in the first embodiment. That is, in the program area 132, the computer 1000
A program for implementing the present invention.
This program may not include processing until writing to the CD-R 131. System data area 133
Stores various data processed by the program stored in the program area 132 described above.
【0124】画像データ領域134には、輪郭描画用モ
デル・データ135を含むデータが格納される。ここで
輪郭描画用モデル・データの示すモデルの各面の表裏は
立体モデルの対応する面と同じである。また、後述する
輪郭描画用モデル取得処理において、輪郭描画用モデル
を生成する場合は、輪郭描画用モデル・データ135が
格納される必要は無い。サウンドデータ領域136に
は、図1に示されたサウンド処理部109によりサウン
ド出力装置125からサウンドを出力させるためのデー
タが格納される。Data including outline drawing model data 135 is stored in the image data area 134. Here, the front and back of each surface of the model indicated by the contour drawing model data are the same as the corresponding surfaces of the three-dimensional model. In addition, when the contour drawing model is generated in the contour drawing model acquisition process described later, the contour drawing model data 135 does not need to be stored. The sound data area 136 stores data for causing the sound processing unit 109 shown in FIG. 1 to output a sound from the sound output device 125.
【0125】なお、CD−R131に格納される輪郭描
画用モデルのサイズは、対応する立体モデルのサイズと
同じ大きさで定義されるとしてもよい。この場合には、
後述する輪郭描画用モデル取得処理で輪郭描画用モデル
が取得された後、後述する輪郭描画用モデル配置処理で
輪郭描画用モデルの配置用マトリックスが設定されるま
での間に輪郭描画用モデルが拡大される。あるいは、輪
郭描画用モデル配置処理で輪郭描画用モデルの配置用マ
トリックスが設定される際に、当該配列用マトリックス
が拡大変換を含むように当該配置用マトリックスが決定
されるとしてもよい。逆に、立体モデルを配置する際
に、立体モデルの配置用マトリックスが縮小変換を含む
ように立体モデルの配置用マトリックスが決定されると
してもよい。Note that the size of the contour drawing model stored in the CD-R 131 may be defined to be the same as the size of the corresponding stereo model. In this case,
After the contour drawing model is acquired in the contour drawing model acquisition processing described later, the contour drawing model is enlarged until the arrangement matrix of the contour drawing model is set in the contour drawing model placement processing described later. Is done. Alternatively, when the arrangement matrix of the outline drawing model is set in the outline drawing model arrangement processing, the arrangement matrix may be determined so that the arrangement matrix includes the enlargement conversion. Conversely, when arranging the three-dimensional model, the three-dimensional model arrangement matrix may be determined so that the three-dimensional model arrangement matrix includes the reduction conversion.
【0126】また、CD−R131に格納される輪郭描
画用モデルの各面のマテリアルの色は、対応する立体モ
デルの各面のマテリアルの色と同一であってもよい。こ
の場合、後述される輪郭描画用モデルの描画処理の際
に、例えば黒などの別途定義された色で輪郭描画用モデ
ルが描画される。The material color of each surface of the contour drawing model stored in the CD-R 131 may be the same as the material color of each surface of the corresponding three-dimensional model. In this case, the contour drawing model is drawn in a separately defined color such as black when drawing the contour drawing model described later.
【0127】[全体の処理フロー]図7に記載されてい
るレベルの処理フローは実施の形態1と同じである。す
なわち、最初に初期設定が行われる(ステップS2)。
この初期設定では、後に詳述する輪郭描画用モデルのデ
ータ取得処理(図18)を含む。そして、仮想空間内の
状態が設定される(ステップS3)。この時輪郭描画用
モデルの位置座標等の決定処理が実施される。次に、輪
郭線を描画するか否かの判断処理が行われる(ステップ
S4)。もし輪郭線が描画される場合には、輪郭線描画
用モデルの描画処理が実施される(ステップS5)。こ
れについては後に図19を用いて説明する。そして輪郭
線が描画される場合も描画されない場合も立体モデルの
描画が行われる(ステップS6)。このステップS3乃
至S6が処理終了まで繰り返される(ステップS7)。[Overall Processing Flow] The processing flow of the level shown in FIG. 7 is the same as that of the first embodiment. That is, an initial setting is performed first (step S2).
This initial setting includes a data acquisition process (FIG. 18) of the contour drawing model described in detail later. Then, the state in the virtual space is set (step S3). At this time, a process of determining the position coordinates and the like of the contour drawing model is performed. Next, a process of determining whether or not to draw an outline is performed (step S4). If the contour is to be drawn, a drawing process of the contour drawing model is performed (step S5). This will be described later with reference to FIG. Then, the drawing of the three-dimensional model is performed regardless of whether the contour is drawn or not (step S6). Steps S3 to S6 are repeated until the processing is completed (step S7).
【0128】[輪郭描画用モデル取得処理]輪郭描画用
モデルの取得処理が図18に示されている。ここではま
ず、輪郭描画用モデルが生成されるか否かが判断される
(ステップS223)。輪郭描画用モデルを予め用意し
ておく場合と輪郭描画用モデルがこの段階にて生成され
る場合が存在するためである。ここでこの判断は、例え
ば立体モデルに対応した輪郭描画用モデルがCD−R1
31に格納されているか否かを判定する事により実施さ
れる。格納されていると判断されれば輪郭描画用モデル
は生成されないと判断され、格納されていないと判断さ
れれば、輪郭描画用モデルは生成されると判断される。[Contour Drawing Model Acquisition Processing] FIG. 18 shows a contour drawing model acquisition processing. Here, first, it is determined whether or not a contour drawing model is generated (step S223). This is because there are a case where the contour drawing model is prepared in advance and a case where the contour drawing model is generated at this stage. Here, this determination is made, for example, when the contour drawing model corresponding to the three-dimensional model is CD-R1.
This is performed by determining whether or not the data is stored in the storage 31. If it is determined that the model is stored, it is determined that the contour drawing model is not generated. If it is determined that the model is not stored, it is determined that the contour drawing model is generated.
【0129】輪郭描画用モデルが生成されないと判断さ
れた場合には、CD−R131に格納されている輪郭描
画用モデルのデータが読み出される(ステップS27
7)。この輪郭描画用モデルの各面は、上で図16及び
図17を用いて説明されたように、実施の形態1とは異
なり、立体モデルの対応する面とは表裏が同じものであ
る。また読み出される輪郭描画用モデルのサイズは対応
する立体モデルより一回り大きく定義される。更に、輪
郭描画用モデルの色は、対応する立体モデルより暗い色
で定義される。When it is determined that the contour drawing model is not generated, the data of the contour drawing model stored in the CD-R 131 is read (step S27).
7). As described above with reference to FIGS. 16 and 17, each surface of the contour drawing model has the same front and back surfaces as the corresponding surface of the three-dimensional model, unlike the first embodiment. The size of the contour drawing model to be read is defined to be slightly larger than the corresponding three-dimensional model. Further, the color of the contour drawing model is defined as a color darker than the corresponding three-dimensional model.
【0130】もし輪郭描画用モデルが生成されると判断
された場合には、輪郭描画用モデルを生成する処理が行
われる(ステップS225)。ステップS227と同じ
ように、この段階において輪郭描画用モデルを生成する
場合においても、輪郭描画用モデルの各面は、立体モデ
ルの対応する面と表裏が同じものにする(図16参
照)。If it is determined that a contour drawing model is to be generated, a process for generating a contour drawing model is performed (step S225). As in step S227, even when the contour drawing model is generated at this stage, the surfaces of the contour drawing model are the same as the corresponding surfaces of the three-dimensional model (see FIG. 16).
【0131】輪郭描画用モデルのサイズは、対応する立
体モデルより一回り大きく生成される。ステップS35
5(図17)と同じように、例えば立体モデルの各頂点
の法線方向に当該頂点を移動させて拡大された輪郭描画
用モデルが生成される。輪郭描画用モデルが立体モデル
に比してより大きい場合は輪郭線はより太く描画され、
輪郭描画用モデルが立体モデルよりわずかに大きいだけ
である場合は輪郭線はより細く描画される。The size of the contour drawing model is generated to be slightly larger than the corresponding three-dimensional model. Step S35
Similarly to FIG. 5 (FIG. 17), for example, the vertex is moved in the normal direction of each vertex of the three-dimensional model, and an enlarged contour drawing model is generated. If the outline drawing model is larger than the stereo model, the outline is drawn thicker,
If the contour drawing model is only slightly larger than the three-dimensional model, the contour is drawn finer.
【0132】また、ステップS355(図17)の説明
で述べられているように、立体モデルの各面の法線方向
に当該面を移動させて拡大された輪郭描画用モデルが生
成されるとしてもよい。更に、通常立体モデルに定義さ
れている基準位置を中心に、この立体モデルの各頂点を
移動させて拡大された輪郭描画用モデルが生成されると
してもよい。As described in the description of step S355 (FIG. 17), even if the plane is moved in the normal direction of each plane of the three-dimensional model, an enlarged contour drawing model is generated. Good. Furthermore, an outline drawing model that is enlarged by moving each vertex of the stereo model around a reference position defined in the normal stereo model may be generated.
【0133】なお、この時点では、輪郭描画用モデルの
サイズは、対応する立体モデルのサイズと同じ大きさで
生成されるとしてもよい。この場合には、本輪郭描画用
モデル取得処理で輪郭描画用モデルが取得された後、後
述する輪郭描画用モデル配置処理で輪郭描画用モデルの
配置用マトリックスが設定されるまでの間に輪郭描画用
モデルが拡大される。あるいは、輪郭描画用モデル配置
処理で輪郭描画用モデルの配置用マトリックスが設定さ
れる際に、当該配置用マトリックスが、その拡大変換を
含むように決定されるとしてもよい。逆に、立体モデル
を配置する際に、立体モデルの配置用マトリックスが縮
小変換を含むように立体モデルの配置用マトリックスが
決定されるとしてもよい。At this point, the size of the contour drawing model may be generated in the same size as the size of the corresponding three-dimensional model. In this case, after the contour drawing model is obtained in the contour drawing model acquisition processing, the contour drawing is performed until the contour drawing model arrangement matrix is set in the contour drawing model arrangement processing described later. Model is expanded. Alternatively, when the arrangement matrix of the contour drawing model is set in the contour drawing model arrangement processing, the arrangement matrix may be determined to include the enlargement conversion. Conversely, when arranging the three-dimensional model, the three-dimensional model arrangement matrix may be determined so that the three-dimensional model arrangement matrix includes the reduction conversion.
【0134】一方、輪郭描画用モデルの各面のマテリア
ルの色は、対応する立体モデルの各面のマテリアルの色
をより暗くした色で生成される。なお、ステップS35
7(図17)の説明で述べられているのと同様に、この
時点では、生成される輪郭描画用モデルの色は定義され
ていなくてもよい。あるいは、輪郭描画用モデルの各面
のマテリアルの色が、対応する立体モデルの各面のマテ
リアルの色と同一であっても良い。この場合、輪郭描画
用モデルの描画処理の際に、輪郭描画用モデルの色は考
慮されず、例えば黒などの別途定義された色か、かすれ
を表現するテクスチャの色で輪郭描画用モデルが描画さ
れる。On the other hand, the material color of each surface of the contour drawing model is generated as a darker color of the material of each surface of the corresponding three-dimensional model. Step S35
7 (FIG. 17), the color of the contour drawing model to be generated may not be defined at this point. Alternatively, the color of the material of each surface of the contour drawing model may be the same as the color of the material of each surface of the corresponding three-dimensional model. In this case, when the contour drawing model is drawn, the color of the contour drawing model is not considered, and the contour drawing model is drawn with a separately defined color such as, for example, black, or a color of a texture expressing blur. Is done.
【0135】次に、輪郭描画用モデルにかすれを表現す
るテクスチャがマッピングされるか否かが判断される
(ステップS299)。ステップS225で輪郭描画用
モデルが生成された場合には、対応する立体モデルのデ
ータに基づいてこの判断が実施される。一方、ステップ
S227で輪郭描画用モデルが読み出された場合には、
読み出された輪郭描画用モデルのデータに基づいてこの
判断が実施される。かすれを表現するテクスチャがマッ
ピングされると判断された場合には、ステップS231
にて輪郭描画用モデルにかすれを表現するテクスチャが
マッピングされる。すなわち、ポリゴンの各頂点にテク
スチャ座標(U,V)が設定される。Next, it is determined whether or not a texture expressing blur is mapped on the contour drawing model (step S299). When the contour drawing model is generated in step S225, this determination is performed based on the data of the corresponding three-dimensional model. On the other hand, when the contour drawing model is read in step S227,
This determination is made based on the data of the read contour drawing model. If it is determined that a texture expressing blur is mapped, step S231 is performed.
Is mapped on the contour drawing model. That is, texture coordinates (U, V) are set for each vertex of the polygon.
【0136】なお、前述の通り、かすれを表現するテク
スチャは、明度又は透明度の変化を含む図柄を有するテ
クスチャであって、例えば図9に示されたテクスチャで
ある。かすれを表現するテクスチャがマッピングされな
いと判断された場合と、テクスチャがマッピングされる
処理が終了した場合は、演算処理部103は輪郭描画用
モデル取得処理を終了する(ステップS233)。As described above, the texture expressing the blur is a texture having a pattern including a change in lightness or transparency, such as the texture shown in FIG. When it is determined that the texture expressing the blur is not mapped, and when the process of mapping the texture ends, the arithmetic processing unit 103 ends the contour drawing model acquisition process (step S233).
【0137】[輪郭描画用モデル配置処理]図7のステ
ップS3において輪郭描画用モデルの配置マトリックス
が設定され、輪郭描画用モデルの配置処理が行われる。
通常輪郭描画用モデルの基準位置は、立体モデルの基準
位置に対応する位置に設けられる。そしてその輪郭描画
用モデルの基準位置が、立体モデルの基準位置が配置さ
れている位置と同一又はその近傍に配置されるように、
輪郭描画用モデルの配置用マトリックスが設定される。[Contour Drawing Model Arrangement Processing] In step S3 of FIG. 7, the arrangement matrix of the contour drawing model is set, and the contour drawing model arrangement processing is performed.
Usually, the reference position of the contour drawing model is provided at a position corresponding to the reference position of the three-dimensional model. Then, such that the reference position of the contour drawing model is arranged at or near the position where the reference position of the three-dimensional model is arranged,
An arrangement matrix of the contour drawing model is set.
【0138】ここで立体モデルの方向が変化する場合に
は、輪郭描画用モデルもそれに対応するよう回転変換を
含む配置用マトリックスが設定される。立体モデルの形
状が変化する場合には、輪郭描画用モデルがそれに対応
するよう変形処理が行われる。Here, when the direction of the three-dimensional model changes, an arrangement matrix including rotation conversion is set for the contour drawing model so as to correspond to the change. When the shape of the three-dimensional model changes, a deformation process is performed on the contour drawing model so as to correspond to the change.
【0139】この段階において輪郭描画用モデルが対応
する立体モデルと同じ大きさである場合は、輪郭描画用
モデルが拡大される。具体的には、輪郭描画用モデルの
基準位置を中心として輪郭描画用モデルの各頂点が所定
の拡大率に従って拡大変換されるように、輪郭描画用モ
デルの配置用マトリックスが設定される。あるいは逆
に、立体モデルが縮小されるとしてもよい。すなわちこ
の場合には、立体モデルの基準位置を中心として立体モ
デルの各頂点が所定の縮小率に従って縮小変換されるよ
うに、立体モデルの配置用マトリックスが設定される。At this stage, if the contour drawing model has the same size as the corresponding three-dimensional model, the contour drawing model is enlarged. More specifically, an arrangement matrix of the contour drawing model is set such that each vertex of the contour drawing model is enlarged and converted according to a predetermined enlargement ratio around the reference position of the contour drawing model. Or conversely, the three-dimensional model may be reduced. That is, in this case, the matrix for arranging the three-dimensional model is set such that each vertex of the three-dimensional model is reduced and converted in accordance with the predetermined reduction ratio with the reference position of the three-dimensional model as the center.
【0140】このようにすると、最終的には、相対的に
大きい輪郭描画用モデルが立体モデルを包含するように
配置される。両モデルの配置位置、方向、形状等の関係
により、輪郭描画用モデルは完全には立体モデルを包含
しない場合も生じ得る。但し、このような場合であって
も、包含している部分については輪郭線は描画される。By doing so, finally, the relatively large contour drawing model is arranged so as to include the three-dimensional model. The contour drawing model may not completely include the three-dimensional model depending on the relationship between the arrangement positions, directions, shapes, and the like of the two models. However, even in such a case, the outline is drawn for the included part.
【0141】なお、この段階では必ずしも配置用マトリ
ックスが設定されている必要は無く、配置される座標、
方向及び拡大・縮小率等の頂点変換に必要な各要素が確
定していればよい。この場合も、実際の頂点変換は各モ
デルの描画処理の段階で行われる。At this stage, it is not always necessary to set an arrangement matrix.
It is only necessary that the elements required for vertex conversion such as the direction and the enlargement / reduction ratio have been determined. Also in this case, the actual vertex conversion is performed at the stage of the rendering process of each model.
【0142】[輪郭描画用モデルの描画処理]輪郭描画
用モデルの描画処理フローを表す図19では、輪郭描画
用モデルの全ての頂点について処理するまで、以下に説
明する処理が繰り返される(ステップS523)。繰り
返し行われる最初の処理は、1つの頂点について頂点変
換(拡大・縮小・回転・平行移動・透視変換)である
(ステップS525)。例えば、この処理は演算処理部
103に命令された幾何演算部207が実施する。[Drawing Process of Contour Drawing Model] In FIG. 19 showing the drawing process flow of the contour drawing model, the process described below is repeated until all vertices of the contour drawing model are processed (step S523). ). The first process that is repeatedly performed is vertex transformation (enlargement / reduction / rotation / translation / perspective transformation) for one vertex (step S525). For example, this processing is performed by the geometric operation unit 207 instructed by the operation processing unit 103.
【0143】ここで注意したいのは輪郭描画用モデルに
対しては光源計算を実施しない点である。これは輪郭線
は光源の位置等に関係が無く、光源計算をするのが無駄
だからである(場合によっては輪郭描画用モデルのマテ
リアルの色は最終的に無視される場合がある)。通常こ
の頂点変換は、仮想三次元空間において指定された状態
に基づき行われるが、もし輪郭描画用モデルの大きさが
立体モデルと同じである場合には、配置処理で設定され
た配置用マトリックスに従ってこの段階において輪郭描
画用モデルが拡大変換される場合もある。It should be noted here that the light source calculation is not performed on the contour drawing model. This is because the contour is irrelevant to the position of the light source and the like, and it is useless to calculate the light source (in some cases, the color of the material of the contour drawing model may be eventually ignored). Normally, this vertex transformation is performed based on the state specified in the virtual three-dimensional space. However, if the size of the contour drawing model is the same as the three-dimensional model, the vertex transformation is performed according to the arrangement matrix set in the arrangement processing. At this stage, the contour drawing model may be enlarged and converted.
【0144】そして、当該頂点を含むポリゴン(面)は
通常の判断基準でうら面か否かの判断処理が実施される
(ステップS527)。通常はおもて面しか描画対象と
されないが、実施の形態2の輪郭描画用モデルの場合に
は通常の判定基準でうら面が描画対象とされる。このス
テップの判断は、三角形ポリゴンの場合この頂点の前に
処理された2つの頂点から構成される三角形ポリゴンが
いずれの方向を向いているかで行う。Then, a process of determining whether or not the polygon (surface) including the vertex is a back surface based on a normal determination standard is performed (step S527). Normally, only the front surface is to be drawn, but in the case of the contour drawing model according to the second embodiment, the back surface is to be drawn according to the normal determination criteria. The determination in this step is performed in the case of a triangular polygon in which direction the triangular polygon composed of the two vertices processed before this vertex faces.
【0145】図11に示すように、例えば、通常の判断
基準で三角形ポリゴンの各頂点に反時計回りに頂点番号
が付されている場合に紙面手前がおもて面であると定義
する(いわゆる右手系)。実施の形態2では、表裏判定
の基準を逆転し、時計回りに頂点番号が付されている場
合に紙面手前がおもて面であるとして判断する。この逆
転した表裏判定基準でおもて面と判断された面のみを描
画対象とする。結果的に実施の形態2の判断基準におけ
るおもて面が、通常の判断基準ではうら面と判断される
からである。As shown in FIG. 11, for example, when each vertex of a triangular polygon is assigned a vertex number in a counterclockwise direction according to a normal judgment criterion, it is defined that the front side of the page is the front side (so-called front side). Right-handed). In the second embodiment, the criterion for the front / back determination is reversed, and when a vertex number is assigned clockwise, it is determined that the front side of the paper is the front side. Only the surface determined to be the front surface based on the reversed front / back determination criteria is set as a drawing target. As a result, the front side in the criterion of the second embodiment is determined to be the back side by the normal criterion.
【0146】図20には、判断対象となる三角形ポリゴ
ンの例が示されている。図20に示す三角形ポリゴンの
各頂点には、図中上方、左下、右下の順で0,1,2の
頂点番号が付与されている。図20の例では頂点番号の
付し方からすると紙面手前がおもて面であるが、逆転し
た判断基準では紙面手前はうら面となる。逆転した判断
基準でうら面の場合には、通常ではおもて面であるから
この面は描画対象からはずされる。なお、実施の形態2
でもこの段階において表裏判定を行うが、この段階より
前に表裏判定を行うようにすることも可能である。FIG. 20 shows an example of a triangular polygon to be determined. Each vertex of the triangular polygon shown in FIG. 20 is assigned vertex numbers 0, 1, and 2 in the order of upper, lower left, and lower right in the figure. In the example of FIG. 20, the front side is the front side in terms of the numbering of the vertices, but according to the reversed criterion, the front side is the back side. In the case of the back surface according to the reversed judgment criterion, the front surface is normally removed from the drawing target because it is the front surface. Embodiment 2
Although the front / back determination is performed at this stage, the front / back determination may be performed before this stage.
【0147】もし、当該頂点を含むポリゴン(面)が通
常の判断基準でおもて面であった場合にはステップS5
23に戻る。当該頂点を含むポリゴン(面)が通常の判
断基準でうら面であった場合には、かすれを表現するテ
クスチャをマッピングする否かの判断処理が実施される
(ステップS529)。これはポリゴンに対するテクス
チャ・マッピングを意味している。もし、かすれを表現
するテクスチャをマッピングする場合には、その頂点に
対する、かすれを表現するためのテクスチャのテクスチ
ャ座標の計算処理が実施される(ステップS531)。
テクスチャ・パースペクティブ処理として、ここでは、
Q=1/w(wはスクリーンからの奥行き)を用いて、
S=U×Q、T=V×Qの計算が行われる。もし、かす
れを表現するテクスチャをマッピングしない場合にはス
テップS533に移行する。If the polygon (surface) including the vertex is a front surface according to a normal criterion, step S5
Return to 23. If the polygon (surface) including the vertex is a back surface according to the normal determination criterion, a process of determining whether or not to map a texture expressing blur is performed (step S529). This means texture mapping for polygons. If the texture representing the blur is to be mapped, a process of calculating the texture coordinates of the texture for expressing the blur for the vertex is performed (step S531).
Here, as texture perspective processing,
Using Q = 1 / w (w is the depth from the screen),
The calculation of S = U × Q and T = V × Q is performed. If the texture expressing the blur is not mapped, the process proceeds to step S533.
【0148】そして、例えば図2に示した三角形描画処
理部205及びピクセルカラー処理部209が駆動され
る(ステップS533)。上で述べたように三角形描画
処理部205は、三角形ポリゴンの各頂点のデータを補
間して、三角形ポリゴン内部の各ピクセルにおけるデー
タを生成する。各頂点のデータは、マテリアルの色、ス
クリーン座標値、及びステップS531を実施すればテ
クスチャ座標値である。また、各ピクセルにおけるデー
タは、マテリアルの色及びステップS531を実施すれ
ばテクセル・カラーである。但し、この時点でマテリア
ルの色を無視して、各頂点に輪郭線の色を設定すること
も可能である。またマテリアルの色を考慮して、輝度を
設定することも可能である。ピクセルカラー処理部20
9は、三角形描画処理部205が生成する三角形ポリゴ
ン内部の各ピクセルにおけるデータを使用して、フレー
ムバッファ213に表示画像を書き込む。この際、Zバ
ッファ211を使用して隠面消去を行う。Then, for example, the triangle drawing processing unit 205 and the pixel color processing unit 209 shown in FIG. 2 are driven (step S533). As described above, the triangle rendering processing unit 205 interpolates the data of each vertex of the triangle polygon to generate data at each pixel inside the triangle polygon. The data of each vertex is a material color, a screen coordinate value, and a texture coordinate value if step S531 is performed. The data at each pixel is the color of the material and the texel color if step S531 is performed. However, at this point, it is also possible to ignore the color of the material and set the color of the outline at each vertex. It is also possible to set the luminance in consideration of the color of the material. Pixel color processing unit 20
9 writes a display image in the frame buffer 213 using data of each pixel inside the triangular polygon generated by the triangular drawing processing unit 205. At this time, the hidden surface is erased using the Z buffer 211.
【0149】[立体モデル描画処理]立体モデルの描画
処理も実施の形態1(図14)と変わらない。すなわ
ち、立体モデルの全ての頂点を処理するまで以下の処理
が繰り返し実施される(ステップS603)。繰り返さ
れる第1の処理は、一つの頂点についての頂点変換(拡
大・縮小・回転・平行移動・透視変換)及び光源計算で
ある(ステップS605)。これは例えば演算処理部1
03からの命令により幾何演算部207が実行する。立
体モデルのデータは例えばCD−R131に格納されて
いる。輪郭描画用モデルが立体モデルと同じ大きさであ
る場合には、立体モデルを縮小することにより輪郭描画
用モデルを相対的に大きくする場合もある。この場合に
は、ステップS605において縮小変換を実施する。[Three-dimensional model drawing process] The three-dimensional model drawing process is not different from that of the first embodiment (FIG. 14). That is, the following processing is repeatedly performed until all vertices of the three-dimensional model are processed (step S603). The first processing that is repeated is vertex transformation (enlargement / reduction / rotation / translation / perspective transformation) and light source calculation for one vertex (step S605). This is, for example, the arithmetic processing unit 1
The arithmetic operation unit 207 executes the instruction from the instruction 03. The data of the three-dimensional model is stored in the CD-R 131, for example. When the contour drawing model has the same size as the three-dimensional model, the contour drawing model may be made relatively large by reducing the three-dimensional model. In this case, reduction conversion is performed in step S605.
【0150】次に、当該頂点を含むポリゴン(面)はお
もて面か否かの判断処理が実施される(ステップS60
7)。この判断は、三角形ポリゴンの場合この頂点の前
に処理された2つの頂点から構成される三角形ポリゴン
がいずれの方向を向いているかで判断する。もし、当該
頂点を含むポリゴン(面)がうら面であった場合にはス
テップS603に戻る。当該頂点を含むポリゴン(面)
がおもて面であった場合にはその頂点のテクスチャ座標
の計算処理が実施される(ステップS609)。そし
て、例えば図2に示した三角形描画処理部205及びピ
クセルカラー処理部209が駆動される(ステップS6
11)。Next, a process of determining whether or not the polygon (surface) including the vertex is a front surface is performed (step S60).
7). This determination is made in the case of a triangular polygon based on which direction the triangular polygon composed of two vertices processed before this vertex faces. If the polygon (plane) including the vertex is a back surface, the process returns to step S603. Polygon (face) containing the vertex
If is a front surface, calculation processing of the texture coordinates of the vertex is performed (step S609). Then, for example, the triangle drawing processing unit 205 and the pixel color processing unit 209 illustrated in FIG. 2 are driven (step S6).
11).
【0151】上で述べたように三角形描画処理部205
は、三角形ポリゴンの各頂点のデータを補間して、三角
形ポリゴン内部の各ピクセルにおけるデータを生成す
る。各頂点のデータは、マテリアルの色、スクリーン座
標値、及びテクスチャ座標値である。各ピクセルにおけ
るデータは、マテリアルの色及びテクセル・カラーであ
る。ピクセルカラー処理部209は、三角形描画処理部
205が生成する三角形ポリゴン内部の各ピクセルにお
けるデータを使用して、フレームバッファ213に表示
画像を書き込む。この際、Zバッファ211を使用して
隠面消去を行う。As described above, the triangle drawing processing unit 205
Generates data at each pixel inside the triangle polygon by interpolating the data of each vertex of the triangle polygon. The data of each vertex is a material color, a screen coordinate value, and a texture coordinate value. The data at each pixel is the material color and texel color. The pixel color processing unit 209 writes a display image to the frame buffer 213 using the data of each pixel inside the triangle polygon generated by the triangle drawing processing unit 205. At this time, the hidden surface is erased using the Z buffer 211.
【0152】以上のような処理を実施すると、立体モデ
ルは通常どおりレンダリングされ、実施の形態2で導入
された輪郭描画用モデルは、立体モデルの後ろの面の内
部のうち立体モデルに隠れない部分が描画されるので、
その部分が輪郭線としてレンダリングされる。実施の形
態2では、輪郭描画用モデルを導入し且つ輪郭描画用モ
デルの表裏判定を逆転するだけで通常の立体モデルとほ
ぼ同様の処理を行うことにより簡単に輪郭線を描画でき
るようになる。When the above processing is performed, the three-dimensional model is rendered as usual, and the contour drawing model introduced in the second embodiment is a part of the surface behind the three-dimensional model that is not hidden by the three-dimensional model. Is drawn,
That part is rendered as an outline. In the second embodiment, the outline can be easily drawn by performing substantially the same processing as that of the normal three-dimensional model only by introducing the outline drawing model and reversing the front / back determination of the outline drawing model.
【0153】3.他の実施の形態 (1)図4および図16では、輪郭描画用モデルの面と
立体モデルの面が一対一になっているが、輪郭描画用モ
デルの面の数を減らすことも可能である。面の数が減れ
ば、処理が高速化されるためである。但し、輪郭描画用
モデルの面には立体モデル中に対応する面が存在する。3. 4. Other Embodiments (1) In FIGS. 4 and 16, the surface of the contour drawing model and the surface of the three-dimensional model are one-to-one, but the number of surfaces of the contour drawing model can be reduced. . This is because if the number of surfaces is reduced, the processing speed is increased. However, the surface of the contour drawing model has a corresponding surface in the three-dimensional model.
【0154】(2)図7に示した処理フローのステップ
S4とステップS6は順番を入れ替えることが可能であ
る。(2) Steps S4 and S6 of the processing flow shown in FIG. 7 can be interchanged.
【0155】(3)使用するハードウエアの変更 上で述べた実施の形態では、立体モデル及び輪郭描画用
モデル描画処理の一部の処理を、グラフィックス処理部
111が実行するような実施の形態を開示したが、オブ
ジェクト描画処理全体をグラフィックス処理部111が
行っても、演算処理部103が実行するようにしても良
い。(3) Change of Hardware Used In the above-described embodiment, an embodiment is described in which the graphics processing unit 111 executes a part of the stereo model and contour drawing model drawing processing. However, the entire object drawing process may be performed by the graphics processing unit 111 or the arithmetic processing unit 103.
【0156】また図1は一例であって、様々な変更が可
能である。例えば、ゲーム装置ならば、インターフェー
ス部117にデータを保存するためのメモリカードの読
み書きインターフェースを備えるようにすることも考え
られる。また、通信インターフェース115を備えるか
否かは任意である。本発明は直接サウンド処理には関係
しないので、サウンド処理部109を備えている必要は
無い。FIG. 1 is an example, and various changes can be made. For example, in the case of a game device, it is conceivable to provide the interface unit 117 with a memory card read / write interface for storing data. Whether or not to include the communication interface 115 is optional. Since the present invention is not directly related to sound processing, it is not necessary to provide the sound processing unit 109.
【0157】また、CD−Rは記録媒体の一例であっ
て、RAMのような内部メモリ、フロッピーディスク、
磁気ディスク、DVD−RAM等の他の記録媒体であっ
てもよい。その場合にはCD−Rドライブ113を、対
応する媒体で読み書き可能なドライブにする必要があ
る。更に本発明は記録媒体に書き込むまでの処理と図7
に示された処理とが独立しており、それぞれを互いに異
なるコンピュータで動作させることが可能である。図7
に示された処理では記録媒体からの読み取りが可能であ
ればよいので、図7に示された処理を行うコンピュータ
は、媒体に格納されたプログラム及びデータの読み取り
のみが可能なドライブを備えていればよい。すなわち記
録媒体としては更に、ROMのような内部メモリ、CD
−ROM、DVD−ROM、メモリカートリッジ等の主
に読み取り専用の記録媒体でもよい。その場合にはCD
−Rドライブ113を、対応する媒体を読み取り可能な
ドライブにする必要がある。The CD-R is an example of a recording medium, and includes an internal memory such as a RAM, a floppy disk,
Other recording media such as a magnetic disk and a DVD-RAM may be used. In that case, the CD-R drive 113 needs to be a drive that can read and write on a corresponding medium. Further, according to the present invention, the processing up to writing on the recording medium and FIG.
Are independent of each other, and can be operated by different computers. FIG.
Since the computer shown in FIG. 7 only needs to be able to read from a recording medium, the computer that performs the processing shown in FIG. 7 may include a drive that can only read programs and data stored in the medium. I just need. That is, as a recording medium, an internal memory such as a ROM, a CD
-A mainly read-only recording medium such as a ROM, a DVD-ROM, and a memory cartridge may be used. In that case CD
-The R drive 113 needs to be a drive that can read the corresponding medium.
【0158】さらに、以上は本発明をコンピュータ・プ
ログラムにより実装した場合であるが、コンピュータ・
プログラムと電子回路などの専用の装置の組み合せ、又
は電子回路などの専用の装置のみによっても実装するこ
とは可能である。その際、図7、図8、図10及び図1
4又は図7、図18、図19及び図14の各ステップに
表される機能毎に装置を構成してもよいし、それらの一
部又はそれらの組み合せに毎に装置を構成することも考
えられる。Further, the above is the case where the present invention is implemented by a computer program.
It is also possible to implement by combining a program and a dedicated device such as an electronic circuit, or by only a dedicated device such as an electronic circuit. At this time, FIGS. 7, 8, 10 and 1
4 or FIG. 7, FIG. 18, FIG. 19, and FIG. 14, the apparatus may be configured for each function represented by each step, or the apparatus may be configured for each part or combination thereof. Can be
【0159】以上、本発明を実施の形態に基づいて具体
的に説明したが、本発明は上記実施の形態に限定される
ものではなく、その要旨を逸脱しない範囲で適宜変更可
能である。例えば、上記実施の形態では、通常のコンピ
ュータをプラットホームとして本発明を実現した場合に
ついて述べたが、本発明は家庭用ゲーム機、アーケード
ゲーム機などをプラットホームとして実現しても良い。
場合によっては、携帯情報端末、カーナビゲーション・
システム等をプラットホームにして実現することも考え
られる。Although the present invention has been specifically described based on the embodiments, the present invention is not limited to the above embodiments, and can be appropriately changed without departing from the gist of the present invention. For example, in the above-described embodiment, a case has been described in which the present invention is implemented using a normal computer as a platform. However, the present invention may be implemented using a home-use game machine, an arcade game machine, or the like as a platform.
In some cases, personal digital assistants, car navigation systems,
It is also conceivable to use a system or the like as a platform.
【0160】また、本発明を実現するためのプログラム
やデータは、コンピュータやゲーム機に対して着脱可能
なCD−R等の記録媒体により提供される形態に限定さ
れない。すなわち、本発明を実現するためのプログラム
やデータは、図1に示す通信インターフェース115に
より、通信回線141を介して接続されたネットワーク
151上の他の機器側のメモリに上記プログラムやデー
タを記録し、このプログラムやデータを通信回線141
を介して必要に応じて順次メモリ105に格納して使用
する形態であってもよい。Further, the programs and data for realizing the present invention are not limited to the form provided by a recording medium such as a CD-R detachable from a computer or a game machine. That is, programs and data for implementing the present invention are recorded in the memory of another device on the network 151 connected via the communication line 141 by the communication interface 115 shown in FIG. , This program or data is transmitted to the communication line 141.
May be sequentially stored in the memory 105 as needed and used.
【0161】[表示例]図21に図8又は図18で輪郭
描画用モデルを立体モデルから自動的に生成してレンダ
リングした場合の画像表示例を示す。木の幹の周りにほ
ぼ均等な幅で輪郭線が描画されている。一方、図22
に、図5又は図17で予め輪郭描画用モデルを生成して
おき、その予め生成されている輪郭描画用モデルを読み
出してレンダリングした結果の例を示す。輪郭描画用モ
デルを適当に作成すれば、輪郭線が細い部分や太いとこ
ろを任意に作成することができる。例えば図22では木
の幹の上の方では輪郭線が細く、木の幹の根元部分は輪
郭線が細くなっている。加えて、図23に輪郭線のかす
れ表現の例を示す。例えば図9のようなテクスチャを輪
郭描画用モデルにマッピングすると、図23のように輪
郭線が部分的に欠けたようになる。これにより手で書い
たような輪郭線を表現することができるようになる。[Display Example] FIG. 21 shows an image display example when the contour drawing model is automatically generated from the three-dimensional model and rendered in FIG. 8 or FIG. Contour lines are drawn around the tree trunk with approximately equal width. On the other hand, FIG.
FIG. 5 or FIG. 17 shows an example of a result of generating a contour drawing model in advance in FIG. 5 or FIG. 17 and reading out and rendering the previously generated contour drawing model. If a contour drawing model is appropriately created, a portion having a thin contour line or a thick portion can be arbitrarily created. For example, in FIG. 22, the contour is thinner at the top of the tree trunk, and the contour is thinner at the root of the tree trunk. In addition, FIG. 23 shows an example of a faint expression of a contour line. For example, when the texture as shown in FIG. 9 is mapped to the contour drawing model, the contour becomes partially missing as shown in FIG. As a result, it becomes possible to express a contour line that is drawn by hand.
【0162】以上のように本発明を使用すると、立体モ
デルに輪郭線を簡単な処理で表現することができるよう
になる。輪郭線を使用する場合には例えばセルアニメー
ション(cel animation)を作成するような場合があ
る。セルアニメーションを手書きで作成する場合には、
手作業の量が増えるため、あまり多くの場面や角度から
の画像を作成できない。また、手書き調のゲームキャラ
クタが表示されるゲームにおいても、同様の理由により
あまり多くの角度からのキャラクタの画像を作成できな
い。本発明のようにコンピュータ・グラフィックスを使
用することにより表現できるようになるので、任意の場
面の画像を簡単に作成できるようになる。As described above, when the present invention is used, a contour line can be represented on a three-dimensional model by a simple process. When a contour line is used, for example, a cel animation may be created. To create a cell animation by hand,
Due to the increased amount of manual work, images from too many scenes and angles cannot be created. Also, in a game in which a hand-written game character is displayed, it is not possible to create a character image from too many angles for the same reason. Since the present invention can be expressed by using computer graphics as in the present invention, an image of an arbitrary scene can be easily created.
【0163】[0163]
【発明の効果】以上のように本発明によれば、仮想空間
に配置された立体モデルを描画すると共に、当該立体モ
デルに対応し且つ当該立体モデルを包含する輪郭描画用
モデルの内側を描画することにより当該立体モデルの輪
郭線を描画できるようにするレンダリング方法及び装置
並びにレンダリング・プログラムを格納したコンピュー
タ読み取り可能な記録媒体を提供することができた。As described above, according to the present invention, a three-dimensional model arranged in a virtual space is drawn, and the inside of a contour drawing model corresponding to the three-dimensional model and including the three-dimensional model is drawn. As a result, a computer-readable recording medium storing a rendering method and apparatus and a rendering program for rendering contour lines of the three-dimensional model can be provided.
【図1】本発明に係るプログラムを実行するコンピュー
タの一例を示すブロック図である。FIG. 1 is a block diagram illustrating an example of a computer that executes a program according to the present invention.
【図2】図1におけるグラフィックス処理部の一例を示
すブロック図である。FIG. 2 is a block diagram illustrating an example of a graphics processing unit in FIG. 1;
【図3】実施の形態1の機能ブロック図である。FIG. 3 is a functional block diagram according to the first embodiment.
【図4】実施の形態1におけるカメラ、立体モデル、及
び輪郭描画用モデルの位置関係を説明するための模式図
である。立体モデル及び輪郭描画用モデルのおもて面が
向いている方向を矢印で示している。FIG. 4 is a schematic diagram for explaining a positional relationship among a camera, a three-dimensional model, and a contour drawing model according to the first embodiment. The direction in which the front surface of the three-dimensional model and the contour drawing model faces is indicated by an arrow.
【図5】実施の形態1における輪郭描画用モデル生成処
理のフローチャートである。FIG. 5 is a flowchart of a contour drawing model generation process according to the first embodiment;
【図6】CD−R131に書き込まれたデータの例を示
した模式図である。FIG. 6 is a schematic diagram showing an example of data written on a CD-R 131.
【図7】本発明全体の処理を示すフローチャートであ
る。FIG. 7 is a flowchart showing the entire processing of the present invention.
【図8】実施の形態1の輪郭描画用モデル取得処理のフ
ローチャートである。FIG. 8 is a flowchart of a contour drawing model acquisition process according to the first embodiment;
【図9】かすれ表現をするためのテクスチャの一例であ
る。FIG. 9 is an example of a texture for faint expression.
【図10】実施の形態1の輪郭描画用モデル描画処理の
フローチャートである。FIG. 10 is a flowchart of contour drawing model drawing processing according to the first embodiment;
【図11】三角形ポリゴンの表裏判定を説明するための
模式図である。FIG. 11 is a schematic diagram for explaining front / back determination of a triangular polygon.
【図12】表裏を判定する方法を説明するための模式図
である。FIG. 12 is a schematic diagram for explaining a method of determining front and back.
【図13】実施の形態1における三角形ポリゴンの表裏
判定を説明するための模式図である。FIG. 13 is a schematic diagram for explaining front / back determination of a triangular polygon in the first embodiment.
【図14】本発明における立体モデル描画処理のフロー
チャートである。FIG. 14 is a flowchart of a stereo model drawing process according to the present invention.
【図15】実施の形態2の機能ブロック図である。FIG. 15 is a functional block diagram according to the second embodiment.
【図16】実施の形態2におけるカメラ、立体モデル、
及び輪郭描画用モデルの位置関係を説明するための模式
図である。立体モデル及び輪郭描画用モデルのおもて面
が向いている方向を矢印で示している。FIG. 16 shows a camera, a three-dimensional model,
FIG. 4 is a schematic diagram for explaining a positional relationship between a contour drawing model and a contour drawing model. The direction in which the front surface of the three-dimensional model and the contour drawing model faces is indicated by an arrow.
【図17】実施の形態2における輪郭描画用モデル生成
処理のフローチャートである。FIG. 17 is a flowchart of a contour drawing model generation process according to the second embodiment.
【図18】実施の形態2における輪郭描画用モデル取得
処理のフローチャートである。FIG. 18 is a flowchart of a contour drawing model acquisition process according to the second embodiment.
【図19】実施の形態2における輪郭描画用モデル描画
処理のフローチャートである。FIG. 19 is a flowchart of a contour drawing model drawing process according to the second embodiment.
【図20】実施の形態2における三角形ポリゴンの表裏
判定を説明するための模式図である。FIG. 20 is a schematic diagram for explaining front / back determination of a triangular polygon in the second embodiment.
【図21】本発明を用いてレンダリングした画像の一表
示例である。なお、自動的に生成した輪郭描画用モデル
の場合である。FIG. 21 is a display example of an image rendered using the present invention. This is the case of an automatically generated contour drawing model.
【図22】本発明を用いてレンダリングした画像の一表
示例である。なお、予め人間により作成された輪郭描画
用モデルを使用した場合である。FIG. 22 is a display example of an image rendered using the present invention. Note that this is a case where a contour drawing model created by a human in advance is used.
【図23】本発明を用いてレンダリングした画像の一表
示例である。なお、図7のかすれ表現のためのテクスチ
ャを輪郭描画用モデルにマッピングした場合である。FIG. 23 is a display example of an image rendered using the present invention. Note that this is a case where the texture for faint expression in FIG. 7 is mapped to the contour drawing model.
1000 コンピュータ 101 コンピュータ本体
103 演算処理部 105 メモリ 107 HDD 109 サウン
ド処理部 111 グラフィックス処理部 113 CD−Rド
ライブ 115 通信インターフェース 117 インターフ
ェース部 119 内部バス 121 表示装置 125 サ
ウンド出力装置 131 CD−R 141 通信媒体 151 ネ
ットワーク 161 入力装置 201 バス制御部 205 三角形描画処理部
207 幾何演算部 209 ピクセルカラー処理部 211 Zバッファ 213 フレームバッファ 300 輪郭描画用モデ
ル取得部 305 輪郭描画用モデル配置用マトリックス設定部 310 輪郭描画用モデル処理部 320 かすれ表現テクスチャマッピング部 330 ピクセル処理部 335 隠面消去処理部 340 立体モデル処理部 400 輪郭描画用モデ
ル取得部 405 輪郭描画用モデル配置用マトリックス設定部 410 輪郭描画用モデル処理部 415 逆転表裏
判定部 420 かすれ表現テクスチャマッピング部 430
ピクセル処理部 435 隠面消去処理部 440 立体モデル処理部1000 computer 101 computer main body 103 arithmetic processing unit 105 memory 107 HDD 109 sound processing unit 111 graphics processing unit 113 CD-R drive 115 communication interface 117 interface unit 119 internal bus 121 display device 125 sound output device 131 CD-R 141 communication medium 151 network 161 input device 201 bus control unit 205 triangle drawing processing unit
207 Geometric calculation unit 209 Pixel color processing unit 211 Z buffer 213 Frame buffer 300 Contour drawing model acquisition unit 305 Contour drawing model arrangement matrix setting unit 310 Contour drawing model processing unit 320 Blurring expression texture mapping unit 330 Pixel processing unit 335 Hidden surface removal processing unit 340 3D model processing unit 400 Contour drawing model acquisition unit 405 Contour drawing model arrangement matrix setting unit 410 Contour drawing model processing unit 415 Inversion front / back determination unit 420 Faint expression texture mapping unit 430
Pixel processing unit 435 Hidden surface removal processing unit 440 Solid model processing unit
───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06T 15/00 100 A63F 13/00 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int. Cl. 7 , DB name) G06T 15/00 100 A63F 13/00
Claims (16)
外側を表とする複数の面で構成された立体モデルをレン
ダリングするレンダリング方法であって、 前記立体モデルに対応し、明度又は透明度の変化を含む
図柄を有するテクスチャがマッピングされ且つ前記立体
モデルの各面に対応する面の表裏が反転された輪郭描画
用モデルを取得し、第1記憶部に格納する第1ステップ
と、 前記立体モデルを包含する位置に前記輪郭描画用モデル
を配置する第2ステップと、 前記立体モデルを所与の視点位置から描画して第2記憶
部に格納すると共に、前記輪郭描画用モデルのうち前記
視点位置に対して表を向けている面のみを予め定められ
た配色で描画して第2記憶部に格納する第3ステップ
と、 を含むことを特徴とするレンダリング方法。1. A rendering method for rendering a three-dimensional model composed of a plurality of surfaces arranged outside a represented object in a virtual space and representing the outside of the object, the method comprising: A first step of acquiring a contour drawing model in which a texture having a pattern including a change is mapped and a surface corresponding to each surface of the three-dimensional model is reversed, and storing the model in a first storage unit; A second step of arranging the contour drawing model at a position including the following; and drawing the three-dimensional model from a given viewpoint position and storing it in a second storage unit; A third step of drawing only the surface facing the table with a predetermined color scheme and storing the result in the second storage unit.
外側を表とする複数の面で構成された立体モデルをレン
ダリングするレンダリング方法であって、 前記立体モデルに対応し且つ面の表裏が同じ輪郭描画用
モデルを取得し、第1記憶部に格納する第1ステップ
と、 前記立体モデルを包含する位置に前記輪郭描画用モデル
を配置する第2ステップと、 前記立体モデルを所与の視点位置から描画して第2記憶
部に格納すると共に、前記輪郭描画用モデルのうち前記
視点位置に対して裏を向けている面のみを予め定められ
た配色で描画して第2記憶部に格納する第3ステップ
と、 を含むことを特徴とするレンダリング方法。2. A rendering method for rendering a three-dimensional model composed of a plurality of planes having the outside of an object placed and represented in a virtual space as a front surface, the rendering method corresponding to the three-dimensional model and the front and back of the plane being A first step of acquiring the same contour drawing model and storing it in a first storage unit; a second step of arranging the contour drawing model at a position including the three-dimensional model; Draw from the position and store it in the second storage unit, and draw only a surface of the contour drawing model facing the viewpoint position with a predetermined color scheme and store it in the second storage unit. And a third step of performing the following.
サイズを拡大すると共に、前記立体モデルを包含する位
置に前記輪郭描画用モデルを配置するステップであるこ
とを特徴とする請求項2記載のレンダリング方法。3. The second step is a step of enlarging the size of the contour drawing model obtained in the first step and arranging the contour drawing model at a position including the three-dimensional model. 3. The rendering method according to claim 2, wherein:
画用モデルを構成する面の各頂点を当該各頂点の法線方
向に移動することで前記輪郭描画用モデルのサイズを拡
大する第4ステップをさらに含み、 前記第2ステップが、前記立体モデルを包含する位置に
前記第4ステップで拡大された前記輪郭描画用モデルを
配置するステップであることを特徴とする請求項2記載
のレンダリング方法。4. A method of enlarging the size of the contour drawing model by moving each vertex of a surface constituting the contour drawing model obtained in the first step in a direction normal to each vertex. 3. The rendering method according to claim 2, further comprising the step of: arranging the contour drawing model enlarged in the fourth step at a position including the three-dimensional model, wherein the second step is a step including the three-dimensional model. .
デルを包含する位置に前記輪郭描画用モデルを配置する
ステップであることを特徴とする請求項2記載のレンダ
リング方法。5. The method according to claim 2, wherein the second step is a step of reducing the size of the three-dimensional model and arranging the contour drawing model at a position including the three-dimensional model. Rendering method.
前記輪郭描画用モデルのうち前記視点位置に対して裏を
向けている面に対してのみ、明度又は透明度の変化を含
む図柄を有するテクスチャをマッピングし、当該面を描
画するステップであることを特徴とする請求項2記載の
レンダリング方法。6. The third step is to draw the three-dimensional model from a given viewpoint position,
A step of mapping a texture having a pattern including a change in lightness or transparency only on a surface of the contour drawing model facing the viewpoint, and drawing the surface. The rendering method according to claim 2, wherein
外側を表とする複数の面で構成された立体モデルをレン
ダリングするプログラムを格納した、コンピュータ読み
取り可能な記録媒体であって、 前記プログラムは、前記コンピュータに、 前記立体モデルに対応し、明度又は透明度の変化を含む
図柄を有するテクスチャがマッピングされ且つ前記立体
モデルの各面に対応する面の表裏が反転された輪郭描画
用モデルを取得し、第1記憶部に格納する第1ステップ
と、 前記立体モデルを包含する位置に前記輪郭描画用モデル
を配置する第2ステップと、 前記立体モデルを所与の視点位置から描画して第2記憶
部に格納すると共に、前記輪郭描画用モデルのうち前記
視点位置に対して表を向けている面のみを予め定められ
た配色で描画して第2記憶部に格納する第3ステップ
と、 を実行させるためのプログラムであることを特徴とす
る、コンピュータ読み取り可能な記録媒体。7. A computer-readable recording medium storing a program for rendering a three-dimensional model composed of a plurality of surfaces that are arranged in a virtual space and that represent the outside of an object to be represented, the program comprising: Obtains a contour drawing model in which a texture corresponding to the three-dimensional model and having a pattern including a change in lightness or transparency is mapped and the front and back of the surface corresponding to each surface of the three-dimensional model is inverted. A first step of storing the contour model in a position including the three-dimensional model; and a second step of drawing the three-dimensional model from a given viewpoint position. While storing in the storage unit, only the surface of the contour drawing model facing the table with respect to the viewpoint position is drawn with a predetermined color 2. A computer-readable recording medium, characterized by being a program for executing the following steps:
外側を表とする複数の面で構成された立体モデルをレン
ダリングするプログラムを格納した、コンピュータ読み
取り可能な記録媒体であって、 前記プログラムは、前記コンピュータに、 前記立体モデルに対応し且つ面の表裏が同じ輪郭描画用
モデルを取得し、第1記憶部に格納する第1ステップ
と、 前記立体モデルを包含する位置に前記輪郭描画用モデル
を配置する第2ステップと、 前記立体モデルを所与の視点位置から描画して第2記憶
部に格納すると共に、前記輪郭描画用モデルのうち前記
視点位置に対して裏を向けている面のみを予め定められ
た配色で描画して第2記憶部に格納する第3ステップ
と、 を実行させるためのプログラムであることを特徴とす
る、コンピュータ読み取り可能な記録媒体。8. A computer-readable recording medium storing a program for rendering a three-dimensional model composed of a plurality of surfaces which are arranged in a virtual space and represent the outside of an object to be represented, the program comprising: A first step of acquiring a contour drawing model corresponding to the three-dimensional model and having the same front and back sides of the surface and storing the acquired model in a first storage unit; A second step of arranging a model, and drawing the three-dimensional model from a given viewpoint position and storing it in a second storage unit, and a surface of the contour drawing model facing the viewpoint position. A third step of drawing only a predetermined color scheme and storing it in a second storage unit. Recording medium that can be taken.
が大きい輪郭描画用モデルを取得するステップであるこ
とを特徴とする請求項8記載のコンピュータ読み取り可
能な記録媒体。9. The computer-readable recording according to claim 8, wherein the first step is a step of acquiring a contour drawing model corresponding to the three-dimensional model and having a size larger than that of the three-dimensional model. Medium.
サイズを拡大すると共に、前記立体モデルを包含する位
置に前記輪郭描画用モデルを配置するステップであるこ
とを特徴とする請求項8記載のコンピュータ読み取り可
能な記録媒体。10. The second step is a step of enlarging the size of the contour drawing model obtained in the first step and arranging the contour drawing model at a position including the three-dimensional model. The computer-readable recording medium according to claim 8, wherein:
デルを包含する位置に前記輪郭描画用モデルを配置する
ステップであることを特徴とする請求項8記載のコンピ
ュータ読み取り可能な記録媒体。11. The method according to claim 8, wherein the second step is a step of reducing the size of the three-dimensional model and arranging the contour drawing model at a position including the three-dimensional model. Computer readable recording medium.
前記輪郭描画用モデルのうち前記視点位置に対して裏を
向けている面に対してのみ、明度又は透明度の変化を含
む図柄を有するテクスチャをマッピングし、当該面を描
画するステップであることを特徴とする請求項8記載の
コンピュータ読み取り可能な記録媒体。12. The third step includes: rendering the three-dimensional model from a given viewpoint position;
A step of mapping a texture having a pattern including a change in lightness or transparency only on a surface of the contour drawing model facing the viewpoint, and drawing the surface. 9. The computer-readable recording medium according to claim 8, wherein:
の外側を表とする複数の面で構成された立体モデルをレ
ンダリングするレンダリング装置であって、 前記立体モデルに対応し、明度又は透明度の変化を含む
図柄を有するテクスチャがマッピングされ且つ前記立体
モデルの各面に対応する面の表裏が反転された輪郭描画
用モデルを取得し、第1記憶部に格納する取得手段と、 前記立体モデルを包含する位置に前記輪郭描画用モデル
を配置する配置手段と、 前記立体モデルを所与の視点位置から描画して第2記憶
部に格納すると共に、前記輪郭描画用モデルのうち前記
視点位置に対して表を向けている面のみを予め定められ
た配色で描画して第2記憶部に格納する描画手段と、 を有することを特徴とするレンダリング装置。13. A rendering apparatus which renders a three-dimensional model composed of a plurality of surfaces arranged outside a represented object and arranged in a virtual space, wherein the three-dimensional model corresponds to the three-dimensional model. Acquiring means for acquiring a contour drawing model on which a texture having a pattern including a change is mapped and in which the front and back of a surface corresponding to each surface of the three-dimensional model are reversed, and storing the obtained model in a first storage unit; Arranging means for arranging the contour drawing model at a position to be included; drawing the three-dimensional model from a given viewpoint position and storing it in the second storage unit; Rendering means for rendering only the surface facing the front with a predetermined color scheme and storing it in the second storage unit.
の外側を表とする複数の面で構成された立体モデルをレ
ンダリングするレンダリング装置であって、 前記立体モデルに対応し且つ面の表裏が同じ輪郭描画用
モデルを取得し、第1記憶部に格納する取得手段と、 前記立体モデルを包含する位置に前記輪郭描画用モデル
を配置する配置手段と、 前記立体モデルを所与の視点位置から描画して第2記憶
部に格納すると共に、前記輪郭描画用モデルのうち前記
視点位置に対して裏を向けている面のみを予め定められ
た配色で描画して第2記憶部に格納する描画手段と、 を有することを特徴とするレンダリング装置。14. A rendering apparatus which renders a three-dimensional model composed of a plurality of planes which are arranged in a virtual space and have the outside of an object to be represented as a front side, wherein the front and back sides of the plane correspond to the three-dimensional model. Acquiring means for acquiring the same contour drawing model and storing it in the first storage unit; arranging means for arranging the contour drawing model at a position including the stereo model; and arranging the stereo model from a given viewpoint position. Draw and store in the second storage unit, and draw only the surface of the contour drawing model that faces the viewpoint position with a predetermined color scheme and store it in the second storage unit. Means, and a rendering device.
の外側を表とする複数の面で構成された立体モデルをレ
ンダリングするゲーム装置であって、 コンピュータと、 前記コンピュータに実行させるプログラムを格納した、
コンピュータ読み取り可能な記録媒体とを有し、 前記プログラムは、前記コンピュータに、 前記立体モデルに対応し、明度又は透明度の変化を含む
図柄を有するテクスチャがマッピングされ且つ前記立体
モデルの各面に対応する面の表裏が反転された輪郭描画
用モデルを取得し、第1記憶部に格納する取得機能と、 前記立体モデルを包含する位置に前記輪郭描画用モデル
を配置する配置機能と、 前記立体モデルを所与の視点位置から描画して第2記憶
部に格納すると共に、前記輪郭描画用モデルのうち前記
視点位置に対して表を向けている面のみを予め定められ
た配色で描画して第2記憶部に格納する描画機能と、 を実施させることを特徴とするゲーム装置。15. A game device which renders a three-dimensional model composed of a plurality of surfaces which are arranged in a virtual space and which represent the outside of an object to be represented, comprising: a computer; and a program to be executed by the computer. did,
A computer-readable recording medium, wherein the program corresponds to the three-dimensional model, and a texture having a design including a change in brightness or transparency is mapped on the computer and corresponds to each surface of the three-dimensional model. An acquisition function of acquiring a contour drawing model whose surface is reversed and storing the model in a first storage unit; an arrangement function of arranging the contour drawing model at a position including the stereo model; Draw from a given viewpoint position and store it in the second storage unit, and draw only a surface of the contour drawing model that faces the table with respect to the viewpoint position with a predetermined color scheme. A drawing device stored in a storage unit, and a game device.
の外側を表とする複数の面で構成された立体モデルをレ
ンダリングするゲーム装置であって、 コンピュータと、 前記コンピュータに実行させるプログラムを格納した、
コンピュータ読み取り可能な記録媒体とを有し、 前記プログラムは、前記コンピュータに、 前記立体モデルに対応し且つ面の表裏が同じ輪郭描画用
モデルを取得し、第1記憶部に格納する取得機能と、 前記立体モデルを包含する位置に前記輪郭描画用モデル
を配置する配置機能と、 前記立体モデルを所与の視点位置から描画して第2記憶
部に格納すると共に、前記輪郭描画用モデルのうち前記
視点位置に対して裏を向けている面のみを予め定められ
た配色で描画して第2記憶部に格納する描画機能と、 を実施させることを特徴とするゲーム装置。16. A game device which renders a three-dimensional model composed of a plurality of surfaces which are arranged in a virtual space and which represent the outside of an object to be represented, comprising: a computer; and a program to be executed by the computer. did,
An acquisition function of acquiring a contour drawing model corresponding to the three-dimensional model and having the same front and back surfaces, and storing the model in the first storage unit; An arrangement function of arranging the contour drawing model at a position including the three-dimensional model, drawing the three-dimensional model from a given viewpoint position and storing the three-dimensional model in a second storage unit; And a drawing function of drawing only a surface facing backward with respect to the viewpoint position with a predetermined color scheme and storing the drawing in a second storage unit.
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP26007299A JP3352982B2 (en) | 1999-09-14 | 1999-09-14 | Rendering method and device, game device, and computer-readable recording medium for storing program for rendering three-dimensional model |
| US09/661,806 US6988059B1 (en) | 1999-09-14 | 2000-09-14 | Rendering method and device, game device, and computer-readable recording medium for storing program to render stereo model |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP26007299A JP3352982B2 (en) | 1999-09-14 | 1999-09-14 | Rendering method and device, game device, and computer-readable recording medium for storing program for rendering three-dimensional model |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2001084404A JP2001084404A (en) | 2001-03-30 |
| JP3352982B2 true JP3352982B2 (en) | 2002-12-03 |
Family
ID=17342924
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP26007299A Expired - Lifetime JP3352982B2 (en) | 1999-09-14 | 1999-09-14 | Rendering method and device, game device, and computer-readable recording medium for storing program for rendering three-dimensional model |
Country Status (2)
| Country | Link |
|---|---|
| US (1) | US6988059B1 (en) |
| JP (1) | JP3352982B2 (en) |
Families Citing this family (15)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6914603B2 (en) | 2000-07-03 | 2005-07-05 | Sony Computer Entertainment Inc. | Image generating system |
| JP3775580B2 (en) * | 2001-11-21 | 2006-05-17 | ソニー株式会社 | Image processing apparatus and method, recording medium, and program |
| JP3748545B2 (en) * | 2002-09-19 | 2006-02-22 | 株式会社ナムコ | Program, information storage medium, and image generation apparatus |
| JP5004148B2 (en) * | 2005-12-07 | 2012-08-22 | サミー株式会社 | Image generating apparatus, game machine, image generating method, and program |
| JP4896761B2 (en) * | 2007-02-16 | 2012-03-14 | 株式会社日立製作所 | 3D map display system, 3D map display method, and program thereof |
| JP5236214B2 (en) | 2007-06-11 | 2013-07-17 | 任天堂株式会社 | Image processing program |
| JP4382117B2 (en) * | 2007-07-25 | 2009-12-09 | 株式会社スクウェア・エニックス | Image generating apparatus and method, program, and recording medium |
| JP4387429B2 (en) * | 2007-07-25 | 2009-12-16 | 株式会社スクウェア・エニックス | Image generating apparatus and method, program, and recording medium |
| JP5623853B2 (en) * | 2010-09-29 | 2014-11-12 | 株式会社カプコン | Image processing program and image processing apparatus |
| JP2014150803A (en) * | 2013-02-04 | 2014-08-25 | Kpe Inc | Game machine |
| CN104966312B (en) * | 2014-06-10 | 2017-07-21 | 腾讯科技(深圳)有限公司 | A kind of rendering intent, device and the terminal device of 3D models |
| CN107808417A (en) * | 2016-09-08 | 2018-03-16 | 索尼公司 | Message processing device and information processing method |
| CN111402381B (en) * | 2020-03-17 | 2023-11-21 | 网易(杭州)网络有限公司 | Model rendering method and device, and readable storage medium |
| CN112233215B (en) * | 2020-10-15 | 2023-08-22 | 网易(杭州)网络有限公司 | Contour rendering method, device, equipment and storage medium |
| CN113240783B (en) * | 2021-05-27 | 2023-06-27 | 网易(杭州)网络有限公司 | Stylized rendering method and device, readable storage medium and electronic equipment |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2000250194A (en) | 1999-03-03 | 2000-09-14 | Lpl:Kk | Black box and black box kit |
Family Cites Families (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US4910611A (en) * | 1989-01-05 | 1990-03-20 | Eastman Kodak Company | Method for doing interactive image processing operations on large images |
| JPH0785310A (en) | 1993-09-10 | 1995-03-31 | Hitachi Ltd | 3D graphic display method |
| JPH07160905A (en) | 1993-12-08 | 1995-06-23 | Hitachi Ltd | Drawing method and drawing apparatus for contour line and edge line |
| JPH0896025A (en) | 1994-07-28 | 1996-04-12 | Hitachi Ltd | Graphic processing method and apparatus |
| US6542155B1 (en) * | 1995-04-27 | 2003-04-01 | Kabushiki Kaisha Sega Enterprises | Picture processing device, picture processing method, and game device and storage medium using the same |
| US6343987B2 (en) * | 1996-11-07 | 2002-02-05 | Kabushiki Kaisha Sega Enterprises | Image processing device, image processing method and recording medium |
| US5880736A (en) * | 1997-02-28 | 1999-03-09 | Silicon Graphics, Inc. | Method system and computer program product for shading |
| JPH1196374A (en) * | 1997-07-23 | 1999-04-09 | Sanyo Electric Co Ltd | Three-dimensional modeling device, three-dimensional modeling method and medium recorded with three-dimensional modeling program |
| JPH11232485A (en) | 1998-02-17 | 1999-08-27 | Sharp Corp | Image processing device |
| JP3181877B2 (en) * | 1998-04-14 | 2001-07-03 | 株式会社島精機製作所 | 3D image creation device |
| AU3991799A (en) * | 1998-05-14 | 1999-11-29 | Metacreations Corporation | Structured-light, triangulation-based three-dimensional digitizer |
| US6471937B1 (en) | 1998-09-04 | 2002-10-29 | Praxair Technology, Inc. | Hot gas reactor and process for using same |
| JP3804328B2 (en) | 1999-03-02 | 2006-08-02 | 株式会社セガ | Image processing apparatus and image processing method |
| JP3231029B2 (en) * | 1999-09-14 | 2001-11-19 | 株式会社スクウェア | Rendering method and device, game device, and computer-readable recording medium storing program for rendering three-dimensional model |
-
1999
- 1999-09-14 JP JP26007299A patent/JP3352982B2/en not_active Expired - Lifetime
-
2000
- 2000-09-14 US US09/661,806 patent/US6988059B1/en not_active Expired - Lifetime
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2000250194A (en) | 1999-03-03 | 2000-09-14 | Lpl:Kk | Black box and black box kit |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2001084404A (en) | 2001-03-30 |
| US6988059B1 (en) | 2006-01-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3725524B2 (en) | Method for generating computer display image and computer processing system and graphics processor for generating image data | |
| US8602888B2 (en) | Video game device and image processing program | |
| US7104891B2 (en) | Game machine and game program for displaying a first object casting a shadow formed by light from a light source on a second object on a virtual game space | |
| JP3635051B2 (en) | Image generation method and apparatus, recording medium storing image processing program, and image processing program | |
| JP3352982B2 (en) | Rendering method and device, game device, and computer-readable recording medium for storing program for rendering three-dimensional model | |
| US7277571B2 (en) | Effective image processing, apparatus and method in virtual three-dimensional space | |
| US7583264B2 (en) | Apparatus and program for image generation | |
| US7327364B2 (en) | Method and apparatus for rendering three-dimensional images of objects with hand-drawn appearance in real time | |
| JP2003256865A (en) | Method and program for generating 2D image of cartoon expression from 3D object data | |
| US20020004421A1 (en) | Computer readable recording medium recording a program for causing a light source to be displayed on a game screen and the program, and game screen display method and apparatus | |
| US6339430B1 (en) | Video game machine and method for changing texture of models | |
| US20010017629A1 (en) | Methods and apparatus for drawing contours of objects in video games | |
| US6712700B1 (en) | Stereo model displaying method and apparatus in video game, game apparatus, and computer-readable recording medium stored with stereo model displaying program for video game | |
| JP3253020B2 (en) | Rendering method and device, game device, and computer-readable recording medium for storing program for rendering three-dimensional model | |
| US20060187223A1 (en) | Program, information storage medium, and image generation system | |
| JP3748451B1 (en) | Program, information storage medium, and image generation system | |
| JP3052839B2 (en) | Image processing apparatus and processing method thereof | |
| JP2001273519A (en) | Game system, picture plotting method for this system, and computer-readable recording medium for storing program for game | |
| JP4231684B2 (en) | GAME DEVICE AND GAME PROGRAM | |
| JP3586253B2 (en) | Texture mapping program | |
| JPH09185712A (en) | Three-dimensional image data generating method | |
| JP3372034B2 (en) | Rendering method and apparatus, game apparatus, and computer-readable recording medium storing program for rendering stereo model | |
| JP4079249B2 (en) | GAME DEVICE AND GAME PROGRAM | |
| EP1249791B1 (en) | 3-D game image processing method and device for drawing border lines | |
| JP2005078601A (en) | Program and method for picture developing |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 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: 20020910 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 3352982 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
| R360 | Written notification for declining of transfer of rights |
Free format text: JAPANESE INTERMEDIATE CODE: R360 |
|
| 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 |
|
| 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 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080920 Year of fee payment: 6 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080920 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090920 Year of fee payment: 7 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| 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: 20090920 Year of fee payment: 7 |
|
| R360 | Written notification for declining of transfer of rights |
Free format text: JAPANESE INTERMEDIATE CODE: R360 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090920 Year of fee payment: 7 |
|
| R360 | Written notification for declining of transfer of rights |
Free format text: JAPANESE INTERMEDIATE CODE: R360 |
|
| R371 | Transfer withdrawn |
Free format text: JAPANESE INTERMEDIATE CODE: R371 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090920 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: 20090920 Year of fee payment: 7 |
|
| R360 | Written notification for declining of transfer of rights |
Free format text: JAPANESE INTERMEDIATE CODE: R360 |
|
| S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
| R360 | Written notification for declining of transfer of rights |
Free format text: JAPANESE INTERMEDIATE CODE: R360 |
|
| 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 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090920 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: 20090920 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: 20090920 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100920 Year of fee payment: 8 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100920 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110920 Year of fee payment: 9 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120920 Year of fee payment: 10 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130920 Year of fee payment: 11 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130920 Year of fee payment: 11 |
|
| 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: 20130920 Year of fee payment: 11 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| EXPY | Cancellation because of completion of term |