JP4637161B2 - Image processing apparatus, image processing method, and program - Google Patents
Image processing apparatus, image processing method, and program Download PDFInfo
- Publication number
- JP4637161B2 JP4637161B2 JP2007315995A JP2007315995A JP4637161B2 JP 4637161 B2 JP4637161 B2 JP 4637161B2 JP 2007315995 A JP2007315995 A JP 2007315995A JP 2007315995 A JP2007315995 A JP 2007315995A JP 4637161 B2 JP4637161 B2 JP 4637161B2
- Authority
- JP
- Japan
- Prior art keywords
- character
- sub
- image
- virtual camera
- virtual
- 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.)
- Active
Links
Images
Landscapes
- Processing Or Creating Images (AREA)
Description
本発明は、仮想空間内に配置されるキャラクタの画像を生成する際に、特定のキャラクタの表情等を見やすく提示するのに好適な画像処理装置、画像処理方法、及び、これらをコンピュータにて実現するためのプログラムに関する。 The present invention provides an image processing apparatus, an image processing method, and a computer that are suitable for presenting an expression of a specific character in an easy-to-see manner when generating an image of a character placed in a virtual space. Related to the program.
仮想空間内に配置されたキャラクタの表情等を見やすく提示する方法として、画面上に表示されたキャラクタとは別に、該キャラクタに対応する画像を画面上にカットインする方法が知られている。この方法は、キャラクタが配置された仮想空間とは異なる第2の仮想空間を設け、該第2の仮想空間内に第2のキャラクタ等を設けることにより、第2のキャラクタが表示された画像を生成する。そして、当該キャラクタが表示された画像上に当該第2のキャラクタが表示された画像をカットインすることにより、当該キャラクタと当該第2のキャラクタとが表示された画像を生成する(例えば、特許文献1参照。)。
特許文献1に開示されている構成では、カットインに使用する画像を生成するために第2の仮想空間等を新たに設ける必要があった。また、第2のキャラクタ等を設けて生成した所定の画像を使用するため、VRAM(Video Random Access Memory)の使用容量が増大していた。その結果、用途や装置の性能によっては、利用できないことも多い。従って、仮想空間内に配置されるキャラクタの画像を生成する際に、特定のキャラクタの表情等を見やすく提示するのに好適な新たな方法が求められている。
In the configuration disclosed in
本発明は、上記問題に鑑みてなされたものであり、仮想空間内に配置されるキャラクタの画像を生成する際に、特定のキャラクタの表情等を見やすく提示するのに好適な画像処理装置、画像処理方法、及び、これらをコンピュータにて実現するためのプログラムを提供することを目的とする。 The present invention has been made in view of the above problems, and an image processing apparatus and an image suitable for presenting a facial expression of a specific character in an easy-to-see manner when generating an image of a character placed in a virtual space. An object of the present invention is to provide a processing method and a program for realizing the processing method on a computer.
上記の目的を達成するため、本発明の第1の観点に係る画像処理装置は、記憶部と、生成配置部と、画像生成部と、を含んで構成される。 In order to achieve the above object, an image processing apparatus according to a first aspect of the present invention includes a storage unit, a generation arrangement unit, and an image generation unit.
まず、記憶部は、仮想空間内に配置される第1のキャラクタ及び第2のキャラクタの形状、位置及び向きと、仮想空間内に配置される視点の位置及び該視点に固定された座標軸の方向と、を記憶する。 First, the storage unit stores the shape, position and orientation of the first character and the second character arranged in the virtual space, the position of the viewpoint arranged in the virtual space, and the direction of the coordinate axis fixed to the viewpoint. And memorize.
生成配置部は、当該第1のキャラクタの形状を所定の拡大縮小率で相似変換して当該第2のキャラクタを生成し、該第2のキャラクタを当該座標軸により規定される座標上の所定の位置に配置する。 The generating and arranging unit generates the second character by performing similarity conversion on the shape of the first character at a predetermined enlargement / reduction ratio, and the second character is set at a predetermined position on the coordinates defined by the coordinate axes. To place.
画像生成部は、当該第1のキャラクタ及び第2のキャラクタが配置される当該仮想空間を当該視点の位置から所定の方向に見た画像を生成する。 The image generation unit generates an image in which the virtual space in which the first character and the second character are arranged is viewed in a predetermined direction from the viewpoint position.
これらの構成により、仮想空間内に配置されるキャラクタの画像を生成する際に、特定のキャラクタの表情等を見やすく提示した画像を生成することができる。例えば、第1のキャラクタと視点(カメラ)との間の位置に第2のキャラクタを生成配置することにより、第1のキャラクタと第2のキャラクタとが表示された画像が生成でき、さらに、第2のキャラクタは第1のキャラクタと比べ視点に近い位置に配置されている。従って、当該画像において第2のキャラクタの表情等を見やすく提示することができる。また、生成配置される第2のキャラクタの形状を拡大することにより、第2のキャラクタの表情等を見やすく提示した画像を生成することができる。 With these configurations, when an image of a character arranged in the virtual space is generated, an image that presents the facial expression of a specific character in an easy-to-see manner can be generated. For example, by generating and arranging the second character at a position between the first character and the viewpoint (camera), an image in which the first character and the second character are displayed can be generated. The second character is arranged closer to the viewpoint than the first character. Therefore, it is possible to present the facial expression of the second character in the image in an easy-to-see manner. Further, by enlarging the shape of the second character to be generated and arranged, it is possible to generate an image that presents the expression of the second character in an easy-to-see manner.
前記生成配置部は、当該第2のキャラクタの向きが、当該座標軸により規定される座標上において、所定の向きになるように配置する、ことも可能である。
これらの構成により、第2のキャラクタの表情等を見やすく提示することができる。例えば、第2のキャラクタの正面向きのベクトル上の位置に視点を配置することにより、第2のキャラクタの正面を提示した画像を生成することができる。
The generating and arranging unit may arrange the second character so that the orientation of the second character is a predetermined orientation on the coordinates defined by the coordinate axes.
With these configurations, the facial expression of the second character can be presented in an easy-to-see manner. For example, an image showing the front of the second character can be generated by placing the viewpoint at a position on the vector facing the front of the second character.
前記記憶部は、当該仮想空間内に配置され、当該第1のキャラクタ及び第2のキャラクタを照明する照明の位置及び向きと、をさらに記憶し、
前記生成配置部は、当該視点の位置と当該第2のキャラクタの位置との間の位置に当該照明を配置し、
前記画像生成部は、当該照明が当該第1のキャラクタ及び第2のキャラクタを照明する画像を生成する、ことも可能である。
これらの構成により、第1のキャラクタより第2のキャラクタを照明した画像を生成することができるため、第2のキャラクタの表情等を見やすく提示することができる。
The storage unit is further disposed in the virtual space and further stores the position and orientation of the illumination that illuminates the first character and the second character,
The generation arrangement unit arranges the illumination at a position between the position of the viewpoint and the position of the second character,
The image generation unit may generate an image in which the illumination illuminates the first character and the second character.
With these configurations, an image in which the second character is illuminated from the first character can be generated, so that the facial expression of the second character can be presented in an easy-to-see manner.
前記記憶部は、第1の照明及び第2の照明の位置、向き及び光度と、をさらに記憶し、
前記生成配置部は、当該第1の照明の光度を当該第2の照明の光度より高くし、当該第1の照明を所定の位置で所定の向きに配置し、当該第2の照明を当該視点の位置と当該第2のキャラクタの位置との間の位置で当該第2のキャラクタを照明する向きに配置する、ことも可能である。
これらの構成により、光度の高い第2の照明が第2のキャラクタを照明することにより、第1のキャラクタに比べ第2のキャラクタを強調できるため、第2のキャラクタの表情等を見やすく提示することができる。例えば、全指向性(無指向性)の第1の照明により仮想空間全体、第1のキャラクタ及び第2のキャラクタを強調する。第1の照明より光度を高くした指向性のある第2の照明を第2のキャラクタの周辺位置で、かつ該キャラクタ向きに配置することにより、第2のキャラクタを第1のキャラクタより強調した画像を生成することができる。
The storage unit further stores the position, orientation, and luminous intensity of the first illumination and the second illumination,
The generation arrangement unit makes the luminous intensity of the first illumination higher than the luminous intensity of the second illumination, arranges the first illumination in a predetermined direction at a predetermined position, and places the second illumination on the viewpoint It is also possible to place the second character in a direction to illuminate the second character at a position between the position of the second character and the position of the second character.
With these configurations, since the second character with high luminous intensity illuminates the second character, the second character can be emphasized compared to the first character, so that the expression of the second character can be presented in an easy-to-see manner. Can do. For example, the entire virtual space, the first character, and the second character are emphasized by omnidirectional (nondirectional) first illumination. An image in which the second character is emphasized more than the first character by arranging the second illumination having directivity with a higher luminous intensity than the first illumination at a position around the second character and toward the character. Can be generated.
前記記憶部は、当該仮想空間内に配置される第1の視点及び第2の視点の位置及び該視点に固定された座標軸の方向と、をさらに記憶し、
前記画像生成部は、当該第2の視点の位置から当該第2のキャラクタの所定の部分の画像を生成する、ことも可能である。
これらの構成により、例えば、第2のキャラクタの頭部(顔面部)の画像を生成することにより、第2のキャラクタの表情等を見やすく提示することができる。
The storage unit further stores the positions of the first viewpoint and the second viewpoint arranged in the virtual space, and the direction of the coordinate axis fixed to the viewpoint,
The image generation unit may generate an image of a predetermined part of the second character from the position of the second viewpoint.
With these configurations, for example, by generating an image of the head (face part) of the second character, the facial expression of the second character can be presented in an easily viewable manner.
前記画像生成部は、当該第2のキャラクタの所定の部分の画像を、当該第1のキャラクタの画像より小さくし、当該第1のキャラクタの画像と当該第2のキャラクタの所定の部分の画像とを合成する、ことも可能である。
これらの構成により、例えば、第1のキャラクタの全体(全身)が表示された画像と第2のキャラクタの頭部が表示された画像とを合成することにより、第2のキャラクタの表情等を見やすく提示することができる。
The image generation unit makes an image of the predetermined part of the second character smaller than the image of the first character, and the image of the first character and the image of the predetermined part of the second character It is also possible to synthesize.
With these configurations, for example, by combining an image displaying the entire first body (whole body) and an image displaying the head of the second character, it is easy to see the facial expression of the second character. Can be presented.
前記生成配置部は、当該第1の視点の位置と当該第1のキャラクタの位置との距離に比例する距離に対応する位置に、当該第2の視点と当該第2のキャラクタとを配置し、
前記画像生成部は、当該第2の視点の位置と当該第2のキャラクタの位置との距離に対応するサイズの当該第2のキャラクタの所定の部分の画像を生成する、ことも可能である。
これらの構成により、例えば、第2の視点の位置と第2のキャラクタの位置との距離が近くなるにつれて、第2のキャラクタの頭部が表示された画像のサイズを大きくすることにより、第2のキャラクタの表情等を見やすく提示することができる。
The generation arrangement unit arranges the second viewpoint and the second character at a position corresponding to a distance proportional to a distance between the position of the first viewpoint and the position of the first character,
The image generation unit may generate an image of a predetermined portion of the second character having a size corresponding to the distance between the position of the second viewpoint and the position of the second character.
With these configurations, for example, by increasing the size of the image on which the head of the second character is displayed as the distance between the position of the second viewpoint and the position of the second character is closer, Can be presented in an easy-to-see manner.
上記の目的を達成するため、本発明の第2の観点に係る画像処理方法は、記憶部と、生成配置部と、画像生成部と、を有する画像処理装置が実行する画像処理方法であって、生成配置工程と、画像生成工程と、を備える。 In order to achieve the above object, an image processing method according to a second aspect of the present invention is an image processing method executed by an image processing apparatus having a storage unit, a generation arrangement unit, and an image generation unit. A generating and arranging step and an image generating step.
生成配置工程では、当該第1のキャラクタの形状を所定の拡大縮小率で相似変換して当該第2のキャラクタを生成し、該第2のキャラクタを当該座標軸により規定される座標上の所定の位置に配置する。
画像生成工程では、当該第1のキャラクタ及び第2のキャラクタが配置される当該仮想空間を当該視点の位置から所定の方向に見た画像を生成する。
In the generating and arranging step, the shape of the first character is subjected to similarity conversion at a predetermined enlargement / reduction ratio to generate the second character, and the second character is set to a predetermined position on the coordinates defined by the coordinate axes. To place.
In the image generation step, an image is generated in which the virtual space in which the first character and the second character are arranged is viewed in a predetermined direction from the viewpoint position.
上記の目的を達成するため、本発明の第3の観点に係るプログラムは、コンピュータを、上記の画像処理装置として機能させるように構成する。また、本発明の第3の観点に係るプログラムは、コンピュータに上記の画像処理方法を実行させるように構成する。 In order to achieve the above object, a program according to a third aspect of the present invention is configured to cause a computer to function as the above image processing apparatus. A program according to the third aspect of the present invention is configured to cause a computer to execute the above-described image processing method.
また、本発明のプログラムは、コンパクトディスク、フレキシブルディスク、ハードディスク、光磁気ディスク、ディジタルビデオディスク、磁気テープ、半導体メモリ等のコンピュータ読取可能な情報記録媒体に記録することができる。上記プログラムは、当該プログラムが実行されるコンピュータとは独立して、コンピュータ通信網を介して配布・販売することができる。また、上記情報記録媒体は、当該コンピュータとは独立して配布・販売することができる。 The program of the present invention can be recorded on a computer-readable information recording medium such as a compact disk, flexible disk, hard disk, magneto-optical disk, digital video disk, magnetic tape, and semiconductor memory. The above program can be distributed and sold via a computer communication network independently of the computer on which the program is executed. The information recording medium can be distributed and sold independently of the computer.
本発明によれば、仮想空間内に配置されるキャラクタの画像を生成する際に、特定のキャラクタの表情等を見やすく提示することができる。 ADVANTAGE OF THE INVENTION According to this invention, when producing | generating the image of the character arrange | positioned in virtual space, it can show easily the facial expression etc. of a specific character.
(実施形態1)
図1は、本発明の実施の形態に係る画像処理装置が実現される典型的なゲーム装置の概要構成を示す模式図である。以下、本図を参照して説明する。
(Embodiment 1)
FIG. 1 is a schematic diagram showing a schematic configuration of a typical game device in which an image processing device according to an embodiment of the present invention is realized. Hereinafter, a description will be given with reference to FIG.
ゲーム装置100は、CPU(Central Processing Unit)101と、ROM(Read Only Memory)102と、RAM(Random Access Memory)103と、インターフェース104と、コントローラ105と、外部メモリ106と、DVD(Digital Versatile Disk)−ROMドライブ107と、画像処理部108と、音声処理部109と、NIC(Network Interface Card)110と、を備える。
The
なお、ゲーム用のプログラムおよびデータを記憶したDVD−ROMをDVD−ROMドライブ107に装着して、ゲーム装置100の電源を投入することにより、当該プログラムが実行され、本実施形態の画像処理装置が実現される。
Note that a DVD-ROM storing a game program and data is loaded into the DVD-
CPU101は、ゲーム装置100全体の動作を制御し、各構成要素と接続され制御信号やデータをやりとりする。
The
ROM102には、電源投入直後に実行されるIPL(Initial Program Loader)が記録され、CPU101がDVD−ROMに記録されたプログラムをRAM103に読み出して実行する。また、ROM102には、ゲーム装置100全体の動作制御に必要なオペレーティングシステムのプログラムや各種のデータが記録され、CPU101がこれらのプログラム等を読み出して実行する。
The
RAM103は、データやプログラムを一時的に記憶するためのもので、DVD−ROMから読み出したプログラムやデータ、その他ゲームの進行に必要なデータが保持される。
The
インターフェース104を介して接続されたコントローラ105は、ユーザがゲーム実行の際に行う操作入力を受け付ける。例えば、コントローラ105には、Aボタン、Bボタン、Xボタン、Yボタンや4方向を示す各方向ボタン(方向キー)等が配置されている。そして、これらのボタンがユーザに押下されると、押下されたボタンに応じた操作入力を受け付ける。
The
インターフェース104を介して着脱自在に接続された外部メモリ106には、ゲームの進行状態を示すデータ、通信のログ(記録)のデータなどが書き換え可能に記憶される。ユーザは、コントローラ105を介して指示入力を行うことにより、これらのデータを適宜外部メモリ106に記録することができる。
In the
DVD−ROMドライブ107に装着されるDVD−ROMには、ゲームを実現するためのプログラムとゲームに付随する画像データや音声データが記録される。CPU101の制御によって、DVD−ROMドライブ107は、これに装着されたDVD−ROMに対する読み出し処理を行って、必要なプログラムやデータを読み出し、これらはRAM103等に一時的に記憶される。
A DVD-ROM mounted on the DVD-
画像処理部108は、DVD−ROMから読み出されたデータをCPU101や画像処理部108が備える画像演算プロセッサ(図示せず)によって加工処理した後、これを画像処理部108が備えるフレームメモリ(図示せず)に記録する。フレームメモリに記録された画像情報は、所定の同期タイミングでビデオ信号に変換され画像処理部108に接続されるモニタ(図示せず)へ出力される。これにより、各種の画像表示が可能となる。
The
なお、画像演算プロセッサは、2次元の画像の重ね合わせ演算やαブレンディング等の透過演算、各種の飽和演算を高速に実行できる。
また、仮想3次元空間に配置され、各種のテクスチャ情報が付加されたポリゴン情報を、Zバッファ法によりレンダリングして、所定の視点位置から仮想3次元空間に配置されたポリゴンを俯瞰したレンダリング画像を得る演算の高速実行も可能である。
The image calculation processor can execute a two-dimensional image overlay calculation, a transmission calculation such as α blending, and various saturation calculations at high speed.
In addition, the polygon information arranged in the virtual three-dimensional space and added with various texture information is rendered by the Z buffer method, and a rendering image obtained by overlooking the polygon arranged in the virtual three-dimensional space from a predetermined viewpoint position is obtained. High speed execution of the obtained operation is also possible.
さらに、CPU101と画像演算プロセッサが協調動作することにより、文字の形状を定義するフォント情報にしたがって、文字列を2次元画像としてフレームメモリへ描画したり、各ポリゴン表面へ描画したりすることが可能である。フォント情報は、ROM102に記録されているが、DVD−ROMに記録された専用のフォント情報を利用することも可能である。
In addition, the
音声処理部109は、DVD−ROMから読み出した音声データをアナログ音声信号に変換し、これに接続されたスピーカ(図示せず)から出力させる。また、CPU101の制御の下、ゲームの進行の中で発生させるべき効果音や楽曲データを生成し、これに対応した音声をスピーカから出力させる。
The
NIC110は、ゲーム装置100をインターネット等のコンピュータ通信網(図示せず)に接続するためのものであり、LAN(Local Area Network)を構成する際に用いられる10BASE−T/100BASE−T規格にしたがうものや、電話回線を用いてインターネットに接続するためのアナログモデム、ISDN(Integrated Services Digital Network)モデム、ADSL(Asymmetric Digital Subscriber Line)モデム、ケーブルテレビジョン回線を用いてインターネットに接続するためのケーブルモデム等と、これらとCPU101との仲立ちを行うインターフェース(図示せず)により構成される。
The
このほか、ゲーム装置100は、ハードディスク等の大容量外部記憶装置を用いて、ROM102、RAM103、外部メモリ106、DVD−ROMドライブ107に装着されるDVD−ROM等と同じ機能を果たすように構成してもよい。
また、ユーザからの文字列の編集入力を受け付けるためのキーボードや、各種の位置の指定および選択入力を受け付けるためのマウスなどの入出力デバイスを接続する形態も採用することができる。
In addition, the
In addition, it is possible to adopt a form in which an input / output device such as a keyboard for receiving a character string editing input from a user and a mouse for receiving various position designations and selection inputs is connected.
また、本実施形態のゲーム装置100にかえて、一般的なコンピュータ(汎用のパーソナルコンピュータ等)を本発明に係る画像処理装置として利用することもできる。例えば、一般的なコンピュータは、上記ゲーム装置100と同様に、CPU、RAM、ROM、DVD−ROMドライブ、および、NICを備え、ゲーム装置100よりも簡易な機能を備えた画像処理部を備え、外部記憶装置としてハードディスクを有する他、フレキシブルディスク、光磁気ディスク、磁気テープ等が利用できるようになっている。また、コントローラではなく、キーボードやマウスなどを入力装置として利用する。そして、ゲームプログラムをインストールした後に、そのプログラムを実行させると、画像処理装置として機能させることができる。
Further, instead of the
以下では、注記しない限り、画像処理装置200について、図1に示したゲーム装置100により説明を加える。画像処理装置200は、必要に応じて適宜一般的なコンピュータの要素に置換することができ、これらの実施の形態も本発明の範囲に含まれる。
Hereinafter, unless otherwise noted, the
(画像処理装置の構成)
本実施の形態に係る画像処理装置200は、ユーザの指示、または時間経過に応じて変化する、3次元仮想空間内のオブジェクトの位置や向き、仮想カメラ(視点)の位置や向き等を考慮して、オブジェクトを表示する。本実施の形態においては、図3(b)に示すように、仮想空間に第1のキャラクタ(第1のオブジェクト)300を配置し、該第1のキャラクタ300を所定の拡大縮小率で相似変換して生成した第2のキャラクタ(第2のオブジェクト)301を当該仮想空間に配置する。そして、画像処理装置200は、図4(b)に示すように、仮想空間内に配置された第1のキャラクタ300と、第2のキャラクタ301と、を含む画像を生成する。
(Configuration of image processing apparatus)
The
次に、本実施の形態に係る画像処理装置200の概要構成について図2を参照して説明する。画像処理装置200は、記憶部201と、生成配置部202と、画像生成部203と、を備える。以下に画像処理装置200の各構成要素について説明する。
Next, a schematic configuration of the
記憶部201は、3次元仮想空間内を表現するための種々の情報を記憶する。まず、記憶部201は、3次元仮想空間内の各要素(キャラクタ、あるいはオブジェクトとも呼ばれる)の形状情報を記憶する。各オブジェクト(第1のキャラクタ300及び第2のキャラクタ301の両方を含む)は、その形状をポリゴンと呼ばれる、微小な多角形(例えば三角形や四角形等)の組み合わせによって定義されるサーフェス(表面)として表現される。ここで、オブジェクトは、例えば、頭部、胴体部、手足部等を備える人間の形状を構成する。なお、オブジェクトは、人間の形状に限られず、動物、建物等の形状であってもかまわない。
The
記憶部201は、各オブジェクトの、仮想空間内における位置および向きを記憶する。例えば、記憶部201は、仮想空間の全体を表現するグローバル座標系(ワールド座標系)と、オブジェクト毎に固定されたローカル座標系とを記憶する。典型的には、オブジェクトの代表点(例えば重心)がローカル座標系の原点であり、オブジェクトのサーフェス形状(即ち、オブジェクトを構成するポリゴンの形状や当該ポリゴンが配置される位置)がローカル座標系に基づいて定義される。一方、個々のオブジェクトの位置は、グローバル座標系に基づいて定義される。そして、オブジェクトの向きは、例えば、オブジェクトの代表点からオブジェクトの正面方向に延びる方向ベクトルによって、グローバル座標で定義される。
The
なお、位置情報は直交座標系を用いて定義しても、1個の動径と2個の偏角を用いた極座標系を用いて(r、θ、φ)で表してもよい。 The position information may be defined using an orthogonal coordinate system, or may be represented by (r, θ, φ) using a polar coordinate system using one moving radius and two declinations.
また、記憶部201は、3次元仮想空間内のオブジェクトを照明する照明(第1の照明310及び第2の照明311を含む)の位置、向き、及び、光度、並びに、視点の位置及び視線の方向を記憶する。ここで、視点の位置とは、仮想カメラ(第1の仮想320カメラ及び第2の仮想カメラ321を含む)が当該仮想空間においてオブジェクトを見ている位置であり、典型的にはグローバル座標系で定義される。一方、視線の方向とは、視点(仮想カメラ)が当該仮想空間を見ている方向である。この他にも、記憶部201は、照明の指向性、配色等も記憶する。
In addition, the
さらに、記憶部201はオブジェクトそれぞれの表面に貼り付けるテクスチャと呼ばれる画像データを記憶する。テクスチャ情報をオブジェクトのサーフェス形状に貼り付けることで、オブジェクトの質感を表現することが可能となる。
Further, the
これら記憶部201に記憶される情報は例えばDVD−ROMに予め格納されており、CPU101がDVD−ROMドライブ108に装着されたDVD−ROMを読み出してRAM103に一時記憶させる。あるいは、外部メモリ106に記憶させたこれらの情報を、CPU101に読み出させ、RAM103に一時記憶させるようにしてもよい。なお、CPU101は、一時記憶された情報を、例えばゲームの進行に応じて、随時更新することができる。このように、CPU101、RAM103、DVD−ROMドライブ108等が協働して動作することにより、記憶部201として機能する。
Information stored in the
次に、生成配置部202は、インターフェイス104を介して接続されたコントローラ105を操作してユーザが指示した入力等に基づいて、又は、プログラムなどによって指示された入力若しくは時間経過に基づいて、記憶部201に記憶されたオブジェクトである第1のキャラクタ300を生成する。生成配置部202は、記憶部201に記憶された情報に基づき、図3(a)に示すように、生成した第1のキャラクタ300の位置及び向きを決定し、当該仮想空間内に配置する。次に、生成配置部202は、第1のキャラクタ300の形状を拡大・縮小(等倍も含む)することにより、第2のキャラクタ301を生成し、図3(b)に示すように、当該仮想空間内に配置する。第2のキャラクタ301の表情(顔面部の状態)やポーズ(手足の位置状態)等は、第1のキャラクタ300の表情、ポーズ等の変化に連動して変化する。生成配置部202は、第1のキャラクタ300の一部(例えば、頭部や胴体部)のみを複製することにより、第2のキャラクタ301を作成して、当該仮想空間内に配置することもできる。
Next, the generation /
また、生成配置部202は、仮想空間内やオブジェクトを照明する第1の照明310及び第2の照明311を、当該仮想空間内に配置する。ここで、第1の照明310は仮想空間全体を照明し、第2の照明311は主に第2のキャラクタ301を照明するスポットライトのような指向性の強い照明である。第2の照明311は、後述する第2の仮想カメラ321の配置位置と連動して配置され、第2のキャラクタ301を照明する。なお、各照明の光度、指向性、色等は任意に変更することができる。また、ユーザはコントローラ105を操作することにより、各照明の位置等を任意に変更することができる。
In addition, the
さらに、生成配置部202は、オブジェクトを撮影する第1の仮想カメラ(視点)320及び第2の仮想カメラ321を、当該仮想空間内に配置する。ここで、第1の仮想カメラ320は、第1のキャラクタ300全体を撮影する位置及び向きに配置され、第2の仮想カメラ321は、第2のキャラクタ301の頭部(顔面部)を主に撮影する位置及び向きに配置される。なお、各キャラクタの形状等、各照明の位置等、各仮想カメラの位置等は、記憶部201に記憶される。そして、後述する画像生成部203が当該第1のキャラクタ300等が表示された画像を生成する。CPU101、RAM103等が協働して動作することにより、生成配置部202として機能する。
Further, the generation and
画像生成部203は、生成配置部202によって生成されたオブジェクトの位置及び向き、仮想カメラ(視点)の位置及び向き、並びに、照明の位置及び向き等に基づいて、当該視点から、当該3次元仮想空間内の各オブジェクトを投射(投影)して、モニタ等の表示装置に表示する画像データを生成する。本実施の形態では、図4(b)に示すように、第1の仮想カメラ320と第2の仮想カメラ321とが投影した各オブジェクトの画像を合成した画像データを生成する。CPU101、RAM103、画像処理部107が協働して動作することにより、画像生成部203として機能する。
Based on the position and orientation of the object generated by the generation and
(画像処理装置の動作)
次に、画像処理装置200の動作を、図5のフローチャートを参照して説明する。
(Operation of image processing device)
Next, the operation of the
画像処理装置200の電源が投入されて起動処理が開始されると、記憶部201は、DVD−ROM等から必要な情報(例えば、仮想カメラの位置や向き、そしてオブジェクトの形状、位置、そして向きなど)を取得し、記憶する(ステップS11)。
When the
次に、生成配置部202は、記憶部201に記憶された情報に基づき、図3(a)に示すように、第1のキャラクタ300と、第1の照明310と、第1の仮想カメラ320とを生成し、3次元仮想空間内に配置する(ステップS12)。第1の仮想カメラ320は、第1のキャラクタ300の全体(全身)が撮影される位置に配置される。第1の照明310が全指向性(無指向性)の場合には、第1の照明310は当該仮想空間の任意の場所に配置される。また、第1の照明310が指向性を有する場合には、例えば、第1のキャラクタ300の正面向きのベクトルに対し垂直上方向の位置で、第1のキャラクタ300等を照明する向きに第1の照明310は配置される。
配置された第1のキャラクタ300等については、DVD−ROMに記録された制御プログラムに基づき、例えば、手足部を動かす、表情を変える等の動作処理がなされる。また、ユーザはコントローラ105を用いて、位置や向き等のパラメータを変更する旨の指示をすることもできる。さらに、時間の経過に対応付けてパラメータを所定の値に変更したり、ランダムに変更したりしてもよい。
Next, based on the information stored in the
For the arranged
次に、画像生成部203は、図4(a)に示すように、第1の仮想カメラ320が撮影したオブジェクトを含む当該仮想空間の2次元画像を生成(描画)し、該画像をモニタ等に表示する(ステップS13)。これにより、ユーザは第1のキャラクタ300の動作を認識することができる。本実施の形態では、例えば、1点透視法で透視投影することにより、2次元画像を生成する。
Next, as shown in FIG. 4A, the
まず、画像生成部203は第1のキャラクタ300の投射先領域を求める。第1のキャラクタ300を投射面に1点透視法で透視投影することにより、視点から遠くにあるオブジェクトは小さく、近くにあるオブジェクトは大きく投影される。なお、1点透視法の代わりに、平行投影を採用することもできる。
First, the
投影先を求めると、投影先の各領域に、対応するテクスチャの対応する領域を貼り付けて(マッピングして)描画する。このとき、画像生成部203は陰面処理を行うために、例えば、Zバッファ法などを用いる。即ち、画像生成部203は描画する画像データを構成する画素ごとに、視点(投射面)に最も近いポリゴンに対応するテクスチャ情報の色で、当該画素を塗るようにする。
なお、視線方向と、ポリゴンのサーフェス形状の向きが同じ場合、該サーフェスは視線ベクトルと反対を向いていることを意味するため、画像生成部203はこのようなサーフェスを描画しないようにしてもよい。
When the projection destination is obtained, the corresponding area of the corresponding texture is pasted (mapped) and drawn in each area of the projection destination. At this time, the
Note that if the line-of-sight direction and the orientation of the polygon surface shape are the same, this means that the surface is facing away from the line-of-sight vector, so the
また、テクスチャを貼り付ける際は、各オブジェクトを形成するポリゴンの照明(光源)に対する向きを考慮する。即ち、オブジェクトを構成するサーフェス形状の各ポリゴンの法線と、光源ベクトルとがなす角度を求め、0度に近い程(即ち角度が近いほど)テクスチャの明度を高くする。逆に直角に近い程、明度を低くする。ただし、明度に反射率を乗算することで質感を変化させる場合は、ポリゴンの法線と光源ベクトルのなす角度が直角であっても明度を完全に0とはしない。こうすることで、暗い部分においても質感(ざらざら感や、滑らか感、など)を表現することが可能となる。なお、角度そのものではなく、角度の余弦をベクトルの内積から求めて1に近いほど明度を明るくしてもよい。また、ポリゴンの境界において明るさの違いが目立たないように、グローシェーディングやフォンシェーディングなどを適用してもよい。 Further, when pasting the texture, the orientation of the polygons forming each object with respect to the illumination (light source) is considered. That is, the angle formed between the normal line of each polygon of the surface shape constituting the object and the light source vector is obtained, and the brightness of the texture is increased as the angle is closer to 0 degrees (that is, as the angle is closer). Conversely, the closer to a right angle, the lower the brightness. However, when the texture is changed by multiplying the lightness by the reflectance, the lightness is not completely zero even if the angle between the polygon normal and the light source vector is a right angle. By doing so, it is possible to express a texture (roughness, smoothness, etc.) even in a dark part. Note that instead of the angle itself, the cosine of the angle may be obtained from the inner product of the vectors, and the brightness may be increased as the value approaches 1. Further, glow shading, phone shading, or the like may be applied so that the difference in brightness is not noticeable at the boundary of the polygon.
次に、生成配置部202は、起動処理が開始されてから所定時間が経過したか否か、又は、所定の条件を満たしたか否かを判別する(ステップS14)。ここで、所定時間とは、例えば、記憶部201に記憶されたデータにより決められる。また、所定の条件とは、例えば、ゲームを進行することによりユーザが獲得した結果(得点)が条件を満たすか否か、又、ユーザによりコントローラ105のボタンが押下されたか否か等をいう。
Next, the generating and arranging
所定条件等を満たさない場合(ステップS14;No)、ステップS12に帰還し、画像処理装置200は第1のキャラクタ300の画像を表示する処理を継続する。
When the predetermined condition or the like is not satisfied (step S14; No), the process returns to step S12, and the
所定条件等を満たした場合(ステップS14;Yes)、生成配置部202は、ステップS12と同様に、第2のキャラクタ301と、第2の照明311と、第2の仮想カメラ321とを生成し、図3(b)に示すように、当該仮想空間内に配置する(ステップS15)。生成配置部202は、第2のキャラクタ301の正面向きのベクトル上の位置に、第2のキャラクタ301を撮影できる向きに、第2の仮想カメラ321を配置する。つまり、生成配置部202は、図4(b)に示すように、第2の仮想カメラ321により撮影される画像に第2のキャラクタ301の頭部(顔面部)の正面全体が表示されるように、第2のキャラクタ301及び第2の仮想カメラ321の配置位置を調節する。なお、当該頭部全体が表示されるように、画像生成部203は、第2の仮想カメラ321が表示する画像の拡大率を変更することもできる。
また、第1の仮想カメラ320の視線の方向から見て、第1のキャラクタ300と第2のキャラクタ301とが重ならないように、第2のキャラクタ301は配置される。第2の照明311は、第2のキャラクタ301の位置及び向きに連動し、第2のキャラクタ301を正面から照明する位置に配置される。このとき、第1のキャラクタ300、第2のキャラクタ301のいずれも、仮想空間に元々配置されている第1の照明310により照明される。
When the predetermined condition or the like is satisfied (step S14; Yes), the
Further, the
次に、画像生成部203は、ステップS13と同様に、第2の仮想カメラ321により第2のキャラクタ301が撮影された画像を生成する(ステップS16)。第2の仮想カメラ321は、第2のキャラクタ301の正面に配置されているため、画像生成部203は、図4(b)に示すように、第2のキャラクタ301を正面から撮影した画像を生成することができる。また、第2の照明311は第2の仮想カメラ321に連動して配置されるため、第2のキャラクタ301は第2の照明311により照明される。よって、ユーザに対し第2のキャラクタ301を見やすく強調した画像を生成することができる。
Next, the
画像生成部203は、図4(b)に示すように、第2の仮想カメラ321が撮影した画像を第1の仮想カメラ320が撮影した画像に合成(カットイン)し、モニタ等に合成した画像データを表示して(ステップS17)、ステップS12に戻る。
As illustrated in FIG. 4B, the
なお、図4(b)に示すカットインされた画像において、第2のキャラクタ301の頭部(顔面部)は、第1のキャラクタ300の頭部に比べ、大きく表示されることが望ましい。また、第2のキャラクタ301が撮影された画像については、背景部分を削除した第2のキャラクタ301のみが表示された画像を生成し、当該画像をカットインすることもできる。当該画像をカットインする位置は任意である。
In the cut-in image shown in FIG. 4B, the head (face part) of the
また、生成配置部202は、第2の仮想カメラ321を配置せずに第1の仮想カメラ320のみを配置し、第1のキャラクタ300と第1の仮想カメラ320との間に第2のキャラクタ301を生成配置する。つまり、第1の仮想カメラ320によって第2のキャラクタ301の頭部全体が撮影されるように、拡大又は縮小した形状の第2のキャラクタ301が生成される。第1の仮想カメラ320の視線の方向に見た位置であり、かつ、第1のキャラクタ300より第1の仮想カメラ320に近い位置に、当該生成された第2のキャラクタ301が配置される。従って、第2のキャラクタ301は第1のキャラクタ300より第1の仮想カメラ320近くに配置されるため、第2のキャラクタ301をユーザに対し見やすく提示する画像を生成することもできる。
In addition, the
以上の処理により、仮想空間内に配置されたキャラクタ(オブジェクト)の画像を生成する際に、キャラクタの表情等をユーザに対し見やすく提示することができる。 With the above processing, when generating an image of a character (object) placed in the virtual space, the facial expression of the character can be presented to the user in an easy-to-view manner.
なお、本発明は上記実施の形態に限定されず、種々の変形及び応用が可能である。 In addition, this invention is not limited to the said embodiment, A various deformation | transformation and application are possible.
キャラクタ、照明、仮想カメラの数は、2個に限定されず、n個まで拡張することができる。 The number of characters, lights, and virtual cameras is not limited to two and can be expanded to n.
3次元仮想空間内には、第1のキャラクタ300等だけでなく、他のオブジェクト(例えば、柱、壁、山等)を配置することもできる。また、照明効果として、照明を点滅等することもできる。
In the three-dimensional virtual space, not only the
(実施形態2)
次に、図6を参照して、本発明の実施形態2における画像処理装置について説明する。実施形態2では、3次元仮想空間内に仮想壁面330が配置される。
(Embodiment 2)
Next, an image processing apparatus according to the second embodiment of the present invention will be described with reference to FIG. In the second embodiment, the
記憶部201は、3次元仮想空間内に配置される仮想壁面330の位置、向き及び配色(透明度を含む)を記憶する。仮想壁面330は、例えば、ポリゴンにより形成され、他のオブジェクト(第1のキャラクタ300等)と同様に、グローバル座標系に基づいて定義される。仮想壁面330の配色は、例えば、半透明等、任意に変更できる。仮想壁面330を半透明にすることにより、第2の仮想カメラ321が撮影する第2のキャラクタ301の背景部に当たる画像部分は半透明になる。このため、当該画像を、第1のキャラクタ300が表示された画像に合成(カットイン)した合成画像は、ユーザから見ると、第2のキャラクタ301のみが表示された画像となる。
The
生成配置部202は、図6に示すように、当該仮想空間内に仮想壁面330と第2の仮想カメラ321との間の位置に第2のキャラクタ301を配置する。生成配置部202は、第2のキャラクタ301の正面向きのベクトル上の位置に、第2のキャラクタ301を撮影できる向きに、第2の仮想カメラ321を配置する。仮想壁面330は、第2の仮想カメラ321(又は、第2のキャラクタ301)の位置及び向きに連動して配置される。このため、第2の仮想カメラ321の方向ベクトルと仮想壁面330は直交する。
As illustrated in FIG. 6, the
また、生成配置部202は、第2の仮想カメラ321と第2のキャラクタ301との距離R2を、第1の仮想カメラ320と第1のキャラクタ300との距離R1に比例するよう、第2の仮想カメラ321と第2のキャラクタ301とを配置する。距離R2を変更する方法として、第2のキャラクタ301、第2の仮想カメラ321のどちらの配置位置を変更してもよい。また、第2のキャラクタ301を生成する際の拡大縮小率を変更してもよい。距離R2の変化に連動して、仮想壁面330の配置位置を変更することもできる。
In addition, the generating and arranging
さらに、生成配置部202は、図6に示すように、第1のキャラクタ200の側面側に第1の仮想カメラ320を配置することにより、画像生成部203は、図7に示すように、第1のキャラクタ300を側面側から撮影した画像を生成することもできる。また、第1のキャラクタ300の側面側からの撮影に限られず、上面側(頭部側)、下面側(脚部側)等から、第1のキャラクタ300を撮影した画像を生成することもできる。さらに、第1のキャラクタ300の(全体)全身だけでなく、一部(上半身部、胴体部等)を撮影した画像を生成することもできる。
Furthermore, as shown in FIG. 6, the
画像生成部203は、距離R2に対応(例えば、比例、反比例等)するサイズ(ピクセル)の第2の仮想カメラ321が撮影した第2のキャラクタ301の画像を生成することができる。また、画像生成部203は、第2の仮想カメラ321により撮影した画像について、第2のキャラクタ301の全体(全身)が入るサイズの画像を生成することもできる。
The
これらの構成により、第2の仮想カメラ321と第2のキャラクタ301との距離R2が短いときは、第2のキャラクタ301を拡大した画像が生成され、さらに、当該画像のサイズを大きくした画像が生成されるため、第2のキャラクタの表情等を見やすく提示することができる。
With these configurations, when the distance R2 between the second
以上説明したように、本発明によれば、仮想空間内に配置されるキャラクタの画像を生成する際に、特定のキャラクタの表情等を見やすく提示するのに好適な画像処理装置、画像処理方法、及び、これらをコンピュータにて実現するためのプログラムを提供することができる。 As described above, according to the present invention, when generating an image of a character placed in a virtual space, an image processing device, an image processing method, and And the program for implement | achieving these with a computer can be provided.
100 ゲーム装置
101 CPU
102 ROM
103 RAM
104 インターフェース
105 コントローラ
106 外部メモリ
107 DVD−ROMドライブ
108 画像処理部
109 音声処理部
110 NIC
200 画像処理装置
201 記憶部
202 生成配置部
203 画像生成部
300 第1のキャラクタ
301 第2のキャラクタ
310 第1の照明
311 第2の照明
320 第1の仮想カメラ
321 第2の仮想カメラ
330 仮想壁面
100
102 ROM
103 RAM
104
200
Claims (10)
当該壁面の位置を当該第2の仮想カメラの位置に連動させ、当該壁面の向きを当該壁面が当該第2の仮想カメラの方向に直交するように、前記仮想空間内に配置し、当該第1のキャラクタの形状を所定の拡大縮小率で相似変換して当該第2のキャラクタを生成し、当該第2のキャラクタを当該仮想壁面と当該第2の仮想カメラとの間に配置する生成配置部と、
当該仮想空間を当該第1の仮想カメラの位置から当該第1の仮想カメラの方向に見た第1の画像を生成し、当該仮想空間を当該第2の仮想カメラの位置から当該第2の仮想カメラの方向に見た第2の画像を生成し、当該第1の画像に、当該第2の画像の所定の部分を合成した画像を生成する画像生成部と、
を備え、
前記生成配置部は、当該第1のキャラクタの位置と当該第1の仮想カメラの位置との間の第1の距離に連動するように当該壁面を配置する位置を定め、当該第2のキャラクタの位置と当該第2の仮想カメラの位置との間の第2の距離が当該第1の距離に比例するように当該第2のキャラクタを配置する位置を定め、
前記画像生成部は、当該第2の画像の所定の部分のサイズを当該第2の距離に対応付けられるサイズとする
ことを特徴とする画像処理装置。 The shape, position and orientation of the first character placed in the virtual space; the shape, position and orientation of the second character; the position and orientation of the first virtual camera placed in the virtual space; A storage unit for storing the position and direction of the second virtual camera arranged in the virtual space, and the position and orientation of the wall surface arranged in the virtual space;
The position of the wall surface is linked to the position of the second virtual camera, the direction of the wall surface is arranged in the virtual space so that the wall surface is orthogonal to the direction of the second virtual camera, and the first A generation arrangement unit that generates the second character by converting the shape of the character at a predetermined enlargement / reduction ratio and arranges the second character between the virtual wall surface and the second virtual camera; ,
A first image is generated by viewing the virtual space from the position of the first virtual camera in the direction of the first virtual camera, and the second virtual camera is generated from the position of the second virtual camera. An image generation unit that generates a second image viewed in the direction of the camera, and generates an image in which a predetermined part of the second image is combined with the first image;
Equipped with a,
The generating and arranging unit determines a position at which the wall surface is arranged so as to be linked to a first distance between the position of the first character and the position of the first virtual camera. Determining a position at which the second character is arranged such that a second distance between the position and the position of the second virtual camera is proportional to the first distance;
The image generation unit is characterized in that a size of a predetermined portion of the second image is set to a size associated with the second distance .
前記生成配置部は、
当該第2のキャラクタの向きが、当該第2の仮想カメラの方向に対して所定の向きになるように配置する、
ことを特徴とする画像処理装置。 The image processing apparatus according to claim 1,
The generating and arranging unit is
The second character is arranged so that the direction of the second character is a predetermined direction with respect to the direction of the second virtual camera.
An image processing apparatus.
前記記憶部は、第1の照明及び第2の照明の位置、向き及び光度と、をさらに記憶し、
前記生成配置部は、当該第1の照明の光度を当該第2の照明の光度より高くし、当該第1の照明を所定の位置で所定の向きに配置し、当該第2の照明を当該第2の仮想カメラの位置と当該第2のキャラクタの位置との間の位置で当該第2のキャラクタを照明する向きに配置する、
ことを特徴とする画像処理装置。 The image processing apparatus according to claim 1 , wherein:
The storage unit further stores the position, orientation, and luminous intensity of the first illumination and the second illumination,
The generation arrangement unit sets the intensity of the first illumination higher than the intensity of the second illumination, arranges the first illumination in a predetermined direction at a predetermined position, and arranges the second illumination in the first Arranged to illuminate the second character at a position between the position of the second virtual camera and the position of the second character,
An image processing apparatus.
前記複数の主キャラクタのそれぞれについて、当該主キャラクタの形状を所定の拡大縮小率で相似変換して当該主キャラクタに対応付けられる副キャラクタを生成し、当該主キャラクタの位置と前記主仮想カメラの位置との間の主距離に、当該生成された副キャラクタの位置と当該生成された副キャラクタに対応付けられる副仮想カメラの位置との間の副距離が比例するように、当該生成された副キャラクタの位置と当該生成された副キャラクタに対応付けられる副仮想カメラの位置とを定めることにより、当該生成された副キャラクタの位置と当該生成された副キャラクタに対応付けられる副仮想カメラを当該仮想空間内に配置する生成配置部、
前記仮想空間を前記主仮想カメラの位置から前記主仮想カメラの方向に見た主画像を生成し、前記複数の副キャラクタのそれぞれについて、当該仮想空間を当該副キャラクタに対応付けられる副仮想カメラの位置から当該副仮想カメラの方向に見た副画像を生成し、当該主画像に、当該複数の副画像のそれぞれの所定の部分を合成した画像を生成する画像生成部
を備えることを特徴とする画像処理装置。 The position and direction of the main virtual camera arranged in the virtual space, the shape, position and orientation of the plurality of main characters arranged in the virtual space, and the virtual characters associated with each of the plurality of main characters, A memory that stores the shape, position, and orientation of the sub character arranged in the space, and the position and direction of the sub virtual camera that is associated with each of the plurality of sub characters and arranged in the virtual space. Part,
For each of the plurality of main characters, the shape of the main character is subjected to similarity conversion at a predetermined enlargement / reduction ratio to generate a sub character associated with the main character, and the position of the main character and the position of the main virtual camera The generated sub character so that the sub distance between the position of the generated sub character and the position of the sub virtual camera associated with the generated sub character is proportional to the main distance between And the position of the sub-virtual camera associated with the generated sub-character to determine the position of the generated sub-character and the sub-virtual camera associated with the generated sub-character in the virtual space. Generated placement unit to be placed in,
A main image in which the virtual space is viewed from the position of the main virtual camera in the direction of the main virtual camera is generated, and for each of the plurality of sub-characters, the virtual space is associated with the sub-character. An image generation unit configured to generate a sub-image viewed from the position in the direction of the sub-virtual camera, and generate an image obtained by combining the main image with a predetermined portion of each of the plurality of sub-images. Image processing device.
前記生成配置部は、前記複数の副キャラクタのそれぞれについて、当該副キャラクタに対応付けられる副仮想カメラの向きが当該副キャラクタの向きに正面向きとなり、当該副仮想カメラから主に当該副キャラクタの頭部が見えるように、当該副仮想カメラの位置および向きを定める
ことを特徴とする画像処理装置。 The image processing apparatus according to claim 4 ,
For each of the plurality of sub-characters, the generating and arranging unit is configured so that the direction of the sub-virtual camera associated with the sub-character is front-facing to the direction of the sub-character, and the head of the sub-character mainly from the sub-virtual camera. An image processing apparatus, wherein the position and orientation of the sub-virtual camera are determined so that the portion can be seen.
前記画像生成部は、前記複数の副キャラクタのそれぞれについて、当該副キャラクタに対して生成された副画像のうち、前記主画像に合成される部分のサイズを、当該副キャラクタに対する副距離に比例するように定める
ことを特徴とする画像処理装置。 The image processing apparatus according to claim 5 ,
For each of the plurality of sub-characters, the image generation unit is proportional to the sub-distance for the sub-characters of the sub-image generated for the sub-characters, and the size of the portion combined with the main image. An image processing apparatus characterized by the following.
前記記憶部には、仮想空間内に配置される第1のキャラクタの形状、位置及び向きと、第2のキャラクタの形状、位置及び向きと、当該仮想空間内に配置される第1の仮想カメラの位置及び方向と、当該仮想空間内に配置される第2の仮想カメラの位置及び方向と、当該仮想空間内に配置される壁面の位置及び向きと、が記憶され、
前記生成配置部が、当該壁面の位置を当該第2の仮想カメラの位置に連動させ、当該壁面の向きを当該壁面が当該第2の仮想カメラの方向に直交するように、前記仮想空間内に配置し、当該第1のキャラクタの形状を所定の拡大縮小率で相似変換して当該第2のキャラクタを生成し、当該第2のキャラクタを当該仮想壁面と当該第2の仮想カメラとの間に配置する生成配置工程と、
前記画像生成部が、当該仮想空間を当該第1の仮想カメラの位置から当該第1の仮想カメラの方向に見た第1の画像を生成し、当該仮想空間を当該第2の仮想カメラの位置から当該第2の仮想カメラの方向に見た第2の画像を生成し、当該第1の画像に、当該第2の画像の所定の部分を合成した画像を生成する画像生成工程と、
を備え、
前記生成配置工程では、当該第1のキャラクタの位置と当該第1の仮想カメラの位置との間の第1の距離に連動するように当該壁面を配置する位置を定め、当該第2のキャラクタの位置と当該第2の仮想カメラの位置との間の第2の距離が当該第1の距離に比例するように当該第2のキャラクタを配置する位置を定め、
前記画像生成工程では、当該第2の画像の所定の部分のサイズを当該第2の距離に対応付けられるサイズとする
ことを特徴とする画像処理方法。 An image processing method executed by an image processing apparatus having a storage unit, a generation arrangement unit, and an image generation unit,
In the storage unit, the shape, position and orientation of the first character arranged in the virtual space, the shape, position and orientation of the second character, and the first virtual camera arranged in the virtual space , The position and direction of the second virtual camera arranged in the virtual space, and the position and orientation of the wall surface arranged in the virtual space are stored,
The generating and arranging unit links the position of the wall surface to the position of the second virtual camera, and the direction of the wall surface is set in the virtual space so that the wall surface is orthogonal to the direction of the second virtual camera. The second character is generated by converting the shape of the first character at a predetermined enlargement / reduction ratio, and the second character is placed between the virtual wall surface and the second virtual camera. Generating and arranging steps to arrange;
The image generation unit generates a first image when the virtual space is viewed from the position of the first virtual camera in the direction of the first virtual camera, and the virtual space is positioned at the position of the second virtual camera. Generating a second image viewed in the direction of the second virtual camera, and generating an image obtained by combining the first image with a predetermined portion of the second image;
Equipped with a,
In the generating and arranging step, a position at which the wall surface is arranged to be interlocked with a first distance between the position of the first character and the position of the first virtual camera is determined, and the second character's Determining a position at which the second character is arranged such that a second distance between the position and the position of the second virtual camera is proportional to the first distance;
In the image generating step, the size of a predetermined portion of the second image is set to a size associated with the second distance .
前記記憶部には、仮想空間内に配置される主仮想カメラの位置及び方向と、当該仮想空間内に配置される複数の主キャラクタの形状、位置及び向きと、当該複数の主キャラクタのそれぞれに対応付けられ、当該仮想空間内に配置される副キャラクタの形状、位置及び向きと、当該複数の副キャラクタのそれぞれに対応付けられ、当該仮想空間内に配置される副仮想カメラの位置及び方向と、が記憶され、
前記生成配置部が、前記複数の主キャラクタのそれぞれについて、当該主キャラクタの形状を所定の拡大縮小率で相似変換して当該主キャラクタに対応付けられる副キャラクタを生成し、当該主キャラクタの位置と前記主仮想カメラの位置との間の主距離に、当該生成された副キャラクタの位置と当該生成された副キャラクタに対応付けられる副仮想カメラの位置との間の副距離が比例するように、当該生成された副キャラクタの位置と当該生成された副キャラクタに対応付けられる副仮想カメラの位置とを定めることにより、当該生成された副キャラクタの位置と当該生成された副キャラクタに対応付けられる副仮想カメラを当該仮想空間内に配置する生成配置工程、
前記画像生成部が、前記仮想空間を前記主仮想カメラの位置から前記主仮想カメラの方向に見た主画像を生成し、前記複数の副キャラクタのそれぞれについて、当該仮想空間を当該副キャラクタに対応付けられる副仮想カメラの位置から当該副仮想カメラの方向に見た副画像を生成し、当該主画像に、当該複数の副画像のそれぞれの所定の部分を合成した画像を生成する画像生成工程
を備えることを特徴とする画像処理方法。 An image processing method executed by an image processing apparatus having a storage unit, a generation arrangement unit, and an image generation unit,
The storage unit stores the position and direction of the main virtual camera arranged in the virtual space, the shape, position, and orientation of the plurality of main characters arranged in the virtual space, and each of the plurality of main characters. The shape, position, and orientation of the sub-characters that are associated and arranged in the virtual space, and the positions and directions of the sub-virtual cameras that are associated with each of the plurality of sub-characters and arranged in the virtual space , Is remembered,
For each of the plurality of main characters, the generation / arrangement unit generates a sub-character associated with the main character by performing similarity conversion of the shape of the main character at a predetermined enlargement / reduction ratio, and the position of the main character The sub-distance between the position of the generated sub character and the position of the sub virtual camera associated with the generated sub character is proportional to the main distance between the position of the main virtual camera, By defining the position of the generated sub character and the position of the sub virtual camera associated with the generated sub character, the position of the generated sub character and the sub character associated with the generated sub character are determined. Generating and arranging step of arranging a virtual camera in the virtual space;
The image generation unit generates a main image when the virtual space is viewed from the position of the main virtual camera in the direction of the main virtual camera, and the virtual space corresponds to the sub character for each of the plurality of sub characters. An image generation step of generating a sub-image viewed in the direction of the sub-virtual camera from the position of the sub-virtual camera to be attached, and generating an image obtained by combining the main image with a predetermined portion of each of the plurality of sub-images. An image processing method comprising:
仮想空間内に配置される第1のキャラクタの形状、位置及び向きと、第2のキャラクタの形状、位置及び向きと、当該仮想空間内に配置される第1の仮想カメラの位置及び方向と、当該仮想空間内に配置される第2の仮想カメラの位置及び方向と、当該仮想空間内に配置される壁面の位置及び向きと、を記憶する記憶部、
当該壁面の位置を当該第2の仮想カメラの位置に連動させ、当該壁面の向きを当該壁面が当該第2の仮想カメラの方向に直交するように、前記仮想空間内に配置し、当該第1のキャラクタの形状を所定の拡大縮小率で相似変換して当該第2のキャラクタを生成し、当該第2のキャラクタを当該仮想壁面と当該第2の仮想カメラとの間に配置する生成配置部、
当該仮想空間を当該第1の仮想カメラの位置から当該第1の仮想カメラの方向に見た第1の画像を生成し、当該仮想空間を当該第2の仮想カメラの位置から当該第2の仮想カメラの方向に見た第2の画像を生成し、当該第1の画像に、当該第2の画像の所定の部分を合成した画像を生成する画像生成部
として機能させ、
前記生成配置部は、当該第1のキャラクタの位置と当該第1の仮想カメラの位置との間の第1の距離に連動するように当該壁面を配置する位置を定め、当該第2のキャラクタの位置と当該第2の仮想カメラの位置との間の第2の距離が当該第1の距離に比例するように当該第2のキャラクタを配置する位置を定め、
前記画像生成部は、当該第2の画像の所定の部分のサイズを当該第2の距離に対応付けられるサイズとする
ように機能させることを特徴とするプログラム。 Computer
The shape, position and orientation of the first character placed in the virtual space; the shape, position and orientation of the second character; the position and orientation of the first virtual camera placed in the virtual space; A storage unit for storing the position and direction of the second virtual camera arranged in the virtual space and the position and orientation of the wall surface arranged in the virtual space;
The position of the wall surface is linked to the position of the second virtual camera, the direction of the wall surface is arranged in the virtual space so that the wall surface is orthogonal to the direction of the second virtual camera, and the first A generation arrangement unit that generates the second character by converting the shape of the character at a predetermined enlargement / reduction ratio, and arranges the second character between the virtual wall surface and the second virtual camera;
A first image is generated by viewing the virtual space from the position of the first virtual camera in the direction of the first virtual camera, and the second virtual camera is generated from the position of the second virtual camera. Generating a second image viewed in the direction of the camera, and causing the first image to function as an image generation unit that generates an image obtained by combining a predetermined portion of the second image ;
The generating and arranging unit determines a position at which the wall surface is arranged so as to be linked to a first distance between the position of the first character and the position of the first virtual camera. Determining a position at which the second character is arranged such that a second distance between the position and the position of the second virtual camera is proportional to the first distance;
The image generation unit sets a size of a predetermined portion of the second image to a size associated with the second distance.
A program characterized by functioning as follows.
仮想空間内に配置される主仮想カメラの位置及び方向と、当該仮想空間内に配置される複数の主キャラクタの形状、位置及び向きと、当該複数の主キャラクタのそれぞれに対応付けられ、当該仮想空間内に配置される副キャラクタの形状、位置及び向きと、当該複数の副キャラクタのそれぞれに対応付けられ、当該仮想空間内に配置される副仮想カメラの位置及び方向と、が記憶される記憶部、
前記複数の主キャラクタのそれぞれについて、当該主キャラクタの形状を所定の拡大縮小率で相似変換して当該主キャラクタに対応付けられる副キャラクタを生成し、当該主キャラクタの位置と前記主仮想カメラの位置との間の主距離に、当該生成された副キャラクタの位置と当該生成された副キャラクタに対応付けられる副仮想カメラの位置との間の副距離が比例するように、当該生成された副キャラクタの位置と当該生成された副キャラクタに対応付けられる副仮想カメラの位置とを定めることにより、当該生成された副キャラクタの位置と当該生成された副キャラクタに対応付けられる副仮想カメラを当該仮想空間内に配置する生成配置部、
前記仮想空間を前記主仮想カメラの位置から前記主仮想カメラの方向に見た主画像を生成し、前記複数の副キャラクタのそれぞれについて、当該仮想空間を当該副キャラクタに対応付けられる副仮想カメラの位置から当該副仮想カメラの方向に見た副画像を生成し、当該主画像に、当該複数の副画像のそれぞれの所定の部分を合成した画像を生成する画像生成部
として機能させることを特徴とするプログラム。 Computer
The position and direction of the main virtual camera arranged in the virtual space, the shape, position and orientation of the plurality of main characters arranged in the virtual space, and the virtual characters associated with each of the plurality of main characters, A memory that stores the shape, position, and orientation of the sub character arranged in the space, and the position and direction of the sub virtual camera that is associated with each of the plurality of sub characters and arranged in the virtual space. Part,
For each of the plurality of main characters, the shape of the main character is subjected to similarity conversion at a predetermined enlargement / reduction ratio to generate a sub character associated with the main character, and the position of the main character and the position of the main virtual camera The generated sub character so that the sub distance between the position of the generated sub character and the position of the sub virtual camera associated with the generated sub character is proportional to the main distance between And the position of the sub-virtual camera associated with the generated sub-character to determine the position of the generated sub-character and the sub-virtual camera associated with the generated sub-character in the virtual space. Generated placement unit to be placed in,
A main image in which the virtual space is viewed from the position of the main virtual camera in the direction of the main virtual camera is generated, and for each of the plurality of sub characters, the virtual space is associated with the sub character. Generating a sub-image viewed from the position in the direction of the sub-virtual camera, and causing the main image to function as an image generating unit that generates an image obtained by combining each predetermined portion of the plurality of sub-images. Program to do.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2007315995A JP4637161B2 (en) | 2007-12-06 | 2007-12-06 | Image processing apparatus, image processing method, and program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2007315995A JP4637161B2 (en) | 2007-12-06 | 2007-12-06 | Image processing apparatus, image processing method, and program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2009140237A JP2009140237A (en) | 2009-06-25 |
| JP4637161B2 true JP4637161B2 (en) | 2011-02-23 |
Family
ID=40870780
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2007315995A Active JP4637161B2 (en) | 2007-12-06 | 2007-12-06 | Image processing apparatus, image processing method, and program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4637161B2 (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4913189B2 (en) * | 2009-09-18 | 2012-04-11 | 株式会社ソニー・コンピュータエンタテインメント | Drawing program, recording medium, drawing method and drawing apparatus |
| JP7398933B2 (en) * | 2019-11-20 | 2023-12-15 | 株式会社Cygames | Processing equipment, processing method and program |
| JP2022134638A (en) * | 2021-03-03 | 2022-09-15 | ヤマハ株式会社 | Image display system, display control method, light emission control method, and program |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3807654B2 (en) * | 1999-12-28 | 2006-08-09 | 株式会社スクウェア・エニックス | Computer-readable recording medium having recorded video game program, object drawing method in video game, and video game apparatus |
| JP2002260014A (en) * | 2001-03-05 | 2002-09-13 | Mrd:Kk | Game machine, three-dimensional display data generating method, three-dimensional display data generating program and recording medium for recording the program |
| JP4636908B2 (en) * | 2005-03-14 | 2011-02-23 | キヤノン株式会社 | Image processing apparatus and image processing method |
| JP2006263122A (en) * | 2005-03-24 | 2006-10-05 | Sega Corp | GAME DEVICE, GAME SYSTEM, GAME DATA PROCESSING METHOD, PROGRAM FOR THE GAME DATA PROCESSING METHOD, AND STORAGE MEDIUM |
| JP4695919B2 (en) * | 2005-05-13 | 2011-06-08 | 任天堂株式会社 | GAME PROGRAM AND GAME DEVICE |
-
2007
- 2007-12-06 JP JP2007315995A patent/JP4637161B2/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| JP2009140237A (en) | 2009-06-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10963140B2 (en) | Augmented reality experience creation via tapping virtual surfaces in augmented reality | |
| JP4226639B1 (en) | Image processing apparatus, image processing method, and program | |
| CN101622647B (en) | Character display, character displaying method | |
| US6151026A (en) | Image processing apparatus and image processing method | |
| JP6317854B2 (en) | Virtual three-dimensional space generation method, video system, control method thereof, and recording medium readable by computer device | |
| JP5145444B2 (en) | Image processing apparatus, image processing apparatus control method, and program | |
| JP2005216061A (en) | Image processor, image processing method, recording medium, computer program and semiconductor device | |
| JP2008096776A (en) | Display device, display method, and program | |
| JP5213500B2 (en) | Image conversion program and image conversion apparatus | |
| CN105389090A (en) | Game interaction interface displaying method and apparatus, mobile terminal and computer terminal | |
| JP4637161B2 (en) | Image processing apparatus, image processing method, and program | |
| JP4464773B2 (en) | 3D model display device and 3D model display program | |
| US20110102449A1 (en) | Image Display Device, Image Display Method and Computer-Readable Information Recording Medium | |
| JP2004178036A (en) | A virtual space presentation device with a remote person's image | |
| JP4267646B2 (en) | Image generating apparatus, image generating method, and program | |
| JP4575937B2 (en) | Image generating apparatus, image generating method, and program | |
| JP4425589B2 (en) | Image generation program, image generation method, and image generation apparatus | |
| JP2011198138A (en) | Comic creation support device, comic creation support method, and program | |
| JP2011198135A (en) | Comic creation support device, comic creation support method, and program | |
| US6633291B1 (en) | Method and apparatus for displaying an image | |
| JP2006294066A (en) | Image processor, image processing method, recording medium, computer program, and semiconductor device | |
| JP4637205B2 (en) | Display device, display method, and program | |
| JP4572220B2 (en) | Image display device, image display method, and program | |
| JP2012014392A (en) | Comic-picture creation support apparatus, comic-picture creation support method and program | |
| JP4714248B2 (en) | Display device, display method, and program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20100520 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100601 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100728 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100824 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20101020 |
|
| 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: 20101109 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20101122 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20131203 Year of fee payment: 3 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 4637161 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| 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 |
|
| 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 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |