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
JP4413634B2 - PROGRAM, INFORMATION STORAGE MEDIUM, AND GAME DEVICE - Google Patents
[go: Go Back, main page]

JP4413634B2 - PROGRAM, INFORMATION STORAGE MEDIUM, AND GAME DEVICE - Google Patents

PROGRAM, INFORMATION STORAGE MEDIUM, AND GAME DEVICE Download PDF

Info

Publication number
JP4413634B2
JP4413634B2 JP2004021533A JP2004021533A JP4413634B2 JP 4413634 B2 JP4413634 B2 JP 4413634B2 JP 2004021533 A JP2004021533 A JP 2004021533A JP 2004021533 A JP2004021533 A JP 2004021533A JP 4413634 B2 JP4413634 B2 JP 4413634B2
Authority
JP
Japan
Prior art keywords
image
bright spot
light source
spot image
game
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2004021533A
Other languages
Japanese (ja)
Other versions
JP2005215974A (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.)
Kabushiki Kaisha Bandai Namco Entertainment (also trading as Bandai Namco Entertainment Inc.)
Namco Ltd
Bandai Namco Entertainment Inc
Original Assignee
Kabushiki Kaisha Bandai Namco Entertainment (also trading as Bandai Namco Entertainment Inc.)
Namco Ltd
Namco Bandai Games Inc
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 Kabushiki Kaisha Bandai Namco Entertainment (also trading as Bandai Namco Entertainment Inc.), Namco Ltd, Namco Bandai Games Inc filed Critical Kabushiki Kaisha Bandai Namco Entertainment (also trading as Bandai Namco Entertainment Inc.)
Priority to JP2004021533A priority Critical patent/JP4413634B2/en
Publication of JP2005215974A publication Critical patent/JP2005215974A/en
Application granted granted Critical
Publication of JP4413634B2 publication Critical patent/JP4413634B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Description

本発明は、コンピュータに、仮想カメラのレンズフレアを表現した画像を生成する機能を実現させるためのプログラム等に関する。   The present invention relates to a program for causing a computer to realize a function of generating an image expressing a lens flare of a virtual camera.

コンピュータグラフィックスにおける重要な演出要素の一つとして、レンズフレアの表現が有る。レンズフレアとは、レンズに強い光が入射する条件においてレンズの鏡胴内で入射光が反射を繰り返すことによって生じるレンズ形状や絞り形状の幻影が映る現象である。例えば、晴天を背景にビルを見上げるような撮影条件の場合、太陽から断続的にリング形状や円、六角形などの明るい幻影が連なって映る。
コンピュータグラフィックスを製作する場合、迫力やリアリティをより高める手段として、或いは状況を分かり易く示す手段としてこのレンズフレアを画面に加えることが多い。
One of the important elements in computer graphics is the expression of lens flare. Lens flare is a phenomenon in which an illusion of a lens shape or a diaphragm shape is generated due to repeated reflection of incident light within a lens barrel under the condition where strong light is incident on the lens. For example, in the case of shooting conditions in which a building is looked up against a clear sky, bright illusions such as a ring shape, a circle, and a hexagon appear intermittently from the sun.
When producing computer graphics, this lens flare is often added to the screen as a means for enhancing the power and reality, or as a means for easily showing the situation.

コンピュータグラフィックスによってレンズフレアの表現を実現する技術としては、例えば、3次元仮想空間に配置された仮想カメラの視線ベクトルと、仮想カメラの位置と光源の位置を結ぶベクトルとの内積が所定の閾値を超える場合に、この内積値に比例した透明度でフレアを表現するリング状のポリゴンモデルを描画するものが有る(例えば、特許文献1参照。)。   As a technology for realizing lens flare expression by computer graphics, for example, an inner product of a line-of-sight vector of a virtual camera arranged in a three-dimensional virtual space and a vector connecting the position of the virtual camera and the position of the light source is a predetermined threshold value. In some cases, a ring-shaped polygon model that expresses flare with transparency in proportion to the inner product value is drawn (for example, see Patent Document 1).

また、円形の光源本体の周囲に複数の光芒のオブジェクトを従属させて配し、この光源本体と光芒とからなるオブジェクト集合体に、光源のテクスチャをマッピングして表現するものも有る(例えば、特許文献2参照。)。具体的には、先ず光源本体部分の奥行き情報から光源本体の見える部分を求める。そして、この見える部分とこれに従属する光芒のオブジェクト以外の非表示の部分に対応するテクスチャ情報のαチャンネルに非表示を設定することで、木漏れ日のように光源が見え隠れするような状況でも、位置関係の破綻が無いようにレンズフレアを表現可能にしている。
特許第3415416号公報 特開2001−84393号公報
In addition, there is a technique in which a plurality of light beam objects are subordinately arranged around a circular light source body, and the texture of the light source is mapped to an object aggregate composed of the light source body and the light beam (for example, patents). Reference 2). Specifically, first, the visible portion of the light source body is obtained from the depth information of the light source body portion. Even if the light source appears and disappears like a sunbeams by setting the texture information α channel corresponding to this visible part and the hidden part other than the light beam subordinate to this visible part, Lens flare can be expressed so that there is no failure of the relationship.
Japanese Patent No. 3415416 JP 2001-84393 A

上述のような従来の技術を用いることによって、レンズフレアをリアルに表現することができる。しかし、多くの演算処理を要するために高速処理が要求されるゲーム機で実用するには大きな負担となっていた。そのため、例えば、フライトシミュレーションゲームのように太陽が画面に頻繁に映るビデオゲームでは、処理速度の問題から常時従来の方法でレンズフレアを表現するといったことは難しかった。   By using the conventional technology as described above, the lens flare can be expressed realistically. However, since a large amount of arithmetic processing is required, it has been a heavy burden for practical use in a game machine that requires high-speed processing. Therefore, for example, in a video game such as a flight simulation game in which the sun is frequently reflected on the screen, it is difficult to always express the lens flare by a conventional method because of processing speed.

本発明は、こうした現状を鑑みてなされたものであり、その目的とするところはコンピュータグラフィックスにおいて、簡便な方法でリアルにレンズフレア表現を実現することである。   The present invention has been made in view of such a current situation, and an object thereof is to realize a lens flare expression realistically in a simple manner in computer graphics.

上記課題を解決するために、第1の発明は、コンピュータに、3次元仮想空間をカメラ座標系に投影変換処理することで仮想カメラが撮影する前記3次元仮想空間の画像を生成させるためのプログラムであって、前記3次元仮想空間に光源を設定する光源設定手段(例えば、図3のゲーム演算部22、ゲームステージ情報722)、前記カメラ座標系上の前記光源の位置に基づいて明斑の画像群を配置して明斑画像(例えば、図2の明斑画像P2)を生成する明斑画像生成手段(例えば、図3のレンズフレア合成部25、図6のステップS10〜S12)、前記明斑画像生成手段により生成された明斑画像に、所定のフィルタ処理を施すことで当該明斑画像の部分的な色情報を表出させるフィルタ手段(例えば、図3のレンズフレア合成部25、図6のステップS4〜S6、S14)、前記フィルタ手段により色情報が表出された明斑画像を前記3次元仮想空間の画像と合成する合成手段(例えば、図3のレンズフレア合成部25、図6のステップS16)、として前記コンピュータを機能させ、前記合成手段の合成により前記仮想カメラのレンズフレアを表現した画像を生成することを特徴とする。   In order to solve the above problems, a first invention is a program for causing a computer to generate an image of the three-dimensional virtual space photographed by the virtual camera by performing projection conversion processing of the three-dimensional virtual space into a camera coordinate system. And light source setting means for setting a light source in the three-dimensional virtual space (for example, the game calculation unit 22 and game stage information 722 in FIG. 3), and the location of light spots based on the position of the light source on the camera coordinate system. Bright spot image generating means (for example, the lens flare synthesis unit 25 in FIG. 3, steps S10 to S12 in FIG. 6) that generates a bright spot image (for example, the bright spot image P2 in FIG. 2) by arranging the image group, Filter means (for example, the lens flare synthesizing unit 2 in FIG. 3) that expresses partial color information of the bright spot image by performing predetermined filter processing on the bright spot image generated by the bright spot image generating means. , Steps S4 to S6 and S14 in FIG. 6, and a synthesis unit (for example, the lens flare synthesis unit 25 in FIG. 3) that synthesizes the bright spot image whose color information is expressed by the filter unit with the image in the three-dimensional virtual space. 6, the computer is caused to function as an image representing the lens flare of the virtual camera by the synthesis of the synthesis means.

また、第7の発明は、3次元仮想空間をカメラ座標系に投影変換処理することで仮想カメラが撮影する前記3次元仮想空間の画像を生成して所与のゲームを実行するためのゲーム装置(例えば、図1の家庭用ゲーム装置1200)であって、前記3次元仮想空間に光源を設定する光源設定手段(例えば、図1の制御ユニット1211、図3のゲーム演算部22、ゲームステージ情報722)と、前記カメラ座標系上の前記光源の位置に基づいて明斑の画像群を配置して明斑画像を生成する明斑画像生成手段(例えば、図1の制御ユニット1211、図3のレンズフレア合成部25、図6のステップS10〜S12)と、前記明斑画像生成手段により生成された明斑画像に、所定のフィルタ処理を施すことで当該明斑画像の部分的な色情報を表出させるフィルタ手段(例えば、図1の制御ユニット1211、図3のレンズフレア合成部25、図6のステップS4〜S6、S14)と、前記フィルタ手段により色情報が表出された明斑画像を前記3次元仮想空間の画像と合成する合成手段(例えば、例えば、図1の制御ユニット1211、図3のレンズフレア合成部25、図6のステップS16)と、を備え、前記合成手段の合成により前記仮想カメラのレンズフレアを表現した画像を生成することを特徴とする。   According to a seventh aspect of the present invention, there is provided a game apparatus for executing a given game by generating an image of the three-dimensional virtual space photographed by the virtual camera by projecting the three-dimensional virtual space into a camera coordinate system. (For example, the home game device 1200 of FIG. 1), which is a light source setting means for setting a light source in the three-dimensional virtual space (for example, the control unit 1211 of FIG. 1, the game calculation unit 22 of FIG. 3, game stage information). 722) and bright spot image generation means (for example, the control unit 1211 in FIG. 1 or FIG. 3) that generates a bright spot image by arranging a group of bright spots based on the position of the light source on the camera coordinate system. The lens flare synthesis unit 25, steps S10 to S12 in FIG. 6 and the bright spot image generated by the bright spot image generating means are subjected to a predetermined filter process to obtain partial color information of the bright spot image. table Filter means (for example, the control unit 1211 in FIG. 1, the lens flare synthesis unit 25 in FIG. 3, steps S4 to S6, S14 in FIG. 6), and the bright spot image in which color information is expressed by the filter means Combining means (for example, the control unit 1211 in FIG. 1, the lens flare combining unit 25 in FIG. 3, step S16 in FIG. 6) for combining with the image in the three-dimensional virtual space, An image representing lens flare of a virtual camera is generated.

第1又は第7の発明によれば、3次元仮想空間に設定した光源の位置に基づいて、フレアの元になる明斑の画像群を配置した明斑画像を生成し、この明斑画像に所定のフィルタ処理によって明斑画像の部分的な色情報のみを表出させ、3次元仮想空間の画像と合成することができる。レンズフレアを詳細に見ると、レンズの構造的を思わせる特徴的な形状(例えば、レンズの円形や絞りの多角形)の部分(例えば、輪郭に沿った部分)が特に明るい幻影となって写る場合が多い。したがって、明斑画像のうち部分的な色情報のみを表出させことで、簡単な方法でリアルにレンズフレアの表現を実現できる。例えば、所定方向に沿ったフィルタ処理によって、フレアの元になる明斑の画像の内、レンズの構造を思わせる所定方向に沿った部分(例えば、輪郭に沿った部分)を表出させるならば、簡便なフィルタ処理によって、特徴的な形状を成すリアルなレンズフレアを表現することができる。   According to the first or seventh invention, based on the position of the light source set in the three-dimensional virtual space, a bright spot image in which a group of bright spot images to be a flare is arranged is generated. Only partial color information of the bright spot image can be expressed by a predetermined filtering process, and can be synthesized with the image in the three-dimensional virtual space. If you look at the lens flare in detail, the part of the characteristic shape that reminisces the structure of the lens (for example, the circular shape of the lens or the polygon of the aperture) (for example, the portion along the contour) appears as a particularly bright illusion. There are many cases. Therefore, by expressing only partial color information in the bright spot image, the expression of lens flare can be realized in a simple manner. For example, if a portion along the predetermined direction (for example, a portion along the contour) in the bright spot image that is the origin of the flare is expressed by filtering along the predetermined direction. Realistic lens flare having a characteristic shape can be expressed by simple filter processing.

第2の発明は、第1の発明のプログラムであって、前記明斑画像生成手段が、前記カメラ座標系上の前記光源の位置と前記仮想カメラの視界中央位置とを結ぶ直線に沿って明斑の画像群を配置し、且つ当該カメラ座標系上の当該光源の位置と当該視界中央位置との距離に応じて配置間隔を変更して明斑画像を生成するように前記コンピュータを機能させるプログラムである。   A second invention is the program of the first invention, wherein the bright spot image generating means is bright along a straight line connecting a position of the light source on the camera coordinate system and a visual field center position of the virtual camera. A program that causes the computer to function to generate a bright spot image by arranging a spot image group and changing a placement interval according to a distance between the position of the light source on the camera coordinate system and the center of the field of view. It is.

第2の発明によれば、第1の発明と同様の効果を奏するとともに、カメラに映る光源の位置から仮想カメラの視界中央位置、すなわち画面中央とを結ぶ直線に沿って明斑の画像を配置するとともに、当該光源の画面中央との距離に応じて配置間隔を変更することができる。したがって、光源から連なるようにして発生し、光源の位置に応じてその間隔が規則的に変化するレンズフレアの特徴を簡便に表現することができる。   According to the second invention, the same effect as that of the first invention is achieved, and a bright spot image is arranged along a straight line connecting the position of the light source reflected in the camera to the visual field center position of the virtual camera, that is, the screen center. In addition, the arrangement interval can be changed according to the distance of the light source from the center of the screen. Therefore, it is possible to simply express the characteristics of the lens flare that is generated in a continuous manner from the light source and whose interval regularly changes according to the position of the light source.

第3の発明は、第1又は2の発明のプログラムであって、前記フィルタ手段が、多角形体又は環状体が複数同心状に描かれたフィルタ画像(例えば、図2のフィルタ画像P1)で前記明斑画像をフィルタ処理することで、フィルタ画像に描かれた形体の輪郭に沿った方向に前記明斑画像の色情報を表出させるように前記コンピュータを機能させるプログラムである。   3rd invention is the program of 1st or 2nd invention, Comprising: The said filter means is a filter image (for example, filter image P1 of FIG. 2) by which the polygonal body or the annular body was drawn concentrically, and said A program for causing the computer to function so as to display color information of the bright spot image in a direction along the outline of the feature drawn in the filter image by filtering the bright spot image.

第3の発明によれば、第1又は2の発明と同様の効果を奏するとともに、多角形又は環状体が複数同心状に描かれた画像を基にフィルタ処理し、この画像に描かれた形状の輪郭に沿った方向に明斑画像の色情報を表出させることができる。しがたって、レンズの構造に起因する特徴的な形状でレンズフレアを表現することができる。   According to the third invention, the same effect as that of the first or second invention is achieved, and the filter processing is performed on the basis of an image in which a plurality of polygons or annular bodies are drawn concentrically, and the shape drawn in this image The color information of the bright spot image can be expressed in the direction along the outline of the image. Therefore, the lens flare can be expressed in a characteristic shape resulting from the lens structure.

第4の発明は、第3の発明のプログラムであって、前記フィルタ手段が、前記カメラ座標系上の前記光源の位置に応じて前記同心の位置を変化させて前記フィルタ処理を行うように前記コンピュータを機能させることを特徴とするプログラムである。   4th invention is the program of 3rd invention, Comprising: The said filter means changes the said concentric position according to the position of the said light source on the said camera coordinate system, and performs the said filter process A program for causing a computer to function.

例えば、実際のレンズフレアの場合、大きく弧を描くレンズフレアの位置は、光源が画面中央から離れた位置に映っているほど、画面中央からずれるように映る。
第4の発明によれば、第3の発明と同様の効果を奏するとともに、カメラに映る光源の位置に応じて明斑画像の色情報の表出位置を変化させることによって、光源位置の移動に伴うレンズの構造に起因するレンズフレアの規則的な位置変化をよりリアルに表現することができる。
For example, in the case of an actual lens flare, the position of the lens flare that draws a large arc appears to be shifted from the center of the screen as the light source appears at a position farther from the center of the screen.
According to the fourth invention, the same effect as the third invention can be obtained, and the light source position can be moved by changing the display position of the color information of the bright spot image according to the position of the light source reflected on the camera. The regular change of the lens flare due to the accompanying lens structure can be expressed more realistically.

第5の発明は、第1〜4の何れか一つの発明のプログラムであって、前記フィルタ手段が、前記光源の明るさに応じて、表出させる前記明斑画像の色情報の程度を変更する程度変更手段(例えば、図3のレンズフレア合成部25、図6のステップS6、S14)を有するように前記コンピュータを機能させるプログラムである。   5th invention is a program of any one invention of 1st-4th, Comprising: The said filter means changes the grade of the color information of the said bright spot image to expose according to the brightness of the said light source This is a program that causes the computer to function so as to include degree changing means (for example, the lens flare synthesis unit 25 in FIG. 3 and steps S6 and S14 in FIG. 6).

第5の発明によれば、第1〜4の何れか一つの発明と同様の効果を奏するとともに、光源の明るさに応じて明斑画像の色情報の程度を変更することによって、レンズフレアの明るさを変化させることができる。   According to the fifth invention, the same effect as any one of the first to fourth inventions can be obtained, and the degree of color information of the bright spot image can be changed according to the brightness of the light source. The brightness can be changed.

第6の発明は、第1〜5の何れか一つの発明のプログラムを記憶したコンピュータ読み取り可能な情報記憶媒体である。   A sixth invention is a computer-readable information storage medium storing the program of any one of the first to fifth inventions.

ここで言う「情報記憶媒体」とは、コンピュータが情報を読み取り可能な、例えば、CD−ROM、MO、メモリカード、DVD、ハードディスク、ICメモリなどであって、その接続形態は、装置に着脱自在であっても良いし、通信回線を介して装置に接続されるものであっても良くその形態は問わない。従って、第6の発明によれば、前記コンピュータに、第1〜5の発明の内、何れか一つの発明と同様の効果を発揮させることができる。   The “information storage medium” here refers to a computer that can read information, such as a CD-ROM, MO, memory card, DVD, hard disk, IC memory, etc., and its connection form is detachable from the apparatus. It may be connected to the apparatus via a communication line, and the form is not limited. Therefore, according to the sixth invention, the computer can exhibit the same effect as any one of the first to fifth inventions.

本発明によれば、3次元仮想空間に設定した光源の位置に基づいて、フレアの元になる明斑の画像群を配置した明斑画像を生成し、この明斑画像に所定方向に沿ったフィルタ処理を施すことができる。そして、このフィルタ処理によって明斑画像のうち当該所定方向に沿った部分の色情報を表出させ、3次元仮想空間の画像と合成することができる。すなわち、フレアの元になる明斑の画像の内、レンズの構造を思わせる所定方向に沿った部分を表出させるといった簡便なフィルタ処理によって、特徴的な形状を成すレンズフレアを表現することができる。   According to the present invention, based on the position of the light source set in the three-dimensional virtual space, a bright spot image in which a group of bright spot images to be a flare is arranged is generated, and the bright spot image is aligned along a predetermined direction. Filter processing can be performed. And by this filter process, the color information of the part along the said predetermined direction among the bright spot images can be expressed, and it can synthesize | combine with the image of a three-dimensional virtual space. That is, it is possible to express a lens flare having a characteristic shape by a simple filter process such as exposing a portion along a predetermined direction reminiscent of the lens structure in the bright spot image that is the origin of the flare. it can.

そして、カメラに映る光源の位置から仮想カメラの視界中央位置、すなわち画面中央とを結ぶ直線に沿って明斑の画像を配置するとともに、当該光源の画面中央との距離に応じて配置間隔を変更することによって、光源から連なるようにして発生し、光源の位置に応じてその間隔が規則的に変化するレンズフレアの特徴を簡便に表現することができる。   Then, a bright spot image is arranged along a straight line connecting the position of the light source reflected on the camera to the visual field center position of the virtual camera, that is, the center of the screen, and the arrangement interval is changed according to the distance from the light source center of the screen. By doing so, it is possible to simply express the characteristics of the lens flare that is generated in a continuous manner from the light source and whose interval regularly changes according to the position of the light source.

更に、多角形又は環状体が複数同心状に描かれた画像を基にフィルタ処理するならば、この画像に描かれた形状の輪郭に沿った方向に明斑画像の色情報を表出させることができるので、レンズの構造に起因する特徴的な形状でレンズフレアを表現することができる。   Furthermore, if filtering is performed based on an image in which a plurality of polygons or annular bodies are concentrically drawn, color information of a bright spot image is displayed in a direction along the contour of the shape drawn in the image. Therefore, the lens flare can be expressed with a characteristic shape resulting from the lens structure.

また、カメラに映る光源の位置に応じて明斑画像の色情報の表出位置を変化させることによって、光源位置の移動に伴うレンズの構造に起因するレンズフレアの規則的な位置変化をよりリアルに表現することができ、光源の明るさに応じて明斑画像の色情報の程度を変更するならば、レンズフレアの明るさを変化させることもできる。   In addition, by changing the display position of the color information of the bright spot image according to the position of the light source reflected on the camera, the regular position change of the lens flare caused by the lens structure accompanying the movement of the light source position is more realistic. If the degree of color information of the bright spot image is changed according to the brightness of the light source, the brightness of the lens flare can be changed.

本発明を実施するための最良の形態として、家庭用ゲーム機においてフライトシミュレーションゲームを実行し、太陽光によるレンズフレアを表現する場合を例に挙げて説明する。尚、本実施形態で言う「レンズフレア」とは、レンズに強い光が入射する条件においてレンズの鏡胴内で入射光が反射を繰り返すことによって生じる幻影であって、いわゆる「ゴースト」のように画面中に映り込んだ光源から直線的に配列する幻影を指す。   As a best mode for carrying out the present invention, a case where a flight simulation game is executed in a consumer game machine and lens flare caused by sunlight is expressed will be described as an example. The “lens flare” referred to in the present embodiment is a phantom generated by repeated reflection of incident light in the lens barrel under the condition where strong light is incident on the lens, and is a so-called “ghost”. An illusion arranged linearly from the light source reflected on the screen.

[構成の説明]
図1は、本発明を適用した家庭用ゲーム装置の構成の一例を示す図である。同図に示すように、家庭用ゲーム装置1200は、ゲームコントローラ1202と、本体装置1210と、スピーカ1222を有するディスプレイ1220とを備える。ゲームコントローラ1202は本体装置1210に接続され、ディスプレイ1220は画像信号及び音信号等を伝送可能なケーブル1201によって本体装置1210に接続されている。
[Description of configuration]
FIG. 1 is a diagram showing an example of the configuration of a consumer game device to which the present invention is applied. As shown in the figure, the consumer game device 1200 includes a game controller 1202, a main body device 1210, and a display 1220 having a speaker 1222. The game controller 1202 is connected to the main device 1210, and the display 1220 is connected to the main device 1210 by a cable 1201 capable of transmitting image signals, sound signals, and the like.

ゲームコントローラ1202は、プレーヤがゲーム操作や画面表示位置を入力するための方向キー1204やボタンスイッチ1206を備え、操作入力信号を本体装置1210に出力する。   The game controller 1202 includes direction keys 1204 and button switches 1206 for the player to input game operations and screen display positions, and outputs operation input signals to the main body device 1210.

本体装置1210は、例えばCPUやICメモリ類を搭載した制御ユニット1211やCD−ROM1212等の情報記憶媒体の読取装置を備え、CD−ROM1212などから読み出したゲーム情報とゲームコントローラ1202からの操作信号とに基づいて種々のゲーム処理を演算処理して、ゲーム画面の画像信号及びゲーム音の音信号を生成する。 尚、ここで言う「ゲーム情報」とは、ゲーム装置等の電子計算機(コンピュータ)による処理の用に供する、プログラムに準じた情報の意である。   The main unit 1210 includes, for example, a control unit 1211 equipped with a CPU and IC memories, and a reading device for an information storage medium such as a CD-ROM 1212, game information read from the CD-ROM 1212, operation signals from the game controller 1202, and the like. Based on the above, various game processes are calculated to generate image signals of game screens and sound signals of game sounds. The “game information” here refers to information according to a program used for processing by an electronic computer (computer) such as a game device.

本体装置1210は、制御ユニット1211に搭載されたICメモリの一部をフレームバッファとして使用し、3次元仮想空間内に配置された仮想カメラから撮影された画像をカメラ座標系に投影変換処理し、フレームバッファ上に描画(記憶)してゲーム画像を生成する。そして、画像信号と音声信号とをディスプレイ1220に出力して、ディスプレイ1220にゲーム画像を表示させるとともにスピーカ1222からゲーム音を出力させる。プレーヤはディスプレイ1220に映し出されたゲーム画面を見ながら、ゲームコントローラ1202を操作してゲームを楽しむことができる。   The main body device 1210 uses a part of the IC memory mounted on the control unit 1211 as a frame buffer, performs projection conversion processing on an image photographed from a virtual camera arranged in a three-dimensional virtual space, to a camera coordinate system, A game image is generated by drawing (storing) on the frame buffer. Then, an image signal and an audio signal are output to the display 1220, a game image is displayed on the display 1220, and a game sound is output from the speaker 1222. The player can enjoy the game by operating the game controller 1202 while watching the game screen displayed on the display 1220.

本体装置1210がゲーム処理を実行するために必要なプログラムやデータ等を含むゲーム情報は、例えば、本体装置1210に着脱自在な情報記憶媒体であるCD−ROM1212、ICメモリ1214、メモリカード1216等に格納されている。或いは、ゲーム情報を本体装置1210に具備された通信装置1218を介して通信回線2に接続し、外部装置(例えば、ゲームサーバ)からゲーム情報をダウンロードし取得する。
尚、ここで言う「通信回線」とは、データ授受が可能な通信路を意味する。即ち、通信回線2とは、直接接続のための専用線(専用ケーブル)やイーサネット(登録商標)等によるLANの他、電話通信網やケーブル網、インターネット等の通信網を含む意味であり、また通信方法については有線/無線を問わない意味である。
Game information including programs and data necessary for the main body device 1210 to execute game processing is stored in, for example, a CD-ROM 1212, an IC memory 1214, a memory card 1216, etc., which are information storage media detachable from the main body device 1210. Stored. Alternatively, the game information is connected to the communication line 2 via the communication device 1218 provided in the main body device 1210, and the game information is downloaded and acquired from an external device (for example, a game server).
The “communication line” here refers to a communication path through which data can be exchanged. That is, the communication line 2 is meant to include a communication network such as a telephone communication network, a cable network, and the Internet in addition to a LAN using a dedicated line (dedicated cable) or Ethernet (registered trademark) for direct connection. The communication method is meaning regardless of wired / wireless.

[レンズフレア表現の原理の説明]
図2は、本実施形態におけるレンズフレア表現の原理を説明するための概念図である。本実施形態では、レンズフレアをポリゴンモデルでは表現しない。同図(a)に示すように、ゲーム画面描画用のフレームバッファのRGBチャンネルに、3次元仮想空間内に配置された仮想カメラから撮影された画像を描画した後、アルファチャンネルに同心円状の明暗画像(グレー画像)であるフィルタ画像P1を描画する。
[Description of the principle of lens flare expression]
FIG. 2 is a conceptual diagram for explaining the principle of lens flare expression in the present embodiment. In the present embodiment, the lens flare is not expressed by a polygon model. As shown in FIG. 5A, after drawing an image taken from a virtual camera arranged in a three-dimensional virtual space on the RGB channel of the frame buffer for drawing the game screen, concentric light and darkness is drawn on the alpha channel. A filter image P1 that is an image (gray image) is drawn.

フィルタ画像P1の一つの明るいリングに着目すると、中央が最も明るくその内側と外側に向かって徐々に暗くなるよう設定されている。そして、こうしたリングが、外側のリングほど明るい部分の幅が徐々に細くリング全体が徐々に暗くなるように設定され、幾重にも同心円状に描画される。尚、表現の多様性として各リングの外縁が徐々に暗くならず白黒の明らかな境を有するものであっても良いのは勿論であり、また、明暗の形状は必ずしも多重リングによって成されるに限らず、断続的な弧が複数配置されて結果として略同心円状の明暗を成す構成であっても良い。更には、リングの代わりに多角形で表現しても良い。   Focusing on one bright ring in the filter image P1, the center is set to be brightest and gradually darken toward the inside and outside. Such a ring is set so that the width of the brighter portion is gradually narrowed toward the outer ring and the entire ring is gradually darkened, and is drawn concentrically in layers. Of course, as a variety of expressions, the outer edge of each ring may not be gradually darkened but may have a clear border of black and white, and the shape of light and dark is not necessarily formed by multiple rings. The configuration is not limited, and a plurality of intermittent arcs may be arranged to result in substantially concentric light and dark. Further, a polygon may be used instead of the ring.

次に、同図(b)に示すように、別途、画面中の光源Lの位置(カメラ座標系の光源の位置)と画面中央位置(視界中央位置)とを結ぶ直線に沿って、光源Lを表現する光源テクスチャと、レンズフレアの表現物の元になる明斑M(M1〜M5)の画像とを所定の規則に則って配置した明斑画像P2を生成する。明斑画像P2は、例えば、黒地に光源Lと明斑Mが描かれた画像となる。一つの明斑Mは、中央が最も明るく外側ほど暗くなる略円又は多角形を成しており、大きさやその色は実際のレンズフレアを真似て適宜設定する。明斑Mの配置の規則に関しても同様である。   Next, as shown in FIG. 4B, separately, along the straight line connecting the position of the light source L in the screen (the position of the light source in the camera coordinate system) and the screen center position (the visual field center position), the light source L A light spot image P2 is generated in which a light source texture that expresses the above and an image of bright spots M (M1 to M5) that are the basis of the lens flare expression are arranged according to a predetermined rule. The bright spot image P2 is, for example, an image in which the light source L and the bright spot M are drawn on a black background. One bright spot M forms a substantially circular or polygonal shape in which the center is brightest and darker toward the outside, and the size and the color thereof are appropriately set by imitating an actual lens flare. The same applies to the rules of arrangement of the light spots M.

次に、同図(c)に示すように、フレームバッファのアルファチャンネルに格納されているアルファ値、すなわち先に格納された同心円状のフィルタ画像P1の値に基づいて、明るい部分を不透明、暗い部分を透明として明斑画像P2をアルファ合成(アルファブレンディング)でフィルタ処理して色情報を表出させる。そして、処理結果(結果画像P3)をRGBチャンネルに加算合成して描画する。   Next, as shown in FIG. 5C, based on the alpha value stored in the alpha channel of the frame buffer, that is, the value of the concentric filter image P1 stored earlier, the bright part is made opaque and dark. The bright spot image P2 is filtered by alpha synthesis (alpha blending) with the portion made transparent, and color information is expressed. Then, the processing result (result image P3) is added and combined with the RGB channels and rendered.

この結果、フィルタ画像P1の暗部分に掛かる明斑Mの部分は、アルファ値に応じた透明度によって仮想カメラで撮影された画像上に加算合成され、フィルタ画像P1の明部分に掛かる明斑Mの部分はマスクされて加算合成されないことになる。したがって、例えば、明斑画像P2のうち同心円状のリングに沿った部分が明るい斑や弧となってRGBチャンネルに格納されている画像に描画されて、あたかもレンズ鏡胴内で反射して生じた幻影が映っているように描画される。従来のように複雑な計算をせずとも、簡便なフィルタ処理でレンズフレアを表現することができる。   As a result, the bright spot M portion applied to the dark portion of the filter image P1 is added and synthesized on the image photographed by the virtual camera with transparency according to the alpha value, and the bright spot M applied to the bright portion of the filter image P1. The portion is masked and not added and synthesized. Therefore, for example, a portion along the concentric ring in the bright spot image P2 is rendered as a bright spot or arc in the image stored in the RGB channel, and is reflected as if in the lens barrel. It is drawn like a phantom. The lens flare can be expressed by simple filter processing without performing complicated calculations as in the prior art.

また、従来の技術によるレンズフレアは、ポリゴンモデルによって表現されるために幾何的形状が明らかな幻影として表現されていたが、本実施形態によって表現されるレンズフレアは、輪郭が柔らかく表現されており、従来と異なる光が滲んだ感じを有した新しくも見た目の印象に近いレンズフレアの表現を実現している。   In addition, the lens flare according to the prior art has been expressed as a phantom with a clear geometric shape because it is expressed by a polygon model. However, the lens flare expressed by this embodiment has a soft outline. The lens flare has a new appearance that has a feeling of blurring of light that is different from the conventional one.

[機能ブロックの説明]
図3は、本実施形態における機能構成の一例を示す機能ブロック図である。同図に示すように、家庭用ゲーム装置1200は、プレーヤからの操作を受けつける操作入力部10と、装置の制御やゲームの制御に係る各種の演算処理を実行する処理部20と、ゲーム画面を表示出力する画像表示部30と、ゲーム音を音出力する音出力部40と、通信回線を介して外部装置とデータ通信を実現する通信部50と、各種のプログラムやデータを記憶する記憶部70とを備える。
[Description of functional block]
FIG. 3 is a functional block diagram illustrating an example of a functional configuration according to the present embodiment. As shown in the figure, a consumer game device 1200 includes an operation input unit 10 that receives operations from a player, a processing unit 20 that executes various arithmetic processes related to device control and game control, and a game screen. An image display unit 30 for display output, a sound output unit 40 for outputting game sounds, a communication unit 50 for realizing data communication with an external device via a communication line, and a storage unit 70 for storing various programs and data. With.

操作入力部10は、例えば、ボタンスイッチ、レバー、ダイヤル、マウス、キーボード、各種センサによって実現され、プレーヤによる操作に応じた操作入力信号を処理部20に出力する。本実施形態では、図1のゲームコントローラ1202が該当する。   The operation input unit 10 is realized by, for example, a button switch, a lever, a dial, a mouse, a keyboard, and various sensors, and outputs an operation input signal corresponding to an operation by the player to the processing unit 20. In this embodiment, the game controller 1202 of FIG.

処理部20は、家庭用ゲーム装置1200全体の制御やゲーム演算などの各種の演算処理を行う。その機能は、例えば、CPU(CISC型、RISC型)、ASIC(ゲートアレイ等)、ICメモリなどのハードウェア及び関連する制御プログラム等により実現される。図1では本体装置1210に具備される制御ユニット1211が該当する。   The processing unit 20 performs various arithmetic processes such as control of the entire home game device 1200 and game calculations. The function is realized by hardware such as a CPU (CISC type, RISC type), ASIC (gate array, etc.), IC memory, and related control programs. In FIG. 1, the control unit 1211 included in the main body apparatus 1210 corresponds.

また処理部20は、主にゲームに係る演算処理を行うゲーム演算部22と、ゲーム演算部22の処理によって求められた各種のデータから仮想カメラを視点とする仮想空間中の画像の生成並びにゲーム画面を表示させるための画像信号の生成を実行する画像生成部24と、効果音やBGMなどのゲーム音を生成する音生成部26と、データ通信に係る制御を担う通信制御部28とを含む。   The processing unit 20 also includes a game calculation unit 22 that mainly performs calculation processing related to the game, generation of an image in a virtual space from the viewpoint of the virtual camera from various data obtained by the processing of the game calculation unit 22, and a game It includes an image generation unit 24 that generates an image signal for displaying a screen, a sound generation unit 26 that generates game sounds such as sound effects and BGM, and a communication control unit 28 that performs control related to data communication. .

ゲーム演算部22は、操作入力部10からの操作入力信号や、記憶部70から読み出したプログラムやデータに基づいて、フライトシミュレーションゲームを実行するための種々のゲーム処理を実行する。例えば、3次元仮想空間への仮想カメラや戦闘機などのオブジェクトの配置処理、背景のオブジェクトの移動や変形処理、オブジェクトの交差判定処理(ヒットチェック処理)、メニューの選択処理、ゲーム結果(成績)の算出、各種データの保存/読み出し処理などを実行する。   The game calculation unit 22 executes various game processes for executing a flight simulation game based on an operation input signal from the operation input unit 10 and a program and data read from the storage unit 70. For example, placement processing of objects such as virtual cameras and fighters in a three-dimensional virtual space, background object movement and deformation processing, object intersection determination processing (hit check processing), menu selection processing, game results (results) Calculation, various data storage / read processing, and the like are executed.

画像生成部24は、例えばCPUやDSPなどの演算装置やその制御プログラム、フレームバッファなどの描画フレーム用ICメモリなどによって実現される。画像生成部24は、ゲーム演算部22による演算結果に基づいて幾何変換処理やシェーディング処理を実行して、ゲーム画面を表示するための3DCG画像を生成し、生成した画像の画像信号を画像表示部30に出力する。そして、本実施形態では、レンズフレアの描画に係る処理を実行するレンズフレア合成部25を備えている。   The image generation unit 24 is realized, for example, by an arithmetic device such as a CPU or DSP, a control program thereof, a drawing frame IC memory such as a frame buffer, and the like. The image generation unit 24 performs a geometric transformation process and a shading process based on the calculation result of the game calculation unit 22 to generate a 3DCG image for displaying the game screen, and an image signal of the generated image is displayed on the image display unit. Output to 30. In the present embodiment, a lens flare synthesis unit 25 that executes processing related to drawing of the lens flare is provided.

レンズフレア合成部25は、同心円状のフィルタ画像P1をフレームバッファのアルファチャンネルに描画する処理や、光源Lとレンズフレアの表現物の元になる明斑Mとを配列させた明斑画像P2を生成する処理、生成した明斑画像P2をフレームバッファのアルファチャンネルに格納されたアルファ値に基づいてアルファブレンディングするフィルタ処理、及びアルファブレンディグした結果画像P3をRGBチャンネルに加算合成する処理を実行する。   The lens flare composition unit 25 draws a concentric filter image P1 on the alpha channel of the frame buffer, and a light spot image P2 in which the light source L and the light spot M that is the basis of the expression of the lens flare are arranged. A process for generating, a filter process for alpha-blending the generated bright spot image P2 based on an alpha value stored in the alpha channel of the frame buffer, and a process for adding and synthesizing the alpha-blended result image P3 to the RGB channel are executed. .

そして、画像表示部30は、画像生成部24からアルファブレンディグした結果画像P3がフレームバッファのRGBチャンネルに加算合成されたの画像の信号に基づいて、例えば1/60秒毎に1フレームの画面を再描画しながらゲーム画面を表示する。画像表示部30は、例えばCRT、LCD、ELD、PDP、HMD等の表示装置によって実現できる。図1の例ではディスプレイ1220が該当する。   Then, the image display unit 30 is based on the image signal obtained by adding and synthesizing the result image P3, which is alpha-blended from the image generation unit 24, to the RGB channel of the frame buffer. The game screen is displayed while redrawing. The image display unit 30 can be realized by a display device such as a CRT, LCD, ELD, PDP, or HMD, for example. In the example of FIG. 1, the display 1220 corresponds.

音生成部26は、例えばCPUやDSPなどの演算装置及びその制御プログラムによって実現され、ゲーム中に使用される効果音やBGMなどの音を生成し、生成した音の音信号を音出力部40に出力する。   The sound generation unit 26 is realized by, for example, an arithmetic device such as a CPU or DSP and its control program, generates sound such as sound effects and BGM used during the game, and generates a sound signal of the generated sound as a sound output unit 40. Output to.

音出力部40は、音生成部26からの音信号に基づいて効果音やBGM等を音出力するための装置であり、図1の例ではスピーカ1222が該当する。   The sound output unit 40 is a device for outputting sound effects, BGM, and the like based on the sound signal from the sound generation unit 26, and corresponds to the speaker 1222 in the example of FIG.

通信部50は、通信制御部28からの制御信号にしたがって、通信回線2に接続して外部装置とのデータ通信を行う。例えば、無線通信モジュール、モデム、TA、有線用の通信ケーブルのジャックや制御回路などによって実現される。図1の通信装置1218がこれに該当する。尚、通信部50が、通信時に供するプロトコル等に係る情報は、例えば記憶部70に記憶されており適宜読み出して利用する。   The communication unit 50 connects to the communication line 2 and performs data communication with an external device in accordance with a control signal from the communication control unit 28. For example, it is realized by a wireless communication module, a modem, TA, a cable communication cable jack or a control circuit. The communication device 1218 in FIG. 1 corresponds to this. Note that information related to protocols and the like provided by the communication unit 50 during communication is stored in, for example, the storage unit 70 and is appropriately read and used.

記憶部70は、処理部20に家庭用ゲーム装置1200を統合的に制御させるための諸機能を実現させるシステムプログラム(図示略)や、ゲームを実行させるために必要なプログラム及びデータを含むゲーム情報72等を記憶している。また、処理部20が演算処理に必要な各種のプログラムやデータを一時的に記憶する。その機能は、例えば各種ICメモリ、メモリカード、ハードディスク、CD−ROM、MO、DVD等の情報記憶媒体によって実現できる。図1の例ではCD−ROM1212、ICメモリ1214、メモリカード1216が該当する。   The storage unit 70 is a system program (not shown) for realizing various functions for causing the processing unit 20 to control the home game device 1200 in an integrated manner, and game information including programs and data necessary for executing the game. 72 etc. are memorized. Further, the processing unit 20 temporarily stores various programs and data necessary for the arithmetic processing. The function can be realized by an information storage medium such as various IC memories, memory cards, hard disks, CD-ROMs, MOs, and DVDs. In the example of FIG. 1, a CD-ROM 1212, an IC memory 1214, and a memory card 1216 correspond.

ゲーム情報72は、処理部20をゲーム演算部22として機能させるためのプログラム及びデータを含んでいる。本実施形態では特に、画像生成部24をレンズフレア合成部25として機能させるためのレンズフレア合成プログラム720と、ゲームステージを構成するための背景や登場キャラクタ及びクリア条件などの情報を格納するゲームステージ情報722と、明斑画像P2を生成する際に配置する各明斑Mの初期設定値を格納する明斑初期設定情報726と、フィルタ画像P1の元になる初期フィルタ画像728と、仮想カメラの配置位置や姿勢及び画角等の現在の設定値を格納する仮想カメラ設定情報729とを含んでいる。   The game information 72 includes a program and data for causing the processing unit 20 to function as the game calculation unit 22. Particularly in the present embodiment, a lens flare synthesis program 720 for causing the image generation unit 24 to function as the lens flare synthesis unit 25, and a game stage for storing information such as background, appearance characters, and clear conditions for configuring the game stage. Information 722, bright spot initial setting information 726 for storing initial setting values of each bright spot M arranged when generating the bright spot image P2, an initial filter image 728 that is the basis of the filter image P1, and the virtual camera And virtual camera setting information 729 for storing current setting values such as the arrangement position, orientation, and angle of view.

本実施形態では、レンズフレアの表現の対象は太陽なので、ゲームステージ情報722に、太陽の位置である光源位置情報724と、光源L(特定光源;太陽)単独の輝きを表現する光源テクスチャ725とが格納されている。該テクスチャでは、例えば太陽本体を表現する白円と、白円の周囲に光の広がりを示す放射状の光芒といった部分が含まれている。   In the present embodiment, since the object of expressing the lens flare is the sun, the game stage information 722 includes light source position information 724 that is the position of the sun, and a light source texture 725 that expresses the brightness of the light source L (specific light source: the sun) alone. Is stored. The texture includes, for example, a white circle that represents the solar body and a radial light bulb that shows the spread of light around the white circle.

図4は、本実施形態における明斑初期設定情報726のデータ構成の一例を示す図である。同図(a)に示すように、明斑初期設定情報726は、レンズフレアの表現物の元となる明斑毎に、識別情報726aと、明斑パターン726bと、初期配置距離726cとを対応付けて格納している。   FIG. 4 is a diagram illustrating an example of a data configuration of the bright spot initial setting information 726 in the present embodiment. As shown in FIG. 6A, the bright spot initial setting information 726 corresponds to the identification information 726a, the bright spot pattern 726b, and the initial arrangement distance 726c for each bright spot that is the basis of the expression of the lens flare. It is attached and stored.

明斑パターン726bは、同図(b)に示すように、レンズフレアを真似た表示色を有し、中心が最も明るく外側ほど暗くなって背景との境界がぼかされた画像である。例えば、淡い黄色や淡い青などである。   The bright spot pattern 726b is an image having a display color imitating a lens flare and having the center brightest and darker toward the outside, and the boundary with the background is blurred, as shown in FIG. For example, pale yellow or pale blue.

初期配置距離726cは、同図(c)に示すように、画面中における光源Lの中心位置からの当該明斑Mの中心位置までの直線距離ML(例えば、単位はドット。)である。本実施形態では、初期配置距離726cは光源Lが画面の対角頂点に映る場合の距離に相当する。そして、レンズフレア合成部25は、画面中における光源Lの位置から画面中央位置までの距離に応じて、光源Lが画面中央に近づくほど光源Lから当該明斑Mまでの距離が小さくなるように初期配置距離726cを変更して各明斑Mを配置して明斑画像P2を生成する。例えば、光源Lが画面中央に映る条件では、全ての明斑Mは光源L上に配置される。尚、同図では、光源Lから画面中央方向にのみ明斑Mが配列されているが、現実のレンズフレア現象に見られるように、一部の明斑Mを光源Lの位置から画面外側に向けて配置するとしても良いのは勿論である。   The initial arrangement distance 726c is a linear distance ML (for example, the unit is a dot) from the center position of the light source L to the center position of the bright spot M on the screen, as shown in FIG. In the present embodiment, the initial arrangement distance 726c corresponds to the distance when the light source L appears on the diagonal vertex of the screen. The lens flare composition unit 25 then reduces the distance from the light source L to the bright spot M as the light source L approaches the center of the screen according to the distance from the position of the light source L in the screen to the center position of the screen. The light spot image P2 is generated by changing the initial arrangement distance 726c and arranging the light spots M. For example, under the condition that the light source L is reflected in the center of the screen, all the bright spots M are arranged on the light source L. In the drawing, the bright spots M are arranged only from the light source L toward the center of the screen. However, as seen in the actual lens flare phenomenon, some bright spots M are moved from the position of the light source L to the outside of the screen. Of course, it may be arranged facing.

図5は、本実施形態における初期フィルタ画像728の一例を示す図である。同図(a)に示すように、初期フィルタ画像728は黒地に白のリングが画面中心点に同心円状に描かれた画像である。そして、同図(b)に示すように、一つの明るいリングに着目すると、リング幅の中央部分が最も明るく、内側と外側に向かって徐々に暗くなるよう設定されている。そして、こうしたリングが、外側のリングほど中央の最も明るい部分の幅が細くなりリング全体として暗くなるように設定されて、同心円状に描画されている。   FIG. 5 is a diagram illustrating an example of the initial filter image 728 in the present embodiment. As shown in FIG. 5A, the initial filter image 728 is an image in which a white ring on a black background is drawn concentrically at the screen center point. As shown in FIG. 5B, when attention is paid to one bright ring, the center portion of the ring width is set to be brightest and gradually darken toward the inside and the outside. Such a ring is drawn concentrically, with the outer ring being set such that the brightest part at the center becomes thinner and darker as a whole.

仮想カメラ設定情報729には、ゲーム演算部22によって移動制御される仮想カメラの現在の位置や姿勢、画角等の情報が格納され、ゲーム中はプレーヤの操作に応じて常時書き換えられる。例えば、仮想カメラがプレーヤによって操作される飛行機を後方から撮影する位置に設定される場合、プレーヤの操作に応じて飛行機の位置と姿勢が変更されるのに応じて、仮想カメラはこの飛行機を追従するようにして位置と姿勢が変更され、仮想カメラ設定情報729が更新される。画角については、例えば従来のフライトシミュレーションゲームと同様に、視点位置の切り換え操作等に応じて変更される。
本実施形態では、レンズフレアの表現対象は太陽なので、飛行機の位置や姿勢が変わり、それにつれて仮想カメラの位置や姿勢が変わることによって、太陽が画面に映ったり映らなかったりが頻繁に変化することになる。
The virtual camera setting information 729 stores information such as the current position, posture, and angle of view of the virtual camera that is movement-controlled by the game calculation unit 22, and is constantly rewritten during the game according to the player's operation. For example, when the virtual camera is set to a position where the airplane operated by the player is photographed from behind, the virtual camera follows the airplane as the position and posture of the airplane are changed according to the player's operation. Thus, the position and orientation are changed, and the virtual camera setting information 729 is updated. The angle of view is changed according to a viewpoint position switching operation or the like, for example, as in a conventional flight simulation game.
In this embodiment, since the lens flare is expressed by the sun, the position and orientation of the airplane changes, and the position and orientation of the virtual camera change accordingly, so that the sun often appears or disappears on the screen. become.

[処理の流れの説明]
次に、図6〜9を参照して本実施形態における処理の流れについて説明する。
図6は、本実施形態におけるレンズフレアの描画に係る処理の流れについて説明するためのフローチャートである。ここで説明される処理は、処理部20でレンズフレア合成プログラム720を読み出して実行することによって実現されるものであり、ゲーム演算部22によって、3次元仮想空間に飛行機のオブジェクトや光源及び仮想カメラの位置が配置され、画像生成部24によって仮想カメラで撮影した3次元仮想空間の画像をカメラ座標系に投影変換しフレームバッファのRGBチャンネルに描画した後に実行されるものである。
[Description of process flow]
Next, the flow of processing in the present embodiment will be described with reference to FIGS.
FIG. 6 is a flowchart for explaining the flow of processing relating to the drawing of the lens flare in the present embodiment. The processing described here is realized by the processing unit 20 reading and executing the lens flare synthesis program 720, and the game calculation unit 22 causes an airplane object, a light source, and a virtual camera in a three-dimensional virtual space. The three-dimensional virtual space image captured by the virtual camera by the image generation unit 24 is projected and converted to the camera coordinate system and rendered on the RGB channel of the frame buffer.

先ず、レンズフレア合成部25は、特定光源L(本実施形態では、特定光源は太陽。)が、仮想カメラの視界範囲内に入るか否か、すなわちレンズフレアを表現する光源Lが画面に映るか否かを判定する(ステップS2)。具体的には、仮想カメラ設定情報729を参照して現在の仮想カメラの位置・姿勢・画角から視界範囲(撮影距離無限大)を求め、この視界範囲内に光源位置情報724で設定されている太陽の位置が含まれるか否か、すなわち特定光源Lについて撮影距離無限大でクリッピング処理をする。尚、当該ステップにおける判定の基準範囲を、視界範囲より大きめの範囲とすることによって、特定光源Lが画面中に映らなくとも強い入射光によってレンズフレアが映るようにすることもできる。   First, the lens flare composition unit 25 displays on the screen whether or not the specific light source L (in this embodiment, the specific light source is the sun) falls within the field of view of the virtual camera, that is, the light source L expressing the lens flare. It is determined whether or not (step S2). Specifically, with reference to the virtual camera setting information 729, a field of view range (shooting distance infinite) is obtained from the current position, posture, and angle of view of the virtual camera, and the light source position information 724 is set in this field of view. Whether or not the position of the sun is included, that is, the specific light source L is clipped at an infinite shooting distance. Note that, by setting the reference range for determination in this step to be a range larger than the visual field range, it is possible to cause the lens flare to be reflected by strong incident light even if the specific light source L does not appear in the screen.

特定光源Lが画面内に映ると判定された場合(ステップS2;YES)、画面内の特定光源Lの位置から画面中央位置(画面中心)までの距離を求め、この距離に応じて画面中心を挟んで反対方向にフィルタ画像P1の同心円の中心位置を決定し(ステップS4)、決定した中心位置に初期フィルタ画像728の同心円の中心を合わせるようにしてフレームバッファのアルファチャンネルに描画する(ステップS6)。
具体的には、例えば図7(a)に示すように、画面の対角距離Ldの1/2の値に対する、特定光源から画面中心までの距離Lgの割合に対して所定の係数Cを乗じて、画面中心からフィルタ画像P1の同心円の中心までの距離L0を算出する。したがって、同図(a)の場合には、同図(b)に示すように中心が画面中心よりやや左下方に移動したフィルタ画像P1がアルファチャンネルに描画される。
When it is determined that the specific light source L appears in the screen (step S2; YES), the distance from the position of the specific light source L in the screen to the screen center position (screen center) is obtained, and the screen center is determined according to this distance. The center position of the concentric circle of the filter image P1 is determined in the opposite direction across the sandwich (step S4), and drawing is performed on the alpha channel of the frame buffer so that the center of the concentric circle of the initial filter image 728 is aligned with the determined center position (step S6). ).
Specifically, for example, as shown in FIG. 7A, a predetermined coefficient C is multiplied to the ratio of the distance Lg from the specific light source to the center of the screen with respect to the half of the diagonal distance Ld of the screen. Thus, the distance L0 from the center of the screen to the center of the concentric circle of the filter image P1 is calculated. Therefore, in the case of FIG. 11A, the filter image P1 whose center is moved slightly to the lower left of the screen center is drawn on the alpha channel, as shown in FIG.

そして、レンズフレア合成部25は、特定光源Lの見かけ上の明るさに応じて、例えば、図8に示す関係のようにアルファチャンネルのアルファ値全体を変更する(ステップS8)。具体的には、晴天時の太陽の場合には、アルファ値は初期設定のままとし、曇中の太陽の場合には、雲に隔てられて暗くなった分だけアルファ値を初期値より小さく変更しレンズフレアがうっすらと表現されるようにする。そして、ある程度(図8の点Q)より特定光源Lが暗い場合には、光源が画面内に映る場合でもレンズフレアが生じるほど明るくないと判断して、アルファ値を全て「0」にしてレンズフレアが表現されないようにすると好ましい。   Then, the lens flare synthesis unit 25 changes the entire alpha value of the alpha channel according to the apparent brightness of the specific light source L, for example, as in the relationship shown in FIG. 8 (step S8). Specifically, in the case of the sun in fine weather, the alpha value is left at the default setting, and in the case of a cloudy sun, the alpha value is changed to be smaller than the initial value by the amount of darkness separated by the clouds. The lens flare should be expressed slightly. Then, when the specific light source L is darker than a certain level (point Q in FIG. 8), it is determined that the light source is not bright enough to cause lens flare even when the light source appears in the screen, and the alpha value is set to all “0”. It is preferable that flare is not expressed.

次に、レンズフレア合成部25は画面中の特定光源Lから画面中央までの距離に応じて、明斑Mの各配置位置を決定し(ステップS10)、決定した配置位置で、特定光源の位置から画面中央を結ぶ直線に沿って、黒地に明斑Mを加算合成して配列させた明斑画像P2を生成し(ステップS12)、生成した明斑画像P2をステップS8で変更したアルファ値でフィルタ画像P1とアルファ合成する(ステップS14)。
具体的には、図9に示すように、明斑初期設定情報726で設定されている各明斑の初期配置距離726cに対して画面の対角距離Ldの1/2の値に対する、特定光源Lから画面中心までの距離Lgの割合を乗じて、当該明斑の配置距離とする。例えば、画面の対角頂点位置に特定光源Lが映る場合には、初期配置距離726cの値のままで各明斑Mが配置される。特定光源Lが画面中央に近づくと、初期は位置距離726cより配置距離は小さくなるように配置され、各明斑M間の間隔は小さくなり、全体として画面中央に寄ることとなる。そして、特定光源Lが画面中央に映る場合には、全ての明斑Mが特定光源Lと同じく画面中央位置に配置される。そして、明斑画像P2をアルファチャンネルに格納されているアフファ値に基づいてアルファ合成し、合成結果をアルファチャンネルに格納する。尚、明斑画像P2をアルファチャンネル以外の記憶領域に別途格納する構成としても良いのは勿論である。
Next, the lens flare synthesis unit 25 determines each arrangement position of the bright spots M according to the distance from the specific light source L in the screen to the center of the screen (step S10), and the position of the specific light source at the determined arrangement position. A bright spot image P2 in which bright spots M are added and synthesized on a black background along the straight line connecting the center of the screen is generated (step S12), and the generated bright spot image P2 is the alpha value changed in step S8. Alpha synthesis is performed with the filter image P1 (step S14).
Specifically, as shown in FIG. 9, the specific light source for the half of the diagonal distance Ld of the screen with respect to the initial arrangement distance 726 c of each bright spot set in the bright spot initial setting information 726. The ratio of the distance Lg from L to the center of the screen is multiplied to obtain the arrangement distance of the bright spots. For example, when the specific light source L is reflected at the diagonal vertex position of the screen, each bright spot M is arranged with the value of the initial arrangement distance 726c. When the specific light source L approaches the center of the screen, the arrangement distance is initially set to be smaller than the position distance 726c, and the interval between the light spots M is reduced, so that the entire screen approaches the center of the screen. When the specific light source L is reflected in the center of the screen, all the bright spots M are arranged at the center position of the screen as with the specific light source L. Then, the bright spot image P2 is alpha-synthesized based on the affa value stored in the alpha channel, and the synthesis result is stored in the alpha channel. Of course, the bright spot image P2 may be separately stored in a storage area other than the alpha channel.

次に、レンズフレア合成部25は、明斑画像P2とフィルタ画像P1との合成結果(結果画像P3)をフレームバッファのRGBチャンネルに加算合成する(ステップS16)。
したがって、フライトシミュレーションゲームで、飛行機が旋回し太陽が視界に入るような状況では、明るい弧状がRGBチャンネルに描画され、ゲーム画面中にあたかもレンズ鏡胴内で反射して生じた明るい幻影が映っているように描画される。本発明は簡便な方法でレンズフレアの表現ができるので、フライトシミュレーションゲームのように仮想カメラの視線方向が比較的速く頻繁に変化する条件においてメリットがより発揮される。
Next, the lens flare synthesis unit 25 adds and synthesizes the synthesis result (result image P3) of the bright spot image P2 and the filter image P1 to the RGB channel of the frame buffer (step S16).
Therefore, in a flight simulation game, when the airplane turns and the sun enters the field of view, a bright arc shape is drawn on the RGB channel, and a bright illusion that is reflected in the lens barrel appears in the game screen. Drawn as if Since the present invention can express the lens flare by a simple method, the merit is more exhibited under the condition that the line-of-sight direction of the virtual camera changes relatively quickly and frequently like a flight simulation game.

[ハードウェアの構成]
次に、家庭用ゲーム装置1200を実現できるハードウェアの構成について説明する。図10は、本実施形態におけるハードウェア構成の一例を示す図である。家庭用ゲーム装置1200は、CPU1000と、ROM1002と、RAM1004と、情報記憶媒体1006と、音生成IC1008と、画像生成IC1010と、I/Oポート1012及び1014とを有し、システムバス1016により相互にデータの入出力が可能に接続されている。
[Hardware configuration]
Next, a hardware configuration capable of realizing the home game device 1200 will be described. FIG. 10 is a diagram illustrating an example of a hardware configuration according to the present embodiment. The home game apparatus 1200 includes a CPU 1000, a ROM 1002, a RAM 1004, an information storage medium 1006, a sound generation IC 1008, an image generation IC 1010, and I / O ports 1012 and 1014. Data input / output is connected.

CPU1000は、図3における処理部20に該当し、情報記憶媒体1006に格納されているプログラムやROM1002に格納されているシステムプログラム及びコントロール装置1022によって入力される操作入力信号等に従って、装置全体の制御や各種のデータ処理を行う。   The CPU 1000 corresponds to the processing unit 20 in FIG. 3, and controls the entire apparatus according to a program stored in the information storage medium 1006, a system program stored in the ROM 1002, an operation input signal input by the control device 1022, and the like. And various data processing.

ROM1002やRAM1004及び情報記憶媒体1006は、図3における記憶部70に該当する。ROM1002は図1の本体装置1210の制御ユニット1211に搭載されているICメモリに該当し、システムプログラム等の本体装置1210の制御にかかわるプログラムやデータを記憶する。   The ROM 1002, the RAM 1004, and the information storage medium 1006 correspond to the storage unit 70 in FIG. The ROM 1002 corresponds to an IC memory mounted on the control unit 1211 of the main unit 1210 shown in FIG. 1, and stores programs and data related to control of the main unit 1210 such as system programs.

RAM1004は、CPU1000の作業領域などとして用いられる記憶手段であり、情報記憶媒体1006やROM1002の所与の内容、或いはCPU1000の演算結果が格納される。   The RAM 1004 is a storage means used as a work area of the CPU 1000 and stores the given contents of the information storage medium 1006 and the ROM 1002 or the calculation result of the CPU 1000.

情報記憶媒体1006は、図1のCD−ROM1212、ICメモリ1214、メモリカード1216に該当し、図3のゲーム情報72を記憶する。情報記憶媒体1006は、ICメモリカードや着脱自在なハードディスクユニット、MO、DVD−ROMなどによって実現されROM1002に記憶される情報を記憶し、適宜読み出して利用する。   The information storage medium 1006 corresponds to the CD-ROM 1212, the IC memory 1214, and the memory card 1216 in FIG. 1, and stores the game information 72 in FIG. An information storage medium 1006 is realized by an IC memory card, a removable hard disk unit, an MO, a DVD-ROM, or the like, stores information stored in the ROM 1002, and appropriately reads and uses the information.

音生成IC1008は、ROM1002や情報記憶媒体1006に記憶されている情報に基づいて効果音やBGM等のゲーム音を生成する集積回路であり、生成された音はスピーカ1020によって出力される。なお、スピーカ1020は、図3における音出力部40、図1におけるスピーカ1222に該当する。   The sound generation IC 1008 is an integrated circuit that generates game sounds such as sound effects and BGM based on information stored in the ROM 1002 and the information storage medium 1006, and the generated sounds are output by the speaker 1020. The speaker 1020 corresponds to the sound output unit 40 in FIG. 3 and the speaker 1222 in FIG.

画像生成IC1010は、表示装置1018に画像を出力するための画素情報を生成する集積回路である。図3における画像生成部24がこれに該当する。表示装置1018は、図3の画像表示部30、図1におけるディスプレイ1220に該当する。   The image generation IC 1010 is an integrated circuit that generates pixel information for outputting an image to the display device 1018. The image generation unit 24 in FIG. 3 corresponds to this. The display device 1018 corresponds to the image display unit 30 in FIG. 3 and the display 1220 in FIG.

I/Oポート1012には、コントロール装置1022が接続され、I/Oポート1014には、通信装置1024が接続されている。コントロール装置1022は、図3の操作入力部10及び図1のゲームコントローラ1202に相当するものであり、プレーヤが種々のゲーム操作を入力するための装置である。   A control device 1022 is connected to the I / O port 1012, and a communication device 1024 is connected to the I / O port 1014. The control device 1022 corresponds to the operation input unit 10 in FIG. 3 and the game controller 1202 in FIG. 1, and is a device for the player to input various game operations.

通信装置1024は、ゲーム装置内部で利用される各種の情報を外部とやり取りするものであり、他のゲーム装置と接続されてゲームプログラムに応じた所与の情報を送受信し、通信回線を介してゲームプログラム等の情報を送受信することなどに利用される。図3の通信部50及び図1の通信装置1218に該当する。   The communication device 1024 exchanges various types of information used inside the game device with the outside. The communication device 1024 is connected to other game devices and transmits / receives given information according to the game program, via a communication line. Used to send and receive information such as game programs. This corresponds to the communication unit 50 in FIG. 3 and the communication device 1218 in FIG.

尚、画像生成IC1010、音生成IC1008等で行われる処理はCPU1000、或いは汎用のDSP等によってソフトウェア的に実行する構成としても良い。   Note that the processing performed by the image generation IC 1010, the sound generation IC 1008, and the like may be executed in software by the CPU 1000 or a general-purpose DSP.

また、本発明は、図1に示した家庭用ゲーム装置1200だけでなく、業務用ゲーム装置や携帯型ゲーム装置、パソコン等の汎用コンピュータ、多数のプレーヤが参加する大型アトラクション装置等の種々の装置にも同様に適用できる。   The present invention is not limited to the home game device 1200 shown in FIG. 1, but various devices such as a commercial game device, a portable game device, a general-purpose computer such as a personal computer, and a large attraction device in which a large number of players participate. The same applies to the above.

例えば図11は、本発明を業務用ゲーム装置1300に適用した場合の外観の一例を示す図である。同図に示すように、業務用ゲーム装置1300は、ゲーム画面を画像表示するディスプレイ1302と、ゲームの効果音やBGMを出力するスピーカ1304と、前後左右方向を入力するジョイスティック1306と、プッシュボタン1308と、演算処理によって業務用ゲーム装置1300を統合的に制御して所与のゲームを実行する制御ユニット1320とを備える。   For example, FIG. 11 is a diagram showing an example of an appearance when the present invention is applied to the arcade game apparatus 1300. As shown in the figure, the arcade game apparatus 1300 includes a display 1302 for displaying a game screen image, a speaker 1304 for outputting game sound effects and BGM, a joystick 1306 for inputting front and rear, left and right directions, and a push button 1308. And a control unit 1320 that controls the arcade game device 1300 in an integrated manner through arithmetic processing to execute a given game.

制御ユニット1320は、CPU1324等の演算処理装置と、業務用ゲーム装置1300の制御及びゲームの実行に必要なプログラムやデータが格納されたROM1322を搭載する。制御ユニット1320に搭載されるCPUは、ROM1322よりプログラムやデータを適宜読み出して演算処理することによって種々の処理を実行する。そして、プレーヤは、ディスプレイ1302に表示されたゲーム画面を見ながら、ジョイスティック1306とプッシュボタン1308からゲーム操作の入力をしてゲームを楽しむ。   The control unit 1320 includes an arithmetic processing unit such as a CPU 1324 and a ROM 1322 in which programs and data necessary for controlling the arcade game device 1300 and executing a game are stored. The CPU mounted on the control unit 1320 executes various processes by appropriately reading out programs and data from the ROM 1322 and performing arithmetic processing. Then, the player enjoys the game by inputting game operations from the joystick 1306 and the push button 1308 while viewing the game screen displayed on the display 1302.

また、本発明は、スタンドアローンの装置によって実行されるゲームに限らず、ネットワークゲームと呼ばれているゲームに適用しても構わない。ネットワークゲームを実現するシステム構成としては、例えば、(1)家庭に設置してあるパソコンや家庭用ゲームシステム等をゲーム端末とし、インターネット網や専用線網等の有線/無線の通信回線を通じてサーバと接続する構成、(2)サーバを用いることなく複数のゲーム端末同士が通信回線で接続される構成、(3)複数のゲーム端末同士が通信回線で接続されるが、その内の一台がサーバ機能を有する構成、(4)複数のゲーム端末が物理的に結合し、全体として一台のシステム(例えば業務用のゲームシステム)となっている構成などがある。   The present invention is not limited to a game executed by a stand-alone device, and may be applied to a game called a network game. As a system configuration for realizing a network game, for example, (1) a personal computer or a home game system installed in a home is used as a game terminal, and a server and a wired / wireless communication line such as an Internet network or a private line network are connected. Configuration to connect, (2) Configuration in which multiple game terminals are connected via a communication line without using a server, (3) Multiple game terminals are connected via a communication line, one of which is a server There are a configuration having a function, and (4) a configuration in which a plurality of game terminals are physically coupled to form a single system (for example, a business game system) as a whole.

[変形例の説明]
以上、本発明を適用した実施形態について説明したが、本発明の適用がこれらに限定されるものではなく、発明の趣旨を逸脱せず同様の作用・効果を得られる限りにおいて、適宜構成要素の追加・省略・変更等を行っても構わない。
[Description of modification]
As described above, the embodiments to which the present invention is applied have been described. However, the application of the present invention is not limited to these embodiments, and as long as the same actions and effects can be obtained without departing from the spirit of the invention, the components are appropriately selected. Additions, omissions, and changes may be made.

例えば、本実施形態ではフィルタ画像P1を生成する際、予め記憶されている初期フィルタ画像728をアルファチャンネルに描画する構成としているが、例えば、画面中の光源位置から画面中央位置までの距離が短いほど、各リングの半径が小さくなるように、初期フィルタ画像728を縮小処理してからアルファチャンネルに描画する構成としても良い。或いは、反対に光源位置が画面中心から離れるほどリング間の間隙が広がるように初期フィルタ画像728を拡大してから処理に供するとしても良い。この場合、特定光源の位置によって弧状のレンズフレアの描画位置が変化するように表現できる。   For example, in the present embodiment, when the filter image P1 is generated, the initial filter image 728 stored in advance is drawn on the alpha channel. For example, the distance from the light source position in the screen to the screen center position is short. The initial filter image 728 may be reduced and then drawn on the alpha channel so that the radius of each ring becomes smaller. Alternatively, on the contrary, the initial filter image 728 may be enlarged so that the gap between the rings widens as the light source position moves away from the center of the screen, and then subjected to processing. In this case, it can be expressed that the drawing position of the arc-shaped lens flare changes depending on the position of the specific light source.

或いは、レンズフレア合成部25が、ステップS4〜S6において初期フィルタ画像728を参照せずに、各リングを直接フレームバッファのアルファチャンネルに描画する構成としても良い。
例えば、画面内の特定光源Lから画面中心までの距離Lgに応じて、外側のリングほど中心位置をずらすようにして描画する。この場合も、特定光源の位置によってレンズフレアの弧の描画位置が変化するように表現できる。尚、中心位置をずらす方向は、光源位置に近づく方向と離れる方向何れでもかまわないが、リングによって移動方向が異ならないようにすると好ましい。
Alternatively, the lens flare synthesis unit 25 may directly draw each ring on the alpha channel of the frame buffer without referring to the initial filter image 728 in steps S4 to S6.
For example, the drawing is performed by shifting the center position of the outer ring according to the distance Lg from the specific light source L to the center of the screen. Also in this case, it can be expressed that the drawing position of the arc of the lens flare changes depending on the position of the specific light source. The direction in which the center position is shifted may be either the direction approaching the light source position or the direction away from the light source position, but it is preferable that the moving direction does not differ depending on the ring.

また、本実施形態では、フライトシミュレーションゲームに置ける太陽を特定光源として設定したがこれに限るものではない。例えば、レースゲームやアクションゲーム、RPGゲームなどにおいて、灯台やサーチライトの光、車やオートバイ等のヘッドライト、レーザ照準器から発せられるレーザ光、宝石や鏡の反射光などにも同様に適用することができる。具体的には、例えばヘッドライトのように光源が移動する場合には、ゲーム演算部22で光源の位置と投光方向とを求め、ステップS2において光源からの投光が画面内に入射するか否かを判定し、入射する場合においてフィルタ画像P1の生成からなる一連の処理(ステップS4〜S16)を実行するものとする。   In the present embodiment, the sun that can be placed in the flight simulation game is set as the specific light source, but the present invention is not limited to this. For example, in race games, action games, RPG games, etc., the same applies to light from lighthouses and searchlights, headlights from cars and motorcycles, laser light emitted from laser sights, reflected light from gems and mirrors, etc. be able to. Specifically, for example, when the light source moves like a headlight, the game calculation unit 22 obtains the position of the light source and the light projecting direction, and whether the light projecting from the light source is incident on the screen in step S2. It is determined whether or not, and a series of processes (steps S4 to S16) including generation of the filter image P1 is executed when the light is incident.

本発明を適用した家庭用ゲーム装置の構成の一例を示す図。The figure which shows an example of a structure of the home game device to which this invention is applied. レンズフレア表現の原理を説明するための概念図。The conceptual diagram for demonstrating the principle of lens flare expression. 本発明を適用した家庭用ゲーム装置の機能構成の一例を示す機能ブロック図。The functional block diagram which shows an example of a function structure of the home game device to which this invention is applied. 明斑初期設定情報のデータ構成の一例を示す図。The figure which shows an example of the data structure of bright spot initial setting information. 初期フィルタ画像の一例を示す図。The figure which shows an example of an initial stage filter image. レンズフレアの描画に係る処理の流れについて説明するためのフローチャート。The flowchart for demonstrating the flow of the process concerning drawing of a lens flare. フィルタ画像の中心位置の算出方法を説明するための概念図。The conceptual diagram for demonstrating the calculation method of the center position of a filter image. 光源の明るさに基づくアルファ値の変更率の一例を示す図。The figure which shows an example of the change rate of the alpha value based on the brightness of a light source. 明斑の配置位置の算出方法を説明するための概念図。The conceptual diagram for demonstrating the calculation method of the arrangement position of a bright spot. 本発明を適用した家庭用ゲーム装置を実現するためのハードウェア構成の一例を示す図。The figure which shows an example of the hardware constitutions for implement | achieving the consumer game device to which this invention is applied. 本発明を業務用ゲーム装置に適用した場合の外観の一例を示す図。The figure which shows an example of the external appearance at the time of applying this invention to a business use game device.

符号の説明Explanation of symbols

20 処理部
22 ゲーム演算部
24 画像生成部
25 レンズフレア合成部
70 記憶部
72 ゲーム情報
720 レンズフレア合成プログラム
722 ゲームステージ情報
724 光源位置情報
725 光源テクスチャ
726 明斑初期設定情報
726b 明斑パターン
726c 初期配置距離
728 初期フィルタ画像
1200 家庭用ゲーム装置
1202 ゲームコントローラ
1210 本体装置
1211 制御ユニット
L 光源(特定光源)
M 明斑
P1 フィルタ画像
P2 明斑画像
P3 結果画像
DESCRIPTION OF SYMBOLS 20 Processing part 22 Game calculating part 24 Image generation part 25 Lens flare synthetic | combination part 70 Memory | storage part 72 Game information 720 Lens flare synthetic | combination program 722 Game stage information 724 Light source position information 725 Light source texture 726 Light spot initial setting information
726b Light spot pattern
726c Initial arrangement distance 728 Initial filter image 1200 Home-use game apparatus 1202 Game controller 1210 Main body apparatus 1211 Control unit L Light source (specific light source)
M Light spot P1 Filter image P2 Light spot image P3 Result image

Claims (8)

コンピュータに、3次元仮想空間をカメラ座標系に投影変換処理することで仮想カメラが撮影する前記3次元仮想空間の画像を生成させるためのプログラムであって、
前記3次元仮想空間に光源を設定する光源設定手段、
前記カメラ座標系上の前記光源の位置に基づいて明斑の画像群を配置して明斑画像を生成する明斑画像生成手段、
多角形体又は環状体が複数同心状に描かれたフィルタ画像で前記明斑画像生成手段により生成された明斑画像をフィルタ処理することで、フィルタ画像に描かれた形体の輪郭に沿った方向に前記明斑画像の色情報を表出させるフィルタ手段、
前記フィルタ手段により色情報が表出された明斑画像を前記3次元仮想空間の画像と合成する合成手段、
として前記コンピュータを機能させ、前記合成手段の合成により前記仮想カメラのレンズフレアを表現した画像を生成することを特徴とするプログラム。
A program for causing a computer to generate an image of the three-dimensional virtual space captured by a virtual camera by projecting and transforming the three-dimensional virtual space into a camera coordinate system,
Light source setting means for setting a light source in the three-dimensional virtual space;
Bright spot image generating means for generating a bright spot image by arranging a group of bright spots based on the position of the light source on the camera coordinate system;
By filtering the bright spot image generated by the bright spot image generating means with a filter image in which a plurality of polygonal bodies or annular bodies are drawn concentrically, in the direction along the contour of the shape drawn in the filter image Filter means for displaying color information of the bright spot image ;
Synthesis means for synthesizing a bright spot image in which color information is expressed by the filter means with an image of the three-dimensional virtual space;
A program that causes the computer to function and generates an image expressing lens flare of the virtual camera by combining the combining means.
コンピュータに、3次元仮想空間をカメラ座標系に投影変換処理することで仮想カメラが撮影する前記3次元仮想空間の画像を生成させるためのプログラムであって、  A program for causing a computer to generate an image of the three-dimensional virtual space captured by a virtual camera by projecting and transforming the three-dimensional virtual space into a camera coordinate system,
前記3次元仮想空間に光源を設定する光源設定手段、  Light source setting means for setting a light source in the three-dimensional virtual space;
前記カメラ座標系上の前記光源の位置に基づいて明斑の画像群を配置して明斑画像を生成する明斑画像生成手段、  Bright spot image generating means for generating a bright spot image by arranging a group of bright spots based on the position of the light source on the camera coordinate system;
大きさの異なる複数の多角形体又は環状体を、小さい順に中心位置をずらすようにして描いたフィルタ画像で前記明斑画像生成手段により生成された明斑画像をフィルタ処理することで、フィルタ画像に描かれた形体の輪郭に沿った方向に前記明斑画像の色情報を表出させるフィルタ手段、  By filtering the bright spot image generated by the bright spot image generating means with a filter image drawn by shifting the center position in ascending order of a plurality of polygonal bodies or annular bodies having different sizes, the filtered image Filter means for expressing color information of the bright spot image in a direction along the contour of the drawn feature;
前記フィルタ手段により色情報が表出された明斑画像を前記3次元仮想空間の画像と合成する合成手段、  Synthesis means for synthesizing a bright spot image in which color information is expressed by the filter means with an image of the three-dimensional virtual space;
として前記コンピュータを機能させ、前記合成手段の合成により前記仮想カメラのレンズフレアを表現した画像を生成することを特徴とするプログラム。  A program that causes the computer to function and generates an image expressing lens flare of the virtual camera by combining the combining means.
前記明斑画像生成手段が、前記カメラ座標系上の前記光源の位置と前記仮想カメラの視界中央位置とを結ぶ直線に沿って明斑の画像群を配置し、且つ当該カメラ座標系上の当該光源の位置と当該視界中央位置との距離に応じて配置間隔を変更して明斑画像を生成するように前記コンピュータを機能させるための請求項1又は2に記載のプログラム。 The bright spot image generating means arranges a bright spot image group along a straight line connecting the position of the light source on the camera coordinate system and the visual field center position of the virtual camera, and The program according to claim 1 or 2 for causing the computer to function so as to generate a bright spot image by changing an arrangement interval in accordance with a distance between a light source position and a visual field center position. 前記フィルタ手段が、前記カメラ座標系上の前記光源の位置に応じて前記同心の位置を変化させて前記フィルタ処理を行うように前記コンピュータを機能させるための請求項1〜3の何れか一項に記載のプログラム。 It said filter means is any one of claims 1 to 3 for operating the computer to perform the filtering process by changing the position of the concentric in accordance with the position of the light source on the camera coordinate system The program described in. 前記フィルタ手段が、前記光源の明るさに応じてアルファ値を変更して前記明斑画像をアルファ合成することで前記フィルタ処理を行うように前記コンピュータを機能させるための請求項1〜4の何れか一項に記載のプログラム。 5. The method according to claim 1 , wherein the filter means causes the computer to perform the filtering process by changing the alpha value according to the brightness of the light source and synthesizing the bright spot image with alpha. A program according to any one of the above. 請求項1〜5の何れか一項に記載のプログラムを記憶したコンピュータ読み取り可能な情報記憶媒体。   The computer-readable information storage medium which memorize | stored the program as described in any one of Claims 1-5. 3次元仮想空間をカメラ座標系に投影変換処理することで仮想カメラが撮影する前記3次元仮想空間の画像を生成して所与のゲームを実行するためのゲーム装置であって、
前記3次元仮想空間に光源を設定する光源設定手段と、
前記カメラ座標系上の前記光源の位置に基づいて明斑の画像群を配置して明斑画像を生成する明斑画像生成手段と、
多角形体又は環状体が複数同心状に描かれたフィルタ画像で前記明斑画像生成手段により生成された明斑画像をフィルタ処理することで、フィルタ画像に描かれた形体の輪郭に沿った方向に前記明斑画像の色情報を表出させるフィルタ手段と、
前記フィルタ手段により色情報が表出された明斑画像を前記3次元仮想空間の画像と合成する合成手段と、
を備え、前記合成手段の合成により前記仮想カメラのレンズフレアを表現した画像を生成することを特徴とするゲーム装置。
A game device for performing a given game by generating an image of the three-dimensional virtual space captured by a virtual camera by projecting and transforming the three-dimensional virtual space into a camera coordinate system,
Light source setting means for setting a light source in the three-dimensional virtual space;
A bright spot image generating means for generating a bright spot image by arranging a group of bright spots based on the position of the light source on the camera coordinate system;
By filtering the bright spot image generated by the bright spot image generating means with a filter image in which a plurality of polygonal bodies or annular bodies are drawn concentrically, in the direction along the contour of the shape drawn in the filter image Filter means for expressing color information of the bright spot image ;
Synthesis means for synthesizing a bright spot image in which color information is expressed by the filter means with an image of the three-dimensional virtual space;
And a game apparatus that generates an image expressing lens flare of the virtual camera by the synthesis of the synthesis means.
3次元仮想空間をカメラ座標系に投影変換処理することで仮想カメラが撮影する前記3次元仮想空間の画像を生成して所与のゲームを実行するためのゲーム装置であって、  A game device for performing a given game by generating an image of the three-dimensional virtual space captured by a virtual camera by projecting and transforming the three-dimensional virtual space into a camera coordinate system,
前記3次元仮想空間に光源を設定する光源設定手段と、  Light source setting means for setting a light source in the three-dimensional virtual space;
前記カメラ座標系上の前記光源の位置に基づいて明斑の画像群を配置して明斑画像を生成する明斑画像生成手段と、  A bright spot image generating means for generating a bright spot image by arranging a group of bright spots based on the position of the light source on the camera coordinate system;
大きさの異なる複数の多角形体又は環状体を、小さい順に中心位置をずらすようにして描いたフィルタ画像で前記明斑画像生成手段により生成された明斑画像をフィルタ処理することで、フィルタ画像に描かれた形体の輪郭に沿った方向に前記明斑画像の色情報を表出させるフィルタ手段と、  By filtering the bright spot image generated by the bright spot image generating means with a filter image drawn by shifting the center position in ascending order of a plurality of polygonal bodies or annular bodies having different sizes, the filtered image Filter means for expressing color information of the bright spot image in a direction along the contour of the drawn feature;
前記フィルタ手段により色情報が表出された明斑画像を前記3次元仮想空間の画像と合成する合成手段と、  Synthesis means for synthesizing a bright spot image in which color information is expressed by the filter means with an image of the three-dimensional virtual space;
を備え、前記合成手段の合成により前記仮想カメラのレンズフレアを表現した画像を生成することを特徴とするゲーム装置。  And a game apparatus that generates an image expressing lens flare of the virtual camera by the synthesis of the synthesis means.
JP2004021533A 2004-01-29 2004-01-29 PROGRAM, INFORMATION STORAGE MEDIUM, AND GAME DEVICE Expired - Fee Related JP4413634B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004021533A JP4413634B2 (en) 2004-01-29 2004-01-29 PROGRAM, INFORMATION STORAGE MEDIUM, AND GAME DEVICE

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004021533A JP4413634B2 (en) 2004-01-29 2004-01-29 PROGRAM, INFORMATION STORAGE MEDIUM, AND GAME DEVICE

Publications (2)

Publication Number Publication Date
JP2005215974A JP2005215974A (en) 2005-08-11
JP4413634B2 true JP4413634B2 (en) 2010-02-10

Family

ID=34905146

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004021533A Expired - Fee Related JP4413634B2 (en) 2004-01-29 2004-01-29 PROGRAM, INFORMATION STORAGE MEDIUM, AND GAME DEVICE

Country Status (1)

Country Link
JP (1) JP4413634B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4845195B2 (en) * 2006-08-14 2011-12-28 サミー株式会社 Image generating apparatus, game machine, and program
JP4572245B2 (en) * 2008-04-30 2010-11-04 株式会社コナミデジタルエンタテインメント Image processing program, image processing apparatus, and image processing control method
WO2011111095A1 (en) * 2010-03-09 2011-09-15 富士通株式会社 Halation simulation method, device, and program
CN108038896B (en) * 2017-12-06 2021-06-11 北京像素软件科技股份有限公司 Halo gradual change realization method and device
CN113570578B (en) * 2021-07-29 2024-05-17 歌尔光学科技有限公司 A method and device for detecting ghost image of lens

Also Published As

Publication number Publication date
JP2005215974A (en) 2005-08-11

Similar Documents

Publication Publication Date Title
CN100536970C (en) Game image display control program, game device, and recording medium
US5947823A (en) Three-dimensional game apparatus and image synthesizing method
JP2010033296A (en) Program, information storage medium, and image generation system
EP1977801B1 (en) Game machine, game machine control method, and information storage medium
EP1795245B1 (en) Storage medium having game program stored therein and game apparatus
JP4413634B2 (en) PROGRAM, INFORMATION STORAGE MEDIUM, AND GAME DEVICE
JP4895738B2 (en) 3D image display device and program for realizing the display device
JP2011053737A (en) Program, information storage medium and image generation device
JP2009129167A (en) Program, information storage medium, and image generation system
JP2008071260A5 (en)
US7479961B2 (en) Program, information storage medium, and image generation system
JP3586460B2 (en) 3D game device and image composition method
JP5146054B2 (en) Generation control program of sound generated from sound source in virtual space
JP2010033297A (en) Program, information storage medium, and image generation system
JP4749198B2 (en) Program, information storage medium, and image generation system
JP4868586B2 (en) Image generation system, program, and information storage medium
JP2006061717A (en) GAME IMAGE DISPLAY CONTROL PROGRAM, GAME DEVICE, AND STORAGE MEDIUM
JP4488346B2 (en) Program, information storage medium, and image generation system
JP4028113B2 (en) GAME DEVICE AND INFORMATION STORAGE MEDIUM
JP4749064B2 (en) Program, information storage medium, and image generation system
JP2006252426A (en) Program, information storage medium, and image generation system
JP2008027064A (en) Program, information recording medium, and image generation system
JP4632855B2 (en) Program, information storage medium, and image generation system
JP2008310377A (en) Image generation system, program, and information storage medium
JP4688648B2 (en) Program, information storage medium, and image generation system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20061201

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20061201

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20061212

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20061212

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090818

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091013

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: 20091117

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: 20091118

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

Free format text: PAYMENT UNTIL: 20121127

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4413634

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20121127

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20121127

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20131127

Year of fee payment: 4

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

LAPS Cancellation because of no payment of annual fees