JP4057760B2 - GAME DEVICE AND INFORMATION STORAGE MEDIUM - Google Patents

GAME DEVICE AND INFORMATION STORAGE MEDIUM Download PDF

Info

Publication number
JP4057760B2
JP4057760B2 JP2000108616A JP2000108616A JP4057760B2 JP 4057760 B2 JP4057760 B2 JP 4057760B2 JP 2000108616 A JP2000108616 A JP 2000108616A JP 2000108616 A JP2000108616 A JP 2000108616A JP 4057760 B2 JP4057760 B2 JP 4057760B2
Authority
JP
Japan
Prior art keywords
information storage
storage medium
program
given
particle
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2000108616A
Other languages
Japanese (ja)
Other versions
JP2001286676A (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.)
Namco Ltd
Bandai Namco Entertainment Inc
Original Assignee
Namco Ltd
Namco Bandai Games Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Namco Ltd, Namco Bandai Games Inc filed Critical Namco Ltd
Priority to JP2000108616A priority Critical patent/JP4057760B2/en
Publication of JP2001286676A publication Critical patent/JP2001286676A/en
Application granted granted Critical
Publication of JP4057760B2 publication Critical patent/JP4057760B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、オブジェクト空間内の所与の視点での画像を生成し、当該生成画像を表示させることによって所与のゲームを実行するゲーム装置等に関する。
【0002】
【従来の技術】
一般的に、コンピュータグラフィックス(以下、CGという。)を利用して、3次元の仮想空間における煙や蒸気、火花等の粒子系を表現する動画を生成する場合には、各粒子をモデル化せずに粒子の数を定義し、動画のフレーム毎に各粒子が存在する位置を決定している。より具体的には、粒子の発生源をオブジェクト空間に特定し、単位時間当りに発生源から放出される粒子数および、粒子の初速度、方向、寿命等の初期条件、さらに、色や輝度といった色彩的条件を設定する。そして、大気の影響を受けやすい粒子系をよりリアルに表現するために、空気の流体場を定義し、その力学に従った計算によって1つ1つの粒子の移動位置を決定している。
【0003】
【発明が解決しようとする課題】
しかしながら、流体場の力学に従う粒子の運動を計算する処理は複雑であり、かつ、粒子数が膨大であるため、多くの処理時間を要することとなる。一方、3次元のCGを利用した装置としてゲーム装置があるが、このゲーム装置においては、プレーヤの操作等に応じて画像を生成する必要があるため、画像生成に対して高速な処理速度が要求される。このため、風によって揺らぐ粒子等、粒子を表現する方法としては次のような手法が取られていた。
【0004】
その1つは、粒子系の粒子の発生パターンを予め設定し、所与の条件に応じて順次再生表示する方法である。しかし、この方法では、粒子の発生や風に対する揺らぎ等、毎回同じパターンのものが表示されるため不自然であった。また、他の方法としては、空気の存在を無視し、重落下運動のみに簡素化した力学系で粒子の運動を制御する方法がある。しかし、粒子の運動が単純であり、実際の粒子系に現れる揺らぎ等のない、違和感のあるある表現になってしまうといった問題を抱えていた。
【0005】
本発明は、上記問題を解決するためになされたものであって、単純な計算によってリアルな粒子の表現を実現することを目的とする。
【0006】
【課題を解決するための手段】
上記課題を解決するための第1の発明は、仮想カメラから見たオブジェクト空間の画像を生成し、当該生成画像を表示させることによって所与のゲームを実行するゲーム装置であって、前記オブジェクト空間に所与の粒子を発生させるための粒子発生手段(例えば、図4の火花発生部220)と、前記オブジェクト空間の所与の位置に効果付与領域を生成するための領域生成手段(例えば、図4の力場制御部224)と、前記効果付与領域内に前記所与の粒子が存在する場合に、当該粒子に物理的あるいは色彩的効果を与えるための効果付与手段(例えば、図4の火花制御部222および力場制御部224)と、を備えるゲーム装置である。
【0007】
また、第12の発明は、仮想カメラから見たオブジェクト空間の画像を生成し、当該生成画像を表示させることによって所与のゲームを実行するための情報を記憶した情報記憶媒体であって、前記オブジェクト空間に所与の粒子を発生させるための粒子発生情報(例えば、図4の火花発生プログラム420)と、前記オブジェクト空間の所与の位置に効果付与領域を生成するための領域生成情報(例えば、図4の力場制御プログラム424)と、前記効果付与領域内に前記所与の粒子が存在する場合に、当該粒子に物理的あるいは色彩的効果を与えるための効果付与情報(例えば、図4の火花制御プログラム422)と、を含む情報記憶媒体である。
【0008】
ここで、粒子とは、煙やガス、蒸気、火、雲、火花等の粒子系を構成する粒子を意味しており、オブジェクト空間においては、座標によって定義されるものである。また、物理的効果とは粒子の速度や方向を変更することであり、色彩的効果とは粒子に与えられた色や輝度等を変更することをそれぞれ意味している。
【0009】
この第1あるいは第12の発明によれば、効果付与領域内に存在する粒子には、該領域内特有の物理的あるいは色彩的効果を与えることができるため、それ以外の粒子とは異なる運動あるいは色彩をした粒子を表現することができる。したがって、粒子の動きや色彩の変化を単調化せずに、単純な計算によってよりリアルに表現することが可能となる。
【0010】
また、第2の発明として、第1の発明のゲーム装置において、前記粒子発生手段は、移動オブジェクトの移動または衝突に係る所与の条件に応じて、前記所与の粒子を発生させるゲーム装置を構成することとしてもよい。
【0011】
また、第13の発明として、第12の発明の情報記憶媒体において、前記粒子発生情報は、移動オブジェクトの移動または衝突に係る所与の条件に応じて、前記所与の粒子を発生させる情報記憶媒体を構成することとしてもよい。
【0012】
この第2あるいは第13の発明によれば、例えば、移動オブジェクトがレーシングカーである場合、レーシングカーと路面とが摩擦することで発生する火花や、急ブレーキによりタイヤから発生する煙、レーシングカー同士の衝突により発生する炎等、所与の条件に応じて発生する粒子系をタイミングよく表現することができる。あるいは、カーレースゲームにおいて、前方を走る車が巻き起こす砂煙等が視界(表示画面上)にちらつく様子をリアルに表現することができる。
【0013】
また、第3の発明として、第1または第2の発明のゲーム装置において、前記領域生成手段は、移動オブジェクトに付随する所与の位置に前記効果付与領域を生成するゲーム装置を構成することとしてもよい。
【0014】
また、第14の発明として、第12または第13の発明の情報記憶媒体において、前記領域生成情報は、移動オブジェクトに付随する所与の位置に前記効果付与領域を生成する情報記憶媒体を構成することとしてもよい。
【0015】
ここで、付随とは、移動オブジェクトの速さ、加減速、方向転換等の移動条件に効果付与領域の移動が束縛されることを意味する。
【0016】
この第3あるいは第14の発明によれば、効果付与領域が移動オブジェクトに付随して発生するので、移動オブジェクトの移動に伴って発生する風等を効果付与領域によって表現することができる。したがって、例えば、移動オブジェクトの移動により巻き上がる砂埃等を簡単な計算によって表現することができる。
【0017】
また、第4の発明として、第1から第3のいずれかの発明のゲーム装置において、前記効果付与手段は、前記所与の粒子と、前記効果付与領域内の所与の点との距離に基づいて、前記所与の粒子に物理的あるいは色彩的効果を与えるゲーム装置を構成することとしてもよい。
【0018】
また、第15の発明として、第12から第14のいずれかの発明の情報記憶媒体において、前記効果付与情報は、前記所与の粒子と、前記効果付与領域内の所与の点との距離に基づいて、前記所与の粒子に物理的あるいは色彩的効果を与える情報記憶媒体を構成することとしてもよい。
【0019】
この第4あるいは第15の発明によれば、物理的効果として、粒子と所与の点との距離の関数を定義し、効果付与領域内の粒子がその関数に比例する力を受けるものとすれば、所与の点を引力点あるいは斥力点とする力場を表現することができる。あるいは、色彩的効果として、粒子と所与の点との距離に応じて効果付与領域内の粒子の色、輝度、透明度等を様々に変更することもできる。したがって、例えば、ロールプレイングゲームにおいて、単調に立ち上る黄色い毒煙が引力点を付随させたキャラクタに吸引される様子や、逆に斥力点によって反発する様子、あるいは、毒煙の色をキャラクタ(所与の点)に近づくほど濃くするなど、簡単な計算によってゲームの面白さを倍加することもできる。
【0020】
また、第5の発明として、第1から第4のいずれかの発明のゲーム装置において、前記効果付与手段は、前記所与の粒子の速度または移動方向を変化させることにより、当該粒子に物理的効果を与えるゲーム装置を構成することとしてもよい。
【0021】
また、第16の発明として、第12から第15のいずれかの発明の情報記憶媒体において、前記効果付与情報は、前記所与の粒子に物理的効果を付与するため、前記所与の粒子の速度または移動方向を変化させるための情報を含む情報記憶媒体を構成することとしてもよい。
【0022】
この第5あるいは第16の発明によれば、効果付与領域内の粒子の速度や移動方向を変化させ、効果付与領域外に存在する粒子とは異なる運動をさせることができるため、粒子の運動が複雑になり、リアルな粒子系を表現することができる。
【0023】
また、第6の発明として、第1から第5のいずれかの発明のゲーム装置において、前記効果付与手段は、前記所与の粒子の色、輝度、透明度または軌跡を変化させることにより、当該粒子に色彩的効果を与えるゲーム装置を構成することとしてもよい。
【0024】
また、第17の発明として、第12から第16のいずれかの発明の情報記憶媒体において、前記効果付与情報は、前記所与の粒子に色彩的効果を付与するため、前記所与の粒子の色、輝度、透明度または軌跡を変化させるための情報を含む情報記憶媒体を構成することとしてもよい。
【0025】
この第6あるいは第17の発明によれば、効果付与領域内の粒子は、他の粒子と異なる粒子の色、輝度、透明度または軌跡を持つので、粒子系全体にバラエティを与えることができる。
【0026】
また、第7の発明として、第1から第6のいずれかの発明のゲーム装置において、前記領域生成手段は、前記所与のゲームの進行に応じて前記効果付与領域を生成する位置を変更するゲーム装置を構成することとしてもよい。
【0027】
この第7の発明によれば、ゲームの進行、即ち、移動オブジェクトの速度や加速度の変化、オブジェクト空間における移動オブジェクトの存在するエリアの変化、ゲームステージの変化等、種々の変化に応じて、効果付与領域の発生位置を様々に変更することができる。このため、同じように発生する粒子に対して、ゲームの進行状況に応じた揺らぎ感や色彩の変化を与えることができ、粒子系全体の動きや見え方がパターン化せず、ユーザのゲーム画像に対する新鮮感を維持することができる。
【0028】
また、第8の発明として、第1から第7のいずれかの発明のゲーム装置において、前記領域生成手段は、前記所与のゲームの進行に応じて生成する効果付与領域の数を変更するゲーム装置を構成することとしてもよい。
【0029】
この第8の発明によれば、ゲームの進行状況に応じて効果付与領域の数を変更できるため、例えば、カーレースゲームにおいて、レーシングカーが砂地に入った場合に、効果付与領域の数を増やして砂埃が舞い上がる様子を表現したり、舗装道路に存在する場合には、数を減らせて比較的穏やかな環境を表現するといった粒子運動のバリエーションを簡単な計算によって広げることができる。
【0030】
また、第9の発明として、第1から第8のいずれかの発明のゲーム装置において、前記領域生成手段は、前記所与のゲームの進行に応じて生成する効果付与領域の形状を変更するゲーム装置を構成することとしてもよい。
【0031】
この第9の発明によれば、例えば、効果付与領域の形状をランダムに変更することで粒子の揺らぎ感を表現したり、効果付与領域の形状を所与の方向に伸ばすことで粒子が風に吹かれる様子等をよりリアルに表現できる。
【0032】
また、第10の発明として、第1から第9のいずれかの発明のゲーム装置において、前記所与の粒子を火花または煙とするゲーム装置を構成することとしてもよい。ここで、煙には、土煙等の火以外の事物によって生じる煙も含まれる意である。
【0033】
この第10の発明によれば、火花や煙のリアルな表現が簡単な計算によって実現できる。
【0034】
また、第11の発明として、第1から第10のいずれかの発明のゲーム装置において、前記所与の粒子は、パーティクルにより表現されるゲーム装置を構成することとしてもよい。ここに、パーティクルとは、粒子の発生時刻、移動速度、寿命、輝度、透明度などのパラメータを制御することにより、火花や、炎、煙などの形のはっきりしない境界の不明瞭な物体を表現する一手法である。
【0035】
【発明の実施の形態】
以下、本発明の好適な実施状態について図面を参照して説明する。なお、以下では、カーレースゲームにおいて、レーシングカーオブジェクト(以下、単にレーシングカーという。)が路面と摩擦することで発生する火花を簡単な計算によってリアルに表現する方法について説明するが、本発明が適用されるものはこれに限られるものではない。
【0036】
以下に、本発明の原理を説明する。
本実施の形態では、発生させる火花(各火の粉)を、パーティクルにより表現する。すなわち、火の粉の一つ一つが、オブジェクト空間の座標を持ち、初速度や重力加速度、効果付与領域である力場領域内の力等に基づいてオブジェクト空間内を移動する。また、各火の粉には、輝度や透明度、色、寿命を設定する。
【0037】
そして、力場領域を移動オブジェクトであるレーシングカーに付随して運動するように設定する。ここで、付随とは、図1に示すように、レーシングカー2と力場領域4の中心点Gとの間に所与のバネ定数を有する仮想的なバネ6を設け、力場領域4がレーシングカー2の移動条件に応じて移動することを意味している。つまり、力場領域4は、レーシングカー2の加減速や方向転換等に対して、慣性に従って左右、前後、上下等に動くことができる。
【0038】
また、火花の発生タイミングは、レーシングカー2が後述する火花発生ポイントを通過した時とし、図1に示すように、予め設定された火花発生源2−1から火の粉8を発生する。火花発生源2−1から発生した火の粉8は、初期条件と重力に従って運動するが、力場領域4内部に入ると(火の粉8−3)、力場領域4内部で定義された力の影響を受ける。なお、図1では、明確にするために力場領域4を表記しているが、ゲーム上の表示画面上には、力場領域4は表示されない。
【0039】
図2(a)は、力場領域4の一例を示す図である。同図において、Gは力場の中心座標を、piはi番目の火の粉の位置を、diは力場の中心点Gと火の粉の位置piとの間の距離を、F(di)は火の粉iが力場Gから受ける力をそれぞれ示している。また、rminおよびrmaxは中心点Gからの距離を意味しており、各火の粉はrmin<di<rmaxを満たす範囲内でのみ、力場Gの影響すなわち力F(di)を受ける。また、同図における矢印は、ベクトルを意味している。
【0040】
力F(di)は、
F(di)=α/di …(1)
という、距離diによる関数で定義される。ただし、αは、距離diに係る係数であるが、力F(di)は、ベクトルであるため、αもベクトルである。ここでは、ベクトルαを中心点Gに向かう方向に設定して、力場Gが引力場となるようにしているが、ベクトルαの符号を変更して、力場Gを斥力場としてもよい。なお、距離diや方向に応じてαの符号や値を変更してもよい。
【0041】
図2(b)は、力場Gの影響を受けて運動した火の粉8の軌跡を表現している。同図において、火の粉8は、領域rmin<di<rmaxの外部では重力に従って運動するが、領域rmin<di<rmax内部では重力に加えて力場Gによる力を受けている。したがって、火の粉は、単なる放物線運動とは異なる軌跡を描くこととなる。
【0042】
さらに、領域rmin<di<rmax内に火の粉が存在する場合には、火の粉の透明度、色、輝度等を変更する。具体的には、Gからの距離に応じてRGBの各色の混合比を設定し、赤から黄色へのグラデーションをdiに割り当てる。そして、火の粉iが中心点Gに近づくにつれ赤から黄色へと変化するように設定するといった方法や、diに輝度や透明度等を設定することにより、Gからの距離に応じて色彩を変化させるといった方法を適用する。
【0043】
次に、本実施の形態における構成を説明する。
図3は、本発明を家庭用のゲーム装置に適用した場合の一例を示す図である。同図において、ユーザは、ディスプレイ1200に映し出されたゲーム画像を見ながら、ゲームコントローラ1202、1204を操作してカーレースゲーム等のゲームを楽しむ。この場合、ゲームプログラム等のゲームを行うために必要な情報は、本体装置に着脱自在な情報記憶媒体であるCD−ROM1206、ICカード1208、メモリカード1212等に格納されている。
【0044】
図4は、本実施の形態における機能ブロックの一例を示す図である。同図において、機能ブロックは、操作部10と、処理部20と、表示部30と、情報記憶媒体40とから構成されている。
【0045】
操作部10は、カーレースゲームにおける自キャラクタ(レーシングカー)の操作や、ゲーム開始あるいは中止等の指示を入力するためのものである。また、図3に示す、ゲームコントローラ1202、1204が、操作部10に相当する。
【0046】
処理部20は、主に、ゲーム演算部22および画像生成部24とから構成されており、CISC型やRISC型のCPU、DSP、画像取込専用IC等のハードウェアにより実現できる。
【0047】
ゲーム演算部22は、操作部10から入力される指示信号に応じて情報記憶媒体40からゲームプログラム42を読み出し、ゲーム空間であるオブジェクト空間を構築する。そして、操作部10から入力される操作信号やゲームプログラム42にしたがって複数のレーシングカーをオブジェクト空間内に移動させて、カーレースゲームを実行するとともに、構築したオブジェクト空間や各レーシングカーの位置等を示すデータを画像生成部24に出力する。また、ゲーム演算部22は、火花発生部220と、火花制御部222と、力場制御部224とを含む。
【0048】
火花発生部220は、操作部10からゲーム開始信号を入力されると、情報記憶媒体40内の火花発生プログラム420を読み出して、図5に示すように、レースコース56上に火花発生ポイント50を設定する。火花発生ポイント50は、オブジェクト空間上の位置座標により定義される。
【0049】
また、火花発生部220は、ゲーム進行中に、各レーシングカーが火花発生ポイント50上を通過したか否かを判定する。通過した場合には、図1に示すように、火花発生ポイントを通過したレーシングカー2の火花発生源2−1から火の粉8を放出させる。このとき、火花発生部220は、レーシングカー2の速さに応じて、火の粉の放出量、初速度、方向、寿命、色、輝度等の初期条件を設定する。
【0050】
火花制御部222は、情報記憶媒体40から火花制御プログラム422を読み出して、重力および力場領域内部の力によって変動する火の粉の速度、位置を火花発生部220によって発生された全ての火の粉に対して計算する。また、力場領域内に存在する火の粉に対しては、力場領域の中心点からの距離に応じた火の粉の色や輝度等の色彩を決定する。
【0051】
図6は、火花発生ポイントを通過したレーシングカーに対し、火花発生部220がn個の火の粉を発生させた場合に、火花制御部222が実行する火花制御処理を示すフローチャートである。同図において、火花制御部222は、まず、i=0番目の火の粉の位置を検索する(ステップS1)。
【0052】
そして、力場の中心点Gと火の粉piとの間の距離diを計算し(ステップS2)、火の粉iが力場Gの影響を受ける領域にあるか否かを判別する(ステップS3)。
【0053】
ステップS3において、火の粉iが領域rmin<di<rmax内に存在しない場合には、ステップS6に移行する。一方、領域rmin<di<rmax内に存在する場合には、距離diに応じた色を決定する(ステップS4)。次いで、力F(di)に基づく速さViを計算する(ステップS5)。なお、Viは火の粉iの速度を、miは火の粉iの質量をそれぞれ意味している。また、dtは、火花制御処理を実行する時間間隔を意味する。
【0054】
ステップS5において、力場Gによる速度変化を計算すると、重力(gは重力加速度を意味している。)による火の粉iの速度変化を求める(ステップS6)。
【0055】
ステップS5〜S6において、火の粉iに影響を与え得る全ての力場の計算が完了すると、火の粉iの位置を計算し(ステップS7)、iに1を加算した後(ステップS8)、i=nであるか否かを判別する(ステップS9)。i=nでない場合には、ステップS2に移行して、次の火の粉iの位置等を計算する。一方ステップS11においてi=nが満たされる場合には、n個の火の粉の位置が決定したと判断して火花制御処理を終了する。
【0056】
力場制御部224は、情報記憶媒体40から力場制御プログラム424を読み出して、図1に示す仮想バネ6のバネ定数を設定し、レーシングカー2の加減速、方向転換等による仮想バネ6の伸縮量を計算する。そして、仮想バネ6の伸縮と設定したバネ定数とから力場領域4の位置を決定する。また、力場制御部224は、力の関数F(di)(式(1)参照)のαの値をレーシングカーの速さや加速度に応じて変化させる。
【0057】
画像生成部24は、ゲーム演算部22により設定されたオブジェクト空間での所与の視点である仮想カメラに基づく画像を生成する処理を行う。画像生成部24により生成された画像データは、表示部30において表示される。
【0058】
情報記憶媒体40は、ゲームプログラム42を記憶している。この情報記憶媒体40の機能は、CD−ROM、ゲームカセット、ICカード、MO、FD、DVD、メモリ、ハードディスクなどのハードウェアにより実現できる。また、ゲームプログラム42には、火花発生プログラム420と、火花制御プログラム422と、力場制御プログラム424とが含まれている。
【0059】
次に、ゲーム演算部22によって実行される火花発生処理について、図7に示すフローチャートに基づいて以下説明をする。なお、本処理は、移動する全てのレーシングカーに対して随時実行する。
【0060】
図7において、まず、力場制御部224は、レーシングカーの移動条件に応じて力場領域の位置や力場領域内の力の大きさを計算する(ステップS20)。次いで、火花発生部220は、レーシングカーが火花発生ポイントを通過するか否かを判定する(ステップS21)。レーシングカーが火花発生ポイントを通過すると判定した場合には、火花発生部220は、火花の発生源、放出率、初速度、方向、寿命、色、輝度等を決定して火花を発生させる(ステップS22)。
【0061】
そして、火花制御部222は、ステップS22で発生させた火の粉に対して火花制御処理を実行し(ステップS23)、火花発生処理を終了する。
【0062】
一方、ステップS21において、レーシングカーが火花発生ポイントを通過しないと判定した場合、火花制御部222は、オブジェクト空間内にまだ火の粉が存在するか否かを判断する(ステップS24)。火の粉が存在しない場合には、火花発生処理を終了する。
【0063】
また、ステップS24において、オブジェクト空間内に火花が存在すると判定した場合には、火花制御部222は、それらの火花を制御して(ステップS23)、火花発生処理を終了する。
【0064】
次に、本実施の形態を実現できるハードウェアの構成の一例について、図8を用いて説明する。同図に示す装置では、CPU1000、ROM1002、RAM1004、情報記憶媒体1006、音生成IC1008、画像生成IC1010、I/Oポート1012、1014が、システムバス1016により相互にデータ入出力可能に接続されている。そして、画像生成IC1010には、ディスプレイ1018が接続され、音生成IC1008には、スピーカ1020が接続され、I/Oポート1012には、コントロール装置1022が接続され、I/Oポート1014には、通信装置1024が接続されている。
【0065】
情報記憶媒体1006は、プログラム、表示物を表現するための画像データ、音データ、プレイデータ等が主に格納されるものである。例えば、家庭用ゲーム装置では、ゲームプログラム等を格納する情報記憶媒体として、CD−ROM、ゲームカセット、DVD等が用いられ、プレイデータを格納する情報記憶媒体としてメモリカードなどが用いられる。また、業務用ゲーム装置では、ROM等のメモリやハードディスクが用いられ、この場合には、情報記憶媒体1006は、ROM1002になる。
【0066】
コントロール装置1022は、ゲームコントローラ、操作パネル等に相当するものであり、ユーザがゲーム進行に応じて行う判断の結果を装置本体に入力するための装置である。
【0067】
情報記憶媒体1006に格納されるプログラム、ROM1002に格納されるシステムプログラム(装置本体の初期化情報等)、コントロール装置1022によって入力される信号等に従って、CPU1000は、装置全体の制御や各種データ処理を行う。RAM1004は、このCPU1000の作業領域等として用いられる記憶手段であり、情報記憶媒体1006やROM1002の所与の内容、あるいはCPU1000の演算結果が格納される。
【0068】
更に、この種の装置には、音生成IC1008と画像生成IC1010とが設けられていて、ゲーム音やゲーム画像の好適な出力が行えるようになっている。音生成IC1008は、情報記憶媒体1006やROM1002に記憶される情報に基づいて効果音やバックグラウンド音楽等のゲーム音を生成する集積回路であり、生成されたゲーム音は、スピーカ1020によって出力される。また、画像生成IC1010は、RAM1004、ROM1002、情報記憶媒体1006等から出力される画像情報に基づいてディスプレイ1018に出力するための画素情報を生成する集積回路である。なお、ディスプレイ1018は、CRTやLCD、TV、プラズマディスプレイ、液晶プラズマディスプレイ、プロジェクター等の表示装置を含む意である。
【0069】
また、通信装置1024は、ゲーム装置内部で利用される各種の情報を外部とやり取りするものであり、他のゲーム装置と接続されてゲームプログラムに応じた所与の情報を送受したり、通信回線を介して、ゲームプログラム等の情報を送受すること等に利用される。
【0070】
また、図1〜図5で説明した種々の処理は、図6および図7のフローチャートに示した処理等を行うプログラムを格納した情報記憶媒体1006と、該プログラムに従って動作するCPU1000、画像生成IC1010、音生成IC1008等によって実現される。なお、画像生成IC1010、音生成IC1008等で行われる処理は、CPU1000あるいは汎用のDSP等によりソフトウェア的に行ってもよい。
【0071】
図9は、本実施の形態を業務用ゲーム装置1300に適用した場合の例を示す図である。この業務用ゲーム装置1300は、レーシングカーの形状をモデルに形成されており、シート1310に座ったユーザが、ディスプレイ1302に表示される画像を見ながら、操作部10に設けられたハンドル1304、アクセル1306、ブレーキ1308等を操作して仮想のレーシングカーを運転してゲームを楽しむ装置である。
【0072】
業務用ゲーム装置1300に内蔵されるシステム基板1312には、CPU、画像生成IC、音生成IC等が実装されている。そして、ゲームプログラムや、火花発生プログラム、火花制御プログラム、力場制御プログラム等は、システム基板1312上の情報記憶媒体であるメモリに格納されている。
【0073】
なお、本発明は、上記実施の形態で説明したものに限らず、種々の変形実施が可能である。例えば、本実施の形態では、レーシングカーに付随する力場領域を1つのみ設定することとしたが、複数設定することもできる。図10は、各レーシングカーに力場領域がm個付随する場合に、火花制御部222が各レーシングカーに対して実行する火花制御処理を示すフローチャートである。
【0074】
図10に示す火花制御処理と図6に示す火花制御処理との違いは、力場領域をカウントする引数jを追加したことにある。図10において、火花制御部222は、i(=0)番目の火の粉の位置を検索した後(ステップS1)、j(=0)番目の力場領域の位置を検索する(ステップT1)。
【0075】
そして、ステップS2〜S5において、火の粉iに対する力場領域jの影響を計算すると、jに1を加算し(ステップT2)、j=m、即ち、全ての力場領域について計算を終了したか否かを判定する(ステップT3)。なお、ステップS3に示すdjiは中心点Gjと火の粉iとの間の距離を、rjminおよびrjmaxは中心点Gjの力場領域の範囲を指定する値をそれぞれ意味している。
【0076】
ステップT3において、j=mの条件が満たされなければ、ステップS2に戻り、次の力場領域が火の粉iに与える影響を計算する。一方、ステップT3において、j=mの条件が満たされる場合には、火の粉iに対して全ての力場領域の影響を計算したものとしてステップS6に進む。そして、ステップS6〜S7によって火の粉iの位置を決定し、ステップS8〜S9によって次の火の粉に処理を移行する。そして、全ての火の粉の位置を決定した後、本火花制御処理を終了する。ただし、Fj(dji)は、力場領域j内部で働く力を意味している。
【0077】
以上の処理によれば、例えば2つの力場領域に互いに重なる部分があり、その領域に火の粉が存在する場合には、該火の粉に影響を与え得る全ての力に関する速度変化を計算することができる。
【0078】
また、本実施の形態では、力場領域に中心点を置き、この中心点からの距離に応じて力や色が変化するようにしたが、点ではなく、線や面からの距離に応じて力や色が変化するように変更してもよい。あるいは、力の関数を式(1)のように定義したが、F(di)を3次、4次、あるいはsin等の関数に定義し、力の大きさ、引力/斥力等を距離diに応じて変更できるようにしてもよい。あるいは、力場内の力および方向を一定にし、計算をより簡単化してもよい。
【0079】
また、図2において、力場を球形に示したが、力場の領域は球形に限られるものではなく、他の如何なる形に変更してもよい。さらに、rminおよびrmaxの値を固定的にせず、移動オブジェクトの速度や、レーシングカーが存在するエリア等により変更してもよい。
【0080】
また、本実施の形態では、力場領域を無色透明のものとして扱ったが、効果付与領域に色を設定して、その存在を明確に表示してもよい。さらに、火花発生ポイントをレースコース上に設定したが、客席の壁面や縁石等の火花が発生しやすいポイントにも設定することとしてもよい。
【0081】
また、力場の領域をオブジェクト空間に広がる3次元的な空間として扱ったが、平面的に扱って、水面における流れを表現するものであってもよい。例えば、川を流れる木片が側方を移動するボート(移動オブジェクト)から出る波を受けて進行方向を変更するといった場合の表現にも適用できる。
【0082】
また、本実施の形態においては、レーシングカーが路面と摩擦することにより発生する火花を表現する方法について説明したが、レーシングカー同士の衝突といった、レーシングカーと他の物体との衝突により発生する炎や、煙、火花等にも適用することができる。
【0083】
【発明の効果】
本発明によれば、所与の条件に応じて粒子系を発生させると当時に、移動オブジェクトに付随した効果付与領域を生成することができる。したがって、効果付与領域内に存在する粒子の速度や方向を変化させて、より複雑な運動をする粒子を簡単な計算によって表現することができる。また、効果付与領域内の粒子の色彩を変更できるため、粒子の表現のバラエティーを広げることができる。
【図面の簡単な説明】
【図1】レーシングカーから火花が発生している一例を示す図。
【図2】力場領域の一例を示す図。
【図3】本発明を家庭用のゲーム装置に適用した場合の一例を示す図。
【図4】機能ブロックの一例を示す図。
【図5】火花発生ポイントの設定例を示す図。
【図6】火花制御処理を説明するフローチャートを示す図。
【図7】火花発生処理を説明するフローチャートを示す図。
【図8】本実施の形態を実現できるハードウェア構成の一例を示す図。
【図9】本発明を業務用のゲーム装置に適用した場合の一例を示す図。
【図10】複数の力場領域が存在する場合の火花制御処理を説明するフローチャートを示す図。
【符号の説明】
10 操作部
20 処理部
22 ゲーム演算部
220 火花発生部
222 火花制御部
224 力場制御部
24 画像生成部
40 情報記憶媒体
42 ゲームプログラム
420 火花発生プログラム
422 火花制御プログラム
424 力場制御プログラム
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a game apparatus or the like that generates an image at a given viewpoint in an object space and executes the given game by displaying the generated image.
[0002]
[Prior art]
In general, when using computer graphics (hereinafter referred to as CG) to generate a moving image that expresses particle systems such as smoke, steam, and sparks in a three-dimensional virtual space, each particle is modeled. Without defining the number of particles, the position where each particle exists is determined for each frame of the moving image. More specifically, the source of particles is specified in the object space, the number of particles emitted from the source per unit time, initial conditions such as the initial velocity, direction, and life of the particles, as well as color and brightness. Set color conditions. In order to more realistically express a particle system that is easily affected by the atmosphere, a fluid field of air is defined, and the movement position of each particle is determined by calculation according to the dynamics.
[0003]
[Problems to be solved by the invention]
However, the process of calculating the motion of the particles according to the dynamics of the fluid field is complicated and the number of particles is enormous, so that a lot of processing time is required. On the other hand, there is a game device as a device using three-dimensional CG. However, in this game device, since it is necessary to generate an image in response to a player's operation, a high processing speed is required for image generation. Is done. For this reason, the following methods have been taken as methods for expressing particles such as particles that fluctuate due to wind.
[0004]
One of them is a method of presetting a generation pattern of particle-based particles and sequentially reproducing and displaying them in accordance with given conditions. However, this method is unnatural because the same pattern is displayed every time, such as generation of particles and fluctuations with respect to the wind. As another method, there is a method of ignoring the presence of air and controlling the motion of particles with a dynamic system simplified to only heavy drop motion. However, there was a problem that the motion of the particles was simple, and there was no fluctuation that appeared in the actual particle system, and the expression became strange.
[0005]
The present invention has been made to solve the above problem, and an object thereof is to realize realistic expression of particles by simple calculation.
[0006]
[Means for Solving the Problems]
  To solve the above problems1st inventionIs a game device for generating a given game by generating an image of an object space viewed from a virtual camera and displaying the generated image, and for generating a given particle in the object space Generating means (for example, the spark generating section 220 in FIG. 4), area generating means (for example, the force field control section 224 in FIG. 4) for generating an effect applying area at a given position in the object space, When the given particle is present in the effect imparting region, effect imparting means (for example, the spark control unit 222 and the force field control unit 224 in FIG. 4) for giving a physical or color effect to the particle; WithIt is a game device.
[0007]
  Also,12th inventionIs an information storage medium that stores information for executing a given game by generating an image of the object space viewed from the virtual camera and displaying the generated image. Particle generation information for generating particles (for example, the spark generation program 420 in FIG. 4) and region generation information for generating an effect applying region at a given position in the object space (for example, the force field in FIG. 4). Control program 424) and, when the given particle is present in the effect imparting region, effect imparting information for giving a physical or color effect to the particle (for example, the spark control program 422 in FIG. 4) And includingAn information storage medium.
[0008]
Here, the particle means a particle constituting a particle system such as smoke, gas, steam, fire, cloud, and spark, and is defined by coordinates in the object space. The physical effect is to change the speed and direction of the particle, and the chromatic effect is to change the color, brightness, etc. given to the particle.
[0009]
  thisFirstOr12thAccording to the invention, particles existing in the effect imparting region can be given a physical or color effect peculiar to the region, so that particles having a motion or color different from the other particles are expressed. can do. Therefore, it is possible to represent the movement of the particle and the change in color more realistically by simple calculation without making it monotonous.
[0010]
  Also,As the second invention, the first inventionIn the game apparatus, the particle generating means generates the given particle according to a given condition relating to the movement or collision of the moving object.Configure the game deviceIt is good as well.
[0011]
  Also,As a thirteenth invention, a twelfth inventionIn the information storage medium, the particle generation information generates the given particle according to a given condition relating to the movement or collision of the moving object.Configuring an information storage mediumIt is good as well.
[0012]
  thisSecondOr13thAccording to the invention, for example, when the moving object is a racing car, sparks generated by friction between the racing car and the road surface, smoke generated from tires due to sudden braking, flames generated by collision of racing cars The particle system generated according to a given condition can be expressed with good timing. Alternatively, in a car racing game, it is possible to realistically represent a state in which dust or the like caused by a car running ahead flickers in the field of view (on the display screen).
[0013]
  Also,As the third invention, the first or second inventionIn the game apparatus, the area generating means generates the effect applying area at a given position associated with the moving object.Configure the game deviceIt is good as well.
[0014]
  Also,As a fourteenth invention, the twelfth or thirteenth inventionIn the information storage medium, the area generation information generates the effect applying area at a given position associated with the moving object.Configuring an information storage mediumIt is good as well.
[0015]
Here, the accompanying means that the movement of the effect applying region is restricted by the moving conditions such as the speed of the moving object, acceleration / deceleration, and direction change.
[0016]
  thisThirdOr14thAccording to the invention, since the effect imparting region is generated along with the moving object, the wind generated with the movement of the moving object can be expressed by the effect imparting region. Therefore, for example, dust that is rolled up by the movement of the moving object can be expressed by a simple calculation.
[0017]
  Also,As a fourth invention, any one of the first to third inventionsIn the game apparatus, the effect imparting means imparts a physical or color effect to the given particle based on a distance between the given particle and a given point in the effect imparting region.Configure the game deviceIt is good as well.
[0018]
  Also,As a fifteenth invention, any one of the twelfth to fourteenth inventionsIn the information storage medium, the effect imparting information gives a physical or color effect to the given particle based on a distance between the given particle and a given point in the effect imparting region.Configuring an information storage mediumIt is good as well.
[0019]
  this4thOr15thAccording to the invention, if a function of the distance between a particle and a given point is defined as a physical effect, and the particle in the effect applying region receives a force proportional to the function, the given point It is possible to express a force field where is an attractive point or a repulsive point. Alternatively, as the color effect, the color, brightness, transparency, and the like of the particles in the effect applying region can be variously changed according to the distance between the particles and a given point. Thus, for example, in a role-playing game, a monotonically rising yellow poisonous smoke is attracted by a character with an attractive point, or repels by a repulsive point, or the color of a poisonous smoke The fun of the game can be doubled by simple calculations, such as making it darker as it approaches ().
[0020]
  Also,As a fifth invention, any one of the first to fourth inventionsIn the game apparatus, the effect imparting means imparts a physical effect to the particle by changing a speed or a moving direction of the given particle.Configure the game deviceIt is good as well.
[0021]
  Also,As a sixteenth invention, any one of the twelfth to fifteenth inventionsIn the information storage medium, the effect providing information includes information for changing a speed or a moving direction of the given particle in order to give a physical effect to the given particle.Configuring an information storage mediumIt is good as well.
[0022]
  this5thOr16thAccording to the invention, since the speed and direction of movement of the particles in the effect imparting region can be changed and the motion different from the particles existing outside the effect imparting region can be made, the motion of the particles becomes complicated and realistic. A particle system can be expressed.
[0023]
  Also,As a sixth invention, any one of the first to fifth inventionsIn the above game device, the effect imparting means imparts a chromatic effect to the given particle by changing the color, brightness, transparency, or locus of the given particle.Configure the game deviceIt is good as well.
[0024]
  Also,As a seventeenth invention, any one of the twelfth to sixteenth inventionsIn the information storage medium, the effect imparting information includes information for changing the color, brightness, transparency, or locus of the given particle in order to impart a chromatic effect to the given particle.Configuring an information storage mediumIt is good as well.
[0025]
  this6thOr17thAccording to the invention, the particles in the effect imparting region have a color, brightness, transparency, or locus of particles different from those of other particles, so that it is possible to give variety to the entire particle system.
[0026]
  Also,As a seventh invention, any one of the first to sixth inventionsIn the game apparatus, the area generating means changes a position where the effect applying area is generated in accordance with the progress of the given game.Configure the game deviceIt is good as well.
[0027]
  this7thAccording to the invention, in accordance with various changes such as the progress of the game, that is, the change of the speed and acceleration of the moving object, the change of the area where the moving object exists in the object space, the change of the game stage, etc. The generation position can be changed variously. For this reason, it is possible to give fluctuation particles and color changes according to the progress of the game to particles that are generated in the same way, and the movement and appearance of the entire particle system are not patterned, and the user's game image Can maintain a fresh feeling.
[0028]
  Also,As an eighth invention, any one of the first to seventh inventionsIn the game apparatus, the area generating means changes the number of effect imparting areas to be generated according to the progress of the given game.Configure the game deviceIt is good as well.
[0029]
  this8thAccording to the invention, since the number of effect imparting regions can be changed according to the progress of the game, for example, in a car racing game, when a racing car enters sandy ground, the number of effect imparting regions is increased to generate dust. Variations in particle motion can be expanded by simple calculations, such as representing a state of soaring, or presenting a relatively calm environment by reducing the number when present on a paved road.
[0030]
  Also,As a ninth invention, any one of the first to eighth inventionsIn the above game apparatus, the region generating means changes the shape of the effect imparting region generated according to the progress of the given game.Configure the game deviceIt is good as well.
[0031]
  this9thAccording to the invention, for example, the shape of the effect imparting region is randomly changed to express the sense of fluctuation of the particles, or the shape of the effect imparting region is extended in a given direction so that the particles are blown by the wind Etc. can be expressed more realistically.
[0032]
  Also,As a tenth invention, any one of the first to ninth inventionsIn the game device, the given particle is made into a spark or smoke.Configuring a gaming device toMay be. Here, the smoke includes smoke generated by things other than fire, such as earth smoke.
[0033]
  this10thAccording to the invention, a realistic expression of sparks and smoke can be realized by simple calculation.
[0034]
  Also,As an eleventh invention, any one of the first to tenth inventionsIn the game device, the given particle is represented by a particle.Configure the game deviceIt is good as well. Here, particles represent objects with unclear boundaries such as sparks, flames, and smoke by controlling parameters such as particle generation time, moving speed, lifetime, brightness, and transparency. One method.
[0035]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, preferred embodiments of the present invention will be described with reference to the drawings. Hereinafter, in a car racing game, a method for realistically expressing sparks generated by a racing car object (hereinafter simply referred to as a racing car) rubbing against a road surface by simple calculation will be described. However, what is applicable is not limited to this.
[0036]
The principle of the present invention will be described below.
In the present embodiment, sparks to be generated (each spark powder) are expressed by particles. That is, each of the sparks has coordinates in the object space and moves in the object space based on the initial velocity, the acceleration of gravity, the force in the force field region that is the effect applying region, and the like. In addition, brightness, transparency, color, and life are set for each spark.
[0037]
Then, the force field region is set so as to move along with the racing car which is a moving object. Here, as shown in FIG. 1, a virtual spring 6 having a given spring constant is provided between the racing car 2 and the center point G of the force field region 4 as shown in FIG. It means to move according to the moving condition of the racing car 2. That is, the force field region 4 can move left and right, back and forth, up and down, etc. according to inertia with respect to acceleration / deceleration, direction change, and the like of the racing car 2.
[0038]
The spark generation timing is when the racing car 2 passes a spark generation point, which will be described later. As shown in FIG. 1, sparks 8 are generated from a preset spark generation source 2-1. The spark 8 generated from the spark generation source 2-1 moves according to the initial condition and gravity. However, when entering the force field region 4 (spark 8-3), the influence of the force defined in the force field region 4 is affected. receive. In FIG. 1, the force field area 4 is shown for clarity, but the force field area 4 is not displayed on the display screen on the game.
[0039]
FIG. 2A is a diagram illustrating an example of the force field region 4. In the figure, G is the center coordinate of the force field, piIs the position of the i th spark, diIs the center point G of the force field and the position p of the sparksiThe distance between and F (di) Indicates the force that the spark i receives from the force field G, respectively. RminAnd rmaxMeans the distance from the center point G, and each spark is rmin<Di<RmaxOnly within a range that satisfies the condition, the influence of the force field G, ie, the force F (di) Moreover, the arrow in the figure means a vector.
[0040]
Force F (di)
F (di) = Α / di                ... (1)
The distance diDefined by the function. Where α is the distance diIs a coefficient related to the force F (di) Is a vector, α is also a vector. Here, the vector α is set in a direction toward the center point G so that the force field G becomes an attractive field, but the sign of the vector α may be changed to make the force field G a repulsive field. The distance diThe sign and value of α may be changed according to the direction.
[0041]
FIG. 2B represents the locus of the spark 8 that has moved under the influence of the force field G. In the figure, the spark 8 is in the region r.min<Di<RmaxMoves according to gravity outside the region, but the region rmin<Di<RmaxInside, in addition to gravity, it receives force from the force field G. Therefore, the sparks draw a different trajectory from a simple parabolic motion.
[0042]
Furthermore, the region rmin<Di<RmaxIf sparks are present, the transparency, color, brightness, etc. of the sparks are changed. Specifically, the mixing ratio of each color of RGB is set according to the distance from G, and the gradation from red to yellow is set to d.iAssign to. And, a method of setting the spark i to change from red to yellow as it approaches the center point G, or diA method of changing the color according to the distance from G by applying brightness, transparency, and the like to is applied.
[0043]
Next, the configuration in the present embodiment will be described.
FIG. 3 is a diagram showing an example when the present invention is applied to a home game device. In the figure, the user enjoys a game such as a car racing game by operating the game controllers 1202 and 1204 while viewing the game image displayed on the display 1200. In this case, information necessary for playing a game such as a game program is stored in a CD-ROM 1206, an IC card 1208, a memory card 1212, and the like, which are information storage media detachable from the main unit.
[0044]
FIG. 4 is a diagram illustrating an example of functional blocks in the present embodiment. In the figure, the functional block includes an operation unit 10, a processing unit 20, a display unit 30, and an information storage medium 40.
[0045]
The operation unit 10 is used to input an operation of the player's own character (racing car) in a car racing game and an instruction to start or stop the game. In addition, game controllers 1202 and 1204 illustrated in FIG. 3 correspond to the operation unit 10.
[0046]
The processing unit 20 mainly includes a game calculation unit 22 and an image generation unit 24, and can be realized by hardware such as a CISC type or RISC type CPU, DSP, or an image capture dedicated IC.
[0047]
The game calculation unit 22 reads the game program 42 from the information storage medium 40 in response to the instruction signal input from the operation unit 10 and constructs an object space that is a game space. A plurality of racing cars are moved into the object space in accordance with an operation signal input from the operation unit 10 or the game program 42 to execute a car racing game, and the constructed object space, the position of each racing car, etc. The indicated data is output to the image generation unit 24. In addition, the game calculation unit 22 includes a spark generation unit 220, a spark control unit 222, and a force field control unit 224.
[0048]
When the spark generation unit 220 receives a game start signal from the operation unit 10, the spark generation unit 220 reads the spark generation program 420 in the information storage medium 40, and sets the spark generation point 50 on the race course 56 as shown in FIG. Set. The spark generation point 50 is defined by position coordinates in the object space.
[0049]
In addition, the spark generation unit 220 determines whether each racing car has passed over the spark generation point 50 while the game is in progress. When it passes, as shown in FIG. 1, the spark 8 is emitted from the spark generation source 2-1 of the racing car 2 that has passed the spark generation point. At this time, the spark generation unit 220 sets initial conditions such as the amount of spark discharge, initial speed, direction, life, color, and brightness according to the speed of the racing car 2.
[0050]
The spark control unit 222 reads the spark control program 422 from the information storage medium 40, and sets the speed and position of the spark that fluctuates depending on the gravity and the force inside the force field area for all the sparks generated by the spark generation unit 220. calculate. In addition, for the spark present in the force field region, the color of the spark and the color such as luminance are determined according to the distance from the center point of the force field region.
[0051]
FIG. 6 is a flowchart showing a spark control process executed by the spark control unit 222 when the spark generation unit 220 generates n pieces of sparks for the racing car that has passed the spark generation point. In the figure, the spark control unit 222 first searches for the position of the i = 0th spark (step S1).
[0052]
And the center point G of the force field and the spark piThe distance d betweeniIs calculated (step S2), and it is determined whether or not the spark i is in the region affected by the force field G (step S3).
[0053]
In step S3, the spark i is a region r.min<Di<RmaxIf not, the process proceeds to step S6. On the other hand, the region rmin<Di<RmaxIf it is within, the distance diThe color corresponding to is determined (step S4). Then the force F (di) Based on speed ViIs calculated (step S5). ViIs the speed of sparks i, miMeans the mass of the spark i. Moreover, dt means the time interval which performs a spark control process.
[0054]
When the speed change due to the force field G is calculated in step S5, the speed change of the spark i due to gravity (g means gravitational acceleration) is obtained (step S6).
[0055]
In Steps S5 to S6, when calculation of all force fields that can affect the spark i is completed, the position of the spark i is calculated (Step S7), 1 is added to i (Step S8), and i = n It is determined whether or not (step S9). If i = n is not true, the process proceeds to step S2, and the position of the next spark i is calculated. On the other hand, if i = n is satisfied in step S11, it is determined that the positions of n sparks have been determined, and the spark control process is terminated.
[0056]
The force field control unit 224 reads the force field control program 424 from the information storage medium 40, sets the spring constant of the virtual spring 6 shown in FIG. Calculate the amount of expansion and contraction. Then, the position of the force field region 4 is determined from the expansion and contraction of the virtual spring 6 and the set spring constant. Further, the force field control unit 224 generates a force function F (di) (See equation (1)) is changed in accordance with the speed and acceleration of the racing car.
[0057]
The image generation unit 24 performs processing for generating an image based on a virtual camera that is a given viewpoint in the object space set by the game calculation unit 22. The image data generated by the image generation unit 24 is displayed on the display unit 30.
[0058]
The information storage medium 40 stores a game program 42. The function of the information storage medium 40 can be realized by hardware such as a CD-ROM, game cassette, IC card, MO, FD, DVD, memory, and hard disk. The game program 42 includes a spark generation program 420, a spark control program 422, and a force field control program 424.
[0059]
Next, the spark generation processing executed by the game calculation unit 22 will be described below based on the flowchart shown in FIG. This process is executed as needed for all moving racing cars.
[0060]
In FIG. 7, first, the force field control unit 224 calculates the position of the force field region and the magnitude of the force in the force field region according to the moving condition of the racing car (step S20). Next, the spark generation unit 220 determines whether or not the racing car passes the spark generation point (step S21). If it is determined that the racing car passes the spark generation point, the spark generation unit 220 determines the spark generation source, emission rate, initial speed, direction, life, color, brightness, and the like to generate the spark (step) S22).
[0061]
And the spark control part 222 performs a spark control process with respect to the spark generated at step S22 (step S23), and ends the spark generation process.
[0062]
On the other hand, when it is determined in step S21 that the racing car does not pass the spark generation point, the spark control unit 222 determines whether or not there is still spark in the object space (step S24). If there is no spark, the spark generation process is terminated.
[0063]
If it is determined in step S24 that there are sparks in the object space, the spark control unit 222 controls those sparks (step S23) and ends the spark generation process.
[0064]
Next, an example of a hardware configuration capable of realizing the present embodiment will be described with reference to FIG. In the apparatus shown in the figure, a CPU 1000, a ROM 1002, a RAM 1004, an information storage medium 1006, a sound generation IC 1008, an image generation IC 1010, and I / O ports 1012, 1014 are connected to each other via a system bus 1016 so as to be able to input and output data. . A display 1018 is connected to the image generation IC 1010, a speaker 1020 is connected to the sound generation IC 1008, a control device 1022 is connected to the I / O port 1012, and communication is performed to the I / O port 1014. A device 1024 is connected.
[0065]
The information storage medium 1006 mainly stores programs, image data for expressing display objects, sound data, play data, and the like. For example, in a home game device, a CD-ROM, a game cassette, a DVD, or the like is used as an information storage medium for storing a game program or the like, and a memory card or the like is used as an information storage medium for storing play data. In the arcade game machine, a memory such as a ROM or a hard disk is used. In this case, the information storage medium 1006 is a ROM 1002.
[0066]
The control device 1022 corresponds to a game controller, an operation panel, and the like, and is a device for inputting a result of determination made by the user in accordance with the progress of the game to the device main body.
[0067]
In accordance with a program stored in the information storage medium 1006, a system program stored in the ROM 1002 (initialization information of the apparatus main body), a signal input by the control apparatus 1022, the CPU 1000 performs control of the entire apparatus and various data processing. Do. The RAM 1004 is a storage means used as a work area of the CPU 1000 and stores the given contents of the information storage medium 1006 and the ROM 1002 or the calculation result of the CPU 1000.
[0068]
Further, this type of apparatus is provided with a sound generation IC 1008 and an image generation IC 1010 so that game sounds and game images can be suitably output. The sound generation IC 1008 is an integrated circuit that generates game sounds such as sound effects and background music based on information stored in the information storage medium 1006 and the ROM 1002, and the generated game sounds are output by the speaker 1020. . The image generation IC 1010 is an integrated circuit that generates pixel information to be output to the display 1018 based on image information output from the RAM 1004, the ROM 1002, the information storage medium 1006, and the like. The display 1018 includes a display device such as a CRT, LCD, TV, plasma display, liquid crystal plasma display, or projector.
[0069]
The communication device 1024 exchanges various types of information used inside the game device with the outside. The communication device 1024 is connected to other game devices to send and receive given information according to the game program, It is used for sending and receiving information such as game programs via the.
[0070]
1 to 5 includes an information storage medium 1006 storing a program for performing the processing shown in the flowcharts of FIGS. 6 and 7, a CPU 1000 that operates according to the program, an image generation IC 1010, This is realized by the sound generation IC 1008 or the like. Note that the processing performed by the image generation IC 1010, the sound generation IC 1008, and the like may be performed by software using the CPU 1000 or a general-purpose DSP.
[0071]
FIG. 9 is a diagram showing an example when the present embodiment is applied to the arcade game apparatus 1300. This arcade game apparatus 1300 is formed using a racing car shape as a model, and a user sitting on a seat 1310 looks at an image displayed on the display 1302 while a handle 1304 provided on the operation unit 10 and an accelerator. This is a device for operating a virtual racing car by operating 1306, a brake 1308, etc. and enjoying a game.
[0072]
A CPU, an image generation IC, a sound generation IC, and the like are mounted on a system board 1312 built in the arcade game apparatus 1300. A game program, a spark generation program, a spark control program, a force field control program, and the like are stored in a memory that is an information storage medium on the system board 1312.
[0073]
The present invention is not limited to the one described in the above embodiment, and various modifications can be made. For example, in the present embodiment, only one force field region associated with the racing car is set, but a plurality of force field regions can be set. FIG. 10 is a flowchart showing a spark control process executed by the spark control unit 222 for each racing car when m force field regions are associated with each racing car.
[0074]
The difference between the spark control process shown in FIG. 10 and the spark control process shown in FIG. 6 is that an argument j for counting the force field region is added. In FIG. 10, the spark control unit 222 searches for the position of the i (= 0) th spark powder (step S1), and then searches for the position of the j (= 0) th force field region (step T1).
[0075]
In steps S2 to S5, when the influence of the force field region j on the spark i is calculated, 1 is added to j (step T2), and j = m, that is, whether all the force field regions have been calculated. Is determined (step T3). In addition, d shown in step S3jiIs the center point GjAnd the distance between sparks i and rjminAnd rjmaxIs the center point GjEach of the values specifies the range of the force field area.
[0076]
If the condition of j = m is not satisfied in step T3, the process returns to step S2 to calculate the influence of the next force field region on the spark i. On the other hand, when the condition of j = m is satisfied in step T3, the process proceeds to step S6 assuming that the influence of all force field regions is calculated for the spark i. And the position of the spark i is determined by step S6-S7, and a process transfers to the next spark by step S8-S9. And after determining the position of all the sparks, this spark control process is complete | finished. However, Fj(Dji) Means the force working inside the force field region j.
[0077]
According to the above processing, for example, when there are overlapping portions in two force field regions and sparks exist in those regions, it is possible to calculate the speed change for all forces that can affect the sparks. .
[0078]
In this embodiment, a center point is placed in the force field area, and the force and color change according to the distance from the center point. However, according to the distance from the line or surface, not the point. You may change so that a power and a color may change. Alternatively, the force function is defined as in equation (1), but F (di) Is defined as a function such as cubic, quadratic, or sin, and the magnitude of force, attractive force / repulsive force, etc. are defined as distance d.iIt may be possible to change it according to. Alternatively, the force and direction in the force field may be constant to simplify the calculation.
[0079]
In FIG. 2, the force field is shown as a sphere, but the region of the force field is not limited to a sphere, and may be changed to any other shape. In addition, rminAnd rmaxThe value of may not be fixed, but may be changed according to the speed of the moving object, the area where the racing car exists, or the like.
[0080]
In the present embodiment, the force field area is treated as colorless and transparent, but a color may be set in the effect imparting area to clearly display its presence. Furthermore, although the spark generation point is set on the race course, it may be set to a point where sparks such as a wall surface of a passenger seat or a curb are likely to be generated.
[0081]
Further, although the force field region is treated as a three-dimensional space extending in the object space, it may be treated planarly to express the flow on the water surface. For example, the present invention can also be applied to expressions in which a piece of wood flowing through a river receives a wave from a boat (moving object) that moves to the side and changes the traveling direction.
[0082]
Further, in the present embodiment, the method for expressing sparks generated when the racing car rubs against the road surface has been described. However, a flame generated by a collision between the racing car and another object, such as a collision between the racing cars. It can also be applied to smoke and sparks.
[0083]
【The invention's effect】
According to the present invention, when a particle system is generated according to a given condition, an effect imparting region associated with a moving object can be generated at that time. Therefore, particles that move more complicatedly by changing the speed and direction of the particles existing in the effect imparting region can be expressed by simple calculation. Moreover, since the color of the particle | grains in an effect provision area | region can be changed, the variety of expression of particle | grains can be expanded.
[Brief description of the drawings]
FIG. 1 is a diagram showing an example in which sparks are generated from a racing car.
FIG. 2 is a diagram showing an example of a force field region.
FIG. 3 is a diagram showing an example when the present invention is applied to a home game device.
FIG. 4 is a diagram illustrating an example of a functional block.
FIG. 5 is a diagram showing a setting example of a spark generation point.
FIG. 6 is a flowchart illustrating a spark control process.
FIG. 7 is a flowchart illustrating a spark generation process.
FIG. 8 is a diagram illustrating an example of a hardware configuration capable of realizing the present embodiment.
FIG. 9 is a diagram showing an example when the present invention is applied to an arcade game device.
FIG. 10 is a flowchart illustrating a spark control process when there are a plurality of force field regions.
[Explanation of symbols]
10 Operation part
20 processor
22 Game calculator
220 Spark generation part
222 Spark Control Unit
224 Force field controller
24 Image generator
40 Information storage media
42 game programs
420 Spark generation program
422 Spark control program
424 Force field control program

Claims (11)

コンピュータに、仮想カメラから見たオブジェクト空間の画像を生成させ、当該生成画像を表示させることによって所与のゲームを実行させるためのプログラムを記憶したコンピュータ読み取り可能な情報記憶媒体であって、
前記プログラムは、
前記オブジェクト空間に所与の粒子を発生させる発生源を移動オブジェクトの周辺所定位置に設定する発生源設定手段
前記発生源から前記所与の粒子を発生させる粒子発生手段、
前記発生源とは異なる位置であって前記移動オブジェクトに付随する所与の位置に効果付与領域を設定する領域設定手段
前記効果付与領域内に前記所与の粒子が入った場合に、当該粒子の移動速度、移動方向、移動軌跡、表示色、輝度、及び透明度のうち少なくとも1つを変化させる効果付与処理を実行する効果付与処理実行手段
として前記コンピュータを機能させるためのプログラムである情報記憶媒体。
The computer to generate an image of the object space viewed from a virtual camera, a computer-readable information storage medium storing a program for causing execution of a given game by displaying the generated image,
The program is
Generation source setting means for setting a generation source for generating given particles in the object space to a predetermined position around a moving object ;
Particle generating means for generating the given particles from the source;
An area setting means for setting an effect applying area at a given position that is different from the generation source and associated with the moving object ;
When the given particle enters the effect imparting region, an effect imparting process is performed to change at least one of the moving speed, the moving direction, the movement trajectory, the display color, the luminance, and the transparency of the particle. Effect imparting process execution means ,
An information storage medium that is a program for causing the computer to function as:
請求項1記載の情報記憶媒体であって、  An information storage medium according to claim 1,
前記プログラムは、  The program is
前記領域設定手段が、前記移動オブジェクトから所与の距離離れた位置に前記効果付与領域を設定するように前記コンピュータを機能させるとともに、前記所与の距離を可変する距離可変手段として前記コンピュータを更に機能させるためのプログラムである情報記憶媒体。  The area setting means causes the computer to set the effect imparting area at a position away from the moving object by a given distance, and the computer is further used as a distance variable means for changing the given distance. An information storage medium that is a program for functioning.
請求項1記載の情報記憶媒体であって、  An information storage medium according to claim 1,
前記プログラムは、  The program is
前記領域設定手段が、前記移動オブジェクトと前記効果付与領域間に仮想バネを設定し、該仮想バネの伸縮量を演算して前記移動オブジェクトに対する相対的な前記効果付与領域の位置を可変するように前記コンピュータを機能させるためのプログラムである情報記憶媒体。  The region setting means sets a virtual spring between the moving object and the effect applying region, calculates an expansion / contraction amount of the virtual spring, and changes a position of the effect applying region relative to the moving object. An information storage medium which is a program for causing the computer to function.
請求項1から3のいずれか記載の情報記憶媒体であって、
前記プログラムは、
前記粒子発生手段が前記移動オブジェクトの移動または衝突に係る所与の条件に応じて、前記所与の粒子を発生させるように前記コンピュータを機能させるためのプログラムである情報記憶媒体。
An information storage medium according to any one of claims 1 to 3 ,
The program is
Wherein the particle generating means, in response to said predetermined condition of the movement or collision of the moving object, the given program in which the information storage medium for causing the computer to function such that particles generate.
請求項1から4のいずれか記載の情報記憶媒体であって、
前記プログラムは、
前記効果付与処理実行手段が、前記所与の粒子と、前記効果付与領域内の所与の点との距離に基づいて、前記所与の粒子の移動速度、移動方向、移動軌跡、表示色、輝度、及び透明度のうち少なくとも1つを変化させるように前記コンピュータを機能させるためのプログラムである情報記憶媒体。
An information storage medium according to any one of claims 1 to 4 ,
The program is
Based on the distance between the given particle and a given point in the effect imparting region, the effect imparting process execution means is configured to move the given particle at a moving speed, a moving direction, a moving locus, a display color, An information storage medium which is a program for causing the computer to function so as to change at least one of brightness and transparency .
請求項1から5のいずれか記載の情報記憶媒体であって、  An information storage medium according to any one of claims 1 to 5,
前記プログラムは、  The program is
前記領域設定手段が、前記所与のゲームの進行に応じて前記効果付与領域を設定する位置を変更するように前記コンピュータを機能させるためのプログラムである情報記憶媒体。  An information storage medium which is a program for causing the computer to function so that the area setting means changes a position where the effect applying area is set in accordance with the progress of the given game.
請求項1から6のいずれか記載の情報記憶媒体であって、  An information storage medium according to any one of claims 1 to 6,
前記プログラムは、  The program is
前記領域設定手段が、前記所与のゲームの進行に応じて設定する効果付与領域の数を変更するように前記コンピュータを機能させるためのプログラムである情報記憶媒体。  An information storage medium that is a program for causing the computer to function so that the region setting means changes the number of effect imparting regions set in accordance with the progress of the given game.
請求項1から7のいずれか記載の情報記憶媒体であって、  An information storage medium according to any one of claims 1 to 7,
前記プログラムは、  The program is
前記領域設定手段が、前記所与のゲームの進行に応じて設定する効果付与領域の形状を変更するように前記コンピュータを機能させるためのプログラムである情報記憶媒体。  An information storage medium, which is a program for causing the computer to function so that the area setting means changes the shape of the effect applying area set in accordance with the progress of the given game.
請求項1から8のいずれか記載の情報記憶媒体であって、  An information storage medium according to any one of claims 1 to 8,
前記プログラムは、  The program is
前記粒子発生手段が、前記所与の粒子として火花または煙を発生させるように前記コンピュータを機能させるためのプログラムである情報記憶媒体。  An information storage medium, which is a program for causing the computer to function so that the particle generating means generates sparks or smoke as the given particles.
請求項1から9のいずれか記載の情報記憶媒体であって、  An information storage medium according to any one of claims 1 to 9,
前記プログラムは、  The program is
前記粒子発生手段が、前記所与の粒子をパーティクルにより表現するように前記コンピュータを機能させるためのプログラムである情報記憶媒体。  An information storage medium, which is a program for causing the computer to function so that the particle generating means represents the given particle by particles.
仮想カメラから見たオブジェクト空間の画像を生成し、当該生成画像を表示させることによって所与のゲームを実行するゲーム装置であって、
前記オブジェクト空間に所与の粒子を発生させる発生源を移動オブジェクトの周辺所定位置に設定する発生源設定手段と、
前記発生源から前記所与の粒子を発生させる粒子発生手段と、
前記発生源とは異なる位置であって前記移動オブジェクトに付随する所与の位置に効果付与領域を設定する領域設定手段と、
前記効果付与領域内に前記所与の粒子が入った場合に、当該粒子の移動速度、移動方向、移動軌跡、表示色、輝度、及び透明度のうち少なくとも1つを変化させる効果付与処理を実行する効果付与処理実行手段と、
を備えることを特徴とするゲーム装置。
A game device that executes a given game by generating an image of an object space viewed from a virtual camera and displaying the generated image,
Generation source setting means for setting a generation source for generating given particles in the object space at a predetermined position around a moving object ;
Particle generating means for generating the given particles from the source;
An area setting means for setting an effect applying area at a given position associated with the moving object at a position different from the generation source ;
When the given particle enters the effect imparting region, an effect imparting process for changing at least one of the moving speed, the moving direction, the movement locus, the display color, the brightness, and the transparency of the particle is executed. An effect imparting process execution means;
A game apparatus comprising:
JP2000108616A 2000-04-10 2000-04-10 GAME DEVICE AND INFORMATION STORAGE MEDIUM Expired - Fee Related JP4057760B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000108616A JP4057760B2 (en) 2000-04-10 2000-04-10 GAME DEVICE AND INFORMATION STORAGE MEDIUM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000108616A JP4057760B2 (en) 2000-04-10 2000-04-10 GAME DEVICE AND INFORMATION STORAGE MEDIUM

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2007293159A Division JP4477053B2 (en) 2007-11-12 2007-11-12 Information storage medium and game device

Publications (2)

Publication Number Publication Date
JP2001286676A JP2001286676A (en) 2001-10-16
JP4057760B2 true JP4057760B2 (en) 2008-03-05

Family

ID=18621422

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000108616A Expired - Fee Related JP4057760B2 (en) 2000-04-10 2000-04-10 GAME DEVICE AND INFORMATION STORAGE MEDIUM

Country Status (1)

Country Link
JP (1) JP4057760B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006314705A (en) * 2005-05-16 2006-11-24 Nintendo Co Ltd Game program and game device
JP4861862B2 (en) * 2007-03-08 2012-01-25 株式会社バンダイナムコゲームス Program, information storage medium, and image generation system
JP7258594B2 (en) * 2019-02-22 2023-04-17 株式会社コーエーテクモゲームス Information processing device, information processing method, and program

Also Published As

Publication number Publication date
JP2001286676A (en) 2001-10-16

Similar Documents

Publication Publication Date Title
CN100514370C (en) Image processing device for a game
JP4771821B2 (en) Program, information storage medium, and image generation system
CA2204182C (en) Image processing method, image processor, and pseudo-experience device
JP4226663B2 (en) Image generating apparatus and image generating method
JP3990648B2 (en) Program, information storage medium, and image generation apparatus
JP4114822B2 (en) Image generating apparatus and information storage medium
JP4057760B2 (en) GAME DEVICE AND INFORMATION STORAGE MEDIUM
JP3428562B2 (en) Method and recording medium for processing movement of object, and game device
JP4477094B2 (en) Information storage medium and game device
JP4477053B2 (en) Information storage medium and game device
JPH11146978A (en) Three-dimensional game unit, and information recording medium
JP4397410B2 (en) Image generating apparatus and information storage medium
JP4303395B2 (en) GAME DEVICE AND INFORMATION STORAGE MEDIUM
JP2016171872A (en) Program, recording medium, information processing apparatus and control method
JP4743733B2 (en) Image generation system, program, and information storage medium
JP4408681B2 (en) Program, information storage medium, and image generation system
JP2006285510A (en) Program, information storage medium, and image generation system
JPH08276070A (en) Game machine
JP2001276414A (en) Game device and information memory medium
JP3783735B2 (en) Image processing apparatus and game apparatus having the same
JP3254091B2 (en) Three-dimensional simulator device and image synthesizing method
JP2006087938A (en) Game apparatus
JP4688405B2 (en) PROGRAM, INFORMATION STORAGE MEDIUM, AND GAME DEVICE
JP4886442B2 (en) Program, game device, and information storage medium
JP4390351B2 (en) GAME DEVICE AND INFORMATION STORAGE MEDIUM

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060623

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20060623

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20060626

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20060626

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070911

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20071112

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20071214

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 4057760

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20101221

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20101221

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20101221

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20111221

Year of fee payment: 4

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20111221

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20121221

Year of fee payment: 5

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20121221

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20131221

Year of fee payment: 6

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

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees