JP2004287897A - Image processor, image processing method and program - Google Patents

Image processor, image processing method and program Download PDF

Info

Publication number
JP2004287897A
JP2004287897A JP2003079708A JP2003079708A JP2004287897A JP 2004287897 A JP2004287897 A JP 2004287897A JP 2003079708 A JP2003079708 A JP 2003079708A JP 2003079708 A JP2003079708 A JP 2003079708A JP 2004287897 A JP2004287897 A JP 2004287897A
Authority
JP
Japan
Prior art keywords
area
virtual
representing
dimensional space
space
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.)
Granted
Application number
JP2003079708A
Other languages
Japanese (ja)
Other versions
JP3766394B2 (en
Inventor
Isato Fukushima
勇人 福島
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 Computer Entertainment Co Ltd
Konami Computer Entertainment Tokyo Inc
Original Assignee
Konami Computer Entertainment Co Ltd
Konami Computer Entertainment Tokyo 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 Konami Computer Entertainment Co Ltd, Konami Computer Entertainment Tokyo Inc filed Critical Konami Computer Entertainment Co Ltd
Priority to JP2003079708A priority Critical patent/JP3766394B2/en
Publication of JP2004287897A publication Critical patent/JP2004287897A/en
Application granted granted Critical
Publication of JP3766394B2 publication Critical patent/JP3766394B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processor capable of suitably displaying an object arranged inside a space area of a light volume or the like. <P>SOLUTION: The image processor comprises: a visual field image storage means for storing a visual field image indicating the situation of viewing a virtual three-dimensional space where the object is arranged from a given viewpoint; and a lightness elevating means for increasing the lightness of a lightness elevating area which is an area for which the area indicating the part of the object 44 positioned inside a shadow volume 42 set in the virtual three-dimensional space on the basis of a light source position and the position of the object 44 is excluded from the area indicating the part of the object 44 positioned inside the light volume 40 set in the virtual three-dimensional space corresponding to the light source position of the visual field image. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は画像処理装置、画像処理方法及びプログラムに関し、特にステンシルバッファを用いたライトボリューム等の光源に関連した空間領域内に位置するオブジェクトを好適に表示するための技術に関する。
【0002】
【従来の技術】
仮想3次元空間にオブジェクト、光源及び視点を設定し、該視点から仮想3次元空間を見た様子を表す視野画像をモニタに表示する画像処理装置が知られている。こうした画像処理装置では、通常、光源によってオブジェクトが照らされた様子が視野画像に表される。
【0003】
しかしながら、通常の光源処理では、スポットライトや木漏れ日のように、ある限られた空間領域内に位置するオブジェクトが特に明るく照らされる様子を表現することが困難である。この点、ボリュームライトと呼ばれる技術では、スポットライトや木漏れ日等、光線の通る範囲を表現するライトボリュームを用意しておき、この中に位置するオブジェクトについて、その部分(ライトボリューム内に位置する部分)の明度を上げるようにしている。
【0004】
図7は、従来のボリュームライト技術を説明する図である。同図に示すように、この技術では仮想3次元空間に、オブジェクト100に加えて不可視のライトボリューム102が配置されている。そして、オブジェクト100のうち、ライトボリューム102内に位置する部分104については、明度を上げた状態で表示されるようになっている。
【0005】
【発明が解決しようとする課題】
しかしながら、従来のボリュームライト技術では、光線方向を考慮しておらず、ボリュームライトの上流側に配置されたポリゴンによって光が遮られるべき場合であっても、下流側に配置されたポリゴンに光が当たっているかのような映像表現がされてしまう場合があった。例えば、図8に示すように、光が当たっているオブジェクトを裏面側から見た様子を表示しようとすると、従来のボリュームライト技術を用いたのでは、ライトボリューム102内に位置しているオブジェクト100の部分106は、図9に示すように、そこが光源側から見て裏面側であるにもかかわらず、明度を上げた状態で表示されてしまうという不具合があった。
【0006】
本発明は上記課題に鑑みてなされたものであって、その目的は、ライトボリューム等の空間領域内に配置されたオブジェクトを好適に表示することができる画像処理装置、画像処理方法及びプログラムを提供することにある。
【0007】
【課題を解決するための手段】
上記課題を解決するために、本発明に係る画像処理装置は、オブジェクトが配置された仮想3次元空間を所与の視点から見た様子を表す視野画像を記憶する視野画像記憶手段と、前記視野画像のうち、光源位置に対応して前記仮想3次元空間に設定された第1空間領域内に位置する前記オブジェクトの部分を表す領域から、前記光源位置及び前記オブジェクトの位置に基づいて前記仮想3次元空間に設定された第2空間領域内に位置する前記オブジェクトの部分を表す領域を除いた領域である、明度上昇領域の明度を上げる明度上昇手段と、を含むことを特徴とする。
【0008】
また、本発明に係る画像処理方法は、オブジェクトが配置された仮想3次元空間を所与の視点から見た様子を表す視野画像を視野画像記憶手段に記憶させるステップと、前記視野画像のうち、光源位置に対応して前記仮想3次元空間に設定された第1空間領域内に位置する前記オブジェクトの部分を表す領域から、前記光源位置及び前記オブジェクトの位置に基づいて前記仮想3次元空間に設定された第2空間領域内に位置する前記オブジェクトの部分を表す領域を除いた領域である、明度上昇領域の明度を上げる明度上昇ステップと、を含むことを特徴とする。
【0009】
また、本発明に係るプログラムは、オブジェクトが配置された仮想3次元空間を所与の視点から見た様子を表す視野画像を記憶する視野画像記憶手段、及び前記視野画像のうち、光源位置に対応して前記仮想3次元空間に設定された第1空間領域内に位置する前記オブジェクトの部分を表す領域から、前記光源位置及び前記オブジェクトの位置に基づいて前記仮想3次元空間に設定された第2空間領域内に位置する前記オブジェクトの部分を表す領域を除いた領域である、明度上昇領域の明度を上げる明度上昇手段としてコンピュータを機能させるためのプログラムである。
【0010】
本発明では第1及び第2空間領域が仮想3次元空間に設定される。第1空間領域は例えばライトボリュームであり、仮想3次元空間に設けられる光源位置に対応している。また、第2空間領域は例えばシャドウボリュームであり、光源位置及びオブジェクトに基づいて仮想3次元空間に設定される。
【0011】
本発明によれば、視野画像のうち明度上昇領域が明度を上げた状態で表示される。この明度上昇領域は、第1空間領域内に位置するオブジェクトの部分を表す領域から、第2空間領域内に位置するオブジェクトの部分を表す領域を除いた領域である。本発明によれば、仮想3次元空間に光源位置及びオブジェクト位置に関連して第2空間領域が設定され、該第2空間領域内に位置するオブジェクトの部分を表す領域が明度上昇領域から除かれるため、ライトボリューム等の空間領域内に配置されたオブジェクトを好適に表示することができる。
【0012】
なお、前記明度上昇手段は、前記視野画像を構成する各画素に対応づけて数値情報を記憶する数値情報記憶手段と、前記視野画像記憶手段に記憶された前記視野画像のうち前記第1空間領域内に位置する前記オブジェクトの部分を表す領域を構成する画素に対応づけて前記数値情報記憶手段に記憶される数値情報を変更する第1数値情報変更手段と、前記視野画像記憶手段に記憶された前記視野画像のうち前記第2空間領域内に位置する前記オブジェクトの部分を表す領域を構成する画素に対応づけて前記数値情報記憶手段に記憶される数値情報を変更する第2数値情報変更手段と、前記数値情報記憶手段に記憶される数値情報に基づいて前記明度上昇領域を判断する明度上昇領域判断手段と、を含んでもよい。
【0013】
また、本発明に係る画像処理装置は、複数オブジェクトが配置された仮想3次元空間を所与の視点から見た様子を表す視野画像を記憶する視野画像記憶手段と、前記視野画像のうち、光源位置に対応して前記仮想3次元空間に設定された第1空間領域内に位置する前記複数オブジェクトの部分を表す領域から、前記光源位置及び前記複数オブジェクトの位置に関して前記仮想3次元空間に設定された第1空間領域内に位置する前記複数オブジェクトの部分を表す領域を除いた領域である、明度上昇領域の明度を上げる明度上昇手段と、を含むことを特徴とする。
【0014】
また、本発明に係る画像処理方法は、複数オブジェクトが配置された仮想3次元空間を所与の視点から見た様子を表す視野画像を視野画像記憶手段に記憶させる視野画像記憶ステップと、前記視野画像のうち、光源位置に対応して前記仮想3次元空間に設定された第1空間領域内に位置する前記複数オブジェクトの部分を表す領域から、前記光源位置及び前記複数オブジェクトの位置に基づいて前記仮想3次元空間に設定された第2空間領域内に位置する前記複数オブジェクトの部分を表す領域を除いた領域である、明度上昇領域の明度を上げる明度上昇ステップと、を含むことを特徴とする。
【0015】
また、本発明に係るプログラムは、複数オブジェクトが配置された仮想3次元空間を所与の視点から見た様子を表す視野画像を記憶する視野画像記憶手段、及び前記視野画像のうち、光源位置に対応して前記仮想3次元空間に設定された第1空間領域内に位置する前記複数オブジェクトの部分を表す前記視野画像の領域から、前記光源位置及び前記複数オブジェクトの位置に基づいて前記仮想3次元空間に設定された第2空間領域内に位置する前記複数オブジェクトの部分を表す領域を除いた領域である、明度上昇領域の明度を上げる明度上昇手段としてコンピュータを機能させるためのプログラムである。
【0016】
本発明では第1及び第2空間領域が仮想3次元空間に設定される。第1空間領域は例えばライトボリュームであり、仮想3次元空間に設けられる光源位置に対応している。また、第2空間領域は例えばシャドウボリュームであり、光源位置及び各オブジェクトに基づいて仮想3次元空間に設定される。
【0017】
本発明によれば、視野画像のうち明度上昇領域が明度を上げた状態で表示される。この明度上昇領域は、第1空間領域内に位置するオブジェクトの部分を表す領域から、第2空間領域内に位置するオブジェクトの部分を表す領域を除いた領域である。本発明によれば、仮想3次元空間に光源位置及びオブジェクト位置に関連した第2空間領域が設定され、該第2空間領域内に位置するオブジェクトの部分を表す領域が明度上昇領域から除かれるため、ライトボリューム等の空間領域内に配置されたオブジェクトを好適に表示することができる。
【0018】
【発明の実施の形態】
以下、本発明の一実施形態について図面に基づき詳細に説明する。
【0019】
図1は、本発明の実施形態に係るゲーム装置(画像処理装置)の構成を示す図である。同図に示すゲーム装置10は、本発明に係る画像処理装置の一実施形態であり、モニタ18及びスピーカ22に接続された家庭用ゲーム機11に、情報記憶媒体たるDVD−ROM25が装着されることにより構成される。ここでは、ゲームプログラムを家庭用ゲーム機11に供給するためにDVD−ROM25を用いるが、CD−ROMやROMカード等、他のあらゆる情報記憶媒体を用いることができる。また、インターネット等の通信ネットワークを介して遠隔地からゲームプログラムやゲームデータを家庭用ゲーム機11に供給することもできる。
【0020】
家庭用ゲーム機11は、公知のコンピュータゲームシステムであって、マイクロプロセッサ14、画像処理部16、主記憶26及び入出力処理部30がバス12により相互データ通信可能に接続され、さらに入出力処理部30には、コントローラ32、音声処理部20及びDVD−ROM再生部24が接続されている。コントローラ32以外の家庭用ゲーム機11の各構成要素は筐体内に収容されている。モニタ18には例えば家庭用のテレビ受像機等が用いられ、スピーカ22には例えばその内蔵スピーカ等が用いられる。
【0021】
マイクロプロセッサ14は、図示しないROMに格納されるオペレーティングシステムやDVD−ROM25から読み出されるゲームプログラムに基づいて、家庭用ゲーム機11の各部を制御する。バス12はアドレス及びデータを家庭用ゲーム機11の各部でやり取りするためのものである。また、主記憶26は、RAMを含んで構成されており、DVD−ROM25から読み取られたゲームプログラム(ゲームデータを含む)が必要に応じて読み書きされたり、各種データがマイクロプロセッサ14の作業用に読み書きされたりする。画像処理部16はVRAMを含んで構成されており、マイクロプロセッサ14から送られる画像データを受け取ってVRAM上にゲーム画面を描画するとともに、その内容をビデオ信号に変換して所定タイミングでモニタ18に出力する。
【0022】
入出力処理部30は、コントローラ32、音声処理部20及びDVD−ROM再生部24とマイクロプロセッサ14との間のデータ通信を中継するためのインターフェースである。コントローラ32は、プレイヤがゲーム操作をするための入力手段である。入出力処理部30は一定周期(例えば1/60秒毎)でコントローラ32の各種ボタンの操作状態を取得し、それを表す操作信号を、バス12を介してマイクロプロセッサ14に渡す。マイクロプロセッサ14は、その操作信号に基づいてプレイヤのゲーム操作を判定する。音声処理部20はサウンドバッファを含んで構成されており、マイクロプロセッサ14からの指示に従い、DVD−ROM25から読み出されてサウンドバッファに記憶される音楽やゲーム効果音等のデータを再生してスピーカ22から出力する。DVD−ROM再生部24は、マイクロプロセッサ14からの指示に従ってDVD−ROM25に記録されたゲームプログラムを読み取る。
【0023】
以下、かかる構成を有する画像処理装置を用いて、改善されたライトボリューム処理を実行する手順について説明する。
【0024】
図2は、仮想3次元空間の一部を示す斜視図である。同図に示すように、この空間にはオブジェクト44と、不可視のライトボリューム40と、不可視のシャドウボリューム42と、が配置されている。また、仮想3次元空間には光源位置及び光の照射方向が仮想的に設定されており、ライトボリューム40は、光の照射方向に延伸するように設定されている。また、シャドウボリューム42は、光源から発せられる光をオブジェクト44が遮ることによって形成される影領域(空間領域)を区画するものであり、オブジェクト44の光源側の面を端面とし、光の照射方向に延伸するように設定されている。なお、これらライトボリューム40及びシャドウボリューム42は、例えば各種の公知技術を用いて容易に設定することができる。そして、シャドウボリューム42の端面は、オブジェクト44それ自体の側面部分に一致している必要は必ずしもなく、オブジェクト44に関連してあらかじめ用意され、オブジェクト44に従動するシャドウボリューム用オブジェクトの側面部分に一致させるようにしてもよい。
【0025】
本実施形態に係る画像処理装置では、仮想3次元空間に視点が設定されており、同視点から仮想3次元空間を見た様子を示す画像、すなわち視野画像が画像処理部16に記憶され、それがモニタ18に表示出力されるようになっている。このとき、可視のオブジェクト44はモニタ18に表示され、不可視のライトボリューム40及びシャドウボリューム42は表示されないない。代わりに、ライトボリューム40及びシャドウボリューム42とオブジェクト44との関係に応じて設定された画像領域に、明度変更処理が施されるようになっている。すなわち、本実施形態では、図3に示す、視野画像に対応した数値データ(ステンシルバッファ)が画像処理部16に記憶されるようになっており、このデータにより視野画像を構成する各画素に対応づけて数値情報が記憶されるようになっている。そして、本実施形態では、同データにおいて、ライトボリューム40内にオブジェクト44が位置している部分を表す画面領域を構成する画素については、それらの画素に対応づけて「+1」を記憶するようにしている。また、シャドウボリューム42内にオブジェクト44が位置している部分を表す画面領域を構成する画素については、それらの画素に対応づけられた数値に「−1」を加算するようにしている。
【0026】
このため、オブジェクト44のうちライトボリューム40内の部分であってシャドウボリューム42外の部分を表す領域には「1」が対応づけられ、オブジェクト44のうちライトボリューム40内の部分であってシャドウボリューム42内の部分を表す領域には「0」が対応づけられ、オブジェクト44のうちライトボリューム外の部分を表す部分であってシャドウボリューム42内の部分を表す領域には「−1」が対応づけられる。また、その他の領域には「0」が対応づけられる。以上のようにして視野画像に対応した数値データを生成すると、本画像処理装置では、視野画像のうち、前記数値データにおいて零よりも大きな値が対応づけられた画素の明度を上げるようにしている。明度を上げる場合、元々視野画像において各画素に対応づけて記憶されていた色情報に基づき、それを所定割合だけ変化させたり、一定量を足したりすることにより明度変更をすることができる。こうして、本実施形態によれば、図4に示す視野画像の表示を得ることができ、光線の突き抜けなどの不具合を防止することができる。
【0027】
図5は、本実施形態に係る画像処理装置の機能ブロック図である。同図に示すように、本実施形態に係る画像処理装置は、機能的には表示部52、視野画像記憶部54、数値情報記憶部56、描画部58、環境情報記憶部60及び環境処理部62を含んで構成されている。これらの機能はDVD−ROM25に記憶されたプログラムを家庭用ゲーム機11が実行することにより実現される。
【0028】
ここで、視野画像記憶部54は、画像処理部16に備えられたVRAMを含んで構成されるものであり、主記憶26に構築される仮想3次元空間を、同空間に設定された所与の視点から見た様子を表す視野画像を記憶するものである。この視野画像は、同画像を構成する画素毎に色情報を記憶するものである。表示部52は、視野画像記憶部54に記憶された視野画像を表示するものであり、ここではモニタ18を含んで構成される。また、数値情報記憶部56は、画像処理部16に備えられたVRAM(ステンシルバッファ)を含んで構成されるものであり、前記視野画像を構成する画素毎に数値情報を記憶するものである。ここでは、各画素に対応する数値情報には、その画素がオブジェクト44におけるライトボリューム40内に位置する部分を表すものであるか、シャドウボリューム42内に位置する部分を表すものであるか、に応じた値が格納されることになる。
【0029】
具体的には、ライトボリューム40内でありシャドウボリューム42外である部分を表す場合には「+1」が格納され、ライトボリューム40内でありシャドウボリューム42内である部分を表す場合には「0」が格納され、ライトボリューム40外でありシャドウボリューム42外である部分を表す場合には「0」が格納され、ライトボリューム外でありシャドウボリューム内である部分を表す場合には「−1」が格納される。
【0030】
環境処理部62は、仮想3次元空間に配置されたオブジェクトの位置及び姿勢、視点位置、視線方向、光源位置、光の色及び強さ等を含む環境情報をリアルタイム(例えば1/60秒毎)に算出するものであり、マイクロプロセッサ14を中心に構成される。同環境処理部62により算出される環境情報は、主記憶26を含んで構成される環境情報記憶部60に記憶される。
【0031】
描画部58は、環境情報記憶部60に記憶された環境情報に基づき、仮想3次元空間を前記視点位置から前記視線方向を見た様子を示す視野画像を生成し、それを視野画像記憶部54に格納する。また、描画部58は、視野画像記憶部54に記憶される視野画像のうち、光源位置に対応して仮想3次元空間に設定されたライトボリューム40内に位置するオブジェクト44の部分を表す領域(符号50参照)から、光源位置及びオブジェクト44の位置に基づいて仮想3次元空間に設定されたシャドウボリューム42内に位置するオブジェクト44の部分を表す領域(符号46参照)を除いた領域である、明度上昇領域の明度を上げるよう、前記視野画像記憶部54の記憶内容を更新する。
【0032】
具体的には、描画部58は、視野画像記憶部54に記憶された視野画像のうちライトボリューム40内に位置するオブジェクト44の部分を表す領域を構成する画素に対応づけて数値情報記憶部56に記憶される数値情報を1だけ増加するよう変更する。また、視野画像記憶部54に記憶された視野画像のうちシャドウボリューム42内に位置するオブジェクト44の部分を表す領域を構成する画素に対応づけて数値情報記憶部56に記憶される数値情報を1だけ減少するよう変更する。そして、数値情報記憶部56に記憶される数値情報に基づいて前記明度上昇領域を判断し、視野画像記憶部54に記憶された視野画像のうち該領域の明度を上げる。具体的には、数値情報記憶部56において0よりも大きな数値情報に対応づけられている画素については、その画素に対応づけて視野画像記憶部54に記憶されている色情報を明度が上昇するよう変更する。
【0033】
図6は、本実施形態に係る画像処理装置による画像処理を示すフロー図である。同図に示す処理は、DVD−ROM25に記憶されたプログラムに従って所定時間毎(例えば1/60秒毎)に実行されるものである。
【0034】
この処理では、まずDVD−ROM25から読み出されるプログラムに基づき、環境処理部62が環境処理を行う(S101)。環境処理では、仮想3次元空間のすべての静的オブジェクト及び動的オブジェクトの位置及び姿勢が演算される。静的オブジェクトは道路オブジェクト、山オブジェクト、草原オブジェクト等のように時間が経過しても仮想3次元空間における位置及び姿勢を変えないものである。これに対して動的オブジェクトはプレイヤの操作対象であるプレイヤキャラクタや自動車オブジェクト等のように時間が経過するにつれて位置及び姿勢を変えるものである。動的オブジェクトの位置及び姿勢は、コントローラ32から入力される操作信号に従って変化する。また、環境処理(S101)では視点、画角、視野範囲(視線方向及び画角によって算出される)も計算される。そして、以降の処理では、視野範囲内に位置するオブジェクトだけをピックアップして、それらを以降のゲーム処理の対象としている。
【0035】
次に、描画部58はジオメトリ処理を行う(S102)。ジオメトリ処理ではワールド座標系から視点座標系(視点を原点とし、視点前方をZ方向、水平方向をX方向、垂直方法をY方向とする座標系)への座標変換を行う。また、オブジェクトを構成する各ポリゴンの頂点の色情報が光源情報(光源の色及び位置)に基づいて修正される。さらに、クリッピング処理も行われる。さらに、描画部58は、視野範囲に属する各ポリゴンの頂点座標、頂点色情報、テクスチャ座標及びアルファ値に基づいて視野画像を形成し、それを視野画像記憶部54に格納する(S103)。
【0036】
次に、描画部58は、数値情報記憶部56を初期化して、視野画像を構成する全画素に対応づけて零を記憶させる。そして、特にライトボリューム40内のオブジェクト部分を表す画素については、それらの画素に対応づけて数値情報記憶部56に記憶されている数値情報(0)に1を加算する(S104)。さらに、描画部58は、シャドウボリューム42内のオブジェクト部分を表す画素については、それらの画素に対応づけて数値情報記憶部56に記憶されている数値情報に−1を加算する(S105)。その後、描画部58は、数値情報記憶部56を参照して、零よりも大きな数値が対応づけられた画素を判断し、その画素に対応づけて視野画像記憶部54に記憶されている色情報を、明度を上げるよう変更する(S106)。こうして色情報が変更された視野画像は所定タイミングにて視野画像記憶部54から読み出され、表示部52により表示される。
【0037】
以上説明した画像処理によれば、ライトボリューム40内に位置するオブジェクト部分のうち光源位置から見て裏面側に位置する部分が明るく表示されてしまう不具合を防止することができる。同様に、ライトボリューム40内に位置するオブジェクト部分のうち光源側に配置された他のオブジェクトによって遮光されている筈の部分が明るく表示されてしまう不具合も防止することができる。
【0038】
なお、本発明は上記実施形態に限定されるものではない。
【0039】
たとえば、以上の説明では、仮想3次元空間に可視のオブジェクトを1つだけ配置することとしたが、複数のオブジェクトを配置してもよい。この場合は、全部のオブジェクトに関してシャドウボリュームを設定してもよいし、一部のオブジェクト(例えばライトボリューム内に位置するオブジェクトのうちもっとも光源に近いもの)に関してのみシャドウボリュームを設定してもよい。また、ライトボリュームも複数設定してよい。
【0040】
【発明の効果】
以上説明したように、本発明によれば、ライトボリューム等の空間領域内に配置されたオブジェクトを好適に表示することができる。
【図面の簡単な説明】
【図1】本発明の実施形態に係る画像処理装置のハードウェア構成を示す図である。
【図2】仮想3次元空間に配置されたオブジェクト、シャドウボリューム及びライトボリュームを示す図である。
【図3】数値情報記憶部(ステンシルバッファ)の概念図である。
【図4】本発明の実施形態に係る画像処理装置においてモニタに表示される視野画像を示す図である。
【図5】本発明の実施形態に係る画像処理装置の機能ブロック図である。
【図6】本発明の実施形態に係る画像処理装置による画像表示処理を示すフロー図である。
【図7】従来のボリュームライト技術を説明する図である。
【図8】従来のボリュームライト技術の問題点を説明する図である。
【図9】従来のボリュームライト技術によってモニタに表示される視野画像の一例を示す図である。
【符号の説明】
10 ゲーム装置、11 家庭用ゲーム機、12 バス、14 マイクロプロセッサ、16 画像処理部、18 モニタ、20 音声処理部、22 スピーカ、24 DVD−ROM再生部、25 DVD−ROM、26 主記憶、30 入出力処理部、40,102 ライトボリューム、42 シャドウボリューム、44,100 オブジェクト、46 シャドウボリューム内領域、48 外領域、50、ライトボリューム内領域、52 表示部、54 視野画像記憶部、56数値情報記憶部、58 描画部、60 環境情報記憶部、62 環境処理部。
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an image processing apparatus, an image processing method, and a program, and more particularly, to a technique for suitably displaying an object located in a spatial region related to a light source such as a light volume using a stencil buffer.
[0002]
[Prior art]
2. Description of the Related Art There is known an image processing apparatus that sets an object, a light source, and a viewpoint in a virtual three-dimensional space, and displays a visual field image showing a state of viewing the virtual three-dimensional space from the viewpoint on a monitor. In such an image processing apparatus, a state in which an object is illuminated by a light source is usually represented in a visual field image.
[0003]
However, in normal light source processing, it is difficult to express a state in which an object located in a certain limited space area is particularly brightly illuminated, such as a spotlight or a sunbeams. In this regard, in a technique called volume light, a light volume that represents a range through which light rays pass, such as a spotlight or a sunbeam, is prepared, and an object located therein is located at that portion (a portion located within the light volume). To increase the brightness.
[0004]
FIG. 7 is a diagram illustrating a conventional volume write technique. As shown in the figure, in this technology, an invisible light volume 102 is arranged in addition to an object 100 in a virtual three-dimensional space. Then, a portion 104 of the object 100 located within the light volume 102 is displayed with the brightness increased.
[0005]
[Problems to be solved by the invention]
However, in the conventional volume light technology, the light direction is not considered, and even if the light should be blocked by the polygon arranged on the upstream side of the volume light, the light is not reflected on the polygon arranged on the downstream side. There was a case where a video expression as if hitting was given. For example, as shown in FIG. 8, when an object illuminated by light is viewed from the back side, if the conventional volume light technique is used, the object 100 located in the light volume 102 is not displayed. As shown in FIG. 9, there is a problem in that the portion 106 is displayed in a state in which the brightness is increased even though it is on the back side when viewed from the light source side.
[0006]
The present invention has been made in view of the above problems, and has as its object to provide an image processing apparatus, an image processing method, and a program capable of suitably displaying an object arranged in a spatial area such as a light volume. Is to do.
[0007]
[Means for Solving the Problems]
In order to solve the above-described problem, an image processing apparatus according to the present invention includes: a visual field image storage unit configured to store a visual field image representing a state in which a virtual three-dimensional space in which an object is arranged is viewed from a given viewpoint; From an area of the image that represents the portion of the object located in the first space area set in the virtual three-dimensional space corresponding to the light source position, the virtual 3D based on the light source position and the position of the object And a brightness increasing unit for increasing the brightness of the brightness increasing region, which is a region excluding a region representing the portion of the object located in the second space region set in the dimensional space.
[0008]
Further, the image processing method according to the present invention includes a step of storing, in a visual field image storage means, a visual field image representing a state in which a virtual three-dimensional space in which objects are arranged is viewed from a given viewpoint; From the area representing the part of the object located in the first space area set in the virtual three-dimensional space corresponding to the light source position, set in the virtual three-dimensional space based on the light source position and the position of the object A lightness increasing step of increasing the lightness of the lightness increasing area, which is an area excluding the area representing the portion of the object located in the second space area.
[0009]
Further, the program according to the present invention includes a visual field image storage unit that stores a visual field image representing a state in which a virtual three-dimensional space in which objects are arranged is viewed from a given viewpoint, and a visual field image corresponding to a light source position in the visual field image. Then, based on the light source position and the position of the object, a second region set in the virtual three-dimensional space from a region representing the portion of the object located in the first space region set in the virtual three-dimensional space A program for causing a computer to function as brightness increasing means for increasing the brightness of a brightness increasing area, which is an area excluding an area representing a portion of the object located in a spatial area.
[0010]
In the present invention, the first and second space regions are set in a virtual three-dimensional space. The first space area is, for example, a light volume and corresponds to a light source position provided in the virtual three-dimensional space. The second space area is, for example, a shadow volume, and is set in a virtual three-dimensional space based on a light source position and an object.
[0011]
According to the present invention, the brightness increasing area in the visual field image is displayed with the brightness increased. The brightness increase area is an area obtained by removing the area representing the part of the object located in the second space area from the area representing the part of the object located in the first space area. According to the present invention, the second space area is set in the virtual three-dimensional space in relation to the light source position and the object position, and the area representing the part of the object located in the second space area is excluded from the brightness increasing area. Therefore, it is possible to suitably display an object arranged in a spatial area such as a light volume.
[0012]
The lightness increasing means includes a numerical information storage means for storing numerical information in association with each pixel constituting the visual field image, and the first spatial area in the visual field image stored in the visual field image storing means. First numerical information changing means for changing numerical information stored in the numerical information storage means in association with pixels constituting an area representing a portion of the object located in the image processing apparatus; Second numerical information changing means for changing numerical information stored in the numerical information storage means in association with pixels constituting an area representing a portion of the object located in the second space area in the visual field image; And a brightness-increase area determining means for determining the brightness-increase area based on the numerical information stored in the numerical information storage means.
[0013]
Further, the image processing apparatus according to the present invention includes: a visual field image storage unit configured to store a visual field image representing an appearance of a virtual three-dimensional space where a plurality of objects are arranged from a given viewpoint; From a region representing a portion of the plurality of objects located in a first space region set in the virtual three-dimensional space corresponding to a position, the light source position and the positions of the plurality of objects are set in the virtual three-dimensional space. And a brightness increasing unit for increasing the brightness of the brightness increasing area, which is an area excluding an area representing a portion of the plurality of objects located in the first space area.
[0014]
Also, the image processing method according to the present invention includes a visual field image storing step of storing a visual field image representing a state of viewing a virtual three-dimensional space in which a plurality of objects are arranged from a given viewpoint in a visual field image storage unit; Based on the light source position and the positions of the plurality of objects, from an area representing a portion of the plurality of objects located in the first space area set in the virtual three-dimensional space corresponding to the light source position, of the image, A brightness increasing step of increasing the brightness of the brightness increasing area, which is an area excluding an area representing a portion of the plurality of objects located in the second space area set in the virtual three-dimensional space. .
[0015]
Further, the program according to the present invention includes a visual field image storage unit configured to store a visual field image representing a state in which a virtual three-dimensional space in which a plurality of objects are arranged is viewed from a given viewpoint, and a light source position in the visual field image. The virtual three-dimensional based on the light source position and the positions of the plurality of objects from a region of the view image representing a portion of the plurality of objects located in a first space region correspondingly set in the virtual three-dimensional space. A program for causing a computer to function as lightness increasing means for increasing the lightness of a lightness increasing area, which is an area excluding an area representing a portion of the plurality of objects located in a second space area set in a space.
[0016]
In the present invention, the first and second space regions are set in a virtual three-dimensional space. The first space area is, for example, a light volume and corresponds to a light source position provided in the virtual three-dimensional space. The second space area is, for example, a shadow volume, and is set in a virtual three-dimensional space based on a light source position and each object.
[0017]
According to the present invention, the brightness increasing area in the visual field image is displayed with the brightness increased. The brightness increase area is an area obtained by removing the area representing the part of the object located in the second space area from the area representing the part of the object located in the first space area. According to the present invention, the second space area related to the light source position and the object position is set in the virtual three-dimensional space, and the area representing the part of the object located in the second space area is excluded from the brightness increasing area. , An object arranged in a spatial area such as a light volume can be suitably displayed.
[0018]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings.
[0019]
FIG. 1 is a diagram showing a configuration of a game device (image processing device) according to an embodiment of the present invention. A game device 10 shown in FIG. 1 is an embodiment of an image processing device according to the present invention, and a DVD-ROM 25 as an information storage medium is mounted on a home game machine 11 connected to a monitor 18 and a speaker 22. It is constituted by. Here, the DVD-ROM 25 is used to supply the game program to the consumer game machine 11, but any other information storage medium such as a CD-ROM or a ROM card can be used. In addition, a game program and game data can be supplied to the home game machine 11 from a remote place via a communication network such as the Internet.
[0020]
The consumer game machine 11 is a known computer game system, in which a microprocessor 14, an image processing unit 16, a main memory 26, and an input / output processing unit 30 are connected via a bus 12 so as to enable mutual data communication. The controller 32, the audio processing unit 20, and the DVD-ROM playback unit 24 are connected to the unit 30. Each component of the consumer game machine 11 other than the controller 32 is housed in a housing. For example, a home television receiver or the like is used as the monitor 18, and the built-in speaker or the like is used as the speaker 22, for example.
[0021]
The microprocessor 14 controls each unit of the consumer game machine 11 based on an operating system stored in a ROM (not shown) and a game program read from the DVD-ROM 25. The bus 12 is used for exchanging addresses and data between the respective parts of the consumer game machine 11. The main memory 26 is configured to include a RAM, and a game program (including game data) read from the DVD-ROM 25 is read / written as necessary, and various data is used for the operation of the microprocessor 14. Read and write. The image processing unit 16 is configured to include a VRAM, receives image data sent from the microprocessor 14, draws a game screen on the VRAM, converts the content into a video signal, and outputs the video signal to the monitor 18 at a predetermined timing. Output.
[0022]
The input / output processing unit 30 is an interface for relaying data communication between the controller 32, the audio processing unit 20, the DVD-ROM reproducing unit 24, and the microprocessor 14. The controller 32 is input means for the player to perform a game operation. The input / output processing unit 30 acquires operation states of various buttons of the controller 32 at a fixed period (for example, every 1/60 second), and passes an operation signal representing the operation state to the microprocessor 14 via the bus 12. The microprocessor 14 determines a game operation of the player based on the operation signal. The audio processing unit 20 includes a sound buffer, and reproduces data such as music and game sound effects read from the DVD-ROM 25 and stored in the sound buffer in accordance with an instruction from the microprocessor 14, and 22. The DVD-ROM playback unit 24 reads a game program recorded on the DVD-ROM 25 according to an instruction from the microprocessor 14.
[0023]
Hereinafter, a procedure for executing an improved light volume process using the image processing apparatus having the above configuration will be described.
[0024]
FIG. 2 is a perspective view showing a part of the virtual three-dimensional space. As shown in the figure, an object 44, an invisible light volume 40, and an invisible shadow volume 42 are arranged in this space. The light source position and the light irradiation direction are virtually set in the virtual three-dimensional space, and the light volume 40 is set to extend in the light irradiation direction. The shadow volume 42 defines a shadow area (spatial area) formed by blocking light emitted from the light source by the object 44. The light source side surface of the object 44 is defined as an end face, and the light irradiation direction is defined. It is set to stretch. The light volume 40 and the shadow volume 42 can be easily set using, for example, various known techniques. The end face of the shadow volume 42 does not always need to coincide with the side face of the object 44 itself, but is prepared in advance in relation to the object 44 and coincides with the side face of the shadow volume object that follows the object 44. You may make it do.
[0025]
In the image processing apparatus according to the present embodiment, a viewpoint is set in the virtual three-dimensional space, and an image showing a state of viewing the virtual three-dimensional space from the viewpoint, that is, a visual field image is stored in the image processing unit 16. Is displayed on the monitor 18. At this time, the visible object 44 is displayed on the monitor 18, and the invisible light volume 40 and shadow volume 42 are not displayed. Instead, a brightness change process is performed on an image area set according to the relationship between the light volume 40 and the shadow volume 42 and the object 44. That is, in the present embodiment, the numerical data (stencil buffer) corresponding to the visual field image shown in FIG. 3 is stored in the image processing unit 16, and the data corresponds to each pixel constituting the visual field image. In addition, numerical information is stored. Then, in the present embodiment, in the same data, “+1” is stored for pixels constituting a screen area representing a portion where the object 44 is located in the light volume 40 in association with those pixels. ing. Further, for pixels constituting a screen area representing a portion where the object 44 is located in the shadow volume 42, "-1" is added to the numerical value associated with those pixels.
[0026]
For this reason, “1” is associated with an area representing a portion inside the light volume 40 and outside the shadow volume 42 of the object 44, and a portion inside the light volume 40 and a portion outside the shadow volume 42 of the object 44. “0” is associated with an area representing a portion in the shadow volume 42, and “−1” is associated with an area representing a portion of the object 44 outside the light volume and representing a portion in the shadow volume 42. Can be “0” is associated with the other areas. When the numerical data corresponding to the visual field image is generated as described above, in the present image processing apparatus, the brightness of the pixel of the visual field image to which a value larger than zero is associated in the numerical data is increased. . When increasing the brightness, it is possible to change the brightness by changing the color information by a predetermined ratio or adding a certain amount based on the color information originally stored in association with each pixel in the visual field image. Thus, according to the present embodiment, the display of the visual field image shown in FIG. 4 can be obtained, and problems such as light penetration can be prevented.
[0027]
FIG. 5 is a functional block diagram of the image processing apparatus according to the present embodiment. As shown in the figure, the image processing apparatus according to the present embodiment functionally includes a display unit 52, a visual field image storage unit 54, a numerical information storage unit 56, a drawing unit 58, an environment information storage unit 60, and an environment processing unit. 62 are included. These functions are realized by the home game machine 11 executing a program stored in the DVD-ROM 25.
[0028]
Here, the visual field image storage unit 54 is configured to include a VRAM provided in the image processing unit 16, and converts a virtual three-dimensional space constructed in the main memory 26 into a given space set in the same space. Is stored in a field-of-view image representing a state seen from the viewpoint of the camera. This field-of-view image stores color information for each pixel constituting the image. The display unit 52 displays the visual field image stored in the visual field image storage unit 54, and includes the monitor 18 here. The numerical information storage unit 56 is configured to include a VRAM (stencil buffer) provided in the image processing unit 16 and stores numerical information for each pixel constituting the visual field image. Here, the numerical information corresponding to each pixel indicates whether the pixel represents a portion of the object 44 located in the light volume 40 or a portion located in the shadow volume 42. The corresponding value will be stored.
[0029]
Specifically, “+1” is stored when representing a portion that is inside the write volume 40 and outside the shadow volume 42, and “0” is shown when representing a portion that is inside the write volume 40 and inside the shadow volume 42. Is stored, and “0” is stored when representing a portion outside the light volume 40 and outside the shadow volume 42, and “−1” when representing a portion outside the light volume and inside the shadow volume 42. Is stored.
[0030]
The environment processing unit 62 performs real-time (for example, every 1/60 second) environmental information including the position and orientation of the object placed in the virtual three-dimensional space, the viewpoint position, the line of sight, the light source position, the color and intensity of light, and the like. , And is mainly configured by the microprocessor 14. The environment information calculated by the environment processing unit 62 is stored in an environment information storage unit 60 including the main memory 26.
[0031]
The drawing unit 58 generates a visual field image that shows the virtual three-dimensional space as viewed from the viewpoint position in the line of sight based on the environment information stored in the environment information storage unit 60, and stores the generated visual field image in the visual field image storage unit 54. To be stored. In addition, the drawing unit 58 includes a region (in the view image stored in the view image storage unit 54) that represents a portion of the object 44 located in the light volume 40 set in the virtual three-dimensional space corresponding to the light source position. Reference numeral 50) excludes a region (see reference numeral 46) representing a portion of the object 44 located in the shadow volume 42 set in the virtual three-dimensional space based on the light source position and the position of the object 44. The storage contents of the visual field image storage unit 54 are updated so as to increase the brightness of the brightness increase area.
[0032]
Specifically, the drawing section 58 associates the numerical information storage section 56 with the pixels constituting the area representing the portion of the object 44 located in the light volume 40 in the view image stored in the view image storage section 54. Is changed so as to increase the numerical information stored in. Also, the numerical information stored in the numerical information storage unit 56 is stored in the numerical information storage unit 56 in association with the pixels constituting the area representing the portion of the object 44 located in the shadow volume 42 in the visual field image stored in the visual field image storage unit 54. Only to decrease. Then, the brightness increasing area is determined based on the numerical information stored in the numerical information storage unit 56, and the brightness of the area in the view image stored in the view image storage unit 54 is increased. Specifically, for a pixel associated with numerical information greater than 0 in the numerical information storage unit 56, the brightness of the color information stored in the visual field image storage unit 54 in association with the pixel increases. Change to
[0033]
FIG. 6 is a flowchart illustrating image processing performed by the image processing apparatus according to the present embodiment. The process shown in the figure is executed at predetermined time intervals (for example, every 1/60 second) according to a program stored in the DVD-ROM 25.
[0034]
In this process, first, the environment processing unit 62 performs environment processing based on a program read from the DVD-ROM 25 (S101). In the environmental processing, the positions and orientations of all static and dynamic objects in the virtual three-dimensional space are calculated. Static objects, such as road objects, mountain objects, grassland objects, etc., do not change their position and orientation in the virtual three-dimensional space even after a lapse of time. On the other hand, a dynamic object changes its position and orientation as time elapses, such as a player character or a car object, which is a player's operation target. The position and orientation of the dynamic object change according to an operation signal input from the controller 32. In the environment processing (S101), the viewpoint, the angle of view, and the range of the visual field (calculated based on the line of sight and the angle of view) are also calculated. Then, in the subsequent processing, only objects located within the visual field range are picked up, and they are set as targets of the subsequent game processing.
[0035]
Next, the drawing unit 58 performs a geometry process (S102). In the geometry processing, coordinate conversion is performed from the world coordinate system to a viewpoint coordinate system (a coordinate system in which the viewpoint is the origin, the front is the Z direction, the horizontal direction is the X direction, and the vertical method is the Y direction). Further, the color information of the vertices of each polygon constituting the object is corrected based on the light source information (color and position of the light source). Further, a clipping process is performed. Further, the drawing unit 58 forms a visual field image based on the vertex coordinates, vertex color information, texture coordinates, and alpha value of each polygon belonging to the visual field range, and stores it in the visual field image storage unit 54 (S103).
[0036]
Next, the drawing unit 58 initializes the numerical information storage unit 56 and stores zero in association with all the pixels constituting the visual field image. In particular, for pixels representing the object portion in the light volume 40, 1 is added to the numerical information (0) stored in the numerical information storage unit 56 in association with the pixels (S104). Further, the drawing unit 58 adds −1 to the numerical information stored in the numerical information storage unit 56 in association with the pixels representing the object portion in the shadow volume 42 (S105). Thereafter, the drawing unit 58 refers to the numerical value information storage unit 56 to determine a pixel associated with a numerical value greater than zero, and stores the color information stored in the visual field image storage unit 54 in association with the pixel. Is changed to increase the brightness (S106). The visual field image whose color information has been changed in this way is read from the visual field image storage unit 54 at a predetermined timing and displayed on the display unit 52.
[0037]
According to the image processing described above, it is possible to prevent a problem that a portion located on the back surface side when viewed from the light source position among the object portions located in the light volume 40 is displayed brightly. Similarly, it is possible to prevent a problem that a portion of the object portion located in the light volume 40, which should be shielded by another object arranged on the light source side, is displayed brightly.
[0038]
Note that the present invention is not limited to the above embodiment.
[0039]
For example, in the above description, only one visible object is arranged in the virtual three-dimensional space, but a plurality of objects may be arranged. In this case, a shadow volume may be set for all objects, or a shadow volume may be set for only some objects (for example, objects located in the light volume that are closest to the light source). Also, a plurality of light volumes may be set.
[0040]
【The invention's effect】
As described above, according to the present invention, it is possible to suitably display an object arranged in a spatial area such as a light volume.
[Brief description of the drawings]
FIG. 1 is a diagram illustrating a hardware configuration of an image processing apparatus according to an embodiment of the present invention.
FIG. 2 is a diagram showing an object, a shadow volume, and a light volume arranged in a virtual three-dimensional space.
FIG. 3 is a conceptual diagram of a numerical information storage unit (stencil buffer).
FIG. 4 is a diagram showing a visual field image displayed on a monitor in the image processing apparatus according to the embodiment of the present invention.
FIG. 5 is a functional block diagram of the image processing apparatus according to the embodiment of the present invention.
FIG. 6 is a flowchart illustrating an image display process performed by the image processing apparatus according to the embodiment of the present invention.
FIG. 7 is a diagram illustrating a conventional volume write technique.
FIG. 8 is a diagram illustrating a problem of a conventional volume write technique.
FIG. 9 is a diagram showing an example of a visual field image displayed on a monitor by a conventional volume light technique.
[Explanation of symbols]
Reference Signs List 10 game device, 11 home game machine, 12 bus, 14 microprocessor, 16 image processing unit, 18 monitor, 20 audio processing unit, 22 speakers, 24 DVD-ROM playback unit, 25 DVD-ROM, 26 main memory, 30 Input / output processing unit, 40, 102 light volume, 42 shadow volume, 44, 100 object, 46 shadow volume inside area, 48 outside area, 50, light volume inside area, 52 display unit, 54 view image storage unit, 56 numerical information Storage unit, 58 drawing unit, 60 environment information storage unit, 62 environment processing unit.

Claims (9)

オブジェクトが配置された仮想3次元空間を所与の視点から見た様子を表す視野画像を記憶する視野画像記憶手段と、
前記視野画像のうち、光源位置に対応して前記仮想3次元空間に設定された第1空間領域内に位置する前記オブジェクトの部分を表す領域から、前記光源位置及び前記オブジェクトの位置に基づいて前記仮想3次元空間に設定された第2空間領域内に位置する前記オブジェクトの部分を表す領域を除いた領域である、明度上昇領域の明度を上げる明度上昇手段と、を含むことを特徴とする画像処理装置。
Field-of-view image storage means for storing a field-of-view image representing a state in which a virtual three-dimensional space in which objects are arranged is viewed from a given viewpoint;
Based on the light source position and the position of the object, from the area representing the part of the object located in the first space area set in the virtual three-dimensional space corresponding to the light source position, An image, comprising: a brightness increasing unit that increases brightness of a brightness increasing region, which is a region excluding a region representing a portion of the object located in a second space region set in a virtual three-dimensional space. Processing equipment.
請求項1に記載の画像処理装置において、
前記明度上昇手段は、
前記視野画像を構成する各画素に対応づけて数値情報を記憶する数値情報記憶手段と、
前記視野画像記憶手段に記憶された前記視野画像のうち前記第1空間領域内に位置する前記オブジェクトの部分を表す領域を構成する画素に対応づけて前記数値情報記憶手段に記憶される数値情報を変更する第1数値情報変更手段と、
前記視野画像記憶手段に記憶された前記視野画像のうち前記第2空間領域内に位置する前記オブジェクトの部分を表す領域を構成する画素に対応づけて前記数値情報記憶手段に記憶される数値情報を変更する第2数値情報変更手段と、
前記数値情報記憶手段に記憶される数値情報に基づいて前記明度上昇領域を判断する明度上昇領域判断手段と、を含むことを特徴とする画像処理装置。
The image processing apparatus according to claim 1,
The brightness increasing means includes:
Numerical information storage means for storing numerical information in association with each pixel constituting the visual field image,
Numerical information stored in the numerical information storage means in association with pixels constituting an area representing a part of the object located in the first space area in the visual field image stored in the visual field image storage means First numerical information changing means for changing;
Numerical information stored in the numerical information storage means in association with pixels constituting an area representing a portion of the object located in the second space area in the visual field image stored in the visual field image storage means Second numerical information changing means for changing;
An image processing apparatus comprising: a brightness-increase region determining unit that determines the brightness-increase region based on the numerical information stored in the numerical information storage unit.
オブジェクトが配置された仮想3次元空間を所与の視点から見た様子を表す視野画像を視野画像記憶手段に記憶させるステップと、
前記視野画像のうち、光源位置に対応して前記仮想3次元空間に設定された第1空間領域内に位置する前記オブジェクトの部分を表す領域から、前記光源位置及び前記オブジェクトの位置に基づいて前記仮想3次元空間に設定された第2空間領域内に位置する前記オブジェクトの部分を表す領域を除いた領域である、明度上昇領域の明度を上げる明度上昇ステップと、を含むことを特徴とする画像処理方法。
Storing, in a visual field image storage means, a visual field image representing a state in which the virtual three-dimensional space in which the objects are arranged is viewed from a given viewpoint;
Based on the light source position and the position of the object, from the area representing the part of the object located in the first space area set in the virtual three-dimensional space corresponding to the light source position, A brightness increasing step of increasing the brightness of the brightness increasing area, which is an area excluding an area representing a part of the object located in the second space area set in the virtual three-dimensional space. Processing method.
オブジェクトが配置された仮想3次元空間を所与の視点から見た様子を表す視野画像を記憶する視野画像記憶手段、及び
前記視野画像のうち、光源位置に対応して前記仮想3次元空間に設定された第1空間領域内に位置する前記オブジェクトの部分を表す領域から、前記光源位置及び前記オブジェクトの位置に基づいて前記仮想3次元空間に設定された第2空間領域内に位置する前記オブジェクトの部分を表す領域を除いた領域である、明度上昇領域の明度を上げる明度上昇手段としてコンピュータを機能させるためのプログラム。
Field-of-view image storage means for storing a field-of-view image representing a state in which a virtual three-dimensional space in which an object is arranged is viewed from a given viewpoint, and, among the field-of-view images, set in the virtual three-dimensional space corresponding to a light source position From the region representing the portion of the object located in the first space region, the position of the object located in the second space region set in the virtual three-dimensional space based on the light source position and the position of the object. A program for causing a computer to function as lightness increasing means for increasing the lightness of a lightness increasing area which is an area excluding an area representing a portion.
複数オブジェクトが配置された仮想3次元空間を所与の視点から見た様子を表す視野画像を記憶する視野画像記憶手段と、
前記視野画像のうち、光源位置に対応して前記仮想3次元空間に設定された第1空間領域内に位置する前記複数オブジェクトの部分を表す領域から、前記光源位置及び前記複数オブジェクトの位置に関して前記仮想3次元空間に設定された第1空間領域内に位置する前記複数オブジェクトの部分を表す領域を除いた領域である、明度上昇領域の明度を上げる明度上昇手段と、を含むことを特徴とする画像処理装置。
Field-of-view image storage means for storing a field-of-view image representing a state in which a virtual three-dimensional space in which a plurality of objects are arranged is viewed from a given viewpoint;
From the area representing the part of the plurality of objects located in the first space area set in the virtual three-dimensional space corresponding to the light source position in the view image, the light source position and the position of the plurality of objects are determined. Brightness increasing means for increasing the brightness of the brightness increasing area, which is an area excluding an area representing a portion of the plurality of objects located in the first space area set in the virtual three-dimensional space. Image processing device.
複数オブジェクトが配置された仮想3次元空間を所与の視点から見た様子を表す視野画像を視野画像記憶手段に記憶させる視野画像記憶ステップと、
前記視野画像のうち、光源位置に対応して前記仮想3次元空間に設定された第1空間領域内に位置する前記複数オブジェクトの部分を表す領域から、前記光源位置及び前記複数オブジェクトの位置に基づいて前記仮想3次元空間に設定された第2空間領域内に位置する前記複数オブジェクトの部分を表す領域を除いた領域である、明度上昇領域の明度を上げる明度上昇ステップと、を含むことを特徴とする画像処理方法。
A visual field image storing step of storing, in a visual field image storage means, a visual field image representing a state in which a virtual three-dimensional space in which a plurality of objects are arranged is viewed from a given viewpoint;
Based on the light source position and the position of the plurality of objects from a region representing a portion of the plurality of objects located in a first space region set in the virtual three-dimensional space corresponding to a light source position in the view image. A brightness increasing step of increasing the brightness of the brightness increasing area, which is an area excluding an area representing a portion of the plurality of objects located in the second space area set in the virtual three-dimensional space. Image processing method.
複数オブジェクトが配置された仮想3次元空間を所与の視点から見た様子を表す視野画像を記憶する視野画像記憶手段、及び
前記視野画像のうち、光源位置に対応して前記仮想3次元空間に設定された第1空間領域内に位置する前記複数オブジェクトの部分を表す前記視野画像の領域から、前記光源位置及び前記複数オブジェクトの位置に基づいて前記仮想3次元空間に設定された第2空間領域内に位置する前記複数オブジェクトの部分を表す領域を除いた領域である、明度上昇領域の明度を上げる明度上昇手段としてコンピュータを機能させるためのプログラム。
A field-of-view image storage means for storing a field-of-view image representing a state in which a virtual three-dimensional space in which a plurality of objects are arranged is viewed from a given viewpoint; and among the field-of-view images, the virtual three-dimensional space corresponds to a light source position. A second space area set in the virtual three-dimensional space based on the light source position and the positions of the plurality of objects from an area of the view image representing a portion of the plurality of objects located in the set first space area A program for causing a computer to function as lightness increasing means for increasing the lightness of a lightness increasing area, which is an area excluding an area representing a portion of the plurality of objects located in the area.
請求項1、2又は5のいずれかに記載の画像処理装置において、前記第1空間領域はライトボリュームであることを特徴とする画像処理装置。6. The image processing apparatus according to claim 1, wherein the first space area is a light volume. 請求項1、2、5又は8のいずれかに記載の画像処理装置において、前記第2空間領域はシャドウボリュームであることを特徴とする画像処理装置。9. The image processing apparatus according to claim 1, wherein the second space area is a shadow volume.
JP2003079708A 2003-03-24 2003-03-24 Image processing apparatus, image processing method, and program Expired - Fee Related JP3766394B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003079708A JP3766394B2 (en) 2003-03-24 2003-03-24 Image processing apparatus, image processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003079708A JP3766394B2 (en) 2003-03-24 2003-03-24 Image processing apparatus, image processing method, and program

Publications (2)

Publication Number Publication Date
JP2004287897A true JP2004287897A (en) 2004-10-14
JP3766394B2 JP3766394B2 (en) 2006-04-12

Family

ID=33293749

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003079708A Expired - Fee Related JP3766394B2 (en) 2003-03-24 2003-03-24 Image processing apparatus, image processing method, and program

Country Status (1)

Country Link
JP (1) JP3766394B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008295552A (en) * 2007-05-29 2008-12-11 Aruze Corp Game machine

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008295552A (en) * 2007-05-29 2008-12-11 Aruze Corp Game machine

Also Published As

Publication number Publication date
JP3766394B2 (en) 2006-04-12

Similar Documents

Publication Publication Date Title
JP4291892B2 (en) Image processing apparatus and method
US8054309B2 (en) Game machine, game machine control method, and information storage medium for shadow rendering
JP2009237680A (en) Program, information storage medium, and image generation system
JP2012003755A (en) Image generation program, image generation device, image generation system, and image generation method
JP3702269B2 (en) Image processing apparatus, computer control method, and program
EP1977801B1 (en) Game machine, game machine control method, and information storage medium
EP1355276A2 (en) System and method for distance adjusted rendering
JP2004337256A (en) Game apparatus, method for controlling game machine, and program
US20020004421A1 (en) Computer readable recording medium recording a program for causing a light source to be displayed on a game screen and the program, and game screen display method and apparatus
JP2008077372A (en) Image processor, control method for image processor and program
US8319786B2 (en) Image processing device, control method for image processing device and information recording medium
JP2011053737A (en) Program, information storage medium and image generation device
US8314795B2 (en) Image processing device, image processing method and information storage medium
JP3766394B2 (en) Image processing apparatus, image processing method, and program
JP4832152B2 (en) System used in a three-dimensional computer graphics device for displaying a gaseous object on a two-dimensional display
JP2001283244A (en) Three-dimensional image compositing device, its method, information storage medium, program distributing device and its method
JP3646988B2 (en) GAME DEVICE, GAME SCREEN DISPLAY METHOD, AND PROGRAM
JP3686928B2 (en) GAME DEVICE, PROGRAM, AND IMAGE DISPLAY METHOD
JP3686978B2 (en) 3D image composition apparatus and method, and information storage medium
JP2005050070A (en) Image processing device, method, and program
JP2005322085A (en) Image processor, and image processing method and program
JP4508517B2 (en) Three-dimensional image composition apparatus and method, and information storage medium
JP3574628B2 (en) Image processing method and image processing program
JP4693457B2 (en) Image processing apparatus, image processing method, and program
JP4787662B2 (en) System used in a three-dimensional computer graphics device for displaying a gaseous object on a two-dimensional display

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20050428

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20051012

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051018

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20051129

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060126

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20090203

Year of fee payment: 3

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

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

Free format text: PAYMENT UNTIL: 20090203

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20090203

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20100203

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110203

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110203

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120203

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130203

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20140203

Year of fee payment: 8

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S802 Written request for registration of partial abandonment of right

Free format text: JAPANESE INTERMEDIATE CODE: R311802

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

LAPS Cancellation because of no payment of annual fees