Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4637161B2 - Image processing apparatus, image processing method, and program - Google Patents
[go: Go Back, main page]

JP4637161B2 - Image processing apparatus, image processing method, and program - Google Patents

Image processing apparatus, image processing method, and program Download PDF

Info

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
Application number
JP2007315995A
Other languages
Japanese (ja)
Other versions
JP2009140237A (en
Inventor
祐一 浅見
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Konami Digital Entertainment Co Ltd
Original Assignee
Konami Digital Entertainment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Konami Digital Entertainment Co Ltd filed Critical Konami Digital Entertainment Co Ltd
Priority to JP2007315995A priority Critical patent/JP4637161B2/en
Publication of JP2009140237A publication Critical patent/JP2009140237A/en
Application granted granted Critical
Publication of JP4637161B2 publication Critical patent/JP4637161B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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参照。)。
特開2006−263122号公報
As a method for easily displaying the facial expressions of characters arranged in a virtual space, a method of cutting in an image corresponding to the character on the screen is known separately from the character displayed on the screen. In this method, a second virtual space different from the virtual space in which the character is arranged is provided, and a second character or the like is provided in the second virtual space, whereby an image on which the second character is displayed is displayed. Generate. Then, an image in which the character and the second character are displayed is generated by cutting in the image in which the second character is displayed on the image in which the character is displayed (for example, Patent Documents). 1).
JP 2006-263122 A

特許文献1に開示されている構成では、カットインに使用する画像を生成するために第2の仮想空間等を新たに設ける必要があった。また、第2のキャラクタ等を設けて生成した所定の画像を使用するため、VRAM(Video Random Access Memory)の使用容量が増大していた。その結果、用途や装置の性能によっては、利用できないことも多い。従って、仮想空間内に配置されるキャラクタの画像を生成する際に、特定のキャラクタの表情等を見やすく提示するのに好適な新たな方法が求められている。   In the configuration disclosed in Patent Document 1, it is necessary to newly provide a second virtual space or the like in order to generate an image used for cut-in. In addition, since a predetermined image generated by providing a second character or the like is used, the usage capacity of a VRAM (Video Random Access Memory) has increased. As a result, there are many cases where it cannot be used depending on the application and the performance of the apparatus. Accordingly, there is a need for a new method that is suitable for easily displaying a facial expression of a specific character when generating an image of a character placed in the virtual space.

本発明は、上記問題に鑑みてなされたものであり、仮想空間内に配置されるキャラクタの画像を生成する際に、特定のキャラクタの表情等を見やすく提示するのに好適な画像処理装置、画像処理方法、及び、これらをコンピュータにて実現するためのプログラムを提供することを目的とする。   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 game apparatus 100 includes a CPU (Central Processing Unit) 101, a ROM (Read Only Memory) 102, a RAM (Random Access Memory) 103, an interface 104, a controller 105, an external memory 106, and a DVD (Digital Versatile Disk). ) -ROM drive 107, image processing unit 108, audio processing unit 109, and NIC (Network Interface Card) 110.

なお、ゲーム用のプログラムおよびデータを記憶したDVD−ROMをDVD−ROMドライブ107に装着して、ゲーム装置100の電源を投入することにより、当該プログラムが実行され、本実施形態の画像処理装置が実現される。   Note that a DVD-ROM storing a game program and data is loaded into the DVD-ROM drive 107 and the game apparatus 100 is turned on to execute the program, and the image processing apparatus of the present embodiment is Realized.

CPU101は、ゲーム装置100全体の動作を制御し、各構成要素と接続され制御信号やデータをやりとりする。   The CPU 101 controls the overall operation of the game apparatus 100 and is connected to each component to exchange control signals and data.

ROM102には、電源投入直後に実行されるIPL(Initial Program Loader)が記録され、CPU101がDVD−ROMに記録されたプログラムをRAM103に読み出して実行する。また、ROM102には、ゲーム装置100全体の動作制御に必要なオペレーティングシステムのプログラムや各種のデータが記録され、CPU101がこれらのプログラム等を読み出して実行する。   The ROM 102 records an IPL (Initial Program Loader) that is executed immediately after the power is turned on, and the CPU 101 reads the program recorded on the DVD-ROM into the RAM 103 and executes it. The ROM 102 stores an operating system program and various data necessary for operation control of the entire game apparatus 100, and the CPU 101 reads and executes these programs.

RAM103は、データやプログラムを一時的に記憶するためのもので、DVD−ROMから読み出したプログラムやデータ、その他ゲームの進行に必要なデータが保持される。   The RAM 103 is for temporarily storing data and programs, and holds programs and data read from the DVD-ROM and other data necessary for the progress of the game.

インターフェース104を介して接続されたコントローラ105は、ユーザがゲーム実行の際に行う操作入力を受け付ける。例えば、コントローラ105には、Aボタン、Bボタン、Xボタン、Yボタンや4方向を示す各方向ボタン(方向キー)等が配置されている。そして、これらのボタンがユーザに押下されると、押下されたボタンに応じた操作入力を受け付ける。   The controller 105 connected via the interface 104 receives an operation input performed when the user executes the game. For example, the controller 105 includes an A button, a B button, an X button, a Y button, direction buttons (direction keys) indicating four directions, and the like. When these buttons are pressed by the user, an operation input corresponding to the pressed button is accepted.

インターフェース104を介して着脱自在に接続された外部メモリ106には、ゲームの進行状態を示すデータ、通信のログ(記録)のデータなどが書き換え可能に記憶される。ユーザは、コントローラ105を介して指示入力を行うことにより、これらのデータを適宜外部メモリ106に記録することができる。   In the external memory 106 detachably connected via the interface 104, data indicating the progress of the game, communication log (record) data, and the like are stored in a rewritable manner. The user can record these data in the external memory 106 as appropriate by inputting an instruction via the controller 105.

DVD−ROMドライブ107に装着されるDVD−ROMには、ゲームを実現するためのプログラムとゲームに付随する画像データや音声データが記録される。CPU101の制御によって、DVD−ROMドライブ107は、これに装着されたDVD−ROMに対する読み出し処理を行って、必要なプログラムやデータを読み出し、これらはRAM103等に一時的に記憶される。   A DVD-ROM mounted on the DVD-ROM drive 107 stores a program for realizing the game and image data and sound data associated with the game. Under the control of the CPU 101, the DVD-ROM drive 107 performs a reading process on the DVD-ROM loaded therein, reads out necessary programs and data, and these are temporarily stored in the RAM 103 or the like.

画像処理部108は、DVD−ROMから読み出されたデータをCPU101や画像処理部108が備える画像演算プロセッサ(図示せず)によって加工処理した後、これを画像処理部108が備えるフレームメモリ(図示せず)に記録する。フレームメモリに記録された画像情報は、所定の同期タイミングでビデオ信号に変換され画像処理部108に接続されるモニタ(図示せず)へ出力される。これにより、各種の画像表示が可能となる。   The image processing unit 108 processes the data read from the DVD-ROM by the CPU 101 or an image arithmetic processor (not shown) included in the image processing unit 108, and then processes the processed data in a frame memory (see FIG. (Not shown). The image information recorded in the frame memory is converted into a video signal at a predetermined synchronization timing and output to a monitor (not shown) connected to the image processing unit 108. Thereby, various image displays are possible.

なお、画像演算プロセッサは、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 CPU 101 and the image arithmetic processor can cooperate to draw a character string as a two-dimensional image in a frame memory or draw on the surface of each polygon according to font information that defines the character shape. It is. The font information is recorded in the ROM 102, but dedicated font information recorded in the DVD-ROM can also be used.

音声処理部109は、DVD−ROMから読み出した音声データをアナログ音声信号に変換し、これに接続されたスピーカ(図示せず)から出力させる。また、CPU101の制御の下、ゲームの進行の中で発生させるべき効果音や楽曲データを生成し、これに対応した音声をスピーカから出力させる。   The audio processing unit 109 converts audio data read from the DVD-ROM into an analog audio signal, and outputs the analog audio signal from a speaker (not shown) connected thereto. In addition, under the control of the CPU 101, sound effects and music data to be generated during the progress of the game are generated, and the corresponding sound is output from the speaker.

NIC110は、ゲーム装置100をインターネット等のコンピュータ通信網(図示せず)に接続するためのものであり、LAN(Local Area Network)を構成する際に用いられる10BASE−T/100BASE−T規格にしたがうものや、電話回線を用いてインターネットに接続するためのアナログモデム、ISDN(Integrated Services Digital Network)モデム、ADSL(Asymmetric Digital Subscriber Line)モデム、ケーブルテレビジョン回線を用いてインターネットに接続するためのケーブルモデム等と、これらとCPU101との仲立ちを行うインターフェース(図示せず)により構成される。   The NIC 110 is for connecting the game apparatus 100 to a computer communication network (not shown) such as the Internet, and conforms to the 10BASE-T / 100BASE-T standard used when configuring a LAN (Local Area Network). Analog modems for connecting to the Internet using telephone lines, ISDN (Integrated Services Digital Network) modems, ADSL (Asymmetric Digital Subscriber Line) modems, cable modems for connecting to the Internet using cable television lines And an interface (not shown) that mediates between these and the CPU 101.

このほか、ゲーム装置100は、ハードディスク等の大容量外部記憶装置を用いて、ROM102、RAM103、外部メモリ106、DVD−ROMドライブ107に装着されるDVD−ROM等と同じ機能を果たすように構成してもよい。
また、ユーザからの文字列の編集入力を受け付けるためのキーボードや、各種の位置の指定および選択入力を受け付けるためのマウスなどの入出力デバイスを接続する形態も採用することができる。
In addition, the game apparatus 100 is configured to perform the same function as a DVD-ROM or the like mounted on the ROM 102, RAM 103, external memory 106, DVD-ROM drive 107, using a large-capacity external storage device such as a hard disk. May be.
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 game apparatus 100 of the present embodiment, a general computer (general-purpose personal computer or the like) can also be used as the image processing apparatus according to the present invention. For example, a general computer, like the game device 100, includes a CPU, RAM, ROM, DVD-ROM drive, and NIC, and includes an image processing unit that has simpler functions than the game device 100. In addition to having a hard disk as an external storage device, a flexible disk, a magneto-optical disk, a magnetic tape, and the like can be used. In addition, a keyboard, a mouse or the like is used as an input device instead of a controller. Then, after the game program is installed, when the program is executed, it can function as an image processing apparatus.

以下では、注記しない限り、画像処理装置200について、図1に示したゲーム装置100により説明を加える。画像処理装置200は、必要に応じて適宜一般的なコンピュータの要素に置換することができ、これらの実施の形態も本発明の範囲に含まれる。   Hereinafter, unless otherwise noted, the image processing apparatus 200 will be described using the game apparatus 100 illustrated in FIG. The image processing apparatus 200 can be appropriately replaced with general computer elements as necessary, and these embodiments are also included in the scope of the present invention.

(画像処理装置の構成)
本実施の形態に係る画像処理装置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 image processing apparatus 200 according to the present embodiment takes into consideration the position and orientation of an object in the three-dimensional virtual space, the position and orientation of a virtual camera (viewpoint), etc. that change according to a user instruction or the passage of time. To display the object. In the present embodiment, as shown in FIG. 3B, a first character (first object) 300 is arranged in a virtual space, and the first character 300 is converted by similarity with a predetermined enlargement / reduction ratio. The generated second character (second object) 301 is placed in the virtual space. Then, the image processing apparatus 200 generates an image including the first character 300 and the second character 301 arranged in the virtual space, as shown in FIG.

次に、本実施の形態に係る画像処理装置200の概要構成について図2を参照して説明する。画像処理装置200は、記憶部201と、生成配置部202と、画像生成部203と、を備える。以下に画像処理装置200の各構成要素について説明する。   Next, a schematic configuration of the image processing apparatus 200 according to the present embodiment will be described with reference to FIG. The image processing apparatus 200 includes a storage unit 201, a generation / arrangement unit 202, and an image generation unit 203. Hereinafter, each component of the image processing apparatus 200 will be described.

記憶部201は、3次元仮想空間内を表現するための種々の情報を記憶する。まず、記憶部201は、3次元仮想空間内の各要素(キャラクタ、あるいはオブジェクトとも呼ばれる)の形状情報を記憶する。各オブジェクト(第1のキャラクタ300及び第2のキャラクタ301の両方を含む)は、その形状をポリゴンと呼ばれる、微小な多角形(例えば三角形や四角形等)の組み合わせによって定義されるサーフェス(表面)として表現される。ここで、オブジェクトは、例えば、頭部、胴体部、手足部等を備える人間の形状を構成する。なお、オブジェクトは、人間の形状に限られず、動物、建物等の形状であってもかまわない。   The storage unit 201 stores various information for expressing the inside of the three-dimensional virtual space. First, the storage unit 201 stores shape information of each element (also referred to as a character or an object) in the three-dimensional virtual space. Each object (including both the first character 300 and the second character 301) is a surface (surface) defined by a combination of minute polygons (for example, triangles and quadrangles) whose shape is called a polygon. Expressed. Here, the object constitutes a human shape including, for example, a head, a torso, a limb, and the like. The object is not limited to a human shape, and may be a shape such as an animal or a building.

記憶部201は、各オブジェクトの、仮想空間内における位置および向きを記憶する。例えば、記憶部201は、仮想空間の全体を表現するグローバル座標系(ワールド座標系)と、オブジェクト毎に固定されたローカル座標系とを記憶する。典型的には、オブジェクトの代表点(例えば重心)がローカル座標系の原点であり、オブジェクトのサーフェス形状(即ち、オブジェクトを構成するポリゴンの形状や当該ポリゴンが配置される位置)がローカル座標系に基づいて定義される。一方、個々のオブジェクトの位置は、グローバル座標系に基づいて定義される。そして、オブジェクトの向きは、例えば、オブジェクトの代表点からオブジェクトの正面方向に延びる方向ベクトルによって、グローバル座標で定義される。   The storage unit 201 stores the position and orientation of each object in the virtual space. For example, the storage unit 201 stores a global coordinate system (world coordinate system) that represents the entire virtual space and a local coordinate system that is fixed for each object. Typically, the representative point of the object (for example, the center of gravity) is the origin of the local coordinate system, and the surface shape of the object (that is, the shape of the polygon constituting the object and the position where the polygon is arranged) is in the local coordinate system. Defined based on. On the other hand, the position of each object is defined based on the global coordinate system. The direction of the object is defined in global coordinates by a direction vector extending from the representative point of the object in the front direction of the object, for example.

なお、位置情報は直交座標系を用いて定義しても、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 storage unit 201 stores the position, orientation, and luminous intensity of the illumination (including the first illumination 310 and the second illumination 311) that illuminates the object in the three-dimensional virtual space, and the viewpoint position and line of sight. Remember the direction. Here, the viewpoint position is a position at which a virtual camera (including the first virtual 320 camera and the second virtual camera 321) views an object in the virtual space, and typically in a global coordinate system. Defined. On the other hand, the direction of the line of sight is the direction in which the viewpoint (virtual camera) looks at the virtual space. In addition, the storage unit 201 also stores lighting directivity, color scheme, and the like.

さらに、記憶部201はオブジェクトそれぞれの表面に貼り付けるテクスチャと呼ばれる画像データを記憶する。テクスチャ情報をオブジェクトのサーフェス形状に貼り付けることで、オブジェクトの質感を表現することが可能となる。   Further, the storage unit 201 stores image data called texture that is pasted on the surface of each object. By pasting the texture information on the surface shape of the object, it is possible to express the texture of the object.

これら記憶部201に記憶される情報は例えばDVD−ROMに予め格納されており、CPU101がDVD−ROMドライブ108に装着されたDVD−ROMを読み出してRAM103に一時記憶させる。あるいは、外部メモリ106に記憶させたこれらの情報を、CPU101に読み出させ、RAM103に一時記憶させるようにしてもよい。なお、CPU101は、一時記憶された情報を、例えばゲームの進行に応じて、随時更新することができる。このように、CPU101、RAM103、DVD−ROMドライブ108等が協働して動作することにより、記憶部201として機能する。   Information stored in the storage unit 201 is stored in advance in, for example, a DVD-ROM, and the CPU 101 reads out the DVD-ROM loaded in the DVD-ROM drive 108 and temporarily stores it in the RAM 103. Alternatively, these pieces of information stored in the external memory 106 may be read out by the CPU 101 and temporarily stored in the RAM 103. Note that the CPU 101 can update the temporarily stored information as needed, for example, according to the progress of the game. As described above, the CPU 101, the RAM 103, the DVD-ROM drive 108, and the like work together to function as the storage unit 201.

次に、生成配置部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 / arrangement unit 202 stores data based on an input or the like instructed by a user by operating the controller 105 connected via the interface 104, or based on an input or time elapsed instructed by a program or the like. A first character 300 that is an object stored in the unit 201 is generated. The generation arrangement unit 202 determines the position and orientation of the generated first character 300 based on the information stored in the storage unit 201, and arranges the first character 300 in the virtual space as shown in FIG. Next, the generating and arranging unit 202 generates the second character 301 by enlarging or reducing the shape of the first character 300 (including the same size), and as shown in FIG. Place in the virtual space. The expression of the second character 301 (the state of the face), the pose (the position of the limbs), and the like change in conjunction with changes in the expression, pose, etc. of the first character 300. The generating and arranging unit 202 can also create a second character 301 by duplicating only a part of the first character 300 (for example, the head or the torso) and arrange it in the virtual space. .

また、生成配置部202は、仮想空間内やオブジェクトを照明する第1の照明310及び第2の照明311を、当該仮想空間内に配置する。ここで、第1の照明310は仮想空間全体を照明し、第2の照明311は主に第2のキャラクタ301を照明するスポットライトのような指向性の強い照明である。第2の照明311は、後述する第2の仮想カメラ321の配置位置と連動して配置され、第2のキャラクタ301を照明する。なお、各照明の光度、指向性、色等は任意に変更することができる。また、ユーザはコントローラ105を操作することにより、各照明の位置等を任意に変更することができる。   In addition, the generation arrangement unit 202 arranges the first illumination 310 and the second illumination 311 that illuminate the virtual space or the object in the virtual space. Here, the first illumination 310 illuminates the entire virtual space, and the second illumination 311 is highly directional illumination such as a spotlight mainly illuminating the second character 301. The second illumination 311 is arranged in conjunction with the arrangement position of a second virtual camera 321 described later, and illuminates the second character 301. In addition, the luminous intensity, directivity, color, etc. of each illumination can be changed arbitrarily. Further, the user can arbitrarily change the position of each illumination by operating the controller 105.

さらに、生成配置部202は、オブジェクトを撮影する第1の仮想カメラ(視点)320及び第2の仮想カメラ321を、当該仮想空間内に配置する。ここで、第1の仮想カメラ320は、第1のキャラクタ300全体を撮影する位置及び向きに配置され、第2の仮想カメラ321は、第2のキャラクタ301の頭部(顔面部)を主に撮影する位置及び向きに配置される。なお、各キャラクタの形状等、各照明の位置等、各仮想カメラの位置等は、記憶部201に記憶される。そして、後述する画像生成部203が当該第1のキャラクタ300等が表示された画像を生成する。CPU101、RAM103等が協働して動作することにより、生成配置部202として機能する。   Further, the generation and arrangement unit 202 arranges the first virtual camera (viewpoint) 320 and the second virtual camera 321 for photographing an object in the virtual space. Here, the first virtual camera 320 is arranged at the position and orientation for photographing the entire first character 300, and the second virtual camera 321 mainly uses the head (face part) of the second character 301. It arrange | positions in the position and direction which image | photographs. Note that the shape of each character, the position of each illumination, the position of each virtual camera, and the like are stored in the storage unit 201. Then, an image generation unit 203 described later generates an image on which the first character 300 or the like is displayed. The CPU 101, the RAM 103, and the like operate in cooperation to function as the generation and placement unit 202.

画像生成部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 placement unit 202, the position and orientation of the virtual camera (viewpoint), the position and orientation of illumination, and the like, the image generation unit 203 generates the 3D virtual image from the viewpoint. Each object in the space is projected (projected) to generate image data to be displayed on a display device such as a monitor. In the present embodiment, as shown in FIG. 4B, image data is generated by combining the images of the objects projected by the first virtual camera 320 and the second virtual camera 321. The CPU 101, the RAM 103, and the image processing unit 107 work together to function as the image generation unit 203.

(画像処理装置の動作)
次に、画像処理装置200の動作を、図5のフローチャートを参照して説明する。
(Operation of image processing device)
Next, the operation of the image processing apparatus 200 will be described with reference to the flowchart of FIG.

画像処理装置200の電源が投入されて起動処理が開始されると、記憶部201は、DVD−ROM等から必要な情報(例えば、仮想カメラの位置や向き、そしてオブジェクトの形状、位置、そして向きなど)を取得し、記憶する(ステップS11)。   When the image processing apparatus 200 is turned on and the startup process is started, the storage unit 201 stores necessary information (for example, the position and orientation of the virtual camera and the shape, position, and orientation of the object) from the DVD-ROM or the like. Etc.) is acquired and stored (step S11).

次に、生成配置部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 storage unit 201, the generation / arrangement unit 202, as shown in FIG. 3A, the first character 300, the first illumination 310, and the first virtual camera 320. Are generated and arranged in the three-dimensional virtual space (step S12). The first virtual camera 320 is arranged at a position where the entire first character 300 (whole body) is photographed. When the first illumination 310 is omnidirectional (omnidirectional), the first illumination 310 is arranged at an arbitrary location in the virtual space. In addition, when the first illumination 310 has directivity, for example, the first character 300 or the like is illuminated in a position vertically upward with respect to the front-facing vector of the first character 300. The lighting 310 is arranged.
For the arranged first character 300 and the like, based on a control program recorded on the DVD-ROM, for example, an operation process such as moving a limb or changing an expression is performed. Further, the user can use the controller 105 to give an instruction to change parameters such as position and orientation. Further, the parameter may be changed to a predetermined value in association with the passage of time or may be changed randomly.

次に、画像生成部203は、図4(a)に示すように、第1の仮想カメラ320が撮影したオブジェクトを含む当該仮想空間の2次元画像を生成(描画)し、該画像をモニタ等に表示する(ステップS13)。これにより、ユーザは第1のキャラクタ300の動作を認識することができる。本実施の形態では、例えば、1点透視法で透視投影することにより、2次元画像を生成する。   Next, as shown in FIG. 4A, the image generation unit 203 generates (draws) a two-dimensional image of the virtual space including the object photographed by the first virtual camera 320, and displays the image on a monitor or the like. (Step S13). Thereby, the user can recognize the movement of the first character 300. In the present embodiment, for example, a two-dimensional image is generated by performing perspective projection with a one-point perspective method.

まず、画像生成部203は第1のキャラクタ300の投射先領域を求める。第1のキャラクタ300を投射面に1点透視法で透視投影することにより、視点から遠くにあるオブジェクトは小さく、近くにあるオブジェクトは大きく投影される。なお、1点透視法の代わりに、平行投影を採用することもできる。   First, the image generation unit 203 obtains the projection destination area of the first character 300. By projecting the first character 300 on the projection plane by a one-point perspective method, an object far from the viewpoint is small and an object near is projected large. Note that parallel projection may be employed instead of the one-point perspective method.

投影先を求めると、投影先の各領域に、対応するテクスチャの対応する領域を貼り付けて(マッピングして)描画する。このとき、画像生成部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 image generation unit 203 uses, for example, a Z buffer method in order to perform hidden surface processing. That is, the image generation unit 203 paints the pixels with the color of the texture information corresponding to the polygon closest to the viewpoint (projection plane) for each pixel constituting the image data to be drawn.
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 image generation unit 203 may not render such a surface. .

また、テクスチャを貼り付ける際は、各オブジェクトを形成するポリゴンの照明(光源)に対する向きを考慮する。即ち、オブジェクトを構成するサーフェス形状の各ポリゴンの法線と、光源ベクトルとがなす角度を求め、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 unit 202 determines whether or not a predetermined time has elapsed since the start process is started, or whether or not a predetermined condition is satisfied (step S14). Here, the predetermined time is determined by, for example, data stored in the storage unit 201. The predetermined condition is, for example, whether the result (score) obtained by the user by progressing the game satisfies the condition, whether the user has pressed the button of the controller 105, or the like.

所定条件等を満たさない場合(ステップ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 image processing apparatus 200 continues the process of displaying the image of the first character 300.

所定条件等を満たした場合(ステップ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 generation arrangement unit 202 generates the second character 301, the second illumination 311, and the second virtual camera 321 as in step S12. As shown in FIG. 3B, it is arranged in the virtual space (step S15). The generation arrangement unit 202 arranges the second virtual camera 321 at a position on the front-facing vector of the second character 301 in a direction in which the second character 301 can be photographed. That is, as shown in FIG. 4B, the generation arrangement unit 202 displays the entire front surface of the head (face part) of the second character 301 in the image captured by the second virtual camera 321. In addition, the arrangement positions of the second character 301 and the second virtual camera 321 are adjusted. Note that the image generation unit 203 can also change the magnification of the image displayed by the second virtual camera 321 so that the entire head is displayed.
Further, the second character 301 is arranged so that the first character 300 and the second character 301 do not overlap each other when viewed from the line of sight of the first virtual camera 320. The second illumination 311 is arranged at a position that illuminates the second character 301 from the front in conjunction with the position and orientation of the second character 301. At this time, both the first character 300 and the second character 301 are illuminated by the first illumination 310 originally arranged in the virtual space.

次に、画像生成部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 image generation unit 203 generates an image in which the second character 301 is captured by the second virtual camera 321 as in step S13 (step S16). Since the second virtual camera 321 is disposed in front of the second character 301, the image generation unit 203 captures an image obtained by photographing the second character 301 from the front as shown in FIG. Can be generated. In addition, since the second illumination 311 is arranged in conjunction with the second virtual camera 321, the second character 301 is illuminated by the second illumination 311. Therefore, it is possible to generate an image that emphasizes the second character 301 in an easy-to-view manner for the user.

画像生成部203は、図4(b)に示すように、第2の仮想カメラ321が撮影した画像を第1の仮想カメラ320が撮影した画像に合成(カットイン)し、モニタ等に合成した画像データを表示して(ステップS17)、ステップS12に戻る。   As illustrated in FIG. 4B, the image generation unit 203 combines (cuts in) the image captured by the second virtual camera 321 with the image captured by the first virtual camera 320 and combines the image with the monitor or the like. The image data is displayed (step S17), and the process returns to step S12.

なお、図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 second character 301 is desirably displayed larger than the head of the first character 300. In addition, for an image taken of the second character 301, an image in which only the second character 301 from which the background portion is deleted is displayed can be generated, and the image can be cut in. The position where the image is cut in is arbitrary.

また、生成配置部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 generation placement unit 202 places only the first virtual camera 320 without placing the second virtual camera 321, and places the second character between the first character 300 and the first virtual camera 320. 301 is generated and arranged. That is, the second character 301 having an enlarged or reduced shape is generated so that the entire head of the second character 301 is photographed by the first virtual camera 320. The generated second character 301 is arranged at a position viewed in the direction of the line of sight of the first virtual camera 320 and closer to the first virtual camera 320 than the first character 300. Accordingly, since the second character 301 is arranged closer to the first virtual camera 320 than the first character 300, an image that presents the second character 301 to the user in an easily viewable manner can be generated.

以上の処理により、仮想空間内に配置されたキャラクタ(オブジェクト)の画像を生成する際に、キャラクタの表情等をユーザに対し見やすく提示することができる。   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 first character 300 and the like but also other objects (for example, pillars, walls, and mountains) can be arranged. Further, as the lighting effect, the lighting can be blinked.

(実施形態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 virtual wall surface 330 is arranged in the three-dimensional virtual space.

記憶部201は、3次元仮想空間内に配置される仮想壁面330の位置、向き及び配色(透明度を含む)を記憶する。仮想壁面330は、例えば、ポリゴンにより形成され、他のオブジェクト(第1のキャラクタ300等)と同様に、グローバル座標系に基づいて定義される。仮想壁面330の配色は、例えば、半透明等、任意に変更できる。仮想壁面330を半透明にすることにより、第2の仮想カメラ321が撮影する第2のキャラクタ301の背景部に当たる画像部分は半透明になる。このため、当該画像を、第1のキャラクタ300が表示された画像に合成(カットイン)した合成画像は、ユーザから見ると、第2のキャラクタ301のみが表示された画像となる。   The storage unit 201 stores the position, orientation, and color scheme (including transparency) of the virtual wall surface 330 arranged in the three-dimensional virtual space. The virtual wall surface 330 is formed of, for example, a polygon, and is defined based on the global coordinate system in the same manner as other objects (first character 300 and the like). The color scheme of the virtual wall surface 330 can be arbitrarily changed, for example, translucent. By making the virtual wall surface 330 translucent, the image portion corresponding to the background portion of the second character 301 captured by the second virtual camera 321 becomes translucent. Therefore, a composite image obtained by combining (cut-in) the image with an image on which the first character 300 is displayed is an image on which only the second character 301 is displayed when viewed from the user.

生成配置部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 generation placement unit 202 places the second character 301 at a position between the virtual wall surface 330 and the second virtual camera 321 in the virtual space. The generation arrangement unit 202 arranges the second virtual camera 321 at a position on the front-facing vector of the second character 301 in a direction in which the second character 301 can be photographed. The virtual wall surface 330 is arranged in conjunction with the position and orientation of the second virtual camera 321 (or the second character 301). For this reason, the direction vector of the second virtual camera 321 and the virtual wall surface 330 are orthogonal to each other.

また、生成配置部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 unit 202 sets the second distance so that the distance R2 between the second virtual camera 321 and the second character 301 is proportional to the distance R1 between the first virtual camera 320 and the first character 300. A virtual camera 321 and a second character 301 are arranged. As a method of changing the distance R2, either the arrangement position of the second character 301 or the second virtual camera 321 may be changed. Further, the enlargement / reduction ratio at the time of generating the second character 301 may be changed. The arrangement position of the virtual wall surface 330 can be changed in conjunction with the change in the distance R2.

さらに、生成配置部202は、図6に示すように、第1のキャラクタ200の側面側に第1の仮想カメラ320を配置することにより、画像生成部203は、図7に示すように、第1のキャラクタ300を側面側から撮影した画像を生成することもできる。また、第1のキャラクタ300の側面側からの撮影に限られず、上面側(頭部側)、下面側(脚部側)等から、第1のキャラクタ300を撮影した画像を生成することもできる。さらに、第1のキャラクタ300の(全体)全身だけでなく、一部(上半身部、胴体部等)を撮影した画像を生成することもできる。   Furthermore, as shown in FIG. 6, the generation arrangement unit 202 arranges the first virtual camera 320 on the side of the first character 200, so that the image generation unit 203 An image obtained by photographing one character 300 from the side can also be generated. In addition, the image is not limited to shooting from the side surface of the first character 300, and an image of the first character 300 can be generated from the upper surface side (head side), the lower surface side (leg side), or the like. . Furthermore, it is possible to generate an image in which not only the (whole) whole body of the first character 300 but also a part (upper body part, body part, etc.) of the first character 300 is captured.

画像生成部203は、距離R2に対応(例えば、比例、反比例等)するサイズ(ピクセル)の第2の仮想カメラ321が撮影した第2のキャラクタ301の画像を生成することができる。また、画像生成部203は、第2の仮想カメラ321により撮影した画像について、第2のキャラクタ301の全体(全身)が入るサイズの画像を生成することもできる。   The image generation unit 203 can generate an image of the second character 301 captured by the second virtual camera 321 having a size (pixel) corresponding to (for example, proportional, inversely proportional) to the distance R2. The image generation unit 203 can also generate an image of a size that can accommodate the entire second character 301 (whole body) with respect to the image captured by the second virtual camera 321.

これらの構成により、第2の仮想カメラ321と第2のキャラクタ301との距離R2が短いときは、第2のキャラクタ301を拡大した画像が生成され、さらに、当該画像のサイズを大きくした画像が生成されるため、第2のキャラクタの表情等を見やすく提示することができる。   With these configurations, when the distance R2 between the second virtual camera 321 and the second character 301 is short, an image in which the second character 301 is enlarged is generated, and an image with a larger size of the image is further generated. Since it is generated, it is possible to present the facial expression of the second character in an easy-to-see manner.

以上説明したように、本発明によれば、仮想空間内に配置されるキャラクタの画像を生成する際に、特定のキャラクタの表情等を見やすく提示するのに好適な画像処理装置、画像処理方法、及び、これらをコンピュータにて実現するためのプログラムを提供することができる。   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.

本発明の実施の形態に係る画像処理装置等が実現される典型的なゲーム装置の概要構成を示す模式図である。It is a mimetic diagram showing an outline composition of a typical game device in which an image processing device etc. concerning an embodiment of the invention is realized. 画像処理装置の概要構成を示す説明図である。It is explanatory drawing which shows schematic structure of an image processing apparatus. 本実施の形態で想定している仮想空間内のオブジェクト(キャラクタ)と、照明と、仮想カメラとの配置例を示す図である、(a)は、第1のキャラクタが配置された状態を示し、(b)は、第1のキャラクタに加え、第2のキャラクタ、第2の照明、第2の仮想カメラが配置された状態を示す。It is a figure which shows the example of arrangement | positioning with the object (character) in the virtual space assumed by this Embodiment, illumination, and a virtual camera, (a) shows the state by which the 1st character was arrange | positioned. , (B) shows a state in which the second character, the second illumination, and the second virtual camera are arranged in addition to the first character. 画像生成部が生成した表示画面例を示す図であり、(a)は、第1の仮想カメラにより撮影された画像を示し、(b)は、第1の仮想カメラにより撮影された画像に、第2の仮想カメラで撮影された画像を合成した合成画像を示す。It is a figure which shows the example of a display screen which the image generation part produced | generated, (a) shows the image image | photographed with the 1st virtual camera, (b) shows the image image | photographed with the 1st virtual camera, The composite image which synthesize | combined the image image | photographed with the 2nd virtual camera is shown. 画像処理装置の動作を説明するフローチャートである。It is a flowchart explaining operation | movement of an image processing apparatus. 実施形態2に係る仮想空間内のオブジェクト(キャラクタ)と、照明と、仮想カメラとの配置例を示す図である。It is a figure which shows the example of arrangement | positioning with the object (character) in the virtual space which concerns on Embodiment 2, illumination, and a virtual camera. 実施形態2に係る画像生成部が生成した表示画面例を示す図である。It is a figure which shows the example of a display screen which the image generation part which concerns on Embodiment 2 produced | generated.

符号の説明Explanation of symbols

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 game device 101 CPU
102 ROM
103 RAM
104 Interface 105 Controller 106 External Memory 107 DVD-ROM Drive 108 Image Processing Unit 109 Audio Processing Unit 110 NIC
200 Image Processing Device 201 Storage Unit 202 Generation Arrangement Unit 203 Image Generation Unit 300 First Character 301 Second Character 310 First Illumination 311 Second Illumination 320 First Virtual Camera 321 Second Virtual Camera 330 Virtual Wall Surface

Claims (10)

仮想空間内に配置される第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の距離に対応付けられるサイズとする
ことを特徴とする画像処理装置。
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 .
請求項1に記載の画像処理装置であって、
前記生成配置部は、
当該第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の照明の光度より高くし、当該第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.
請求項4に記載の画像処理装置であって、
前記生成配置部は、前記複数の副キャラクタのそれぞれについて、当該副キャラクタに対応付けられる副仮想カメラの向きが当該副キャラクタの向きに正面向きとなり、当該副仮想カメラから主に当該副キャラクタの頭部が見えるように、当該副仮想カメラの位置および向きを定める
ことを特徴とする画像処理装置。
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.
請求項5に記載の画像処理装置であって、
前記画像生成部は、前記複数の副キャラクタのそれぞれについて、当該副キャラクタに対して生成された副画像のうち、前記主画像に合成される部分のサイズを、当該副キャラクタに対する副距離に比例するように定める
ことを特徴とする画像処理装置。
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.
JP2007315995A 2007-12-06 2007-12-06 Image processing apparatus, image processing method, and program Active JP4637161B2 (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

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