JP5750238B2 - Position indicating device, game device - Google Patents

Position indicating device, game device Download PDF

Info

Publication number
JP5750238B2
JP5750238B2 JP2010119577A JP2010119577A JP5750238B2 JP 5750238 B2 JP5750238 B2 JP 5750238B2 JP 2010119577 A JP2010119577 A JP 2010119577A JP 2010119577 A JP2010119577 A JP 2010119577A JP 5750238 B2 JP5750238 B2 JP 5750238B2
Authority
JP
Japan
Prior art keywords
image
led
light emitter
infrared
coordinate system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2010119577A
Other languages
Japanese (ja)
Other versions
JP2011244940A (en
Inventor
淳 星谷
淳 星谷
Original Assignee
株式会社タイトー
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 株式会社タイトー filed Critical 株式会社タイトー
Priority to JP2010119577A priority Critical patent/JP5750238B2/en
Publication of JP2011244940A publication Critical patent/JP2011244940A/en
Application granted granted Critical
Publication of JP5750238B2 publication Critical patent/JP5750238B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、ディスプレイ上の位置を指示するための位置指示装置、及び同装置を搭載したゲーム装置に関する。   The present invention relates to a position indicating device for indicating a position on a display, and a game device equipped with the device.

ゲームセンター等に設置される業務用のガンゲーム装置には、プレーヤーが自由に手に持って操作することができるガンコントローラが設けられたものがある。ガンゲーム装置は、プレーヤーによってガンコントローラをディスプレイ方向に向けた状態でトリガー操作されることにより、ガンコントローラによって位置指示されているディスプレイ上の座標を検出し、この座標に基づいてディスプレイに表示していたターゲットを撃ち倒すなどの処理を実行する。   Some commercial gun game apparatuses installed in game centers and the like are provided with a gun controller that a player can freely hold and operate. The gun game device detects the coordinates on the display pointed to by the gun controller by triggering the gun controller with the gun controller facing the display direction, and displays the coordinates on the display based on the coordinates. Execute a process such as shooting down a target.

ガンゲーム装置は、前述したように、ガンコントローラによって指示されているディスプレイ上の座標位置を検出する必要がある。従来のゲーム装置では、例えば、特許文献1に記載されているように、ビデオ画面を囲むように4箇所に発光体を配置し、射撃用のガンの銃身に設けられたCCDカメラによって撮影された4個の発光体を含む画像をもとに、4個の発光体の位置情報に基づいてビデオ画面に対するガンの相対位置、回転角度及び傾きを算出する構成が考えられている。   As described above, the gun game apparatus needs to detect the coordinate position on the display instructed by the gun controller. In a conventional game device, for example, as described in Patent Document 1, light emitters are arranged at four locations so as to surround a video screen, and are photographed by a CCD camera provided on the barrel of a shooting gun. A configuration is considered in which the relative position, rotation angle, and inclination of the gun with respect to the video screen are calculated based on the positional information of the four light emitters based on the image including the four light emitters.

特開平8−71252号公報JP-A-8-71252

しかしながら従来技術では、4個の発光体を常時点灯しており、CCDカメラによって撮影された画像には常に4個の点灯された発光体が含まれている。従って、ガンコントローラによって指示されている位置を継続的に検出するためには、この間に撮影される画像のそれぞれについて4個の発光体の位置を検出しなければならず画像処理の負荷が大きかった。   However, in the prior art, four light emitters are always lit, and an image taken by the CCD camera always includes four lit light emitters. Therefore, in order to continuously detect the position instructed by the gun controller, the positions of the four light emitters must be detected for each of the images photographed during this time, and the load of image processing is heavy. .

また、4個の発光体の配置がビデオ画面を囲む矩形の頂点に配置しているため、ガンコントローラをディスプレイに向けた状態で90度以上回転させると、4個の発光体の実際の位置と、撮影された画像中における発光体の位置との対応関係が一致しなくなってしまう。例えば、コントローラを右に90°回転させた状態で発光体を含む画像が撮影された場合、実際には左上に配置された発光体については、撮影された画像中では左下に位置してしまう。撮影された画像中の発光体が実際の発光体の何れに対応するか判別できないため、単純に画像中の各発光体の位置情報に基づいて座標を算出すると正確な結果が得られない場合があった。   In addition, since the four light emitters are arranged at the vertices of the rectangle surrounding the video screen, the actual position of the four light emitters can be determined by rotating the gun controller 90 degrees or more while facing the display. Therefore, the correspondence with the position of the light emitter in the photographed image does not match. For example, when an image including a illuminant is captured with the controller rotated 90 ° to the right, the illuminant disposed at the upper left is actually positioned at the lower left in the captured image. Since it is impossible to determine which of the actual illuminants corresponds to the illuminant in the photographed image, an accurate result may not be obtained if the coordinates are simply calculated based on the position information of each illuminant in the image. there were.

本発明は前述した事情に考慮してなされたもので、その目的は、画像処理の負荷を軽減すると共に、コントローラが回転された状態で操作された場合であっても正確な指示位置を示す座標を求めることが可能な位置指示装置、ゲーム装置を提供することにある。   The present invention has been made in view of the above-described circumstances, and its purpose is to reduce the load of image processing and to provide coordinates that indicate an accurate designated position even when the controller is operated in a rotated state. It is an object to provide a position indicating device and a game device capable of obtaining the above.

上記の課題を解決するために、本発明は、ディスプレイの周囲にそれぞれ離間させて配置した複数の発光体と、前記複数の発光体を個々に順次点灯させる制御手段と、プレーヤーによって操作されるコントローラの指示方向の画像を撮影するものであって、前記制御手段によって前記複数の発光体が個々に点灯された時の画像を撮影する撮影手段と、前記撮影手段によって撮影された各画像から前記発光体の位置を検出し、前記発光体毎に、複数回の前記発光体の位置をもとにして、他の発光体が点灯されている時の位置を近似する前記発光体の仮想の位置を算出し、前記発光体の位置及び前記発光体の仮想の位置を基準とした第1座標系における、前記画像中の前記コントローラによる指示位置を示す第1座標を算出する第1演算手段と、前記発光体が点灯されるタイミングと前記画像中の前記発光体の位置とに基づいて、前記第1座標系を、前記第1座標系における軸をX,Y軸とする第2座標系に補正し、前記第1座標に対応する前記第2座標系における第2座標を算出する第2演算手段とを具備したことを特徴とする。 In order to solve the above-described problems, the present invention provides a plurality of light emitters arranged separately from each other around a display, control means for sequentially lighting the plurality of light emitters individually, and a controller operated by a player An image in the indicated direction of the image, wherein the control means captures an image when the plurality of light emitters are individually turned on, and the light emission from each image captured by the image capturing means. The position of the body is detected, and for each of the light emitters, the virtual position of the light emitter that approximates the position when the other light emitters are turned on based on the positions of the light emitters a plurality of times. calculated, a first arithmetic means for calculating the first coordinate system based on the virtual position of the position and the light emitter of the light emitter, the first coordinate indicating the indicated position by the controller in the image, Based on the timing when the light emitter is turned on and the position of the light emitter in the image, the first coordinate system is corrected to a second coordinate system in which the axes in the first coordinate system are X and Y axes. And second calculating means for calculating a second coordinate in the second coordinate system corresponding to the first coordinate .

本発明によれば、画像処理の負荷を軽減すると共に、コントローラが回転された状態で操作された場合であっても正確な指示位置を示す座標を求めることが可能となる。   According to the present invention, it is possible to reduce the load of image processing and to obtain coordinates indicating an accurate designated position even when the controller is operated in a rotated state.

本実施形態におけるガンゲーム装置の概略構成を示す図。The figure which shows schematic structure of the gun game apparatus in this embodiment. ガンコントローラに設けられた赤外線画像センサによって撮影される画像の一例を示す図。The figure which shows an example of the image image | photographed with the infrared image sensor provided in the gun controller. 本実施形態におけるガンゲーム装置の機能構成を示すブロック図。The block diagram which shows the function structure of the gun game apparatus in this embodiment. コントロール装置による赤外線LEDの点灯制御を説明するための図。The figure for demonstrating lighting control of the infrared LED by a control apparatus. コントロール装置による赤外線LEDの点灯制御のタイミングと、ガンコントローラからコントロール装置へのデータ出力するタイミングを説明するためのタイミングチャート。The timing chart for demonstrating the timing of lighting control of the infrared LED by a control apparatus, and the timing of the data output from a gun controller to a control apparatus. 複数の赤外線LEDが点灯された時に撮影された画像から検出されるLED指標(矩形位置)の変化の一例を示す図。The figure which shows an example of the change of the LED parameter | index (rectangular position) detected from the image image | photographed when several infrared LED was lighted. 複数の赤外線LEDを個別に順次点灯させた時に撮影された画像から検出された4点のLED指標を結んで形成される形状を示す図。The figure which shows the shape formed by connecting the LED index of 4 points | pieces detected from the image image | photographed when the some infrared LED was lighted sequentially one by one. LED指標の位置をもとに、他の赤外線LED18が点灯されていた時に対応するLED指標の位置を線形補間によって求める例を示す図。The figure which shows the example which calculates | requires the position of a corresponding LED parameter | index by linear interpolation when the other infrared LED18 is lighted based on the position of an LED parameter | index. 赤外線LEDのそれぞれに対して算出された仮想のLED指標と、実際に検出されたLED指標の4点から形成される矩形の一例を示す図。The figure which shows an example of the rectangle formed from four points | pieces of the virtual LED parameter | index calculated with respect to each of infrared LED, and the LED index actually detected. LED指標の3点の位置をもとにした補間方法を用いた例を示す図。The figure which shows the example using the interpolation method based on the position of three points | pieces of an LED parameter | index. 撮影された画像から検出された4つのLED指標の位置の一例を示す図。The figure which shows an example of the position of four LED parameter | indexes detected from the image | photographed image. LED指標の位置をもとにして座標検出を説明するための図。The figure for demonstrating coordinate detection based on the position of a LED parameter | index. LED指標の位置をもとにして座標検出を説明するための図。The figure for demonstrating coordinate detection based on the position of a LED parameter | index.

以下、図面を参照して本発明の実施の形態について説明する。
図1は、本実施形態におけるガンゲーム装置の概略構成を示す図である。図1に示すガンゲーム装置は、銃型のコントローラ(以下、ガンコントローラ14)を操作することによって、例えばディスプレイ12において表示されたゲーム空間中に存在するターゲットを撃ち倒しながら進むゲームである。ゲーム処理装置10は、ディスプレイ12においてゲーム空間を表現するゲーム画像を表示させると共に、コントロール装置16を介して入力されるガンコントローラ14の銃口が指し示しているディスプレイ12上の位置を示す座標データやガンコントローラ14に対するプレーヤーの操作(例えば、ガンコントローラ14に設けられたトリガーの操作など)を通知する操作データなどを入力して、これら入力されたデータに応じたゲーム処理を実行する。
Embodiments of the present invention will be described below with reference to the drawings.
FIG. 1 is a diagram illustrating a schematic configuration of a gun game apparatus according to the present embodiment. The gun game apparatus shown in FIG. 1 is a game that advances while shooting down a target existing in a game space displayed on the display 12, for example, by operating a gun-type controller (hereinafter referred to as a gun controller 14). The game processing device 10 displays a game image representing the game space on the display 12 and coordinates data indicating the position on the display 12 indicated by a muzzle of the gun controller 14 input via the control device 16 or a gun. Operation data for notifying a player's operation (for example, operation of a trigger provided on the gun controller 14) with respect to the controller 14 is input, and game processing corresponding to the input data is executed.

コントロール装置16は、プレーヤーによって操作されるガンコントローラ14の制御を行う。コントロール装置16は、ディスプレイ12の周囲にそれぞれ離間させて配置した複数の赤外線LED18に対して点灯制御を行う機能の他、ガンコントローラ14に実装された座標検出機能により検出された座標データやガンコントローラ14に対する操作データなどを中継してゲーム処理装置10に出力する中継機能が設けられている。   The control device 16 controls the gun controller 14 operated by the player. The control device 16 has a function of performing lighting control on a plurality of infrared LEDs 18 that are arranged apart from each other around the display 12 as well as coordinate data detected by a coordinate detection function mounted on the gun controller 14 and a gun controller. 14 is provided with a relay function for relaying operation data and the like to the game processing apparatus 10.

赤外線LED18は、例えば4個設けられている。本実施形態のガンゲーム装置では、ディスプレイ12の上辺に沿って2個の赤外線LED18a,18bを所定の間隔を設けて配置し、ディスプレイ12の下辺に沿って2個の赤外線LED18c,18dを所定の間隔を設けて配置している。赤外線LED18a,18b,18c,18dの配置位置は、ディスプレイ12の中央を通過する縦横線に対してそれぞれ対称の関係にあり、4つの配置位置を直線で結ぶと矩形を形成する。   For example, four infrared LEDs 18 are provided. In the gun game apparatus according to the present embodiment, two infrared LEDs 18a and 18b are arranged along the upper side of the display 12 with a predetermined interval, and two infrared LEDs 18c and 18d are arranged along the lower side of the display 12. They are arranged at intervals. The arrangement positions of the infrared LEDs 18a, 18b, 18c, and 18d are symmetrical with respect to the vertical and horizontal lines passing through the center of the display 12, and a rectangle is formed by connecting the four arrangement positions with straight lines.

本実施形態におけるガンゲーム装置では、ガンコントローラ14、コントロール装置16、及び赤外線LED18により、ガンコントローラ14によって指示されたディスプレイ12上の座標位置を検出する位置指示装置が実現されている。   In the gun game device according to the present embodiment, a position indicating device that detects the coordinate position on the display 12 instructed by the gun controller 14 is realized by the gun controller 14, the control device 16, and the infrared LED 18.

図2には、ガンコントローラ14に設けられた赤外線画像センサ30によって撮影される画像の一例を示している。
図2に示すように、赤外線画像センサ30による撮影範囲は、プレーヤーがガンコントローラ14を用いてゲームを実施している位置において、ディスプレイ12による表示画面と、ディスプレイ12の周囲に配置された4個の赤外線LED18a,18b,18c,18dとを含む範囲としている。
FIG. 2 shows an example of an image photographed by the infrared image sensor 30 provided in the gun controller 14.
As shown in FIG. 2, the shooting range by the infrared image sensor 30 includes four screens arranged around the display screen and the display 12 at the position where the player is playing the game using the gun controller 14. Infrared LEDs 18a, 18b, 18c, and 18d.

ガンコントローラ14による指示位置は、ガンコントローラ14により撮影された画像の中央に該当する。従って、4個の赤外線LED18a,18b,18c,18dを含むように画像を撮影することにより、画像の中央(ガンコントローラ14による指示位置)がディスプレイ12の表示画面の範囲に含まれる。   The indicated position by the gun controller 14 corresponds to the center of the image photographed by the gun controller 14. Therefore, by capturing an image so as to include the four infrared LEDs 18a, 18b, 18c, and 18d, the center of the image (indicated position by the gun controller 14) is included in the range of the display screen of the display 12.

図3は、本実施形態におけるガンゲーム装置の機能構成を示すブロック図である。
図3に示すガンゲーム装置は、複数のプレーヤーが同時にゲームに参加できるように複数のガンコントローラ14(ここでは、4台のガンコントローラ14−1,14−2,14−3,14−4)が設けられた例を示している。
FIG. 3 is a block diagram showing a functional configuration of the gun game device according to the present embodiment.
The gun game apparatus shown in FIG. 3 has a plurality of gun controllers 14 (here, four gun controllers 14-1, 14-2, 14-3, 14-4) so that a plurality of players can participate in the game at the same time. An example in which is provided is shown.

ゲーム処理装置10は、各種記録媒体に記録されたプログラムを読み込み、このプログラムによって動作が制御されるコンピュータの機能が実装されて構成される。   The game processing apparatus 10 is configured by reading a program recorded on various recording media and mounting a computer function whose operation is controlled by the program.

ゲーム処理装置10には、メインCPU20、RAM21、画像処理部22、音響装置24、記憶装置26、及びインタフェース27がバスによって相互に接続されている。   In the game processing device 10, a main CPU 20, a RAM 21, an image processing unit 22, an audio device 24, a storage device 26, and an interface 27 are connected to each other by a bus.

メインCPU20は、記憶装置26に記憶されたゲームプログラム26aに応じたゲーム処理を実行する。メインCPU20は、ゲーム処理において、コントロール装置16を介して入力される、プレーヤーによるガンコントローラ14に対する操作に応じた制御を行い、ディスプレイ12において表示すべき記憶装置26に記憶されたゲーム画像データ26dを画像処理部22に指示し、またゲーム状況に応じて音響装置24により所定の音声を出力させる。   The main CPU 20 executes a game process corresponding to the game program 26 a stored in the storage device 26. In the game process, the main CPU 20 performs control according to the operation of the player on the gun controller 14 input via the control device 16, and stores the game image data 26 d stored in the storage device 26 to be displayed on the display 12. The image processing unit 22 is instructed, and a predetermined sound is output by the acoustic device 24 according to the game situation.

RAM21(メインメモリ)は、メインCPU20の実行に伴って各種のデータ、例えば表示対象となるゲーム画像データや音声出力の対象とする音声データなどが一時記憶される。また、RAM21には、ゲームの制御に用いられる、例えばプレーヤー(キャラクタ)の体力データ、武器に関するデータ、銃口の移動ベクトル(移動軌跡)の座標データ、その他のゲームの進行に従って変更される各種データが一時記憶される。   The RAM 21 (main memory) temporarily stores various data, for example, game image data to be displayed and audio data to be output as a result of the execution of the main CPU 20. In addition, the RAM 21 includes various data that are used for game control, for example, player (character) physical strength data, weapon-related data, muzzle movement vector (movement trajectory) coordinate data, and other data that change as the game progresses. Temporarily stored.

画像処理部22は、メインCPU20からの指示に従って必要なゲーム画像データを生成して、ディスプレイ12においてゲーム画像を表示させる。   The image processing unit 22 generates necessary game image data in accordance with an instruction from the main CPU 20 and displays the game image on the display 12.

音響装置24は、メインCPU20の制御のもとで、ディスプレイ12において表示されるゲーム画面に合わせて、ゲームの臨場感を高めるための効果音やBGM(back ground music)、あるいは各種メッセージ音声などをスピーカから出力させる。   Under the control of the main CPU 20, the sound device 24 produces sound effects, BGM (back ground music), various message sounds, etc. for enhancing the realism of the game in accordance with the game screen displayed on the display 12. Output from the speaker.

記憶装置26は、例えばハードディスク装置などにより構成されるもので、ゲームを制御するためのゲームプログラム26a、ゲームプログラム26aの実行に伴い表示されるゲーム画像データ26dなどが記憶される。   The storage device 26 is configured by, for example, a hard disk device or the like, and stores a game program 26a for controlling the game, game image data 26d displayed in accordance with the execution of the game program 26a, and the like.

インタフェース27は、コントロール装置16から、ガンコントローラ14の銃口が指し示しているディスプレイ12上の位置を示す座標データやガンコントローラ14に対する操作データなどを入力して、メインCPU20に通知する。   The interface 27 inputs coordinate data indicating the position on the display 12 indicated by the muzzle of the gun controller 14 and operation data for the gun controller 14 from the control device 16 and notifies the main CPU 20 of the coordinate data.

ガンコントローラ14−1は、赤外線画像センサ30及び演算装置31が実装されている。赤外線画像センサ30は、例えばガンコントローラ14−1の先端部に装着されており、プレーヤーの操作によって銃口が向けられた方向の画像を撮影するために用いられる。赤外線画像センサ30による撮影範囲は、図2に示すように、銃口の中心軸によって指し示す位置が画像中心と一致するように調整され、コントロール装置16の制御により点灯された赤外線LED18の画像が含まれる。   The gun controller 14-1 is mounted with an infrared image sensor 30 and an arithmetic device 31. The infrared image sensor 30 is attached to, for example, the tip of the gun controller 14-1, and is used to take an image in a direction in which the muzzle is directed by the operation of the player. As shown in FIG. 2, the imaging range by the infrared image sensor 30 is adjusted so that the position pointed to by the central axis of the muzzle coincides with the center of the image, and includes an image of the infrared LED 18 that is turned on under the control of the control device 16. .

演算装置31は、例えばDSP(Digital Signal Processor)を有して構成されるもので、赤外線画像センサ30によって撮影された画像をもとにした座標検出機能を実現する。演算装置31は、赤外線画像センサ30によって撮影された画像をもとに、画像中の赤外線LED18a,18b,18c,18dに相当するLED指標の位置を基準にして画像の中央の座標、すなわちガンコントローラ14によるディスプレイ12に対する指示位置を示す座標データを算出し、コントロール装置16からのタイミング信号に合わせて座標データをコントロール装置16に出力する。   The arithmetic unit 31 includes, for example, a DSP (Digital Signal Processor), and realizes a coordinate detection function based on an image photographed by the infrared image sensor 30. The arithmetic unit 31 is based on the image taken by the infrared image sensor 30 and is based on the position of the LED index corresponding to the infrared LED 18a, 18b, 18c, 18d in the image, that is, the gun controller. 14 is calculated, and the coordinate data is output to the control device 16 in accordance with the timing signal from the control device 16.

本実施形態における演算装置31には、赤外線LED18a,18b,18c,18dのそれぞれについて、画像中から検出される複数回分のLED指標の位置をもとにして、実際に検出されたLED指標の間を補間する仮想のLED指標の位置を算出する補間処理の機能が設けられる。そのために、演算装置31は、画像中から検出される複数回分のLED指標の位置を記憶するためのメモリ、及びこのメモリに記憶されたデータをもとに仮想のLED指標の位置を算出する演算機能が実装される。   The arithmetic unit 31 in the present embodiment includes, for each of the infrared LEDs 18a, 18b, 18c, and 18d, between the LED indices actually detected based on the positions of the LED indices detected from the plurality of times in the image. A function of an interpolation process for calculating the position of a virtual LED index for interpolating is provided. For this purpose, the calculation device 31 calculates the position of the virtual LED index based on the memory for storing the position of the LED index for a plurality of times detected from the image and the data stored in the memory. The function is implemented.

また、演算装置31は、ガンコントローラ14に設けられたトリガー等に対する操作を検知し、この操作に応じた操作データについてもコントロール装置16に出力するものとする。   The arithmetic device 31 detects an operation on a trigger or the like provided in the gun controller 14 and outputs operation data corresponding to the operation to the control device 16.

なお、ガンコントローラ14−2,14−3,14−4は、前述したガンコントローラ14−1と同様の構成を有しているものとする。ガンコントローラ14−1〜14−4は、コントロール装置16からそれぞれに供給されるタイミング信号に合わせて、それぞれ異なるタイミングでデータをコントロール装置16に出力する。   It is assumed that the gun controllers 14-2, 14-3, and 14-4 have the same configuration as the gun controller 14-1. The gun controllers 14-1 to 14-4 output data to the control device 16 at different timings in accordance with timing signals supplied from the control device 16.

図4は、コントロール装置16による赤外線LED18a,18b,18c,18dの点灯制御を説明するための図である。
本実施形態におけるガンゲーム装置では、ディスプレイ12の周囲に4つの赤外線LED18a,18b,18c,18dが配置されている。本実施形態では、矩形状のディスプレイ12の上部左側に赤外線LED18a、同じく上部右側に赤外線LED18b、下部右側に赤外線LED18c、同じく下部左側に赤外線LED18dが配置されているものとする。
FIG. 4 is a diagram for explaining lighting control of the infrared LEDs 18a, 18b, 18c, and 18d by the control device 16.
In the gun game apparatus according to the present embodiment, four infrared LEDs 18 a, 18 b, 18 c, and 18 d are arranged around the display 12. In the present embodiment, it is assumed that the infrared LED 18a is disposed on the upper left side of the rectangular display 12, the infrared LED 18b is disposed on the upper right side, the infrared LED 18c is disposed on the lower right side, and the infrared LED 18d is disposed on the lower left side.

コントロール装置16は、ゲームが開始されると、常時、連続的に赤外線LED18a,18b,18c,18dの順番で順次点灯させる。従って、ガンコントローラ14では、図4(a)〜(d)に示すように、各赤外線LED18a,18b,18c,18dが個々に点灯された時の画像を撮影することができる。   When the game is started, the control device 16 always turns on the infrared LEDs 18a, 18b, 18c, and 18d sequentially sequentially. Therefore, the gun controller 14 can take images when the infrared LEDs 18a, 18b, 18c, and 18d are individually lit as shown in FIGS.

ガンコントローラ14の演算装置31は、図4(a)〜(d)に示す赤外線画像センサ30により撮影された個々の画像から、それぞれ1個の赤外線LED18に相当する位置(LED指標の位置)を認識すれば良い。演算装置31は、コントロール装置16からのタイミング信号から、4個の赤外線LED18a,18b,18c,18dの何れが点灯されているかを判別することで、ガンコントローラ14が銃口をディスプレイ12に向けた状態で回転されて使用されていたとしても、撮影された画像から正しい向きでの座標を検出することができる。   The computing device 31 of the gun controller 14 determines the position corresponding to one infrared LED 18 (the position of the LED index) from each image captured by the infrared image sensor 30 shown in FIGS. It only has to be recognized. The computing device 31 determines which of the four infrared LEDs 18a, 18b, 18c, and 18d is lit from the timing signal from the control device 16, so that the gun controller 14 points the muzzle toward the display 12. Even if it is rotated and used, the coordinates in the correct direction can be detected from the photographed image.

図5は、コントロール装置16による赤外線LED18a,18b,18c,18dの点灯制御のタイミングと、ガンコントローラ14からコントロール装置16へのデータ出力するタイミングを説明するためのタイミングチャートである。
図5(1)〜(4)は、赤外線LED18a,18b,18c,18dのそれぞれに対する点灯のタイミングを示すタイミング信号である。タイミング信号がハイレベルの間に、対応する赤外線LED18が点灯されることを示している。図5(1)〜(4)に示すように、赤外線LED18a,18b,18c,18dの順番で、一定間隔で順次点灯される。
FIG. 5 is a timing chart for explaining the timing for controlling the lighting of the infrared LEDs 18 a, 18 b, 18 c, and 18 d by the control device 16 and the timing for outputting data from the gun controller 14 to the control device 16.
5 (1) to 5 (4) are timing signals indicating the lighting timing for each of the infrared LEDs 18a, 18b, 18c, and 18d. It shows that the corresponding infrared LED 18 is turned on while the timing signal is at the high level. As shown in FIGS. 5 (1) to (4), the infrared LEDs 18a, 18b, 18c, and 18d are sequentially turned on at regular intervals.

コントロール装置16は、ガンコントローラ14−1(演算装置31)に対して、図5(1)に示すタイミング信号と、図5(5)に示す全ての赤外線LED18の点灯タイミングを示すタイミング信号とを出力する。同様にして、ガンコントローラ14−2に対しては、図5(2)と図5(5)に示すタイミング信号を出力し、ガンコントローラ14−3に対しては、図5(3)と図5(5)に示すタイミング信号を出力し、ガンコントローラ14−4に対しては、図5(4)と図5(5)に示すタイミング信号を出力する。   The control device 16 sends a timing signal shown in FIG. 5 (1) and a timing signal showing lighting timings of all the infrared LEDs 18 shown in FIG. 5 (5) to the gun controller 14-1 (calculation device 31). Output. Similarly, the timing signals shown in FIGS. 5 (2) and 5 (5) are output to the gun controller 14-2, and FIG. 5 (3) is output to the gun controller 14-3. 5 (5) is output, and the timing signals shown in FIGS. 5 (4) and 5 (5) are output to the gun controller 14-4.

ガンコントローラ14−1の演算装置31は、図5(5)に示すタイミング信号により、赤外線LED18a,18b,18c,18dが点灯されるタイミングを判別することができ、また図5(1)のガンコントローラ14−1に対するタイミング信号により、赤外線LED18aが点灯されるタイミングを判別することができる。従って、図5(1)のタイミング信号が入力されている間に、例えば図4(a)に示す画像が撮影された場合には、この画像から検出されたLED指標がディスプレイ12の左上に配置された赤外線LED18aに相当するものと判別することができる。   The arithmetic unit 31 of the gun controller 14-1 can determine the timing when the infrared LEDs 18a, 18b, 18c, and 18d are turned on by the timing signal shown in FIG. 5 (5). The timing at which the infrared LED 18a is turned on can be determined from the timing signal to the controller 14-1. Accordingly, for example, when the image shown in FIG. 4A is taken while the timing signal of FIG. 5A is input, the LED index detected from this image is arranged at the upper left of the display 12. It can be determined that it corresponds to the infrared LED 18a.

演算装置31は、赤外線LED18aに相当するLED指標の位置を基準にすることで、ガンコントローラ14−1が回転された状態で使用されていたとしても、他の赤外線LED18a〜18dに対応するLED指標の位置に基づいて座標系を補正して、撮影された画像の中心(ガンコントローラ14−1によって指し示された位置)の座標を算出することができる。   The arithmetic unit 31 uses the LED index corresponding to the infrared LED 18a as a reference, so that the LED index corresponding to the other infrared LEDs 18a to 18d is used even when the gun controller 14-1 is rotated. The coordinates of the center of the captured image (the position pointed to by the gun controller 14-1) can be calculated by correcting the coordinate system based on the position.

なお、ガンコントローラ14−1の演算装置31は、各赤外線LED18が点灯されている時に撮影された画像をもとに算出した座標データを、図5(6)に示すように、図5(1)に示すタイミング信号に合わせてコントロール装置16に出力する。同様にして、ガンコントローラ14−2〜14−4についても、図5(7)〜(9)に示すように、それぞれに対応するタイミング信号(図5(2)〜(4))に合わせて、座標データをコントロール装置16に出力する。   Note that the arithmetic unit 31 of the gun controller 14-1 uses the coordinate data calculated based on the image taken when each infrared LED 18 is lit as shown in FIG. Are output to the control device 16 in accordance with the timing signal shown in FIG. Similarly, for the gun controllers 14-2 to 14-4, as shown in FIGS. 5 (7) to (9), the corresponding timing signals (FIGS. 5 (2) to (4)) are used. The coordinate data is output to the control device 16.

これにより、コントロール装置16は、複数のガンコントローラ14−1〜14−4のそれぞれに対応する受信回路を備えなくても、1つの受信回路によって各ガンコントローラ14−1〜14−4からの座標データを受信して、ゲーム処理装置10に中継することができる。   Thereby, even if the control device 16 does not include a receiving circuit corresponding to each of the plurality of gun controllers 14-1 to 14-4, the coordinates from each of the gun controllers 14-1 to 14-4 are obtained by one receiving circuit. Data can be received and relayed to the game processing device 10.

次に、本実施形態におけるガンゲーム装置(位置指示装置)におけるガンコントローラ14により指示された位置の座標検出の動作について説明する。ここでは、説明を簡単にするために1台のガンコントローラ14−1が使用されてゲームが実行されるものとする。   Next, the operation of detecting the coordinates of the position designated by the gun controller 14 in the gun game device (position indication device) in the present embodiment will be described. Here, in order to simplify the description, it is assumed that one gun controller 14-1 is used and the game is executed.

ゲームが開始されると、ゲーム処理装置10は、ゲームプログラムに基づくゲーム処理を実行して、ディスプレイ12においてゲーム画面を表示させる。   When the game is started, the game processing device 10 executes a game process based on the game program and displays a game screen on the display 12.

プレーヤーは、ディスプレイ12に表示されたゲーム画面中の標的などに対して攻撃を加えるために、ガンコントローラ14−1の操作を行う。プレーヤーは、ガンコントローラ14−1の銃口を標的に合わせてトリガー操作をすることで攻撃を指示する。   The player operates the gun controller 14-1 in order to attack the target or the like in the game screen displayed on the display 12. The player instructs an attack by performing a trigger operation with the muzzle of the gun controller 14-1 set to the target.

ガンコントローラ14−1の演算装置31は、プレーヤーによるトリガー操作を検知して、コントロール装置16に通知する。コントロール装置16は、図5(1)〜(4)のタイミング信号が示すタイミングで複数の赤外線LED18に対する点灯制御を常時連続的に行っている。また、コントロール装置16は、前述したように、ガンコントローラ14−1に対して、図5(1)(5)に示すタイミング信号を出力する。   The arithmetic device 31 of the gun controller 14-1 detects the trigger operation by the player and notifies the control device 16. The control device 16 always performs lighting control on the plurality of infrared LEDs 18 continuously at the timings indicated by the timing signals in FIGS. Further, as described above, the control device 16 outputs the timing signals shown in FIGS. 5 (1) and 5 (5) to the gun controller 14-1.

ガンコントローラ14−1は、赤外線画像センサ30によって、複数の赤外線LED18a,18b,18c,18dが個々に点灯された時の画像を撮影する。ここでは、1つの赤外線LED18が点灯されている時に画像を撮影するために、撮影された画像中からは1つの赤外線LED18に対応するLED指標の位置を検出すれば良い。このため、演算装置31による位置検出のための処理負荷は、1画像から複数のLED指標を検出する場合と比較して大幅に軽減される。   The gun controller 14-1 captures an image when the plurality of infrared LEDs 18 a, 18 b, 18 c, and 18 d are individually lit by the infrared image sensor 30. Here, in order to capture an image when one infrared LED 18 is turned on, the position of an LED index corresponding to one infrared LED 18 may be detected from the captured image. For this reason, the processing load for position detection by the arithmetic unit 31 is greatly reduced as compared with the case of detecting a plurality of LED indexes from one image.

一方、複数の赤外線LED18a,18b,18c,18dが個々に点灯された時の画像を撮影してLED指標の位置を検出するため、複数の赤外線LED18a,18b,18c,18dが点灯される間にガンコントローラ14(赤外線画像センサ30)の向きが変化した場合には、撮影された画像中における赤外線LED18a,18b,18c,18dの4点で形成される矩形の位置が変化(移動)していく。   On the other hand, while the plurality of infrared LEDs 18a, 18b, 18c, and 18d are turned on in order to detect the position of the LED index by taking an image when the plurality of infrared LEDs 18a, 18b, 18c, and 18d are individually turned on. When the orientation of the gun controller 14 (infrared image sensor 30) changes, the position of the rectangle formed by the four points of the infrared LEDs 18a, 18b, 18c, and 18d in the captured image changes (moves). .

図6(a)〜(d)は、複数の赤外線LED18a,18b,18c,18dが点灯された時に撮影された画像から検出されるLED指標(矩形位置)の変化の一例を示している。
図6(a)は、赤外線LED18aが点灯されている時に撮影された画像を示すもので、この画像から赤外線LED18aに対応するLED指標A1の位置を検出することができる。図6(a)中の黒点は、赤外線LED18aが点灯されていた時の他の赤外線LED18b,18c,18d(LED指標)の位置を表している。
FIGS. 6A to 6D show an example of a change in LED index (rectangular position) detected from an image taken when a plurality of infrared LEDs 18a, 18b, 18c, and 18d are turned on.
FIG. 6A shows an image taken when the infrared LED 18a is turned on, and the position of the LED index A1 corresponding to the infrared LED 18a can be detected from this image. The black dots in FIG. 6A represent the positions of the other infrared LEDs 18b, 18c, and 18d (LED indicators) when the infrared LED 18a is turned on.

図6(b)は、赤外線LED18aが点灯されている時に撮影された画像から検出されたLED指標B2の位置を追加している。例えば、ガンコントローラ14の銃口の向きを素早く動かすようにプレーヤーが操作した場合には、図6(b)に示すように、赤外線LED18aが点灯されていた時の赤外線LED18bの位置とは異なる位置において、赤外線LED18bに対応するLED指標B2が検出される。   In FIG. 6B, the position of the LED index B2 detected from the image taken when the infrared LED 18a is turned on is added. For example, when the player operates to quickly move the direction of the muzzle of the gun controller 14, as shown in FIG. 6B, at a position different from the position of the infrared LED 18b when the infrared LED 18a is lit. The LED index B2 corresponding to the infrared LED 18b is detected.

同様にして、図6(c)は、赤外線LED18cが点灯されている時に撮影された画像から検出されたLED指標C3の位置を追加し、図6(d)は、赤外線LED18dが点灯されている時に撮影された画像から検出されたLED指標D4の位置を追加している。   Similarly, FIG. 6C adds the position of the LED index C3 detected from the image taken when the infrared LED 18c is turned on, and FIG. 6D shows that the infrared LED 18d is turned on. The position of the LED index D4 detected from the image sometimes taken is added.

図6(a)〜(d)に示すように、複数の赤外線LED18a,18b,18c,18dを個別に順次点灯させ、それぞれが点灯された時に画像を撮影しているために、赤外線LED18a,18b,18c,18dの4点により形成される矩形の位置が変化し、赤外線LED18a,18b,18c,18dに対応する4点のLED指標A1,B2,C3,D4により形成される形状が矩形とならない。   As shown in FIGS. 6A to 6D, since the plurality of infrared LEDs 18a, 18b, 18c, and 18d are individually turned on sequentially and an image is taken when each is turned on, the infrared LEDs 18a, 18b , 18c, 18d change the position of the rectangle, and the shape formed by the four LED indicators A1, B2, C3, D4 corresponding to the infrared LEDs 18a, 18b, 18c, 18d does not become rectangular. .

図7には、複数の赤外線LED18a,18b,18c,18dを個別に順次点灯させた時に撮影された画像から検出された4点のLED指標A1,B2,C3,D4を結んで形成される形状を示している。   FIG. 7 shows a shape formed by connecting four LED indicators A1, B2, C3, D4 detected from an image taken when a plurality of infrared LEDs 18a, 18b, 18c, 18d are individually turned on sequentially. Is shown.

図7に示すように、LED指標A1,B2,C3,D4から形成された四角形は歪んだ形状となり、本来の赤外線LED18a,18b,18c,18dの配置と一致しない。このため、単純にLED指標A1,B2,C3,D4の位置をもとにして座標を算出しても、ガンコントローラ14によって指し示された位置を示す正確な座標値を得ることができない。   As shown in FIG. 7, the quadrangle formed from the LED indicators A1, B2, C3, and D4 has a distorted shape and does not match the original arrangement of the infrared LEDs 18a, 18b, 18c, and 18d. For this reason, even if the coordinates are simply calculated based on the positions of the LED indicators A1, B2, C3, and D4, an accurate coordinate value indicating the position pointed to by the gun controller 14 cannot be obtained.

そこで、本実施形態においては、演算装置31は、複数の赤外線LED18a,18b,18c,18dのそれぞれについて、赤外線画像センサ30により撮影された画像から検出されたLED指標の位置をもとに、他の赤外線LED18が点灯されている時の仮想のLED指標の位置を補間処理によって算出する。そして、この補間処理により算出された仮想のLED指標の座標をもとに、ガンコントローラ14により指し示されている位置の座標を算出する。   Therefore, in the present embodiment, the arithmetic unit 31 determines the other of the plurality of infrared LEDs 18a, 18b, 18c, and 18d based on the position of the LED index detected from the image captured by the infrared image sensor 30. The position of the virtual LED index when the infrared LED 18 is turned on is calculated by interpolation processing. Then, based on the coordinates of the virtual LED index calculated by this interpolation processing, the coordinates of the position pointed to by the gun controller 14 are calculated.

図8は、LED指標の位置をもとに、他の赤外線LED18が点灯されていた時に対応するLED指標の位置を線形補間によって求める例を示している。この例では、赤外線LED18aに対して検出されたLED指標の位置と、補間処理によって算出された仮想のLED指標の位置を示している。   FIG. 8 shows an example in which, based on the position of the LED index, the position of the corresponding LED index is obtained by linear interpolation when another infrared LED 18 is lit. In this example, the position of the LED index detected with respect to the infrared LED 18a and the position of the virtual LED index calculated by the interpolation process are shown.

図8では、赤外線LED18aが点灯された時に撮影された画像からLED指標A1が検出された後、赤外線LED18b〜18dがそれぞれ点灯されて画像が撮影され、再度、赤外線LED18aが点灯された時に撮影された画像からLED指標A5が検出されたことを表している。また、赤外線LED18b〜18dが点灯された時の赤外線LED18aに相当する位置は、それぞれA2,A3,A4によって示している。   In FIG. 8, after the LED index A1 is detected from an image taken when the infrared LED 18a is turned on, the infrared LEDs 18b to 18d are turned on to take images, and are taken again when the infrared LED 18a is turned on. The LED index A5 is detected from the obtained image. The positions corresponding to the infrared LEDs 18a when the infrared LEDs 18b to 18d are turned on are indicated by A2, A3, and A4, respectively.

演算装置31は、1点のLED指標を検出する毎に、前回のLED指標の座標値を記録しておく。すなわち、LED指標A5を検出した際には、前回のLED指標A1の座標値が記録されており、この全体のLED指標A1の座標値と、今回のLED指標A5の座標値をもとに線形補間を実行する。   Each time the computing device 31 detects one LED index, it records the previous coordinate value of the LED index. That is, when the LED index A5 is detected, the coordinate value of the previous LED index A1 is recorded, and linear based on the coordinate value of the entire LED index A1 and the coordinate value of the current LED index A5. Perform interpolation.

図8に示すように、演算装置31は、2点のLED指標A1,A5を結ぶ線分上において、線分を等分割する3点を仮想のLED指標A2a,A3a,A4aの座標値を算出する。すなわち、仮想のLED指標A2aは、赤外線LED18bが点灯された時の赤外線LED18aに相当する位置A2に対して、補間処理によって算出された座標を示している。同様にして、仮想のLED指標A3a,A4aは、それぞれ位置A3,A4に対して算出された座標を示している。   As shown in FIG. 8, the arithmetic unit 31 calculates the coordinate values of the virtual LED indicators A2a, A3a, A4a at three points that equally divide the line segment on the line segment connecting the two LED indicators A1, A5. To do. That is, the virtual LED index A2a indicates the coordinates calculated by the interpolation process for the position A2 corresponding to the infrared LED 18a when the infrared LED 18b is turned on. Similarly, virtual LED indicators A3a and A4a indicate coordinates calculated for positions A3 and A4, respectively.

図8に示すように、単純な線形補間による処理によっても、赤外線LED18b〜18dが点灯された時の赤外線LED18aに相当する位置A2,A3,A4を近似する仮想のLEDの座標値を算出することができる。   As shown in FIG. 8, the coordinate values of virtual LEDs that approximate the positions A2, A3, and A4 corresponding to the infrared LEDs 18a when the infrared LEDs 18b to 18d are turned on are calculated by simple linear interpolation processing. Can do.

図9には、赤外線LED18b〜18dのそれぞれに対して算出された仮想のLED指標と、実際に検出されたLED指標の4点から形成される矩形の一例を示している。図9において、白丸が赤外線画像センサ30により撮影された画像から検出されたLED指標の位置を表し、黒丸が補間処理によって取得された仮想のLED指標の位置を表している。   FIG. 9 shows an example of a rectangle formed from four points of the virtual LED index calculated for each of the infrared LEDs 18b to 18d and the LED index actually detected. In FIG. 9, a white circle represents the position of the LED index detected from the image taken by the infrared image sensor 30, and a black circle represents the position of the virtual LED index acquired by the interpolation process.

図9に示すように、赤外線LED18a,18b,18c,18dのそれぞれに応じて、前述したように仮想のLED指標を求めることにより、例えばLED指標A1に対しては、仮想のLED指標B1a,C1a,D1aからなる4点による矩形を形成することができる。仮想のLED指標B1a,C1a,D1aが、それぞれ赤外線LED18b,18c,18dの本来の位置を近似した位置であるため、歪みの少ない矩形が形成されている。   As shown in FIG. 9, by obtaining a virtual LED index as described above according to each of the infrared LEDs 18a, 18b, 18c, and 18d, for example, for the LED index A1, virtual LED indices B1a and C1a , D1a can form a rectangle with four points. Since the virtual LED indicators B1a, C1a, and D1a are positions that approximate the original positions of the infrared LEDs 18b, 18c, and 18d, respectively, a rectangle with less distortion is formed.

同様にして、LED指標B2に対しては、仮想のLED指標C2a,D2a,A2aからなる4点、LED指標C3に対しては、仮想のLED指標D3a,A3a,B3aからなる4点、LED指標D4に対しては、仮想のLED指標A4a,B4a,C4aからなる4点によって、それぞれ矩形を形成することができる。   Similarly, for LED index B2, four points composed of virtual LED indices C2a, D2a, A2a, and for LED index C3, four points composed of virtual LED indices D3a, A3a, B3a, LED index For D4, a rectangle can be formed by four points each including the virtual LED indicators A4a, B4a, and C4a.

演算装置31は、こうして求められた矩形を構成する4点の座標をもとにして、後述するように(図11〜図13)、ガンコントローラ14の銃口が指し示しているディスプレイ12における座標を算出する。   The arithmetic unit 31 calculates the coordinates on the display 12 pointed to by the muzzle of the gun controller 14 based on the coordinates of the four points constituting the rectangle thus obtained (FIGS. 11 to 13). To do.

なお、前述した説明では、図8に示すように、LED指標の2点の位置をもとにした線形補間によって仮想のLCD指標の座標値を求めているが、他の補間方法を用いることも可能である。
図10は、LED指標の3点以上の位置をもとにした二次以上の多項式補間方法を用いた例を示す図である。
図10には、例えば、赤外線LED18aが点灯されていた時に撮影された画像から検出された3つのLED指標A1,A5,A9を示している。演算装置31は、3つのLED指標A1,A5,A9をもとにして、多項式補間(例えば3次スプライン補間)法によって、LED指標A1とLED指標A5との間に、赤外線LED18b,18c,18dが点灯されていた時のそれぞれに対応する補間点A2a,A3a,A4aを算出することができる。同様にして、LED指標A5とLED指標A9との間に、赤外線LED18b,18c,18dが点灯されていた時のそれぞれに対応する補間点A6a,A7a,A8aを算出することができる。
In the above description, as shown in FIG. 8, the coordinate value of the virtual LCD index is obtained by linear interpolation based on the positions of the two points of the LED index, but other interpolation methods may be used. Is possible.
FIG. 10 is a diagram illustrating an example using a second-order or higher-order polynomial interpolation method based on positions of three or more points of the LED index.
FIG. 10 shows, for example, three LED indicators A1, A5 and A9 detected from an image taken when the infrared LED 18a is turned on. The arithmetic unit 31 uses infrared LED 18b, 18c, 18d between the LED index A1 and the LED index A5 by a polynomial interpolation (for example, cubic spline interpolation) method based on the three LED indices A1, A5, A9. Interpolation points A2a, A3a, A4a corresponding to each of when is turned on can be calculated. Similarly, interpolation points A6a, A7a, and A8a corresponding to the respective infrared LEDs 18b, 18c, and 18d that are lit can be calculated between the LED index A5 and the LED index A9.

このように、3つのLED指標をもとに補間点を算出する場合、演算装置31では、赤外線LED18a,18b,18c,18dのそれぞれについて、3回分の点灯位置(LED指標の座標)を記憶し、新たなLED指標の位置が検出するごとに、3つのLED指標をもとに補間点を算出する。なお、3点のLED指標の位置をもとに補間点を算出する場合には、3番目のLED指標の位置が検出された時に、2番目のLED指標(図10のA5)と3番目のLED指標(図10のA9)との間の仮想のLED指標を算出すれば良く、1番目のLED指標(図10のA1)と2番目のLED指標との間の仮想のLED指標については、LED指標A5が検出された時に算出された仮想のLED指標の位置を用いれば良い。   As described above, when calculating the interpolation point based on the three LED indices, the arithmetic unit 31 stores the lighting positions (LED index coordinates) for three times for each of the infrared LEDs 18a, 18b, 18c, and 18d. Each time a position of a new LED index is detected, an interpolation point is calculated based on the three LED indices. When the interpolation point is calculated based on the positions of the three LED indices, the second LED index (A5 in FIG. 10) and the third LED index are detected when the position of the third LED index is detected. What is necessary is just to calculate a virtual LED index between the LED index (A9 in FIG. 10), and for a virtual LED index between the first LED index (A1 in FIG. 10) and the second LED index, The position of the virtual LED index calculated when the LED index A5 is detected may be used.

なお、図10を用いた補間処理の説明では、3次スプライン補間法によって仮想のLED指標の位置を算出するものとしているが、他の二次以上の多項式補間法を用いることも可能である。演算装置31は、採用する補間法に応じた数のLED指標の位置を記録して、仮想のLED指標の位置を算出すれば良い。   In the description of the interpolation processing using FIG. 10, the position of the virtual LED index is calculated by the cubic spline interpolation method, but other quadratic or higher-order polynomial interpolation methods can also be used. The arithmetic unit 31 may record the number of LED index positions corresponding to the interpolation method to be employed and calculate the position of the virtual LED index.

こうして、演算装置31は、各赤外線LED18a,18b,18c,18dが点灯されている時に撮影された画像のLED指標の位置、及び仮想のLED指標の位置を算出すると、赤外線LED18a,18b,18c,18dのそれぞれに対応する4つのLED指標の位置を基準にして、ガンコントローラ14−1の銃口が指し示しているディスプレイ12における座標を算出する。   Thus, when the arithmetic unit 31 calculates the position of the LED index of the image taken when each of the infrared LEDs 18a, 18b, 18c, 18d is turned on, and the position of the virtual LED index, the infrared LED 18a, 18b, 18c, The coordinates on the display 12 pointed to by the muzzle of the gun controller 14-1 are calculated with reference to the positions of the four LED indexes corresponding to each of 18d.

図11には、撮影された画像から検出された4つのLED指標の位置の一例を示している。図11において、点Aが赤外線LED18aに対応するLED指標の位置を示す。同様にして、点B,C,Dは、それぞれ赤外線LED18b,18c,18dに対応するLED指標の位置を示している。図11中の点Oは、画像の中心であり、ガンコントローラ14−1によって指し示された位置を示す。演算装置31は、点A,B,C,Dの座標から画像中心の点Oの座標を算出する。   FIG. 11 shows an example of the positions of the four LED indicators detected from the captured image. In FIG. 11, the point A indicates the position of the LED index corresponding to the infrared LED 18a. Similarly, points B, C, and D indicate the positions of LED indicators corresponding to the infrared LEDs 18b, 18c, and 18d, respectively. A point O in FIG. 11 is the center of the image and indicates a position pointed to by the gun controller 14-1. The arithmetic unit 31 calculates the coordinates of the point O at the center of the image from the coordinates of the points A, B, C, and D.

まず、演算装置31は、図12に示すように、点A,B,C,Dの座標をもとにして、点A,B,C,Dを頂点とする矩形の重心Pを求める((A+B+C+D)/4)。   First, as shown in FIG. 12, the arithmetic unit 31 obtains a center of gravity P of a rectangle having the points A, B, C, and D as vertices based on the coordinates of the points A, B, C, and D (( A + B + C + D) / 4).

また、点A,Dの中点をX0、点B,Cの中点をX1、点A,Bの中点をY0、点C,Dの中点をY1として、ベクトルX0X1、ベクトルY0Y1を求める(X0X1=(B+C)−(A+D),Y0Y1=(C+D)−(A+B))。   Further, the vector X0X1 and the vector Y0Y1 are obtained by setting the midpoint of the points A and D to X0, the midpoint of the points B and C to X1, the midpoint of the points A and B to Y0, and the midpoint of the points C and D to Y1. (X0X1 = (B + C)-(A + D), Y0Y1 = (C + D)-(A + B)).

そして、演算装置31は、図13に示すように、重心Pを原点とし、ベクトルX0X1と一致する軸をX軸、ベクトルY0Y1と一致する軸をY軸とする座標系に補正し、この補正された座標系における点Oの座標を逆写像変換により算出する。   Then, as shown in FIG. 13, the arithmetic unit 31 corrects the coordinate system so that the center of gravity P is the origin, the axis that coincides with the vector X0X1 is the X axis, and the axis that coincides with the vector Y0Y1 is the Y axis. The coordinates of the point O in the coordinate system are calculated by inverse mapping transformation.

なお、図11〜図13に示す例では、点Aが赤外線LED18aに相当するLED指標の位置としているが、例えば点Bが赤外線LED18aに相当するLED指標の位置にある場合、すなわちガンコントローラ14−1が右方向に90°近く回転させた状態で操作されている場合には、点Bを左上の頂点位置に配置した座標系に補正して、ガンコントローラ14が指し示している座標を算出すれば良い。   In the example shown in FIGS. 11 to 13, the point A is the position of the LED index corresponding to the infrared LED 18a. However, for example, when the point B is at the position of the LED index corresponding to the infrared LED 18a, that is, the gun controller 14- When 1 is operated in a state of being rotated 90 degrees in the right direction, the coordinates pointed by the gun controller 14 are calculated by correcting the point B to the coordinate system arranged at the top left vertex position. good.

演算装置31は、コントロール装置16からの図5(1)に示すタイミング信号に合わせて、図5(6)に示すタイミングで座標データをコントロール装置16に出力する。コントロール装置16は、ガンコントローラ14−1からの座標データを中継して、ゲーム処理装置10に出力する。   The arithmetic unit 31 outputs coordinate data to the control device 16 at the timing shown in FIG. 5 (6) in accordance with the timing signal shown in FIG. 5 (1) from the control device 16. The control device 16 relays the coordinate data from the gun controller 14-1 and outputs it to the game processing device 10.

ゲーム処理装置10のメインCPU20は、インタフェース27を通じて入力された座標データをもとに、ディスプレイ12に表示された標的についての命中判定を行い、この判定結果に応じた処理を実行する。   The main CPU 20 of the game processing device 10 performs a hit determination on the target displayed on the display 12 based on the coordinate data input through the interface 27, and executes a process according to the determination result.

このようにして、本実施形態におけるガンゲーム装置(位置指示装置)では、複数の赤外線LED18を個々に順次点灯させ、赤外線LED18が個々に点灯された時に、ガンコントローラ14において赤外線画像センサ30により撮影された画像をもとに画像中の赤外線LED18(LED指標)の位置を基準とした座標を算出するので、撮影された画像からは1つのLED指標の位置を検出すれば良いために演算装置31における画像処理の負荷が軽減され、またガンコントローラ14が回転した状態で操作された場合であっても、個々の赤外線LED18を点灯させるタイミングに基づいて実際の赤外線LED18の位置と各画像から検出されるLED指標との対応関係を判別することができるため、各LED指標の位置に基づいて正確な指示位置を示す座標を求めることが可能となる。   In this manner, in the gun game device (position indicating device) in the present embodiment, the plurality of infrared LEDs 18 are sequentially turned on individually, and when the infrared LEDs 18 are individually turned on, photographing is performed by the infrared image sensor 30 in the gun controller 14. Since the coordinates based on the position of the infrared LED 18 (LED index) in the image are calculated based on the captured image, it is only necessary to detect the position of one LED index from the captured image. Even when the gun controller 14 is operated in a rotated state, the position of the actual infrared LED 18 is detected from the actual position of each infrared LED 18 and each image, even when the gun controller 14 is operated in a rotating state. The correspondence relationship with each LED index can be determined. It is possible to obtain the coordinates representing the Do indication position.

また、赤外線画像センサ30により撮影された画像から検出されたLED指標の位置だけでなく、他の赤外線LED18が点灯されている時の赤外線LED18の本来の位置を近似した仮想のLED指標の位置をもとに座標を検出するので、より精度の高い座標検出が可能となる。   Further, not only the position of the LED index detected from the image taken by the infrared image sensor 30, but also the position of the virtual LED index that approximates the original position of the infrared LED 18 when the other infrared LED 18 is lit. Since the coordinates are detected originally, more accurate coordinate detection is possible.

なお、前述した説明では、4個の赤外線LED18をディスプレイ12の周囲に配置しているが、5個以上の赤外線LED18を配置する構成としても良い。また、ディスプレイ12の上辺と下辺に沿って、それぞれ2個の赤外線LED18を離間させて配置しているが、ディスプレイ12の周囲の他の位置に赤外線LED18(発光体)を配置するようにしても良い。例えば、ディスプレイ12の4隅(頂点)の近傍に配置したり、ディスプレイ12の上辺、下辺、右辺及び左辺の中点近傍に配置したりしても良い。ガンコントローラ14の演算装置31は、ディスプレイ12の周囲に配置された赤外線LED18の位置に基づいて、赤外線画像センサ30により撮影された画像から赤外線LED18の位置を検出し、この位置に基づいてガンコントローラ14が指し示している位置(画像の中央)の座標を算出する。   In the above description, the four infrared LEDs 18 are arranged around the display 12, but a configuration in which five or more infrared LEDs 18 are arranged may be employed. In addition, although the two infrared LEDs 18 are arranged apart from each other along the upper side and the lower side of the display 12, the infrared LEDs 18 (light emitters) may be arranged at other positions around the display 12. good. For example, it may be arranged in the vicinity of the four corners (vertices) of the display 12, or may be arranged in the vicinity of the midpoint of the upper side, the lower side, the right side, and the left side of the display 12. The computing device 31 of the gun controller 14 detects the position of the infrared LED 18 from the image taken by the infrared image sensor 30 based on the position of the infrared LED 18 arranged around the display 12, and based on this position, the gun controller The coordinates of the position indicated by 14 (the center of the image) are calculated.

さらに、発光体(赤外線LED18)をディスプレイ12の周囲に配置しているが、ディスプレイ12の固定位置に、赤外線LED18に相当する固定輝点を表示させるようにしても良い。例えば、ディスプレイ12において、ゲーム画面とは別の座標検出用の固定輝点(例えば、所定形状や色による表示)を、前述した赤外線LED18の位置に相当する位置において表示させる。すなわち、ディスプレイ12の上辺と下辺に沿った位置、ディスプレイ12の4隅、あるいは4辺のそれぞれの中点などにおいて表示させる。ゲーム処理装置10は、各位置の固定輝点を所定のタイミングで個々に順次点灯させる。ガンコントローラ14の演算装置31は、ディスプレイ12に表示されたゲーム画面を固定輝点が識別できるように撮影し、この撮影された画像中から座標検出用の固定輝点に相当する部分を分離認識する。例えば、演算装置31は、固定輝点を表示する場合の所定形状や色に基づいて、ゲーム画面中から固定輝点を分離認識する。演算装置31は、ゲーム画面中から分離認識された各固定輝点の位置の座標を前述と同様にして算出する。   Furthermore, although the light emitter (infrared LED 18) is disposed around the display 12, a fixed bright spot corresponding to the infrared LED 18 may be displayed at a fixed position of the display 12. For example, on the display 12, a fixed bright spot for coordinate detection (for example, display with a predetermined shape or color) different from the game screen is displayed at a position corresponding to the position of the infrared LED 18 described above. That is, display is performed at positions along the upper and lower sides of the display 12, at the four corners of the display 12, or at the midpoints of the four sides. The game processing apparatus 10 lights up the fixed bright spots at the respective positions one after another at a predetermined timing. The arithmetic unit 31 of the gun controller 14 captures the game screen displayed on the display 12 so that the fixed luminescent spots can be identified, and separates and recognizes the portion corresponding to the fixed luminescent spots for coordinate detection from the captured images. To do. For example, the calculation device 31 separates and recognizes fixed luminescent spots from the game screen based on a predetermined shape and color when displaying fixed luminescent spots. The arithmetic unit 31 calculates the coordinates of the position of each fixed bright spot separately recognized from the game screen as described above.

また、本発明は上記実施形態そのままに限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で構成要素を変形して具体化できる。また、上記実施形態に開示されている複数の構成要素の適宜な組み合わせにより、種々の発明を形成できる。例えば、実施形態に示される全構成要素から幾つかの構成要素を削除してもよい。さらに、異なる実施形態にわたる構成要素を適宜組み合わせてもよい。   Further, the present invention is not limited to the above-described embodiments as they are, and can be embodied by modifying the constituent elements without departing from the scope of the invention in the implementation stage. In addition, various inventions can be formed by appropriately combining a plurality of components disclosed in the embodiment. For example, some components may be deleted from all the components shown in the embodiment. Furthermore, constituent elements over different embodiments may be appropriately combined.

10…ゲーム処理装置、12…ディスプレイ、14(14−1,14−2,14−3,14−4)…ガンコントローラ、16…コントロール装置、18(18a,18b,18c,18d)…赤外線LED、20…メインCPU、21…RAM、22…画像処理部、24…音響装置、26…記憶装置、26a…ゲームプログラム、26d…ゲーム画像データ、27…インタフェース、30…赤外線画像センサ、31…演算装置。   DESCRIPTION OF SYMBOLS 10 ... Game processing apparatus, 12 ... Display, 14 (14-1, 14-2, 14-3, 14-4) ... Gun controller, 16 ... Control apparatus, 18 (18a, 18b, 18c, 18d) ... Infrared LED , 20 ... main CPU, 21 ... RAM, 22 ... image processing unit, 24 ... acoustic device, 26 ... storage device, 26a ... game program, 26d ... game image data, 27 ... interface, 30 ... infrared image sensor, 31 ... calculation apparatus.

Claims (4)

ディスプレイの周囲にそれぞれ離間させて配置した複数の発光体と、
前記複数の発光体を個々に順次点灯させる制御手段と、
プレーヤーによって操作されるコントローラの指示方向の画像を撮影するものであって、前記制御手段によって前記複数の発光体が個々に点灯された時の画像を撮影する撮影手段と、
前記撮影手段によって撮影された各画像から前記発光体の位置を検出し、前記発光体毎に、複数回の前記発光体の位置をもとにして、他の発光体が点灯されている時の位置を近似する前記発光体の仮想の位置を算出し、前記発光体の位置及び前記発光体の仮想の位置を基準とした第1座標系における、前記画像中の前記コントローラによる指示位置を示す第1座標を算出する第1演算手段と
前記発光体が点灯されるタイミングと前記画像中の前記発光体の位置とに基づいて、前記第1座標系を、前記第1座標系における軸をX,Y軸とする第2座標系に補正し、前記第1座標に対応する前記第2座標系における第2座標を算出する第2演算手段と
を具備したことを特徴とする位置指示装置。
A plurality of light emitters spaced apart from each other around the display;
Control means for sequentially lighting the plurality of light emitters individually;
An image capturing unit that captures an image in a direction indicated by a controller operated by a player, and that captures an image when the plurality of light emitters are individually lit by the control unit;
The position of the light emitter is detected from each image photographed by the photographing means, and the other light emitters are turned on for each light emitter based on the positions of the light emitters a plurality of times. A virtual position of the light emitter approximating the position is calculated, and a first position indicating the position indicated by the controller in the image in the first coordinate system based on the position of the light emitter and the virtual position of the light emitter is calculated . a first calculating means for calculating the first coordinate,
Based on the timing at which the light emitter is turned on and the position of the light emitter in the image, the first coordinate system is corrected to a second coordinate system in which the axes in the first coordinate system are X and Y axes. And a second calculation means for calculating a second coordinate in the second coordinate system corresponding to the first coordinate .
前記第1演算手段は、前記発光体が2回点灯された分の前記発光体の位置をもとに、線形補間によって前記発光体の仮想の位置を算出することを特徴とする請求項1記載の位置指示装置。 Said first computing means, based on the position of the light emitter of minutes the light emitter is lit twice claim 1, wherein the calculating a virtual position of the light emitter by linear interpolation Position pointing device. 前記第1演算手段は、前記発光体が3回以上点灯された分の前記発光体の位置をもとに、多項式補間によって前記発光体の仮想の位置を算出することを特徴とする請求項1記載の位置指示装置。 It said first calculation means, according to claim, characterized in that the light emitters based on the position of the light emitter of minutes are turned over three times, and calculates a virtual position of the light emitter by a polynomial interpolation 1 The position pointing device described. ディスプレイにゲーム画面を表示させるゲーム処理装置と、
前記ディスプレイの周囲にそれぞれ離間させて配置した複数の発光体と、
前記複数の発光体を個々に順次点灯させるコントロール装置と、
前記ディスプレイ上の位置を指示するためにプレーヤーによって操作されるコントローラであって、指示方向の画像を撮影する撮影手段と、前記コントロール装置により複数の発光体が個々に点灯された時の前記撮影手段によって撮影された画像をもとに、前記画像中の各発光体の位置を検出し、前記発光体毎に、複数回の前記発光体の位置をもとにして、他の発光体が点灯されている時の位置を近似する前記発光体の仮想の位置を算出し、前記発光体の位置及び前記発光体の仮想の位置を基準とした第1座標系における、前記画像中の前記コントローラによる指示位置を示す第1座標を算出する第1演算手段と、前記発光体が点灯されるタイミングと前記画像中の前記発光体の位置とに基づいて、前記第1座標系を、前記第1座標系における軸をX,Y軸とする第2座標系に補正し、前記第1座標に対応する前記第2座標系における第2座標を算出する第2演算手段とが設けられたコントローラとを具備したことを特徴とするゲーム装置。
A game processing device for displaying a game screen on a display;
A plurality of light emitters spaced apart from each other around the display;
A control device for sequentially lighting the plurality of light emitters individually;
A controller that is operated by a player to indicate a position on the display, and that is an imaging unit that captures an image in a specified direction, and the imaging unit that is used when a plurality of light emitters are individually lit by the control device. The position of each illuminant in the image is detected based on the image taken by, and the other illuminant is turned on for each of the illuminants based on the position of the illuminant a plurality of times. The virtual position of the light emitter that approximates the position of the light emitter is calculated, and an instruction by the controller in the image in the first coordinate system based on the position of the light emitter and the virtual position of the light emitter Based on the first calculation means for calculating the first coordinates indicating the position, the timing when the light emitter is turned on, and the position of the light emitter in the image, the first coordinate system is changed to the first coordinate system. In Corrects the axis X, the second coordinate system with the Y axis, the second arithmetic means for calculating a second coordinate in the second coordinate system corresponding to the first coordinate has and a provided controller A game device characterized by the above.
JP2010119577A 2010-05-25 2010-05-25 Position indicating device, game device Active JP5750238B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010119577A JP5750238B2 (en) 2010-05-25 2010-05-25 Position indicating device, game device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010119577A JP5750238B2 (en) 2010-05-25 2010-05-25 Position indicating device, game device

Publications (2)

Publication Number Publication Date
JP2011244940A JP2011244940A (en) 2011-12-08
JP5750238B2 true JP5750238B2 (en) 2015-07-15

Family

ID=45410946

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010119577A Active JP5750238B2 (en) 2010-05-25 2010-05-25 Position indicating device, game device

Country Status (1)

Country Link
JP (1) JP5750238B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016015704A (en) 2014-06-13 2016-01-28 シャープ株式会社 Control system
JP7371382B2 (en) * 2019-07-31 2023-10-31 株式会社リコー Position pointing device, display system, position pointing method, and program

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4009433B2 (en) * 2001-03-29 2007-11-14 株式会社コナミデジタルエンタテインメント GAME DEVICE, GAME PROGRAM, AND GAME SYSTEM
JP2003323252A (en) * 2002-05-01 2003-11-14 Canon Inc Optical coordinate input device
JP4412714B2 (en) * 2004-03-31 2010-02-10 株式会社バンダイナムコゲームス Arrangement information detection system, game system, program, information storage medium, and arrangement information detection system control method
JP4907129B2 (en) * 2005-09-01 2012-03-28 任天堂株式会社 Information processing system and program

Also Published As

Publication number Publication date
JP2011244940A (en) 2011-12-08

Similar Documents

Publication Publication Date Title
JP5597837B2 (en) Program, information storage medium, and image generation apparatus
JP4288449B2 (en) Image display device, image processing device, and image display system
JP5026692B2 (en) Image processing apparatus, image processing method, and program
US20100328447A1 (en) Configuration of display and audio parameters for computer graphics rendering system having multiple displays
US20040110560A1 (en) Game apparatus and recording medium
JP2015154219A (en) image generation system and program
JP2010515189A (en) Method and apparatus for inserting virtual objects in real time into an image stream using data from a real scene represented by an image
WO2007013299A1 (en) Position detection system
JP2007071403A (en) Firing simulator
JP2006018476A (en) Method for controlling display of image
JP5750238B2 (en) Position indicating device, game device
JP5588742B2 (en) Position indicator
US20130109475A1 (en) Game system, control method therefor, and a storage medium storing a computer program
JP3893743B2 (en) Pointed position detection method and apparatus
JP2005319188A (en) Program, information storage medium and image generation system
JPH07253774A (en) Picture controlling device
JP2008067853A (en) Program, information storage medium and image generation system
KR20080080631A (en) Image element identifier
JPH1186025A (en) Image display device, game device, and recording medium
JP4420729B2 (en) Program, information storage medium, and image generation system
TWI397438B (en) Method for brain waves shooting game
JP4878396B2 (en) Image recognition program, image recognition apparatus, image recognition system, and image recognition method
JP5564332B2 (en) Position indicating device, game device
JP2007159817A (en) Game program, game device and game method
JP6217111B2 (en) Game machine, control method and computer program used therefor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130401

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140421

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140513

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140711

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150518

R150 Certificate of patent (=grant) or registration of utility model

Ref document number: 5750238

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150