JP4756064B2 - Image generating apparatus, image generating method, and program - Google Patents

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

Info

Publication number
JP4756064B2
JP4756064B2 JP2008240884A JP2008240884A JP4756064B2 JP 4756064 B2 JP4756064 B2 JP 4756064B2 JP 2008240884 A JP2008240884 A JP 2008240884A JP 2008240884 A JP2008240884 A JP 2008240884A JP 4756064 B2 JP4756064 B2 JP 4756064B2
Authority
JP
Japan
Prior art keywords
image
light source
view
field
source object
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
JP2008240884A
Other languages
Japanese (ja)
Other versions
JP2010073005A (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 JP2008240884A priority Critical patent/JP4756064B2/en
Publication of JP2010073005A publication Critical patent/JP2010073005A/en
Application granted granted Critical
Publication of JP4756064B2 publication Critical patent/JP4756064B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、光源の眩しさを適切に表現することのできる画像生成装置、画像生成方法、および、プログラムに関する。   The present invention relates to an image generation device, an image generation method, and a program that can appropriately express the glare of a light source.

従来より、種々のゲーム装置(ビデオゲーム装置等)が、家庭用や業務用として開発されてきている。このようなゲーム装置は、一般に、仮想空間内にキャラクタ等のオブジェクトを配置し、所定の視点から眺めたゲーム画像を表示している。   Conventionally, various game devices (video game devices and the like) have been developed for home use and business use. Such a game device generally arranges an object such as a character in a virtual space and displays a game image viewed from a predetermined viewpoint.

近年では、ハードウェア性能の向上や画像処理技術の発達等によって、高精度なゲーム画像が高速に生成可能となり、プレイヤがあたかも仮想空間内にいるかのように、ゲームを楽しむことができる。   In recent years, improvement in hardware performance, development of image processing technology, and the like have made it possible to generate high-precision game images at high speed, and the player can enjoy the game as if it were in a virtual space.

一例として、仮想空間における光源(光源オブジェクト)を表示する際にもリアリティを高めた画像を生成している。具体的には、夜間に街路灯が灯っている場面において、その街路灯の周りに、グローやハロー等により光が広がる様子を表現し、その光源の現実感を高めている。   As an example, an image with improved reality is generated when a light source (light source object) in a virtual space is displayed. Specifically, in a scene where a street lamp is lit at night, a scene in which light spreads around the street lamp due to glow, halo, or the like is expressed, and the reality of the light source is enhanced.

最近では、このような光源の表現を行う際に、処理負荷を低減しつつ、光軸等を考慮して描画し、その光源のリアリティをより高めることのできる技術も開示されている(例えば、特許文献1参照)。   Recently, when expressing such a light source, a technique that reduces the processing load and draws in consideration of the optical axis or the like and can increase the reality of the light source has been disclosed (for example, Patent Document 1).

特開2002−251629号公報 (第5−7頁、第1図)JP 2002-251629 (page 5-7, FIG. 1)

上述したグロー等を用いる光源の表現手法は、一般的に、夜間や暗がりの場面にて用いられた際に、光源のリアリティを高めることが可能となる。なお、昼間の屋外等の場面でもこのような表現手法が用いられているが、周りが明るいため、あまり効果的でないことが多かった。
例えば、屋外の場面で、昼間の太陽をグロー等を用いて表現しても、空等が明るいためその太陽はほとんど強調されない。つまり、視界内に太陽が含まれる画像を従来の表現手法にて生成しても、プレイヤにはその太陽が眩しく感じられず、リアリティを高めることが不十分であった。
The above-described light source expression method using glow or the like can generally increase the reality of the light source when used in a nighttime or dark scene. This kind of expression is also used in daytime outdoor scenes, but it is often not very effective due to the bright surroundings.
For example, even if the sun during the daytime is expressed using glow or the like in an outdoor scene, the sun is hardly emphasized because the sky is bright. That is, even if an image including the sun in the field of view is generated by the conventional expression method, the sun is not felt dazzling by the player, and the reality is insufficient.

そのため、このような昼間の太陽のような光源についても、その光源の眩しさをより適切に表現できる新たな表現手法が求められていた。   Therefore, there has been a demand for a new expression technique that can more appropriately express the glare of such a light source such as the daytime sun.

本発明は、上記実状に鑑みてなされたもので、光源の眩しさを適切に表現することのできる画像生成装置、画像生成方法、および、プログラムを提供することを目的とする。   The present invention has been made in view of the above circumstances, and an object thereof is to provide an image generation device, an image generation method, and a program capable of appropriately expressing the glare of a light source.

本発明の第1の観点に係る画像生成装置は、調整画像生成部、算定部、及び、画像描画部を備え、光源オブジェクト(例えば、太陽オブジェクト等)を含む複数のオブジェクトが配置された仮想空間を、所定の視点から眺めた視界画像を生成する画像生成装置であって以下のように構成する。   An image generation apparatus according to a first aspect of the present invention includes an adjustment image generation unit, a calculation unit, and an image drawing unit, and a virtual space in which a plurality of objects including a light source object (for example, a sun object) are arranged. Is an image generation device that generates a view field image viewed from a predetermined viewpoint, and is configured as follows.

まず、調整画像生成部は、光源オブジェクトを除いた(光源オブジェクトを含めない)視界画像の明度を調整するための所定形状の調整画像を生成する。一例として、視界全面から光源オブジェクトを切り抜いた形状であり、光源オブジェクト以外の視界画像の明度を低下させるための調整画像を生成する。また、算定部は、調整画像により調整させる明度を、視界内における光源オブジェクトの配置状況(例えば、視点から光源オブジェクトへの方向と視線方向とのなす角度)に基づいて算定する。そして、画像描画部は、視界内に配置されている各オブジェクトの投影画像を生成し、この投影画像に調整画像を合成した視界画像を描画する。   First, the adjustment image generation unit generates an adjustment image having a predetermined shape for adjusting the brightness of the view field image excluding the light source object (not including the light source object). As an example, a light source object is cut out from the entire field of view, and an adjustment image for reducing the brightness of a field image other than the light source object is generated. In addition, the calculation unit calculates the brightness to be adjusted by the adjustment image based on the arrangement state of the light source object in the field of view (for example, an angle formed by the direction from the viewpoint to the light source object and the line-of-sight direction). Then, the image drawing unit generates a projection image of each object arranged in the field of view, and draws a field image obtained by synthesizing the adjustment image with the projection image.

このように、投影画像に調整画像を合成することにより、光源オブジェクトはそのままに、それ以外の明度を低下させた視界画像が生成される。なお、低下させる明度は、視界内の光源オブジェクトの配置位置等に応じて異なっている。例えば、光源オブジェクトの位置が視線方向(視界画像の中心)から離れていると、少しだけ明度を低下させた視界画像を描画し、逆に、光源オブジェクトの位置が視線方向に近いと、かなり明度を低下させた視界画像を描画する。
すなわち、光源オブジェクトはそのままに、それ以外の明度が落とされているため、光源オブジェクトの明るさが相対的に強調され、プレイヤにとって光源オブジェクトがより眩しく感じることになる。
この結果、光源の眩しさを適切に表現することができる。
In this way, by synthesizing the adjustment image with the projection image, a field-of-view image with reduced lightness is generated without changing the light source object. Note that the brightness to be reduced varies depending on the arrangement position of the light source object in the field of view. For example, if the position of the light source object is far from the line-of-sight direction (the center of the field-of-view image), a view image with a slight decrease in brightness is drawn. Conversely, if the position of the light source object is close to the line-of-sight direction, Draw a field-of-view image with reduced image quality.
That is, since the brightness of the light source object is left as it is, the brightness of the light source object is lowered, so that the brightness of the light source object is relatively emphasized and the light source object feels more dazzling for the player.
As a result, the glare of the light source can be appropriately expressed.

本発明の第2の観点に係る画像生成装置は、マスク画像生成部、算定部、及び、画像描画部を備え、光源オブジェクト(例えば、太陽オブジェクト等)を含む複数のオブジェクトが配置された仮想空間を、所定の視点から眺めた視界画像を生成する画像生成装置であって以下のように構成する。   An image generation apparatus according to a second aspect of the present invention includes a mask image generation unit, a calculation unit, and an image drawing unit, and a virtual space in which a plurality of objects including a light source object (for example, a sun object) are arranged. Is an image generation device that generates a view field image viewed from a predetermined viewpoint, and is configured as follows.

まず、マスク画像生成部は、視点を基準とした視界全面から光源オブジェクトを除いたマスク画像を生成する。つまり、光源オブジェクトは覆わずにそれ以外を覆うマスク画像を生成する。また、算定部は、マスク画像に設定するための透明度(一例として、アルファ値)を、視界内における光源オブジェクトの配置状況(例えば、視点から光源オブジェクトへの方向と視線方向とのなす角度)に基づいて算定する。そして、画像描画部は、視界内に配置されている各オブジェクトを投影変換した投影画像を生成し、この投影画像に透明度が設定されたマスク画像を合成した視界画像を描画する。   First, the mask image generation unit generates a mask image in which the light source object is removed from the entire field of view based on the viewpoint. That is, a mask image that covers the light source object without covering it is generated. Further, the calculation unit sets the transparency (for example, alpha value) to be set in the mask image to the arrangement state of the light source object in the field of view (for example, the angle formed between the direction from the viewpoint to the light source object and the line of sight). Calculate based on Then, the image drawing unit generates a projection image obtained by projecting and transforming each object arranged in the field of view, and draws a field of view image obtained by synthesizing the projection image with a mask image set with transparency.

このように、投影画像に透明度が設定されたマスク画像を合成することにより、光源オブジェクトはそのままに、それ以外をマスク画像の透明度に応じて明度の調整された視界画像が生成される。一例として、マスク画像が黒色であれば、マスク画像の透明度が低いほど(不透明であるほど)、マスク画像に覆われた視界画像の明度が低下することになる。つまり、低下させる明度は、マスク画像の透明度に応じて定まるものであり、マスク画像の透明度は、視界内の光源オブジェクトの配置位置等に応じて異なっている。例えば、光源オブジェクトの位置が視線方向(視界画像の中心)から離れていると、マスク画像の透明度が高く設定され、覆われた視界画像の明度を少しだけ低下させる。逆に、光源オブジェクトの位置が視線方向に近いと、マスク画像の透明度が低く設定され、覆われた視界画像の明度をかなり低下させる。
すなわち、光源オブジェクトはそのままに、それ以外の明度が落とされているため、光源オブジェクトの明るさが相対的に強調され、プレイヤにとって光源オブジェクトがより眩しく感じることになる。
この結果、光源の眩しさを適切に表現することができる。
In this way, by synthesizing the mask image in which the transparency is set to the projection image, a field-of-view image in which the brightness is adjusted according to the transparency of the mask image is generated without changing the light source object. As an example, if the mask image is black, the lower the transparency of the mask image (the more opaque it is), the lower the brightness of the field-of-view image covered with the mask image. That is, the lightness to be reduced is determined according to the transparency of the mask image, and the transparency of the mask image varies depending on the arrangement position of the light source object in the field of view. For example, when the position of the light source object is away from the line-of-sight direction (the center of the view image), the transparency of the mask image is set high, and the brightness of the covered view image is slightly reduced. Conversely, when the position of the light source object is close to the line-of-sight direction, the transparency of the mask image is set low, and the brightness of the covered field-of-view image is considerably reduced.
That is, since the brightness of the light source object is left as it is, the brightness of the light source object is lowered, so that the brightness of the light source object is relatively emphasized and the light source object feels more dazzling for the player.
As a result, the glare of the light source can be appropriately expressed.

上記のマスク画像生成部は、視界全面を覆う黒色の矩形画像から、視界内における光源オブジェクトの形状を切り抜くことにより、この光源オブジェクトを除いたマスク画像を生成してもよい。
この場合、黒色のマスク画像は、透明度が大きいと(それほど不透明でないと)、薄い灰色になり、覆われた視界画像の明度を小さく低下させる。逆に、透明度が小さいと(かなり不透明になると)、濃い灰色になり、覆われた視界画像の明度を大きく低下させる。
The mask image generation unit may generate a mask image excluding the light source object by cutting out the shape of the light source object in the view from a black rectangular image covering the entire view.
In this case, when the transparency of the black mask image is large (not so opaque), it becomes light gray, and the brightness of the covered view field image is reduced. Conversely, when the transparency is small (when it becomes quite opaque), the color becomes dark gray and the brightness of the covered field-of-view image is greatly reduced.

上記の算定部は、視点から光源オブジェクトへの方向と視線方向とのなす角に基づいて透明度を算定してもよい。
例えば、視点から光源オブジェクトへの方向と視線方向とのなす角が大きいほど、大きな透明度(例えば、小さなアルファ値)を算定し、逆に、なす角が小さいほど、小さな透明度(例えば、大きなアルファ値)を算定する。一例として、黒色のマスク画像の透明度が高く算定されると(それほど不透明でないと)、覆われた視界画像の明度を少しだけ低下させる。逆に、透明度が低く算定されると(かなり不透明になると)、覆われた視界画像の明度を大きく低下させる。
これにより、光源オブジェクトが視界画像の中心から離れていると、少しだけ薄暗い視界画像が描画され、逆に、光源オブジェクトが視界画像の中心に近いと、かなり暗い視界画像が描画される。
The calculation unit may calculate the transparency based on an angle formed by the direction from the viewpoint to the light source object and the line-of-sight direction.
For example, the greater the angle formed between the direction from the viewpoint to the light source object and the line-of-sight direction, the greater the transparency (for example, the smaller alpha value), and the smaller the angle formed, the smaller the transparency (for example, the greater the alpha value). ) Is calculated. As an example, if the transparency of the black mask image is calculated high (not so opaque), the brightness of the covered view image is slightly reduced. On the other hand, if the transparency is calculated to be low (becomes quite opaque), the brightness of the covered view image is greatly reduced.
Thereby, if the light source object is away from the center of the view image, a slightly dark view image is drawn. Conversely, if the light source object is close to the center of the view image, a considerably dark view image is drawn.

上記の算定部は、光源オブジェクトが他のオブジェクトにより遮蔽されている場合に、遮蔽された割合を示す遮蔽割合に基づいて、算定した透明度を補正してもよい。
具体的に、光源オブジェクトが視線方向(視界画像の中心)にあり、黒色のマスク画像の透明度が低く(かなり不透明に)算定されている場合を一例として説明する。この場合、光源オブジェクトの遮蔽割合が大きいと、算定された値よりも透明度がかなり高くなるように補正する。逆に、遮蔽割合が小さいと、算定された値よりも透明度が少しだけ高くなるように補正する。つまり、同じ位置に光源オブジェクトが配置されていても、遮蔽割合に基づいて透明度が補正され、覆われた視界画像の明度も調整される。
これにより、光源オブジェクトの配置位置だけでなく、遮蔽割合に従って調整された視界画像が描画される。
The calculation unit may correct the calculated transparency based on a shielding ratio indicating a shielded ratio when the light source object is shielded by another object.
Specifically, a case where the light source object is in the line-of-sight direction (the center of the field-of-view image) and the transparency of the black mask image is calculated to be low (substantially opaque) will be described as an example. In this case, when the shielding ratio of the light source object is large, the transparency is corrected to be considerably higher than the calculated value. Conversely, when the shielding ratio is small, the transparency is corrected so as to be slightly higher than the calculated value. That is, even when the light source object is arranged at the same position, the transparency is corrected based on the shielding ratio, and the brightness of the covered view image is also adjusted.
Thereby, not only the arrangement position of the light source object but also the view field image adjusted according to the shielding ratio is drawn.

上記画像生成装置は、視界内に光源オブジェクトが配置されている状態の経過時間を計時する計時部を更に備え、
上記の算定部は、計時される経過時間が増えるにつれて、透明度を順次増加させてもよい。
この場合、例えば、光源オブジェクトが視界画面の中心にあり、透明度の低い黒色のマスク画像により覆われた視界画像がかなり暗く描画されていても、そのまま時間が経過するに連れて、マスク画像の透明度がだんだん増加し、これより覆われた視界画像の暗さもだんだん薄くなっていくため、プレイヤの目が徐々に慣れてきたように感じさせることができる。
The image generation apparatus further includes a time measuring unit that measures an elapsed time in a state where the light source object is disposed in the field of view,
The calculation unit may sequentially increase the transparency as the elapsed time counted increases.
In this case, for example, even if the light source object is at the center of the visual field screen and the visual field image covered with the black mask image with low transparency is drawn quite darkly, the transparency of the mask image as time passes as it is Since the field of view image that is covered gradually becomes darker and darker, the player's eyes can be felt as they are gradually getting used to it.

本発明の第3の観点に係る画像生成方法は、光源オブジェクト(例えば、太陽オブジェクト等)を含む複数のオブジェクトが配置された仮想空間を、所定の視点から眺めた視界画像を生成する画像生成装置における画像生成方法であって、調整画像生成ステップ、算定ステップ、及び、画像描画ステップを備え、以下のように構成する。   An image generation method according to a third aspect of the present invention is an image generation device that generates a visual field image in which a virtual space in which a plurality of objects including a light source object (for example, a sun object) is arranged is viewed from a predetermined viewpoint. The image generation method in FIG. 1 includes an adjustment image generation step, a calculation step, and an image drawing step, and is configured as follows.

まず、調整画像生成ステップでは、光源オブジェクトを除いた(光源オブジェクトを含めない)視界画像の明度を調整するための所定形状の調整画像を生成する。一例として、視界全面から光源オブジェクトを切り抜いた形状であり、光源オブジェクト以外の視界画像の明度を低下させるための調整画像を生成する。また、算定ステップでは、調整画像により調整させる明度を、視界内における光源オブジェクトの配置状況(例えば、視点から光源オブジェクトへの方向と視線方向とのなす角度)に基づいて算定する。そして、画像描画ステップでは、視界内に配置されている各オブジェクトの投影画像を生成し、この投影画像に調整画像を合成した視界画像を描画する。   First, in the adjustment image generation step, an adjustment image having a predetermined shape for adjusting the brightness of the view field image excluding the light source object (not including the light source object) is generated. As an example, a light source object is cut out from the entire field of view, and an adjustment image for reducing the brightness of a field image other than the light source object is generated. In the calculation step, the brightness to be adjusted by the adjustment image is calculated based on the arrangement state of the light source object in the field of view (for example, the angle formed between the direction from the viewpoint to the light source object and the line-of-sight direction). In the image drawing step, a projection image of each object arranged in the field of view is generated, and a field image obtained by synthesizing the adjustment image with the projection image is drawn.

このように、投影画像に調整画像を合成することにより、光源オブジェクトはそのままに、それ以外の明度を低下させた視界画像が生成される。なお、低下させる明度は、視界内の光源オブジェクトの配置位置等に応じて異なっている。例えば、光源オブジェクトの位置が視線方向(視界画像の中心)から離れていると、少しだけ明度を低下させた視界画像を描画し、逆に、光源オブジェクトの位置が視線方向に近いと、かなり明度を低下させた視界画像を描画する。
すなわち、光源オブジェクトはそのままに、それ以外の明度が落とされているため、光源オブジェクトの明るさが相対的に強調され、プレイヤにとって光源オブジェクトがより眩しく感じることになる。
この結果、光源の眩しさを適切に表現することができる。
In this way, by synthesizing the adjustment image with the projection image, a field-of-view image with reduced lightness is generated without changing the light source object. Note that the brightness to be reduced varies depending on the arrangement position of the light source object in the field of view. For example, if the position of the light source object is far from the line-of-sight direction (the center of the field-of-view image), a view image with a slight decrease in brightness is drawn. Conversely, if the position of the light source object is close to the line-of-sight direction, Draw a field-of-view image with reduced image quality.
That is, since the brightness of the light source object is left as it is, the brightness of the light source object is lowered, so that the brightness of the light source object is relatively emphasized and the light source object feels more dazzling for the player.
As a result, the glare of the light source can be appropriately expressed.

本発明の第4の観点に係るプログラムは、コンピュータ(電子機器を含む。)を、上記の画像生成装置として機能させるように構成する。   A program according to a fourth aspect of the present invention is configured to cause a computer (including an electronic device) to function as the above-described image generation device.

このプログラムは、コンパクトディスク、フレキシブルディスク、ハードディスク、光磁気ディスク、ディジタルビデオディスク、磁気テープ、半導体メモリ等のコンピュータ読取可能な情報記録媒体に記録することができる。   This program 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, the glare of a light source can be expressed appropriately.

以下に本発明の実施形態を説明する。以下では、理解を容易にするため、ゲーム装置に本発明が適用される実施形態を説明するが、各種のコンピュータ、PDA、携帯電話などの情報処理装置においても同様に本発明を適用することができる。すなわち、以下に説明する実施形態は説明のためのものであり、本願発明の範囲を制限するものではない。したがって、当業者であればこれらの各要素または全要素をこれと均等なものに置換した実施形態を採用することが可能であるが、これらの実施形態も本発明の範囲に含まれる。   Embodiments of the present invention will be described below. In the following, for ease of understanding, an embodiment in which the present invention is applied to a game device will be described. However, the present invention can be similarly applied to information processing devices such as various computers, PDAs, and mobile phones. it can. That is, the embodiment described below is for explanation, and does not limit the scope of the present invention. Therefore, those skilled in the art can employ embodiments in which each or all of these elements are replaced with equivalent ones, and these embodiments are also included in the scope of the present invention.

(実施形態1)
図1は、本発明の実施の形態に係る画像生成装置が実現される典型的なゲーム装置の概要構成を示す模式図である。以下、本図を参照して説明する。
(Embodiment 1)
FIG. 1 is a schematic diagram showing a schematic configuration of a typical game device in which the image generating device according to the 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. Realized.

CPU 101は、ゲーム装置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.

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

RAM 103は、データやプログラムを一時的に記憶するためのもので、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 game progress and chat communication.

インターフェース104を介して接続されたコントローラ105は、ユーザがゲーム実行の際に行う操作入力を受け付ける。たとえば、コントローラ105は、操作入力に従って、文字列(メッセージ)等の入力を受け付ける。   The controller 105 connected via the interface 104 receives an operation input performed when the user executes the game. For example, the controller 105 accepts input of a character string (message) or the like according to the operation input.

インターフェース104を介して着脱自在に接続された外部メモリ106には、ゲームの進行状態を示すデータ、チャット通信のログ(記録)のデータなどが書き換え可能に記憶される。ユーザは、コントローラ105を介して指示入力を行うことにより、これらのデータを適宜外部メモリ106に記録することができる。   The external memory 106 detachably connected via the interface 104 stores data indicating the progress of the game, chat communication log (record) data, and the like 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には、ゲームを実現するためのプログラムとゲームに付随する画像データや音声データが記録される。CPU 101の制御によって、DVD−ROMドライブ107は、これに装着されたDVD−ROMに対する読み出し処理を行って、必要なプログラムやデータを読み出し、これらはRAM 103等に一時的に記憶される。   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から読み出されたデータをCPU 101や画像処理部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 on a frame memory ( (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 kinds of texture information is rendered by the Z buffer method, and a rendered image is obtained by overlooking the polygon arranged in the virtual three-dimensional space from a predetermined viewpoint position. High speed execution of the obtained operation is also possible.

さらに、CPU 101と画像演算プロセッサが協調動作することにより、文字の形状を定義するフォント情報にしたがって、文字列を2次元画像としてフレームメモリへ描画したり、各ポリゴン表面へ描画することが可能である。フォント情報は、ROM 102に記録されているが、DVD−ROMに記録された専用のフォント情報を利用することも可能である。   Further, the CPU 101 and the image arithmetic processor operate in a coordinated manner, so that a character string can be drawn as a two-dimensional image in a frame memory or drawn on the surface of each polygon according to font information that defines the character shape. is there. The font information is recorded in the ROM 102, but it is also possible to use dedicated font information recorded in the DVD-ROM.

音声処理部109は、DVD−ROMから読み出した音声データをアナログ音声信号に変換し、これに接続されたスピーカ(図示せず)から出力させる。また、CPU 101の制御の下、ゲームの進行の中で発生させるべき効果音や楽曲データを生成し、これに対応した音声をスピーカから出力させる。   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. Further, under the control of the CPU 101, sound effects and music data to be generated during the progress of the game are generated, and sound corresponding to this is output from the speaker.

NIC 110は、ゲーム装置100をインターネット等のコンピュータ通信網(図示せず)に接続するためのものであり、LAN(Local Area Network)を構成する際に用いられる10BASE−T/100BASE−T規格にしたがうものや、電話回線を用いてインターネットに接続するためのアナログモデム、ISDN(Integrated Services Digital Network)モデム、ADSL(Asymmetric Digital Subscriber Line)モデム、ケーブルテレビジョン回線を用いてインターネットに接続するためのケーブルモデム等と、これらとCPU 101との仲立ちを行うインターフェース(図示せず)により構成される。   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). Therefore, analog modems for connecting to the Internet using telephone lines, ISDN (Integrated Services Digital Network) modems, ADSL (Asymmetric Digital Subscriber Line) modems, cables for connecting to the Internet using cable television lines A modem or the like, and an interface (not shown) that mediates between them and the CPU 101 are configured.

このほか、ゲーム装置100は、ハードディスク等の大容量外部記憶装置を用いて、ROM 102、RAM 103、外部メモリ106、DVD−ROMドライブ107に装着されるDVD−ROM等と同じ機能を果たすように構成してもよい。
また、ユーザからの文字列の編集入力を受け付けるためのキーボードや、各種の位置の指定および選択入力を受け付けるためのマウスなどを接続する形態も採用することができる。
In addition, the game apparatus 100 uses a large-capacity external storage device such as a hard disk so that the ROM 102, the RAM 103, the external memory 106, the DVD-ROM attached to the DVD-ROM drive 107, and the like function. It may be configured.
Further, it is possible to adopt a form in which a keyboard for accepting a character string editing input from a user, a mouse for accepting various position designations and selection inputs, and the like are 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 be used as an image generation apparatus. For example, a general computer, like the game apparatus 100, includes a CPU, RAM, ROM, DVD-ROM drive, and NIC, and an image processing unit that has simpler functions than the game apparatus 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 functions as an image generation device.

(画像生成装置の概要構成)
図2は、本実施形態に係る画像生成装置の概要構成を示す模式図である。この画像生成装置は、一例として、プレイヤにより操作されるキャラクタ(自キャラクタ)が、3次元仮想空間内のゲームフィールドを任意に方向等を変えながら移動できるアクションゲームにおけるゲーム画像を生成する装置である。以下、本図を参照して説明する。
(Schematic configuration of the image generation device)
FIG. 2 is a schematic diagram illustrating a schematic configuration of the image generation apparatus according to the present embodiment. As an example, this image generation device is a device that generates a game image in an action game in which a character (self character) operated by a player can move while arbitrarily changing the direction of a game field in a three-dimensional virtual space. . Hereinafter, a description will be given with reference to FIG.

画像生成装置200は、オブジェクト情報記憶部210と、操作受付部220と、位置管理部230と、マスク画像生成部240と、透明度算定部250と、画像描画部260とを備える。   The image generation apparatus 200 includes an object information storage unit 210, an operation reception unit 220, a position management unit 230, a mask image generation unit 240, a transparency calculation unit 250, and an image drawing unit 260.

まず、オブジェクト情報記憶部210は、3次元仮想空間内に配置される自キャラクタ、敵キャラクタ、樹木、建物、及び、光源等のオブジェクトについての情報を記憶する。つまり、ゲームに登場する各種オブジェクトを構成するポリゴン、スプライト、及び、テクスチャ画像等の情報が記憶されている。
なお、光源オブジェクトには、一例として、太陽オブジェクト等も含まれている。
そして、RAM 103等が、このようなオブジェクト情報記憶部210として機能しうる。
First, the object information storage unit 210 stores information about objects such as the own character, enemy characters, trees, buildings, and light sources arranged in the three-dimensional virtual space. That is, information such as polygons, sprites, and texture images that constitute various objects appearing in the game is stored.
The light source object includes a sun object and the like as an example.
The RAM 103 or the like can function as such an object information storage unit 210.

操作受付部220は、自キャラクタに対するプレイヤからの動作指示等の操作入力を受け付ける。例えば、操作受付部220は、所定方向に移動する、ジャンプする、しゃがむ、伏せる等の動作に対応した複数のボタン(一例として、コントローラ105に配置された方向キー,Aボタン,Bボタン,Xボタン,Yボタン等)の何れかがプレイヤにより押下されることによって、自キャラクタに向けた操作入力を受け付ける。
なお、コントローラ105がこのような操作受付部220として機能しうる。
The operation accepting unit 220 accepts an operation input such as an operation instruction from the player for the player character. For example, the operation reception unit 220 includes a plurality of buttons corresponding to operations such as moving in a predetermined direction, jumping, squatting, and lying down (for example, a direction key, an A button, a B button, and an X button arranged on the controller 105. , Y button, etc.) are pressed by the player to accept an operation input for the player character.
Note that the controller 105 can function as such an operation receiving unit 220.

位置管理部230は、仮想空間内における各オブジェクトの位置や、視点情報を管理する。
例えば、自キャラクタや敵キャラクタといった仮想空間内で位置が変化するオブジェクトの位置情報(現在位置や向き等)を管理する。つまり、自キャラクタは、操作受付部220にて受け付けた移動指示等に従って、仮想空間内の位置や向きが変化するため、位置管理部230によって、その位置情報が管理される。また、敵キャラクタも所定のロジックに従って適宜移動し、仮想空間内の位置等が変化するため、同様に位置情報が管理される。
この他にも、位置管理部230は、樹木、建物、及び、光源(太陽等)といった仮想空間内で位置が変化しないオブジェクトの位置情報(固定値)も管理する。なお、太陽等の光源オブジェクトが、例えば、ゲーム内での時間経過に応じて位置を変化させる場合では、逐次変化する位置情報が管理されるものとする。
更に、位置管理部230は、視点情報(現在の視点位置及び向き)も適宜管理する。
そして、RAM 103及びCPU 101が、このような位置管理部230として機能しうる。
The position management unit 230 manages the position of each object in the virtual space and viewpoint information.
For example, position information (current position, orientation, etc.) of an object whose position changes in the virtual space, such as its own character or enemy character, is managed. In other words, the position information of the player character is managed by the position management unit 230 because the position and orientation in the virtual space change according to the movement instruction received by the operation receiving unit 220. Further, since the enemy character also moves appropriately according to a predetermined logic and the position in the virtual space changes, the position information is similarly managed.
In addition, the position management unit 230 also manages position information (fixed values) of objects whose positions do not change in the virtual space, such as trees, buildings, and light sources (such as the sun). In addition, when a light source object such as the sun changes its position with the passage of time in the game, for example, position information that changes sequentially is managed.
Further, the position management unit 230 appropriately manages viewpoint information (current viewpoint position and orientation).
The RAM 103 and the CPU 101 can function as such a location management unit 230.

マスク画像生成部240は、太陽等の光源オブジェクトを除いた(光源オブジェクトを含めない)視界画像を薄暗くする(明度を下げる)ために用いられるマスク画像を生成する。
例えば、マスク画像生成部240は、黒色にて初期化したマスク用のバッファを確保しており、太陽等の光源オブジェクトが視界に入る(視界画像中に含まれる)場合に、その光源オブジェクトのスプライトをバッファ内に描画する。
具体的に説明すると、視点情報(位置及び方向)等により、太陽が視界の右上に位置する場合、マスク画像生成部240は、図3(a)に示すように、太陽オブジェクトTojを、マスク用のバッファ内に描画する。
そして、このバッファ内の情報に基づいて、マスク画像生成部240は、図3(b)に示すようなマスク画像MKを生成する。つまり、全体が黒色で、太陽オブジェクト(投影変換後の太陽オブジェクト)の形状分だけが切り取られた(くり抜かれた)マスク画像を生成する。
なお、太陽オブジェクトの形状分が切り取られる前のマスク画像は、一例として、投影変換されるスクリーン画面(つまり、視界全面)と同じ大きさの矩形形状であり、後述するように、透明度(不透明度)を規定するアルファ値が適宜設定可能となっている。
そして、RAM 103及びCPU 101が、このようなマスク画像生成部240として機能しうる。
The mask image generation unit 240 generates a mask image used for dimming (decreasing brightness) the view field image excluding the light source object such as the sun (not including the light source object).
For example, the mask image generation unit 240 secures a mask buffer initialized in black, and when a light source object such as the sun enters the view (included in the view image), the sprite of the light source object Is drawn in the buffer.
More specifically, when the sun is located in the upper right of the field of view based on viewpoint information (position and direction) or the like, the mask image generation unit 240 uses a sun object Toj for the mask as shown in FIG. Draw in the buffer.
Then, based on the information in the buffer, the mask image generation unit 240 generates a mask image MK as shown in FIG. That is, a mask image is generated that is black as a whole and is cut out (cut out) only for the shape of the sun object (sun object after projection conversion).
Note that the mask image before the shape of the sun object is cut off is, for example, a rectangular shape having the same size as the projection-converted screen screen (that is, the entire field of view). As described later, transparency (opacity) ) Can be set as appropriate.
The RAM 103 and the CPU 101 can function as such a mask image generation unit 240.

図2に戻って、透明度算定部250は、視界内における光源オブジェクトの配置状況に基づいて、上述したマスク画像の透明度(アルファ値)を算定する。
例えば、透明度算定部250は、視点から光源オブジェクトまでの方向と視点方向とのなす角度、及び、光源オブジェクトの遮蔽割合等に基づいて、マスク画像のアルファ値を算定する。
具体的に、透明度算定部250は、図4(a)に示すように、視点Vから太陽オブジェクトTojへの方向d1と、視線方向d2とのなす角度θに基づいて、アルファ値を算定する。
一例として、アルファ値の範囲が0.0〜1.0とし、0.0が最も透明度が高く(完全に透明)、一方、1.0が最も透明度が低い(完全に不透明)場合について説明すると、透明度算定部250は、この0.0〜1.0の範囲でアルファ値を算定する。
より詳細に説明すると、透明度算定部250は、光源オブジェクトが視界内に入っている状態において、図4(b)のグラフに示すように、角度θが小さいほど、1.0に近づく(透明度が低くなる)ようにアルファ値を算定し、逆に、角度θが大きいほど、0.0に近づく(透明度が高くなる)ようにアルファ値を算定する。この図4(b)に示すグラフは、一例であり、適宜変更可能である。
なお、図4(c)に示すように、投影されるスクリーン画面Sc上の太陽オブジェクトTojは、角度θが小さいほど中心Cnに近づくことになり、逆に、角度θが大きいほど中心Cnから離れることになるため、中心Cnに対する太陽オブジェクトTojの位置(一例として、中心Cnと太陽オブジェクトTojとの距離)から、アルファ値を算定することもできる。
Returning to FIG. 2, the transparency calculation unit 250 calculates the transparency (alpha value) of the mask image described above based on the arrangement state of the light source objects in the field of view.
For example, the transparency calculation unit 250 calculates the alpha value of the mask image based on the angle between the direction from the viewpoint to the light source object and the viewpoint direction, the shielding ratio of the light source object, and the like.
Specifically, as shown in FIG. 4A, the transparency calculation unit 250 calculates an alpha value based on an angle θ formed by the direction d1 from the viewpoint V to the sun object Toj and the line-of-sight direction d2.
As an example, the case where the alpha value range is 0.0 to 1.0, 0.0 is the highest transparency (completely transparent), and 1.0 is the lowest transparency (completely opaque) will be described. The transparency calculation unit 250 calculates the alpha value in the range of 0.0 to 1.0.
More specifically, the transparency calculation unit 250 approaches 1.0 as the angle θ decreases as shown in the graph of FIG. 4B in a state where the light source object is in the field of view. The alpha value is calculated so as to decrease, and conversely, the alpha value is calculated so as to approach 0.0 (transparency increases) as the angle θ increases. The graph shown in FIG. 4B is an example and can be changed as appropriate.
As shown in FIG. 4C, the sun object Toj on the projected screen screen Sc approaches the center Cn as the angle θ decreases, and conversely, the sun object Toj moves away from the center Cn as the angle θ increases. Therefore, the alpha value can also be calculated from the position of the sun object Toj with respect to the center Cn (as an example, the distance between the center Cn and the sun object Toj).

また、透明度算定部250は、光源オブジェクトの一部が、他のオブジェクト等により遮蔽されている場合に、その遮蔽割合に応じて、アルファ値を補正する。
例えば、透明度算定部250は、視点から光源オブジェクトまでの方向を求める際に、その間を遮蔽するオブジェクトの有無を検出し、遮蔽するオブジェクトがあれば、その遮蔽割合(どのくらいの割合で遮蔽されているか)を求めておく。なお、遮蔽割合を求める手法は任意であり、適宜適用可能である。例えば、投影変換によりスクリーン画面に投影された後に、光源オブジェクトの遮蔽の有無を判定し、遮蔽されていればその遮蔽割合を求めるようにしてもよい。
また、他のオブジェクトにより遮蔽される以外にも、視界の端に光源オブジェクトが配置され、その一部が視界外となって欠けている場合も、視界外の部分が同様に遮蔽されているように扱うものとする。
そして、透明度算定部250は、上述した角度θ等に応じて算定したアルファ値を、求めた遮蔽割合に応じて補正する。例えば、図4(d)のグラフに示すように、遮蔽割合に応じた補正係数(0.0〜1.0)を求め、この係数値をアルファ値に乗じることにより、アルファ値を補正する。すなわち、遮蔽割合が小さいと、アルファ値が少しだけ低くなるように補正し(少しだけ透明になるようにし)、逆に遮蔽割合が大きいと、アルファ値がかなり低くなるように補正する(かなり透明になるようにする)。この図4(d)に示すグラフは、一例であり、適宜変更可能である。
つまり、透明度算定部250は、遮蔽割合が高いほどアルファ値がより小さくなるように(より透明になるように)、アルファ値を補正する。
In addition, when a part of the light source object is shielded by another object or the like, the transparency calculation unit 250 corrects the alpha value according to the shielding ratio.
For example, when calculating the direction from the viewpoint to the light source object, the transparency calculation unit 250 detects the presence or absence of an object that shields between them, and if there is an object to be shielded, the shielding ratio (how much is being shielded) ) The method for obtaining the shielding ratio is arbitrary and can be applied as appropriate. For example, it may be determined whether or not the light source object is shielded after being projected on the screen screen by projection conversion, and if the light source object is shielded, the shielding ratio may be obtained.
In addition to being shielded by other objects, when a light source object is arranged at the edge of the field of view and a part of it is missing from the field of view, the part outside the field of view is similarly shielded. Shall be handled.
And the transparency calculation part 250 correct | amends the alpha value calculated according to the above-mentioned angle (theta) etc. according to the calculated | required shielding ratio. For example, as shown in the graph of FIG. 4D, a correction coefficient (0.0 to 1.0) corresponding to the shielding ratio is obtained, and the alpha value is corrected by multiplying the alpha value by this coefficient value. In other words, when the shielding ratio is small, the alpha value is corrected so that it is slightly lower (so that it is slightly transparent), and conversely, when the shielding ratio is large, the alpha value is corrected so that it is considerably low (very transparent) To be). The graph shown in FIG. 4D is an example and can be changed as appropriate.
That is, the transparency calculation unit 250 corrects the alpha value so that the alpha value becomes smaller as the shielding ratio increases (so that the alpha value becomes more transparent).

このようにしてアルファ値を算定すると、透明度算定部250は、算定したアルファ値を上述したマスク画像に設定する。これによりマスク画像の透明度が定まることになる。
そして、上述したように、マスク画像自身が黒色であるため、マスク画像は、算定された(設定された)アルファ値に応じて明度の異なる灰色を合成するための画像となる。一例として、図5(a)のグラフに示すように、透明度が小さい(アルファ値が大きい)と、濃い(明度の低い)灰色になり、逆に、透明度が大きい(アルファ値が小さい)と、薄い(明度の高い)灰色になる。この図5(a)に示すグラフは、一例であり、適宜変更可能である。
光源オブジェクト(太陽オブジェクト)が遮蔽されていない場合を一例として説明すると、角度θが小さく、光源オブジェクトが中心に近いと、図5(b)に示すような濃い(明度の低い)灰色のマスク画像MKとなる。逆に、角度θが大きく、光源オブジェクトが中心から離れていると、図5(c)に示すような薄い(明度の高い)灰色のマスク画像MKとなる。
そして、CPU 101が、このような透明度算定部250として機能しうる。
When the alpha value is calculated in this way, the transparency calculation unit 250 sets the calculated alpha value in the above-described mask image. As a result, the transparency of the mask image is determined.
As described above, since the mask image itself is black, the mask image is an image for synthesizing grays having different lightness levels according to the calculated (set) alpha value. As an example, as shown in the graph of FIG. 5A, when the transparency is small (alpha value is large), the color becomes dark (low brightness) gray, and conversely, when the transparency is large (alpha value is small), Light (high brightness) gray. The graph shown in FIG. 5A is an example and can be changed as appropriate.
A case where the light source object (sun object) is not shielded will be described as an example. When the angle θ is small and the light source object is close to the center, a dark (low brightness) gray mask image as shown in FIG. It becomes MK. Conversely, when the angle θ is large and the light source object is away from the center, a light (high brightness) gray mask image MK as shown in FIG. 5C is obtained.
The CPU 101 can function as such a transparency calculation unit 250.

図2に戻って、画像描画部260は、視界内のオブジェクト、及び、生成されたマスク画像に基づいて、表示画像(視界画像)を描画する。
例えば、画像描画部260は、視界内に入るオブジェクトを、位置管理部230に管理される各オブジェクトの位置及び視点情報に基づいて特定すると、そのオブジェクトを投影変換によりスクリーン画面に投影した投影画像を生成する。なお、その際、視界内に光源オブジェクトが含まれているか(視点から太陽オブジェクト等が見えるか)どうかも判別する。
そして、視界内に光源オブジェクトが含まれている場合に、画像描画部260は、投影画像にマスク画像を合成することにより、視界画像を描画する。なお、マスク画像には、上述したように、角度θ等に基づいてアルファ値が適宜設定されているため、この合成によって、光源オブジェクトを除いて明度が落とされた(暗くされた)視界画像が生成される。
Returning to FIG. 2, the image drawing unit 260 draws a display image (view image) based on the object in the view and the generated mask image.
For example, when the image drawing unit 260 identifies an object that falls within the field of view based on the position and viewpoint information of each object managed by the position management unit 230, a projection image obtained by projecting the object onto the screen screen by projection conversion is obtained. Generate. At this time, it is also determined whether or not the light source object is included in the field of view (whether the sun object or the like can be seen from the viewpoint).
When the light source object is included in the view, the image drawing unit 260 draws the view image by synthesizing the mask image with the projection image. As described above, since the alpha value is appropriately set in the mask image based on the angle θ or the like, a visual field image whose brightness is reduced (darkened) except for the light source object is obtained by this composition. Generated.

具体的には、図6(a)に示すように、画像描画部260は、視界内のオブジェクトを投影変換した画像Gに、視点V側からマスク画像MKを重ねて合成する。これにより、図6(b)に示すような表示画像HGが生成される。
この表示画像HGは、太陽オブジェクトTojはそのままに、それ以外の明度が落とされている(薄暗く描画されている)ため、太陽オブジェクトTojの明るさが相対的に強調され、プレイヤにとって太陽オブジェクトTojがより眩しく感じることになる。
そして、画像処理部108が、このような画像描画部260として機能しうる。
Specifically, as shown in FIG. 6A, the image drawing unit 260 combines the mask image MK from the viewpoint V side on the image G obtained by projecting the object in the field of view. Thereby, a display image HG as shown in FIG. 6B is generated.
In this display image HG, since the sun object Toj is left as it is, the brightness of the other objects is reduced (the lightness is drawn dimly), the brightness of the sun object Toj is relatively emphasized, and the sun object Toj is displayed to the player. You will feel more dazzling.
The image processing unit 108 can function as such an image drawing unit 260.

(画像生成装置の動作)
図7は、上述した構成の画像生成装置200において実行される画像生成処理の流れを示すフローチャートである。以下、本図を参照して画像生成装置200の動作について説明する。この画像生成処理は、例えば、ゲーム実行中において、描画サイクル毎(一例として、1/60秒毎)に、繰り返し実行されるものとする。
(Operation of image generation device)
FIG. 7 is a flowchart showing a flow of image generation processing executed in the image generation apparatus 200 having the above-described configuration. Hereinafter, the operation of the image generation apparatus 200 will be described with reference to FIG. For example, this image generation processing is repeatedly executed every drawing cycle (for example, every 1/60 seconds) during the execution of the game.

まず、画像生成装置200は、視界内に配置されている各オブジェクトを特定する(ステップS301)。つまり、画像描画部260は、視界内に入る各オブジェクトを、位置管理部230に管理される各オブジェクトの位置及び視点情報に基づいて特定する。   First, the image generation device 200 identifies each object arranged in the field of view (step S301). That is, the image drawing unit 260 identifies each object that falls within the field of view based on the position and viewpoint information of each object managed by the position management unit 230.

画像生成装置200は、投影変換した画像を描画する(ステップS302)。つまり、画像描画部260は、特定した各オブジェクトを投影変換によりスクリーン画面に投影した投影画像を生成する。   The image generating apparatus 200 draws the projection-converted image (Step S302). That is, the image drawing unit 260 generates a projection image in which each identified object is projected on the screen screen by projection conversion.

画像生成装置200は、視界内に光源があるか否かを判別する(ステップS303)。つまり、視点から太陽オブジェクト等が見えているかどうかを判別する。
画像生成装置200は、視界内に光源がないと判別すると(ステップS303;No)、画像生成処理を終了する。つまり、投影変換した画像をそのまま表示画像(視界画像)とする。
The image generating apparatus 200 determines whether there is a light source in the field of view (step S303). That is, it is determined whether or not a sun object or the like is visible from the viewpoint.
If the image generation apparatus 200 determines that there is no light source in the field of view (step S303; No), the image generation process ends. That is, the projection-converted image is directly used as a display image (view field image).

一方、視界内に光源があると判別した場合に(ステップS303;Yes)、画像生成装置200は、光源オブジェクトをバッファに描画し、マスク画像を生成する(ステップS304)。
すなわち、マスク画像生成部240は、黒色にて初期化したマスク用のバッファに、太陽等の光源オブジェクトのスプライトを描画する。そして、このバッファ内の情報に基づいて、マスク画像生成部240は、例えば、上述した図3(b)に示すようなマスク画像MKを生成する。つまり、全体が黒色で、太陽等の光源オブジェクトの形状分だけが切り取られた矩形(略矩形)のマスク画像を生成する。
On the other hand, when it is determined that there is a light source in the field of view (step S303; Yes), the image generation device 200 draws the light source object in the buffer and generates a mask image (step S304).
That is, the mask image generation unit 240 draws the sprite of the light source object such as the sun in the mask buffer initialized in black. Then, based on the information in the buffer, the mask image generation unit 240 generates a mask image MK as shown in FIG. That is, a rectangular (substantially rectangular) mask image is generated that is entirely black and cut out only the shape of the light source object such as the sun.

画像生成装置200は、アルファ値を算定してマスク画像に設定する(ステップS305)。
すなわち、透明度算定部250は、視点から光源オブジェクトまでの方向と視点方向とのなす角度、及び、光源オブジェクトの遮蔽割合等に基づいて、マスク画像のアルファ値を算定する。
例えば、透明度算定部250は、上述した図4(a)に示すように、視点Vから太陽オブジェクトTojへの方向d1と、視線方向d2とのなす角度θに基づいて、アルファ値を算定する。つまり、上述した図4(b)のグラフに示すように、角度θが小さいほど、1.0に近づく(不透明になる)ようにアルファ値を算定し、逆に、角度θが大きいほど、0.0に近づく(透明になる)ようにアルファ値を算定する。
また、透明度算定部250は、光源オブジェクトの一部が遮蔽されている場合に、その遮蔽割合に応じて、アルファ値を補正する。
例えば、透明度算定部250は、上述した図4(d)のグラフに示すように、遮蔽割合に応じた補正係数(0.0〜1.0)を求め、この係数値をアルファ値に乗じることにより、アルファ値を補正する。すなわち、遮蔽割合が高いほどアルファ値がより小さくなるように(より透明になるように)、角度θに基づいて算定されたアルファ値を補正する。
そして、透明度算定部250は、このようにして算定したアルファ値をマスク画像に設定する。
The image generating apparatus 200 calculates an alpha value and sets it as a mask image (step S305).
That is, the transparency calculation unit 250 calculates the alpha value of the mask image based on the angle between the direction from the viewpoint to the light source object and the viewpoint direction, the shielding ratio of the light source object, and the like.
For example, as shown in FIG. 4A described above, the transparency calculation unit 250 calculates the alpha value based on the angle θ formed by the direction d1 from the viewpoint V to the sun object Toj and the line-of-sight direction d2. That is, as shown in the graph of FIG. 4B described above, the alpha value is calculated so as to approach 1.0 (become opaque) as the angle θ decreases, and conversely, as the angle θ increases, 0 increases. Calculate the alpha value so that it approaches 0 (becomes transparent).
In addition, when a part of the light source object is shielded, the transparency calculation unit 250 corrects the alpha value according to the shielding ratio.
For example, as shown in the graph of FIG. 4D described above, the transparency calculation unit 250 calculates a correction coefficient (0.0 to 1.0) corresponding to the shielding ratio, and multiplies the alpha value by this coefficient value. To correct the alpha value. In other words, the alpha value calculated based on the angle θ is corrected so that the alpha value becomes smaller as the shielding ratio increases (so that the alpha value becomes more transparent).
Then, the transparency calculation unit 250 sets the calculated alpha value in the mask image.

画像生成装置200は、投影変換した画像にマスク画像を合成する(ステップS306)。
すなわち、画像描画部260は、視界内のオブジェクトをスクリーン画面に投影変換した投影画像に、アルファ値が設定されたマスク画像を合成することにより、表示画像(視界画像)を描画する。
例えば、画像描画部260は、上述した図6(a)に示すように、投影変換した画像Gに、視点V側からマスク画像MKを重ねて合成して、表示画像を生成する。つまり、上述した図6(b)に示すような表示画像HGを描画する。
The image generating apparatus 200 synthesizes a mask image with the projection-converted image (Step S306).
That is, the image drawing unit 260 draws a display image (view image) by combining a mask image in which an alpha value is set with a projection image obtained by projecting an object in the view onto the screen screen.
For example, as illustrated in FIG. 6A described above, the image drawing unit 260 generates a display image by combining the projected image G with the mask image MK superimposed from the viewpoint V side. That is, the display image HG as shown in FIG.

このような、画像生成処理により、太陽等の光源オブジェクトが視界内に入る場合に、その光源オブジェクトはそのままに、それ以外の明度が落とされた表示画像(視界画像)が描画される。その際、視線に対する光源オブジェクトの位置に応じて、明度(暗さ)が異なっている。
すなわち、光源オブジェクトが視線方向(視界画像の中心)から離れていると、図8(a)に示すような少し薄暗い視界画像が生成され、また、光源オブジェクトが視線方向に近いと、図8(b)に示すようなかなり暗い視界画像が生成される。
これら図8(a),(b)の何れの視界画像でも、光源オブジェクト(太陽オブジェクト)はそのままに、それ以外の明度が落とされているため、光源オブジェクトの明るさが相対的に強調され、プレイヤにとって光源オブジェクトがより眩しく感じることになる。
By such an image generation process, when a light source object such as the sun enters the field of view, a display image (view field image) with other lightness is drawn without changing the light source object. At that time, the lightness (darkness) differs depending on the position of the light source object with respect to the line of sight.
That is, when the light source object is away from the line-of-sight direction (the center of the field-of-view image), a slightly dim view image as shown in FIG. 8A is generated, and when the light source object is close to the line-of-sight direction, FIG. A fairly dark view image as shown in b) is generated.
8A and 8B, the brightness of the light source object is relatively emphasized because the brightness of the light source object (the sun object) is left as it is and the other lightness is reduced. The light source object feels more dazzling for the player.

この結果、光源の眩しさを適切に表現することができる。   As a result, the glare of the light source can be appropriately expressed.

(他の実施形態)
上記の実施形態では、視界内における光源オブジェクトの配置状況(配置位置及び遮蔽割合)に基づいて、マスク画像のアルファ値が算定される場合について説明した。
更にリアリティを高めるために、光源オブジェクトが表示され続けていると、だんだん目が慣れていく様子を表現するようにしてもよい。
以下、このように、リアリティを更に高めることのできる他の実施形態について、以下、図面を参照して説明する。
(Other embodiments)
In the above embodiment, the case where the alpha value of the mask image is calculated based on the arrangement state (arrangement position and shielding ratio) of the light source object in the field of view has been described.
In order to further improve the reality, it may be expressed that the eyes gradually get used as the light source object continues to be displayed.
Hereinafter, other embodiments that can further enhance the reality will be described below with reference to the drawings.

図9は、本発明の他の実施形態に係る画像生成装置400の概要構成を示す模式図である。
図示するように、画像生成装置400は、オブジェクト情報記憶部210と、操作受付部220と、位置管理部230と、マスク画像生成部240と、透明度算定部250と、画像描画部260と、計時部410とを備える。
この画像生成装置400は、上述した図2の画像生成装置200の構成に、計時部410を加えたものとなっている。つまり、オブジェクト情報記憶部210〜画像描画部260の構成は、画像生成装置200と同等である。
FIG. 9 is a schematic diagram showing a schematic configuration of an image generation apparatus 400 according to another embodiment of the present invention.
As shown in the figure, the image generation device 400 includes an object information storage unit 210, an operation reception unit 220, a position management unit 230, a mask image generation unit 240, a transparency calculation unit 250, an image drawing unit 260, and a timekeeping. Part 410.
The image generating apparatus 400 is obtained by adding a time measuring unit 410 to the configuration of the image generating apparatus 200 of FIG. 2 described above. That is, the configuration of the object information storage unit 210 to the image drawing unit 260 is the same as that of the image generation device 200.

計時部410は、視界内に光源オブジェクトが入ってからの経過タイムを計時する。
例えば、計時部410は、位置管理部230に管理される光源オブジェクトの位置と、視点情報(位置及び方向)との関係から、視界内に光源オブジェクトが位置している(視点から光源オブジェクトが見える)かどうかを逐次判別し、光源オブジェクトが視界内に位置している状態で経過タイムをカウントアップする。
なお、計時部410は、光源オブジェクトが視界内から外れると、経過タイムをゼロクリアする。
The time measuring unit 410 measures the elapsed time after the light source object enters the field of view.
For example, the timing unit 410 has the light source object located in the field of view (the light source object is visible from the viewpoint) based on the relationship between the position of the light source object managed by the position management unit 230 and the viewpoint information (position and direction). ), And the elapsed time is counted up while the light source object is located in the field of view.
Note that the timer unit 410 clears the elapsed time to zero when the light source object is out of the field of view.

透明度算定部250は、計時部410にて計時されている経過タイムを考慮して、マスク画像のアルファ値を算定する。
例えば、上述したように、視界内における光源オブジェクトの配置状況に基づいて、アルファ値を算定した後に、経過タイムの値に応じて、アルファ値が小さくなるように(透明度が大きくなるように)補正する。
具体的には、図10のグラフに示すように、経過タイムに応じた減衰係数値(0.0〜1.0)を順次求め、この係数値をアルファ値に乗じることにより、アルファ値を時間経過に応じて小さくしていく。この図10に示すグラフは、一例であり、適宜変更可能である。
つまり、時間が経過するにつれて、視界画像の明度が徐々に上がるように(だんだん明るくなっていくように)、要するに、経過タイムが大きいほどアルファ値がより小さくなるように(透明度がより大きくなるように)補正する。
The transparency calculation unit 250 calculates the alpha value of the mask image in consideration of the elapsed time measured by the timer unit 410.
For example, as described above, after calculating the alpha value based on the arrangement state of the light source object in the field of view, correction is performed so that the alpha value decreases (increases transparency) according to the value of the elapsed time. To do.
Specifically, as shown in the graph of FIG. 10, the attenuation coefficient value (0.0 to 1.0) corresponding to the elapsed time is sequentially obtained, and the alpha value is calculated by multiplying the alpha value by the coefficient value. Decrease with time. The graph shown in FIG. 10 is an example and can be changed as appropriate.
In other words, as the time passes, the brightness of the view image gradually increases (so that it becomes brighter). In short, the longer the elapsed time, the smaller the alpha value (so that the transparency becomes larger) To) to correct.

以下、このような構成の画像生成装置400において実行される画像生成処理の流れを図11のフローチャートを参照して説明する。
なお、上述した図7の画像生成処理と同じ箇所には、同じ参照符号が付加されている。また、この画像生成処理も、例えば、ゲーム実行中において、描画サイクル毎(一例として、1/60秒毎)に、繰り返し実行されるものとする。
Hereinafter, the flow of image generation processing executed in the image generation apparatus 400 having such a configuration will be described with reference to the flowchart of FIG.
Note that the same reference numerals are added to the same portions as those in the image generation processing of FIG. 7 described above. In addition, this image generation processing is also repeatedly executed at every drawing cycle (for example, every 1/60 seconds) during game execution.

まず、画像生成装置400は、視界内に配置されている各オブジェクトを特定し(ステップS301)、投影変換した画像を描画する(ステップS302)。つまり、画像描画部260は、視界内の各オブジェクトを特定し、特定した各オブジェクトを投影変換によりスクリーン画面に投影した投影画像を生成する。
画像生成装置400は、視界内に光源があるか否かを判別する(ステップS303)。つまり、視点から太陽オブジェクト等が見えているかどうかを判別する。
First, the image generating apparatus 400 identifies each object arranged in the field of view (step S301), and draws a projection-converted image (step S302). That is, the image drawing unit 260 identifies each object in the field of view, and generates a projection image in which each identified object is projected on the screen screen by projection conversion.
The image generating apparatus 400 determines whether there is a light source in the field of view (step S303). That is, it is determined whether or not a sun object or the like is visible from the viewpoint.

画像生成装置400は、視界内に光源がないと判別すると(ステップS303;No)、経過タイムをクリアする(ステップS501)。
すなわち、計時部410は、カウントしていた経過タイムをゼロクリアする。
そして、画像生成装置400は、画像生成処理を終了する。つまり、投影変換した画像をそのまま表示画像とする。
When determining that there is no light source in the field of view (step S303; No), the image generating apparatus 400 clears the elapsed time (step S501).
That is, the time measuring unit 410 clears the elapsed time that has been counted to zero.
Then, the image generation device 400 ends the image generation process. That is, the projected image is used as it is as a display image.

一方、視界内に光源があると判別した場合に(ステップS303;Yes)、画像生成装置400は、経過タイムが基準値を超えているか否かを判別する(ステップS502)。
画像生成装置400は、経過タイムが基準値を超えていると判別すると(ステップS502;Yes)、画像生成処理を終了する。つまり、視界画像の明度を下げる必要のないほど時間が経過している場合、投影変換した画像をそのまま表示画像とする。
On the other hand, when it is determined that there is a light source in the field of view (step S303; Yes), the image generating apparatus 400 determines whether or not the elapsed time exceeds the reference value (step S502).
When determining that the elapsed time exceeds the reference value (step S502; Yes), the image generation apparatus 400 ends the image generation process. That is, when the time has passed so that the brightness of the view field image does not need to be lowered, the projection-converted image is directly used as the display image.

一方、経過タイムが基準値を超えていないと判別した場合に(ステップS502;No)、画像生成装置400は、光源オブジェクトをバッファに描画し、マスク画像を生成する(ステップS304)。つまり、上述した図3(b)に示すようなマスク画像を生成する。   On the other hand, when it is determined that the elapsed time does not exceed the reference value (step S502; No), the image generation device 400 draws the light source object in the buffer and generates a mask image (step S304). That is, a mask image as shown in FIG.

画像生成装置400は、経過タイムも考慮しつつアルファ値を算定し、マスク画像に設定する(ステップS503)。
すなわち、透明度算定部250は、まず、視点から光源オブジェクトまでの方向と視点方向とのなす角度、及び、光源オブジェクトの遮蔽割合等に基づいて、マスク画像のアルファ値を算定する。
その後、透明度算定部250は、経過タイムの値に応じて、アルファ値が小さくなるように(透明度が大きくなるように)補正する。
すなわち、透明度算定部250は、上述した図10のグラフに示すように、経過タイムに応じた減衰係数(0.0〜1.0)を求め、この係数値をアルファ値に乗じることにより、アルファ値を補正する。これにより、アルファ値は、経過タイムが大きいほどより小さくなるように(透明度がより大きくなるように)補正される。
The image generation apparatus 400 calculates the alpha value while taking into account the elapsed time, and sets it as a mask image (step S503).
That is, the transparency calculation unit 250 first calculates the alpha value of the mask image based on the angle between the direction from the viewpoint to the light source object and the viewpoint direction, the shielding ratio of the light source object, and the like.
Thereafter, the transparency calculation unit 250 corrects the alpha value to be small (so that the transparency is large) according to the value of the elapsed time.
That is, as shown in the graph of FIG. 10 described above, the transparency calculation unit 250 obtains an attenuation coefficient (0.0 to 1.0) corresponding to the elapsed time, and multiplies the alpha value by this coefficient value. Correct the value. As a result, the alpha value is corrected so as to decrease as the elapsed time increases (so that the transparency increases).

画像生成装置400は、投影変換した画像にマスク画像を合成する(ステップS306)。つまり、画像描画部260は、投影変換した画像に、アルファ値が設定されたマスク画像を合成することにより、表示画像(視界画像)を描画する。   The image generation apparatus 400 synthesizes a mask image with the projection-converted image (step S306). That is, the image drawing unit 260 draws a display image (field-of-view image) by synthesizing a mask image in which an alpha value is set with the projection-converted image.

そして、画像生成装置400は、経過タイムを加算した(ステップS504)後に、画像生成処理を終える。   Then, after adding the elapsed time (step S504), the image generation device 400 ends the image generation process.

このような、画像生成処理により、経過タイムが増えるにつれて、視界画像の明度が徐々に上がるように(だんだん明るくなっていくように)表示されるようになる。
例えば、視界の中心近くに光源オブジェクト(太陽オブジェクト)がある場面で、経過タイムが小さいと、図12(a)に示すように、かなり暗い視界画像が描画される。そして、そのまま時間が経過していくと(経過タイムが増加していくと)、図12(b)に示すように、薄暗い視界画像が描画される(だんだん暗さが薄くなっていく)。さらに、時間が経過していくと(経過タイムが基準値を超えると)、図12(c)に示すように、マスク画像を合成しない視界画像が描画される。
このため、最初暗い視界画像が描画されていても、そのまま時間が経過するに連れて、だんだん暗さが薄くなっていくため、プレイヤの目がだんだん慣れてきたように感じさせることができる。
この結果、光源の眩しさを、よりリアリティを高めて表現することができる。
By such image generation processing, as the elapsed time increases, the brightness of the field-of-view image gradually increases (becomes brighter).
For example, in a scene where a light source object (sun object) is near the center of the field of view, if the elapsed time is small, a considerably dark field of view image is drawn as shown in FIG. Then, when the time passes as it is (the elapsed time increases), as shown in FIG. 12B, a dim view image is drawn (the darkness gradually decreases). Further, as time elapses (when the elapsed time exceeds the reference value), a view field image that does not synthesize the mask image is drawn, as shown in FIG.
For this reason, even if a dark visual field image is initially drawn, the darkness gradually becomes lighter as time elapses, so that the player's eyes can be felt as they are getting used to it.
As a result, the glare of the light source can be expressed with higher reality.

以上説明したように、本発明によれば光源の眩しさを適切に表現することができる。   As described above, according to the present invention, the glare of the light source can be appropriately expressed.

本実施形態におけるゲーム装置の概要構成を示す模式図である。It is a mimetic diagram showing an outline composition of a game device in this embodiment. 本実施形態における画像生成装置の構成の一例を示す模式図である。It is a schematic diagram which shows an example of a structure of the image generation apparatus in this embodiment. (a),(b)共に、マスク画像の形状を説明するための模式図である。(A), (b) is a schematic diagram for demonstrating the shape of a mask image. (a)が太陽オブジェクトへの方向と視線方向とのなす各角度θを説明するための模式図であり、(b)が角度θとアルファ値との関係を示すグラフであり、(c)がスクリーン画面と投影される太陽オブジェクトを説明するための模式図であり、(d)が、遮蔽割合と補正係数との関係を示すグラフである。(A) is a schematic diagram for demonstrating each angle (theta) which the direction to a sun object and a gaze direction make, (b) is a graph which shows the relationship between angle (theta) and an alpha value, (c) is. It is a schematic diagram for demonstrating the screen object and the projected sun object, (d) is a graph which shows the relationship between a shielding ratio and a correction coefficient. (a)がマスク画像の透明度(アルファ値)と明度との関係を示すグラフであり、(b)、(c)がアルファ値が設定されたマスク画像を説明するための模式図である。(A) is a graph which shows the relationship between the transparency (alpha value) and brightness of a mask image, (b), (c) is a schematic diagram for demonstrating the mask image to which the alpha value was set. (a),(b)共に、投影画像にマスク画像が合成される様子を説明するための模式図である。(A), (b) is a schematic diagram for demonstrating a mode that a mask image is synthesize | combined with a projection image. 本実施形態における画像生成処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the image generation process in this embodiment. (a),(b)共に、視界内における太陽オブジェクトの位置に応じて、視界画像の明度が異なる様子を説明するための模式図である。(A), (b) is a schematic diagram for demonstrating a mode that the brightness of a visual field image changes according to the position of the sun object in a visual field. 他の実施形態における画像生成装置の構成の一例を示す模式図である。It is a schematic diagram which shows an example of a structure of the image generation apparatus in other embodiment. 経過タイムと減衰係数との関係を示すグラフである。It is a graph which shows the relationship between elapsed time and an attenuation coefficient. 他の実施形態における画像生成処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the image generation process in other embodiment. (a)〜(c)共に、時間の経過に応じて、視界画像が明るくなっていく様子を説明するための模式図である。(A)-(c) is a schematic diagram for demonstrating a scene image becoming bright as time passes.

符号の説明Explanation of symbols

100 ゲーム装置
101 CPU
102 ROM
103 RAM
104 インターフェース
105 コントローラ
106 外部メモリ
107 DVD−ROMドライブ
108 画像処理部
109 音声処理部
110 NIC
200,400 画像生成装置
210 オブジェクト情報記憶部
220 操作受付部
230 位置管理部
240 マスク画像生成部
250 透明度算定部
260 画像描画部
410 計時部
100 game machine 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, 400 Image generation device 210 Object information storage unit 220 Operation reception unit 230 Position management unit 240 Mask image generation unit 250 Transparency calculation unit 260 Image drawing unit 410 Timekeeping unit

Claims (8)

光源オブジェクトを含む複数のオブジェクトが配置された仮想空間を、所定の視点から眺めた視界画像を生成する画像生成装置であって、
光源オブジェクトが視界内に含まれる場合に、当該光源オブジェクトが切り取られた形状の調整画像を生成する調整画像生成部と、
光源オブジェクトが視界内に含まれる場合に、当該調整画像により低く調整させる明度を、視界の中心を基準とした当該光源オブジェクトの配置状況に基づいて算定する算定部と、
視界内に配置されている各オブジェクトの投影画像を生成し、光源オブジェクトが視界内に含まれる場合に、当該投影画像と明度が調整された当該調整画像を合成して、当該光源オブジェクトを除き、明度を落とした視界画像を描画する画像描画部と、を備える、
ことを特徴とする画像生成装置。
An image generation device that generates a view field image in which a virtual space where a plurality of objects including a light source object are arranged is viewed from a predetermined viewpoint,
An adjustment image generation unit that generates an adjustment image of a shape in which the light source object is cut out when the light source object is included in the field of view ;
When the light source object is included in the field of view , a calculation unit that calculates the brightness to be adjusted lower by the adjustment image based on the arrangement state of the light source object with respect to the center of the field of view,
Generating a projection image of each object is positioned within the field of view, when the light source object is included within the field of view, by synthesizing the corresponding adjusted image to which the projected image and the brightness is adjusted, except for the light source object An image drawing unit for drawing a field-of-view image with reduced brightness ,
An image generation apparatus characterized by that.
光源オブジェクトを含む複数のオブジェクトが配置された仮想空間を、所定の視点から眺めた視界画像を生成する画像生成装置であって、
光源オブジェクトが視界内に含まれる場合に、視点を基準とした視界全面から当該光源オブジェクトが切り取られた形状のマスク画像を生成するマスク画像生成部と、
光源オブジェクトが視界内に含まれる場合に、当該マスク画像に設定するための透明度を、視界の中心を基準とした当該光源オブジェクトの配置状況に基づいて算定する算定部と、
視界内に配置されている各オブジェクトを投影変換した投影画像を生成し、光源オブジェクトが視界内に含まれる場合に、当該投影画像透明度が設定された当該マスク画像を合成して、当該光源オブジェクトを除き、明度を落とした視界画像を描画する画像描画部と、を備える、
ことを特徴とする画像生成装置。
An image generation device that generates a view field image in which a virtual space where a plurality of objects including a light source object are arranged is viewed from a predetermined viewpoint,
If the source object is included in the field of view, a mask image generation unit which generates a mask image of the reference and to shape the light source object were cut from view entirely and the viewpoint,
When the light source object is included in the field of view , a calculation unit that calculates the transparency for setting the mask image based on the arrangement state of the light source object with reference to the center of the field of view,
Each object that is placed within the field of view to generate a projection image obtained by projection transformation, when the light source object is included within the field of view, by synthesizing the corresponding mask image in which the projected image and the transparency is set, the light source An image drawing unit that draws a field-of-view image with reduced brightness, excluding objects ,
An image generation apparatus characterized by that.
請求項2に記載された画像生成装置であって、
前記マスク画像生成部は、投影に用いるスクリーン画面と同じ大きさで黒色の矩形形状から当該光源オブジェクトを投影した分が切り取られた形状のマスク画像を生成
前記算定部は、当該光源オブジェクトの配置が視界の中心に近いほど透明度を低く算定し、逆に、当該光源オブジェクトの配置が視界の中心から遠いほど透明度を高く算定し、
前記画像描画部は、視界内に配置されている各オブジェクトを当該スクリーン画面に投影変換した投影画像と、算定された透明度が設定された黒色のマスク画像とを合成して、当該光源オブジェクトを除き、全体を暗くした視界画像を描画する、
ことを特徴とする画像生成装置。
An image generating apparatus according to claim 2,
The mask image generation unit generates a mask image of the same amount corresponding to the project the light objects from the rectangular shape of the black in size were cut shape as screen display used for the projection,
The calculation unit calculates the transparency as the arrangement of the light source object is closer to the center of the field of view, and conversely calculates the transparency as the arrangement of the light source object is far from the center of the field of view,
The image drawing unit combines a projection image obtained by projecting each object arranged in the field of view onto the screen screen and a black mask image set with the calculated transparency, and removes the light source object. , Draw a field-of-view image with the entire darkness,
An image generation apparatus characterized by that.
請求項2又は3に記載された画像生成装置であって、
前記算定部は、視点から光源オブジェクトへの方向と視線方向とのなす角に基づいて透明度を算定する、
ことを特徴とする画像生成装置。
The image generation device according to claim 2 or 3,
The calculation unit calculates transparency based on an angle formed by a direction from a viewpoint to a light source object and a line-of-sight direction.
An image generation apparatus characterized by that.
請求項4に記載された画像生成装置であって、
前記算定部は、光源オブジェクトが他のオブジェクトにより遮蔽されている場合に、遮蔽された割合を示す遮蔽割合に基づいて、算定した透明度を補正する、
ことを特徴とする画像生成装置。
The image generation apparatus according to claim 4,
The calculation unit corrects the calculated transparency based on a blocking ratio indicating a blocking ratio when the light source object is blocked by another object.
An image generation apparatus characterized by that.
請求項2乃至5の何れか1項に記載された画像生成装置であって、
視界内に光源オブジェクトが配置されている状態の経過時間を計時する計時部を更に備え、
前記算定部は、計時される当該経過時間が増えるにつれて、透明度を順次増加させる、
ことを特徴とする画像生成装置。
The image generation device according to any one of claims 2 to 5,
It further comprises a timekeeping unit that times the elapsed time when the light source object is arranged in the field of view,
The calculation unit sequentially increases the transparency as the elapsed time counted increases.
An image generation apparatus characterized by that.
調整画像生成部、算定部、及び、画像描画部を有しており、光源オブジェクトを含む複数のオブジェクトが配置された仮想空間を、所定の視点から眺めた視界画像を生成する画像生成装置における画像生成方法であって、
前記調整画像生成部が、光源オブジェクトが視界内に含まれる場合に、当該光源オブジェクトが切り取られた形状の調整画像を生成する調整画像生成ステップと、
前記算定部が、光源オブジェクトが視界内に含まれる場合に、当該調整画像により低く調整させる明度を、視界の中心を基準とした当該光源オブジェクトの配置状況に基づいて算定する算定ステップと、
前記画像描画部が、視界内に配置されている各オブジェクトの投影画像を生成し、光源オブジェクトが視界内に含まれる場合に、当該投影画像と明度が調整された当該調整画像を合成して、当該光源オブジェクトを除き、明度を落とした視界画像を描画する画像描画ステップと、を備える、
ことを特徴とする画像生成方法。
An image in an image generation device that has an adjustment image generation unit, a calculation unit, and an image drawing unit, and generates a view field image in which a virtual space in which a plurality of objects including a light source object are arranged is viewed from a predetermined viewpoint A generation method,
An adjustment image generation step for generating an adjustment image of a shape in which the light source object is cut out when the adjustment image generation unit is included in the field of view ;
A calculation step in which the calculation unit calculates the brightness to be adjusted to be lower by the adjustment image when the light source object is included in the field of view based on the arrangement state of the light source object based on the center of the field of view;
The image rendering unit generates a projected image of each object is positioned within the field of view, when the light source object is included within the field of view, by synthesizing the corresponding adjusted image to which the projected image and the brightness is adjusted An image drawing step for drawing a field-of-view image with reduced brightness, excluding the light source object ,
An image generation method characterized by the above.
コンピュータを、
光源オブジェクトが視界内に含まれる場合に、当該光源オブジェクトが切り取られた形状の調整画像を生成する調整画像生成部、
光源オブジェクトが視界内に含まれる場合に、当該調整画像により低く調整させる明度を、視界の中心を基準とした当該光源オブジェクトの配置状況に基づいて算定する算定部、
視界内に配置されている各オブジェクトの投影画像を生成し、光源オブジェクトが視界内に含まれる場合に、当該投影画像と明度が調整された当該調整画像を合成して、当該光源オブジェクトを除き、明度を落とした視界画像を描画する画像描画部、
として機能させることを特徴とするプログラム。
Computer
An adjustment image generation unit that generates an adjustment image of a shape in which the light source object is cut out when the light source object is included in the field of view ;
When the light source object is included in the field of view , a calculation unit that calculates the brightness to be adjusted lower by the adjustment image based on the arrangement state of the light source object with respect to the center of the field of view,
Generating a projection image of each object is positioned within the field of view, when the light source object is included within the field of view, by synthesizing the corresponding adjusted image to which the projected image and the brightness is adjusted, except for the light source object , An image drawing unit that draws a field of view image with reduced brightness ,
A program characterized by functioning as
JP2008240884A 2008-09-19 2008-09-19 Image generating apparatus, image generating method, and program Active JP4756064B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008240884A JP4756064B2 (en) 2008-09-19 2008-09-19 Image generating apparatus, image generating method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008240884A JP4756064B2 (en) 2008-09-19 2008-09-19 Image generating apparatus, image generating method, and program

Publications (2)

Publication Number Publication Date
JP2010073005A JP2010073005A (en) 2010-04-02
JP4756064B2 true JP4756064B2 (en) 2011-08-24

Family

ID=42204706

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008240884A Active JP4756064B2 (en) 2008-09-19 2008-09-19 Image generating apparatus, image generating method, and program

Country Status (1)

Country Link
JP (1) JP4756064B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0927044A (en) * 1995-07-07 1997-01-28 Namco Ltd Simulation device and image composting method
JP2002092633A (en) * 2000-09-20 2002-03-29 Namco Ltd Game system and information storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0927044A (en) * 1995-07-07 1997-01-28 Namco Ltd Simulation device and image composting method
JP2002092633A (en) * 2000-09-20 2002-03-29 Namco Ltd Game system and information storage medium

Also Published As

Publication number Publication date
JP2010073005A (en) 2010-04-02

Similar Documents

Publication Publication Date Title
JP4833674B2 (en) GAME DEVICE, GAME DEVICE CONTROL METHOD, AND PROGRAM
JP4761528B2 (en) GAME PROGRAM AND GAME DEVICE
US20100085355A1 (en) Image Generating Apparatus, Image Processing Method, Information Recording Medium, and Program
JP3926828B1 (en) GAME DEVICE, GAME DEVICE CONTROL METHOD, AND PROGRAM
US9697642B2 (en) Image processing device and image processing method
US7479961B2 (en) Program, information storage medium, and image generation system
JPWO2008126192A1 (en) Portable terminal device and drawing processing method
US8319786B2 (en) Image processing device, control method for image processing device and information recording medium
WO2020037754A1 (en) Method and device for enhancing image quality of video
JP4816928B2 (en) Image generation program, computer-readable recording medium storing the program, image processing apparatus, and image processing method
JP3639286B2 (en) GAME PROGRAM AND GAME DEVICE
JP2008027050A (en) Image generating device, image generating method, and program
JP4756064B2 (en) Image generating apparatus, image generating method, and program
JP2006252426A (en) Program, information storage medium, and image generation system
JP2009140135A (en) Game program, recording medium with the game program recorded thereon, and computer
JP4199817B1 (en) Image generating apparatus, image generating method, and program
CN115501590A (en) Display method, display device, electronic equipment and storage medium
JP2005275795A (en) Program, information storage medium and image generation system
JP4086002B2 (en) Program, image processing apparatus and method, and recording medium
JP3686928B2 (en) GAME DEVICE, PROGRAM, AND IMAGE DISPLAY METHOD
WO2005013203A1 (en) Image processor, image processing method and information storage medium
JP2006277488A (en) Program, information storage medium and image generation system
CN114733197A (en) Information processing method and device in game, readable storage medium and electronic equipment
KR102214439B1 (en) Image processing Method and apparatus for low-power mode
CN114733196A (en) Game scene control method, game scene control device, medium, and electronic device

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110301

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110428

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

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

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

Free format text: PAYMENT UNTIL: 20140603

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 4756064

Country of ref document: JP

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

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