JPH08221600A - Device and method for judging image position - Google Patents

Device and method for judging image position

Info

Publication number
JPH08221600A
JPH08221600A JP7028523A JP2852395A JPH08221600A JP H08221600 A JPH08221600 A JP H08221600A JP 7028523 A JP7028523 A JP 7028523A JP 2852395 A JP2852395 A JP 2852395A JP H08221600 A JPH08221600 A JP H08221600A
Authority
JP
Japan
Prior art keywords
target point
area
determined
rectangular
rectangular area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP7028523A
Other languages
Japanese (ja)
Other versions
JP3134215B2 (en
Inventor
Yoshihiro Sonoda
良博 苑田
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.)
Sega Corp
Original Assignee
Sega Enterprises Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sega Enterprises Ltd filed Critical Sega Enterprises Ltd
Priority to JP07028523A priority Critical patent/JP3134215B2/en
Publication of JPH08221600A publication Critical patent/JPH08221600A/en
Application granted granted Critical
Publication of JP3134215B2 publication Critical patent/JP3134215B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/60Methods for processing data by generating or executing the game program
    • A63F2300/64Methods for processing data by generating or executing the game program for computing dynamical parameters of game objects, e.g. motion determination or computation of frictional forces for a virtual car

Abstract

PURPOSE: To provide a device and method for judging image position with which the position of a reference point (such as a vehicle) corresponding to a fine topography (virtual plane) can be judged at a high speed. CONSTITUTION: A rectangular area calculating means 121 calculates a rectangular area circumscribed about a topographic area (uneven area) in an image expressing the topography. A judging means 122 is provided and it is judged whether an object point (such as a robot in a game picture) is positioned in the rectangular area or not. When it is judged that the object point is positioned in the rectangular area, it is further judged whether the object point is positioned in the topographic area inside the rectangular area or not.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、画像位置判定装置およ
び画像位置判定方法に関し、詳しくはコンピュータグラ
フィックスにより生成された仮想平面の画像と対象点と
の位置関係を判断する画像位置判定装置および画像位置
判定方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image position judging device and an image position judging method, and more particularly to an image position judging device for judging the positional relationship between an image of a virtual plane generated by computer graphics and a target point, and The present invention relates to an image position determination method.

【0002】[0002]

【従来の技術】コンピュータ技術の進歩に伴い、3次元
グラフィックス技術を用いたビデオゲーム機が使用され
るようになってきた。このようなビデオゲーム機の一つ
として、例えば、凹凸のある地形に沿って車両(例え
ば、戦車等)を走行させるようなビデオゲーム機があ
る。このビデオゲーム機においては、凹凸のある地形は
細分化された複数の平面領域の組み合わせにより近似さ
れている。そして、複数の平面領域の中から車両(対象
点)が接している平面領域が探し出され、この平面領域
の勾配および高さ(基準となる平面に対する高さ)が算
出される。この結果、平面領域の勾配および高さに従
い、車両を平面領域に沿って移動させる処理が行われ
る。このようなビデオゲーム機において、高速に車両を
走行させるためには、車両がいずれの平面上に位置して
いるのかを高速に判定しなければならない。
2. Description of the Related Art With the progress of computer technology, video game machines using three-dimensional graphics technology have come into use. As one of such video game machines, for example, there is a video game machine in which a vehicle (for example, a tank) runs along uneven terrain. In this video game machine, uneven terrain is approximated by a combination of a plurality of subdivided plane areas. Then, a plane area with which the vehicle (target point) is in contact is searched from among the plurality of plane areas, and the gradient and height (height with respect to a reference plane) of this plane area are calculated. As a result, the process of moving the vehicle along the plane area is performed according to the gradient and height of the plane area. In such a video game machine, in order to drive the vehicle at high speed, it is necessary to quickly determine on which plane the vehicle is located.

【0003】このように、車両がいずれの平面上に位置
するかを判定する方法として図14の(A)(B)に示
された2種類の方法がビデオゲーム機において用いられ
ていた。同図の(A)に示された画像位置判定方法にお
いては、凹凸のある地形全体は等面積の複数の矩型領域
に細分化される。すなわち、地形はx軸(ゲーム画像に
向かって横方向)、z軸(ゲーム画像中の奥行き方向)
において等間隔に細分化され、それぞれ同一形状の矩型
領域が複数生成される。そして、これら複数の矩型領域
の中から車両が位置している矩型領域が探し出され、こ
の矩型領域の勾配に従い車両が地形に沿って走行させら
れる。
As described above, two types of methods shown in FIGS. 14A and 14B have been used in the video game machine as a method for determining on which plane the vehicle is located. In the image position determination method shown in (A) of the same figure, the entire uneven terrain is subdivided into a plurality of rectangular regions of equal area. That is, the terrain is x-axis (horizontal direction toward the game image), z-axis (depth direction in the game image)
In, a plurality of rectangular regions each having the same shape are generated by being subdivided at equal intervals. Then, the rectangular area in which the vehicle is located is searched from among the plurality of rectangular areas, and the vehicle is caused to travel along the terrain according to the gradient of the rectangular area.

【0004】一方、同図の(B)に示された画像位置判
定方法においては、それぞれ形状の異なる複数の多角形
領域により地形が構成される。そして、これらの多角形
領域の中から車両が位置している多角形領域が探し出さ
れ、この多角形領域の勾配に従い車両の走行が行われ
る。
On the other hand, in the image position determining method shown in FIG. 1B, the terrain is composed of a plurality of polygonal regions having different shapes. Then, a polygonal area in which the vehicle is located is searched from these polygonal areas, and the vehicle travels according to the gradient of the polygonal area.

【0005】[0005]

【発明が解決しようとする課題】前者(図14の
(A))の画像位置判定方法にあっては、同一形状の矩
型領域が規則正しく配列されているため、車両がいずれ
の矩型領域に位置するかを比較的に高速に判断すること
が可能である。しかしながら、同一形状の矩型領域によ
り地形を近似しなければならず、矩型領域よりも小さな
地形における車両の位置を正確に判断することはできな
い。また、細かな地形における車両の位置を正確に判断
するためには、矩形領域をさらに小さくし、膨大な数の
矩形領域の中から車両の位置を探し出さなければならな
い。この結果、矩形領域の記憶容量が膨大になるという
問題が生じる。
In the former image position determination method ((A) of FIG. 14), since the rectangular areas of the same shape are regularly arranged, the vehicle can be located in any rectangular area. It is possible to determine whether the vehicle is located at a relatively high speed. However, the terrain must be approximated by the rectangular region having the same shape, and the position of the vehicle on the terrain smaller than the rectangular region cannot be accurately determined. Further, in order to accurately determine the position of the vehicle on the fine terrain, it is necessary to further reduce the rectangular area and find the position of the vehicle from a huge number of rectangular areas. As a result, there arises a problem that the storage capacity of the rectangular area becomes huge.

【0006】一方、後者(図14の(B))の画像位置
判定方法にあっては、形状の異なる多角形領域により地
形が表されているため、比較的に細かい地形に対する車
両の位置を判定することは可能である。しかしながら、
矩型領域よりも形状の複雑な多角形領域について判定処
理を行わなければならないため、判定処理に時間がかか
るという問題がある。
On the other hand, in the latter image position determination method ((B) of FIG. 14), since the terrain is represented by polygonal regions having different shapes, the position of the vehicle is determined relative to a relatively fine terrain. It is possible to do so. However,
Since the determination process must be performed on a polygonal region having a more complicated shape than the rectangular region, there is a problem that the determination process takes time.

【0007】本発明は、以上の課題に鑑みてなされたも
のであり、本発明の目的は、細かな地形(仮想平面)に
対する対象点(車両等)の位置を高速に判定可能な画像
位置判定装置および画像位置判定方法を提供することに
ある。
The present invention has been made in view of the above problems, and an object of the present invention is to determine an image position capable of rapidly determining the position of a target point (vehicle or the like) with respect to a fine terrain (virtual plane). An object is to provide an apparatus and an image position determination method.

【0008】[0008]

【課題を解決するための手段】請求項1記載の発明は、
複数の多角形よりなる凹凸領域が形成された仮想平面上
のいずれに対象点が位置するかを判定する画像位置判定
装置において、上記凹凸領域を含む矩形領域を算出する
矩形領域算出手段と、上記対象点が上記矩形領域に含ま
れていると判定したことを条件に、対象点が上記凹凸領
域のいずれの多角形上に位置するかを判定する判定手段
とを備えた画像位置判定装置である。
According to the first aspect of the present invention,
In an image position determination device that determines which of a virtual plane on which a concavo-convex region composed of a plurality of polygons is formed, a rectangular region calculation means for calculating a rectangular region including the concavo-convex region, An image position determination device comprising: a determination unit that determines, on the condition that the target point is included in the rectangular area, which polygon of the uneven area the target point is located on. .

【0009】請求項2記載の発明は、複数の多角形より
なる凹凸領域が形成された仮想平面上のいずれに対象点
が位置するかを判定する画像位置判定装置において、上
記凹凸領域を含む矩形領域を算出する矩形領域算出手段
と、以下の処理を実行する判定手段とを備えた画像位置
判定装置である。
According to a second aspect of the present invention, there is provided an image position determining apparatus for determining which of a virtual plane, on which an uneven area formed of a plurality of polygons is formed, of a target point, a rectangle including the uneven area. The image position determination device includes a rectangular area calculation unit that calculates an area and a determination unit that executes the following processing.

【0010】1.対象点が矩形領域に含まれていないと判
定した場合には、対象点が凹凸領域以外の仮想平面上に
位置していると判定する。
1. When it is determined that the target point is not included in the rectangular area, it is determined that the target point is located on the virtual plane other than the uneven area.

【0011】2.対象点が矩形領域に含まれていると判定
した場合には、対象点が凹凸領域のいずれの多角形上に
位置しているか否かを判定する。
2. When it is determined that the target point is included in the rectangular area, it is determined whether the target point is located on which polygon of the uneven area.

【0012】3.上記2.の場合において、対象点が凹凸領
域のいずれかの多角形に位置していないと判定された場
合には、対象点が凹凸領域以外の仮想平面上に位置して
いると判定する。
3. In the case of 2. above, when it is determined that the target point is not located on any polygon of the uneven area, the target point is located on a virtual plane other than the uneven area. Determine that

【0013】請求項3記載の発明は、上記矩形領域算出
手段は、上記凹凸領域に外接する矩形に囲まれた矩形領
域を算出する請求項1または請求項2のいずれかに記載
の画像位置判定装置である。
According to a third aspect of the present invention, the rectangular area calculation means calculates a rectangular area surrounded by a rectangle circumscribing the concave-convex area. It is a device.

【0014】請求項4記載の発明は、上記判定手段は、
上記対象点と上記多角形の頂点とを結ぶベクトルの積和
に基づき、対象点が多角形上に位置しているか否かを判
定する請求項1または請求項2のいずれかに記載の画像
位置判定装置である。
According to a fourth aspect of the present invention, the judging means comprises:
The image position according to claim 1 or 2, wherein it is determined whether or not the target point is located on the polygon based on a sum of products of vectors connecting the target point and the vertices of the polygon. It is a determination device.

【0015】請求項5記載の発明は、上記矩形領域算出
手段は、複数の矩形領域を含む他の矩形領域を算出する
請求項1または請求項2のいずれかに記載の画像位置判
定装置。
According to a fifth aspect of the present invention, the rectangular area calculating means calculates the other rectangular area including a plurality of rectangular areas.

【0016】請求項6記載の発明は、上記仮想平面のう
ち、上記対象点が位置すると判定された箇所の傾きおよ
び位置を算出する平面位置算出手段を備えた請求項1ま
たは請求項2のいずれかに記載の画像位置判定装置であ
る。
The invention according to claim 6 further comprises plane position calculating means for calculating the inclination and position of a portion of the virtual plane where the target point is determined to be located. The image position determination device according to claim 2.

【0017】請求項7記載の発明は、上記平面位置算出
手段の算出結果に基づき、上記対象点を上記仮想平面の
表面に沿って移動させる請求項6記載の画像位置判定装
置である。
The invention according to claim 7 is the image position determining device according to claim 6, wherein the object point is moved along the surface of the virtual plane based on the calculation result of the plane position calculating means.

【0018】請求項8記載の発明は、上記矩形領域算出
手段は、上記仮想平面を複数の矩形領域に細分化する請
求項1または請求項2のいずれかに記載の画像位置判定
装置である。
The invention according to claim 8 is the image position determination device according to claim 1 or 2, wherein the rectangular area calculation means subdivides the virtual plane into a plurality of rectangular areas.

【0019】請求項9記載の発明は、複数の多角形より
なる凹凸領域が形成された仮想平面上のいずれに対象点
が位置するかを判定する画像位置判定方法において、上
記凹凸領域を含む矩形領域を算出し、上記対象点が上記
矩形領域に含まれていると判定したことを条件に、対象
点が上記凹凸領域のいずれの多角形上に位置するかを判
定する画像位置判定方法である。
According to a ninth aspect of the present invention, there is provided an image position determining method for determining which one of a plurality of polygonal irregularity areas is formed on a virtual plane on which a target point is located. It is an image position determination method for determining which polygon of the concavo-convex region the target point is located on the condition that the target point is included in the rectangular region by calculating the region. .

【0020】請求項10記載の発明は、複数の多角形よ
りなる凹凸領域が形成された仮想平面上のいずれに対象
点が位置するかを以下の手順により判定する画像位置判
定方法において、上記凹凸領域を含む矩形領域を算出し
た後、以下の処理を実行する画像位置判定方法である。
According to a tenth aspect of the present invention, in the image position determining method for determining, on the virtual plane in which the concave and convex area formed of a plurality of polygons is located, the target point by the following procedure, This is an image position determination method that executes the following processing after calculating a rectangular area including an area.

【0021】1.対象点が矩形領域に含まれていないと判
定した場合には、対象点が凹凸領域以外の仮想平面上に
位置していると判定する。
1. When it is determined that the target point is not included in the rectangular area, it is determined that the target point is located on the virtual plane other than the uneven area.

【0022】3.対象点が矩形領域に含まれていると判定
した場合には、対象点が凹凸領域のいずれの多角形上に
位置しているか否かを判定する。
3. When it is determined that the target point is included in the rectangular area, it is determined whether the target point is located on which polygon of the uneven area.

【0023】4.上記2.の場合において、対象点が凹凸領
域のいずれかの多角形に位置していないと判定された場
合には、対象点が凹凸領域以外の仮想平面上に位置して
いると判定する。
4. In the case of 2. above, if it is determined that the target point is not located on any of the polygons of the concavo-convex area, the target point is located on a virtual plane other than the concavo-convex area. Determine that

【0024】[0024]

【作用】請求項1記載の発明において、矩形領域算出手
段は凹凸領域を含む矩形領域を算出する。判定手段は、
先ず対象点が矩形領域に含まれているか否かを判定す
る。対象点と矩形領域との位置関係の判断は、矩形領域
の頂点座標等に基づき比較的に短時間に行うことができ
る。この後、対象点が上記凹凸領域のいずれの多角形上
に位置するかを判定することにより、対象点が多角形上
に位置するか否かを正確に判断することができる。従っ
て、本発明によれば、細かな地形(仮想平面)に対する
対象点(車両等)の位置を高速に判定することが可能と
なる。例えば、本発明をビデオゲーム機に適用した場
合、地形(仮想平面)に沿ってロボット(対象点)を移
動させる際に、ロボットが細かな地形上のいずれに位置
するかを、高速に判断することができる。
According to the first aspect of the present invention, the rectangular area calculating means calculates a rectangular area including an uneven area. The judging means is
First, it is determined whether or not the target point is included in the rectangular area. The positional relationship between the target point and the rectangular area can be determined in a relatively short time based on the coordinates of the vertices of the rectangular area. After that, by determining which polygon of the concavo-convex region the target point is located on, it is possible to accurately determine whether the target point is located on the polygon. Therefore, according to the present invention, the position of the target point (vehicle or the like) with respect to the fine terrain (virtual plane) can be determined at high speed. For example, when the present invention is applied to a video game machine, when the robot (target point) is moved along the terrain (virtual plane), it is determined at high speed which position the robot is located on the fine terrain. be able to.

【0025】請求項2記載の発明において、先ず、矩形
領域算出手段は、凹凸領域を含む矩形領域を算出する。
そして、判定手段は、対象点が矩形領域に含まれていな
いと判定した場合には、対象点が凹凸領域以外の仮想平
面上に位置していると判定する。また、判定手段が、対
象点が矩形領域に含まれていると判定した場合には、対
象点が凹凸領域のいずれの多角形上に位置しているか否
かを判定する。この場合において、対象点が凹凸領域の
いずれかの多角形に位置していないと判定された場合に
は、対象点が凹凸領域以外の仮想平面上に位置している
と判定する。従って、先ず対象点と矩形領域との位置関
係を判断することにより、判定に要する時間を短縮する
ことができる。
In the second aspect of the present invention, first, the rectangular area calculating means calculates a rectangular area including an uneven area.
Then, when it is determined that the target point is not included in the rectangular area, the determining unit determines that the target point is located on the virtual plane other than the uneven area. Further, when the determining unit determines that the target point is included in the rectangular area, it determines whether the target point is located on which polygon of the uneven area. In this case, when it is determined that the target point is not located on any one of the polygons of the concavo-convex area, it is determined that the target point is located on a virtual plane other than the concavo-convex area. Therefore, the time required for the determination can be shortened by first determining the positional relationship between the target point and the rectangular area.

【0026】請求項3記載の発明において、矩形領域算
出手段は、凹凸領域に外接する矩形に囲まれた矩形領域
を算出する。本発明によっても、凹凸領域に外接する矩
形領域と対象点との位置関係を先ず判断することによ
り、処理時間を短縮することができる。
In the invention according to claim 3, the rectangular area calculating means calculates a rectangular area surrounded by a rectangle circumscribing the uneven area. According to the present invention as well, the processing time can be shortened by first determining the positional relationship between the rectangular area circumscribing the uneven area and the target point.

【0027】請求項4記載の発明において、判定手段
は、対象点と多角形の頂点とを結ぶベクトルの積和に基
づき、対象点が多角形上に位置しているか否かを判定す
る。これにより、対象点と多角形との位置関係を正確に
判断することができる。
In the invention according to claim 4, the determining means determines whether or not the target point is located on the polygon based on the sum of products of the vectors connecting the target point and the vertices of the polygon. Thereby, the positional relationship between the target point and the polygon can be accurately determined.

【0028】請求項5記載の発明において、矩形領域算
出手段は、複数の矩形領域を含む他の矩形領域を算出す
ることが可能である。すなわち、本発明によれば、矩形
領域を階層化することができるため、上位の矩形領域か
ら下位の矩形領域に向けて、所望の矩形領域を短時間に
検索することができる。矩形領域の数が多い場合には、
検索時間の短縮の効果はさらに大きくなる。
In the invention described in claim 5, the rectangular area calculating means can calculate another rectangular area including a plurality of rectangular areas. That is, according to the present invention, since the rectangular areas can be hierarchized, a desired rectangular area can be searched in a short time from the upper rectangular area to the lower rectangular area. If there are many rectangular areas,
The effect of reducing the search time becomes even greater.

【0029】請求項6記載の発明において、平面位置算
出手段は、仮想平面のうち、対象点が位置すると判定さ
れた箇所の傾きおよび位置(高さ等)を算出することが
可能である。
According to the sixth aspect of the invention, the plane position calculating means can calculate the inclination and the position (height, etc.) of the portion of the virtual plane where the target point is determined to be located.

【0030】請求項7記載の発明において、画像位置判
定装置は、平面位置算出手段の算出結果に基づき、対象
点を仮想平面の表面に沿って移動させることができる。
例えば、ゲーム画面中のロボットを地形に沿って自由に
移動させることができる。
According to the seventh aspect of the invention, the image position determining device can move the target point along the surface of the virtual plane based on the calculation result of the plane position calculating means.
For example, the robot in the game screen can be freely moved along the terrain.

【0031】請求項8記載の発明において、矩形領域算
出手段は、仮想平面を複数の矩形領域に細分化してい
る。すなわち、仮想平面を縦横等間隔に区切り、矩形領
域を規則正しく配列することにより、対象点がいずれの
矩形領域に含まれているかを短時間で判断することがで
きる。
In the eighth aspect of the invention, the rectangular area calculation means subdivides the virtual plane into a plurality of rectangular areas. That is, by dividing the virtual plane at equal intervals in the vertical and horizontal directions and regularly arranging the rectangular areas, it is possible to determine in which rectangular area the target point is included in a short time.

【0032】請求項9記載の発明において、凹凸領域を
含む矩形領域を算出し、対象点が上記矩形領域に含まれ
ていると判定したことを条件に、対象点が凹凸領域のい
ずれの多角形上に位置するかを判定する。すなわち、本
発明にあっては、対象点と矩形領域との位置関係の判断
は、矩形領域の頂点座標等に基づき比較的に短時間に行
うことができる。この後、対象点が上記凹凸領域のいず
れの多角形上に位置するかを判定することにより、対象
点が多角形上に位置するか否かを正確に判断することが
できる。
In the ninth aspect of the present invention, a rectangular area including a concavo-convex area is calculated, and if it is determined that the target point is included in the rectangular area, any polygon in which the target point is the concavo-convex area is formed. Determine if it is located above. That is, in the present invention, the determination of the positional relationship between the target point and the rectangular area can be performed in a relatively short time based on the vertex coordinates of the rectangular area. After that, by determining which polygon of the concavo-convex region the target point is located on, it is possible to accurately determine whether the target point is located on the polygon.

【0033】請求項10記載の発明において、凹凸領域
を含む矩形領域を算出した後、対象点が矩形領域に含ま
れていないと判定した場合には、対象点が凹凸領域以外
の仮想平面上に位置していると判定する。対象点が矩形
領域に含まれていると判定した場合には、対象点が凹凸
領域のいずれの多角形上に位置しているか否かを判定す
る。また、この場合において、対象点が凹凸領域のいず
れかの多角形に位置していないと判定された場合には、
対象点が凹凸領域以外の仮想平面上に位置していると判
定する。したがって、本発明によれば、細かな地形(仮
想平面)に対する基準点(車両等)の位置を高速に判定
することができる。
According to the tenth aspect of the present invention, after calculating the rectangular area including the uneven area, if it is determined that the target point is not included in the rectangular area, the target point lies on a virtual plane other than the uneven area. It is determined that it is located. When it is determined that the target point is included in the rectangular area, it is determined whether the target point is located on which polygon of the uneven area. Also, in this case, when it is determined that the target point is not located in any of the polygons of the uneven region,
It is determined that the target point is located on the virtual plane other than the uneven area. Therefore, according to the present invention, the position of the reference point (vehicle or the like) with respect to the fine terrain (virtual plane) can be determined at high speed.

【0034】[0034]

【実施例】【Example】

(実施例の構成)図1は本発明の第1実施例に係る画像
位置判定装置を用いたビデオゲーム機の外観図である。
この図において、筐体1は略箱型をなし、その内部には
ゲーム処理用の基板等が設けられている。また、筐体1
の前面には、CRT型のディスプレイ1a、操作パネル
2が配設されている。操作パネル2上には、ジョイステ
ィック2a、操作ボタン2bが設けられている。ディス
プレイ1aには、例えば図7に示されるようなゲーム画
面が表示される。ゲーム画面中には3次元の地形が展開
されており、プレイヤーがジョイスティック2a等を操
作することにより地形上のロボットを自由に移動させる
ことが可能である。すなわち、画像位置判定装置は、地
形表面に対するロボットの足(対象点)の位置を判定す
ることにより、地形の凹凸に従ってロボットを移動させ
ることができるものである。
(Structure of Embodiment) FIG. 1 is an external view of a video game machine using an image position determination device according to a first embodiment of the present invention.
In this figure, the housing 1 has a substantially box shape, and a board for game processing and the like are provided therein. Also, the housing 1
A CRT type display 1a and an operation panel 2 are disposed on the front surface of the. A joystick 2a and operation buttons 2b are provided on the operation panel 2. For example, a game screen as shown in FIG. 7 is displayed on the display 1a. A three-dimensional terrain is developed in the game screen, and the player can freely move the robot on the terrain by operating the joystick 2a or the like. That is, the image position determination device can move the robot according to the unevenness of the terrain by determining the position of the foot (target point) of the robot with respect to the surface of the terrain.

【0035】図2は本実施例に係る画像位置判定装置を
用いたゲーム機のブロック図である。このゲーム機は、
ゲーム機の制御および画像位置判定を行うCPUボード
10、ゲーム画面の表示制御を行うビデオボード20、
効果音等を生成するサウンドボード30、アプリケーシ
ョンプログラムが書き込まれたROMを登載したROM
ボード40等を備えて構成されている。
FIG. 2 is a block diagram of a game machine using the image position determination device according to this embodiment. This game console
A CPU board 10 for controlling the game machine and determining the image position, a video board 20 for controlling the display of the game screen,
A sound board 30 for generating sound effects, a ROM containing an application program written in the ROM
It is configured to include a board 40 and the like.

【0036】CPUボード10は、SCU(System Con
trol Unit)11、メインCPU12、RAM13、R
OM14、サブCPU15、CPUバス16、I/F1
7等により構成されている。メインCPU12はゲーム
機の制御および画像位置判定等を行うものである。この
メインCPU12は、内部にDSP(Digital SignalPr
ocessor)と同様の演算機能を備え、アプリケーション
ソフトを高速に実行可能である。RAM13は、メイン
CPU12のワークエリアとして使用されるものであ
る。ROM14には、初期化処理用のイニシャルプログ
ラム等が書き込まれている。SCU11は、バス16を
制御することにより、CPUボード10、ビデオボード
20、サウンドボード30、ROMボード40等の間に
おけるデータ入出力を円滑に行うものである。
The CPU board 10 is an SCU (System Con
control unit) 11, main CPU 12, RAM 13, R
OM14, sub CPU15, CPU bus 16, I / F1
It is composed of 7 etc. The main CPU 12 controls the game machine and determines the image position. The main CPU 12 has a DSP (Digital SignalPr) inside.
ocessor) has the same calculation function, and application software can be executed at high speed. The RAM 13 is used as a work area for the main CPU 12. An initial program for initialization processing and the like are written in the ROM 14. The SCU 11 controls the bus 16 to smoothly perform data input / output between the CPU board 10, the video board 20, the sound board 30, the ROM board 40, and the like.

【0037】サブCPU15は、メインCPU12から
の要求に応じてI/F17を介してジョイスティック2
a、操作ボタン2bからの信号を検出するものである。
メインCPU12はサブCPU15から受け取った信号
に基づき、例えばゲーム画面中のロボットを走行させる
等の画像制御を行うものである。
The sub CPU 15 receives the joystick 2 via the I / F 17 in response to a request from the main CPU 12.
a, a signal from the operation button 2b is detected.
Based on the signal received from the sub CPU 15, the main CPU 12 performs image control such as running a robot in a game screen.

【0038】ビデオブロック20は、TVゲームにおけ
るポリゴン等の描画を行うVDP(Video Display Proc
essor)21、背景画面の描画を行うVDP22等によ
り構成されている。VDP21、22により描画された
画像のデータはエンコーダ23に出力される。エンコー
ダ23は、この画像データからRGBビデオ信号を生成
し、ディスプレイ1aに出力する。これにより、ディス
プレイ1aにゲーム画面が表示される。
The video block 20 is a VDP (Video Display Proc) for drawing a polygon or the like in a TV game.
essor) 21, a VDP 22 for drawing a background screen, and the like. The image data drawn by the VDPs 21 and 22 is output to the encoder 23. The encoder 23 generates an RGB video signal from this image data and outputs it to the display 1a. As a result, the game screen is displayed on the display 1a.

【0039】サウンドブロック30は、PCM方式ある
いはFM方式に従い音声合成を行うDSP32と、この
DSP32の制御等を行うCPU31とにより構成され
ている。DSP32により生成された音声データは、D
/Aコンバータ33により2チャンネルの信号に変換さ
れた後にスピーカ34に出力される。
The sound block 30 is composed of a DSP 32 that synthesizes voice according to the PCM system or the FM system, and a CPU 31 that controls the DSP 32 and the like. The audio data generated by the DSP 32 is D
The signal is converted into a 2-channel signal by the / A converter 33 and then output to the speaker 34.

【0040】ROMボード40は、アプリケーションプ
ログラムが書き込まれたROM41を登載する基板であ
る。このROMボード40を交換することにより、種々
のゲームを提供することが可能である。
The ROM board 40 is a board on which a ROM 41 in which an application program is written is mounted. By replacing the ROM board 40, various games can be provided.

【0041】続いて、本実施例に係る画像位置判定装置
の構成を説明する。図3は、メインCPU12、RAM
13、ROM14等により構成される画像位置判定装置
の機能ブロック図である。この画像位置判定装置は、矩
型領域算出手段121、判定手段122、平面位置算出
手段123により構成されている。
Next, the structure of the image position determining apparatus according to this embodiment will be described. FIG. 3 shows the main CPU 12 and RAM
13 is a functional block diagram of an image position determination device including a ROM 13 and a ROM 14. This image position determination device is composed of a rectangular area calculation unit 121, a determination unit 122, and a plane position calculation unit 123.

【0042】矩型領域算出手段121には、地形の3次
元のデータである地形データと、ロボットの両足の中心
点の座標(以下、「対象点座標」という)とが入力され
ている。矩型領域算手段121は、この地形データのう
ちの特定領域(例えば、丘陵等)に外接する矩型によっ
て囲まれた平面(矩型領域)を算出する機能を備えてい
る。判定手段122は、対象点座標が地形のうちのいず
れの領域(平面)上にあるかを判定するものである。例
えば、図7に示されるゲーム画面において、ロボット7
の対象点座標がいずれの領域上にあるかが判断される。
すなわち、複数の領域の中から、対象点座標が位置する
領域が探し出される。この場合には、ロボット7が位置
する領域として、領域53aが探し出される。平面位置
算出手段123は、探し出された領域53aの勾配、お
よび、領域53aにおける対象点座標の高さ(地平に対
する高さ)を算出する機能を備えたものである。メイン
CPU12は、このようにして算出された勾配および高
さに従い、領域53aの傾斜面に沿ってロボット7を歩
行させることが可能となる。
Terrain data, which is three-dimensional data of the terrain, and coordinates of the center points of both legs of the robot (hereinafter referred to as “target point coordinates”) are input to the rectangular area calculating means 121. The rectangular area calculating means 121 has a function of calculating a plane (rectangular area) surrounded by a rectangular shape circumscribing a specific area (for example, a hill) of the topographical data. The determining means 122 determines which area (plane) of the terrain the target point coordinates are on. For example, in the game screen shown in FIG. 7, the robot 7
It is determined which area the target point coordinate of is on.
That is, the area in which the target point coordinates are located is searched from among the plurality of areas. In this case, the area 53a is searched for as an area in which the robot 7 is located. The plane position calculation means 123 has a function of calculating the gradient of the found area 53a and the height (height with respect to the horizon) of the target point coordinates in the area 53a. The main CPU 12 can walk the robot 7 along the inclined surface of the region 53a according to the gradient and the height calculated in this way.

【0043】図4は、図7のゲーム画面中に示された地
形5の上面図(y軸正方向から見た図)である。なお、
図7には図4の地形(仮想平面)5の一部が表示される
にすぎず、ロボット7の移動に従い、地形5のうちの表
示対象となる部分が変更される。この地形5は、デカル
ト座標系(x、y、zの各軸上の座標位置によって表さ
れる座標系)によって表されるものとする。また、地平
(地形領域以外の仮想平面)50はxz平面上に置かれ
ている。すなわち、地平50は、いかなる地形領域にも
属さない平面領域であり、平面式a0x+b0y+c0
=d0(式1)によって表現される。また、地平50上
には複数の多角形(ポリゴン)よりなる丘陵等(地形領
域51、52、53等)が形成されている。地形領域5
3の斜視図を図9に示す。この図に示されるように、地
形領域53は、地平5に対して高さ(y軸方向の値)を
持っている。そして、地形領域53を構成する多角形は
ねじれを持たず、一般的な平面式ax+by+cz=d
(式2)により表される。
FIG. 4 is a top view of the terrain 5 shown in the game screen of FIG. 7 (viewed from the positive direction of the y-axis). In addition,
In FIG. 7, only a part of the terrain (virtual plane) 5 of FIG. 4 is displayed, and as the robot 7 moves, the display target part of the terrain 5 is changed. This topography 5 is represented by a Cartesian coordinate system (a coordinate system represented by coordinate positions on x, y, and z axes). A horizon (a virtual plane other than the terrain region) 50 is placed on the xz plane. That is, the horizon 50 is a plane area that does not belong to any terrain area, and has a plane expression a 0 x + b 0 y + c 0 z.
= D 0 (Expression 1). Further, on the horizon 50, hills and the like (terrain regions 51, 52, 53, etc.) composed of a plurality of polygons are formed. Terrain area 5
A perspective view of No. 3 is shown in FIG. As shown in this figure, the terrain region 53 has a height (value in the y-axis direction) with respect to the horizon 5. The polygon forming the terrain region 53 has no twist, and a general plane expression ax + by + cz = d
It is represented by (Equation 2).

【0044】さらに、図4における地形領域51、5
2、53は、矩形領域算出手段121によって矩形領域
(Bounding-Box)A1、A2、A3として表される。矩形
領域A1、A2、A3は、地形領域51、52、53に外
接する矩形によって囲まれた領域であり、地形領域5
1、52、53のそれぞれの座標から容易に算出するこ
とが可能である。例えば、図10に示される地形領域の
各頂点の座標を、(x1,z1)〜(x4,z4)とおく
と、x1〜x4の最小値およびz1〜z4の最小値からA点
の座標(x1,z4)が算出され、x1〜x4の最大値およ
びz1〜z4の最大値からB点の座標(x3,z2)が算出
される。同様にして、x1〜x4の最大値およびz1〜z4
の最小値からC点の座標(x3,z4)が算出され、x1
〜x4の最小値およびz1〜z4の最大値からB点の座標
(x1,z2)が算出される。このように比較的に簡易な
演算により、矩形領域の4つの座標A〜Dを高速に求め
ることが可能である。
Further, the terrain areas 51 and 5 in FIG.
2, 53 are represented by the rectangular area calculating means 121 as rectangular areas (Bounding-Box) A 1 , A 2 , and A 3 . The rectangular areas A 1 , A 2 and A 3 are areas surrounded by a rectangle circumscribing the terrain areas 51, 52 and 53.
It can be easily calculated from the respective coordinates of 1, 52, and 53. For example, if the coordinates of the vertices of the terrain region shown in FIG. 10 are set as (x 1 , z 1 ) to (x 4 , z 4 ), the minimum value of x 1 to x 4 and z 1 to z 4 The coordinates (x 1 , z 4 ) of the point A are calculated from the minimum value, and the coordinates (x 3 , z 2 ) of the point B are calculated from the maximum value of x 1 to x 4 and the maximum value of z 1 to z 4. It Similarly, the maximum value of x 1 to x 4 and z 1 to z 4
Point C of coordinates from the minimum value of (x 3, z 4) are calculated, x 1
The coordinates (x 1 , z 2 ) of the point B are calculated from the minimum value of ˜x 4 and the maximum value of z 1 ˜z 4 . Thus, the four coordinates A to D of the rectangular area can be obtained at high speed by a relatively simple calculation.

【0045】そして、この矩形領域に対象点座標
(x0,z0)が含まれるか否かの判定は、座標A
(x1,z4)、座標B(x3,z2)を用いて容易に行う
ことができる。すなわち、x1<x0<x3、かつ、z4
0<z2を満たす場合には、対象点座標(x0,z0)が
矩形領域に含まれ、他の場合には対象点座標(x0
0)が矩形領域に含まれないと判定手段122が判断
することが可能である。
Then, it is determined whether or not the coordinate (x 0 , z 0 ) of the target point is included in this rectangular area by the coordinate A.
(X 1 , z 4 ) and coordinates B (x 3 , z 2 ) can be easily used. That is, x 1 <x 0 <x 3 and z 4 <
z 0 <z 2 if it meets the the target point coordinates (x 0, z 0) is included in the rectangular area, the object point coordinates in other cases (x 0,
The determination unit 122 can determine that z 0 ) is not included in the rectangular area.

【0046】上述したように、対象点座標と矩形領域と
の位置関係の判定に際しては、y軸方向の値(高さ)は
考慮されない。すなわち、xz平面上にそれぞれ写像さ
れた矩形領域および対象点座標により、判定手段122
による判定が行われる。この点に関しては、後述する、
地形領域を構成する領域(多角形)と対象点座標との位
置関係の判定についても同様である。
As described above, the value (height) in the y-axis direction is not considered when determining the positional relationship between the target point coordinates and the rectangular area. That is, the determination unit 122 is determined based on the rectangular area and the target point coordinates respectively mapped on the xz plane.
Is determined. This point will be described later,
The same applies to the determination of the positional relationship between the area (polygon) forming the terrain area and the target point coordinates.

【0047】図5、図6は、階層化された矩形領域を説
明するための図である。本実施例に係る画像位置判定装
置にあっては、矩形領域を階層化することが可能であ
る。例えば、図6に示されるように、矩形領域A11、A
12をまとめて矩形領域A1を形成し、さらに矩形領域
1、A2、A3をまとめて矩形領域Aを形成することが
できる。同様に、矩形領域B21、B22をまとめて矩形領
域B2を形成し、矩形領域B1、B2、B3をまとめて矩形
領域Bを形成することができる。このようにして形成さ
れた矩形領域の階層構造を図5に示す。判定手段122
対象点が位置する矩形領域を探し出す際に、対象点座標
が矩形領域A、B、Cのいずれに含まれるかを先ず判断
する。仮に、対象点座標が矩形領域Aに含まれる場合に
は、さらに判定手段122は、対象点座標がA1〜A3
いずれに含まれるかを判断する。以下、同様に、上位の
矩形領域から下位の矩形領域を順に検索していく。この
ようにして、多くの矩形領域の中から、対象点座標が含
まれる矩形領域を高速に検索することが可能となる。
FIG. 5 and FIG. 6 are diagrams for explaining a hierarchical rectangular area. In the image position determination device according to the present embodiment, it is possible to hierarchically form a rectangular area. For example, as shown in FIG. 6, rectangular areas A 11 , A
The rectangular area A 1 can be formed by combining 12 areas, and the rectangular area A can be formed by further combining the rectangular areas A 1 , A 2 , and A 3 . Similarly, the rectangular areas B 21 and B 22 can be combined to form the rectangular area B 2 , and the rectangular areas B 1 , B 2 and B 3 can be combined to form the rectangular area B. The hierarchical structure of the rectangular area thus formed is shown in FIG. Judgment means 122
When searching for a rectangular area in which the target point is located, it is first determined which of the rectangular areas A, B, and C the target point coordinate is included in. If the target point coordinates are included in the rectangular area A, the determining unit 122 further determines which of the target point coordinates A 1 to A 3 is included in. Hereinafter, similarly, the lower rectangular area is sequentially searched from the upper rectangular area. In this way, it is possible to quickly search a rectangular area including the target point coordinates from many rectangular areas.

【0048】図8は、地形領域と対象点座標との位置関
係の判定方法を説明するための図である。上述したよう
に、地形領域は複数の多角形(領域)により構成されて
いる。領域に対象点が含まれているか否かの判断は、図
8の下段に示されたベクトル積和の演算式によって判断
される。なお、この式において、演算子”×”は、ベク
トル同士の外積を表し、演算子”+”はベクトル同士の
和を表している。例えば、同図の左に示されるように、
対象点座標が多角形8上に位置する場合には、ベクトル
積和の方向は紙面に対して上方に向く。一方、対象点座
標が多角形8外に位置する場合には、ベクトル積和の方
向は紙面に対して下方に向く。従って、ベクトル積和の
演算結果に基づき、対象点座標が多角形8上に位置する
か否かを判断することができる。
FIG. 8 is a diagram for explaining a method of determining the positional relationship between the terrain area and the target point coordinates. As described above, the terrain area is composed of a plurality of polygons (areas). The determination of whether or not the target point is included in the region is made by the vector sum of product arithmetic expression shown in the lower part of FIG. In this equation, the operator “×” represents the outer product of the vectors, and the operator “+” represents the sum of the vectors. For example, as shown on the left side of the figure,
When the target point coordinates are located on the polygon 8, the vector sum of products direction is upward with respect to the paper surface. On the other hand, when the target point coordinates are located outside the polygon 8, the vector sum of products direction is downward with respect to the paper surface. Therefore, it is possible to determine whether the coordinates of the target point are located on the polygon 8 based on the calculation result of the vector sum of products.

【0049】(実施例の作用)続いて、図11、図12
に示されたフローチャートを参照しながら、本実施例に
係る画像位置判定装置の作用を説明する。
(Operation of Embodiment) Next, FIG. 11 and FIG.
The operation of the image position determination device according to the present embodiment will be described with reference to the flowchart shown in FIG.

【0050】図11は画像位置判定装置を用いたゲーム
機の作用を表すフローチャートである。このフローチャ
ートにおいて、ゲーム機へ電源が投入されると、メイン
CPU12は、ゲーム機全体の初期化を行う(S1)。
すなわち、メインCPU12は、サブCPU15の入出
力ポートの設定、レジスタのクリア、ROM41からア
プリケーションプログラムの読み出し等の処理を実行す
る。これにより、ディスプレイ1aにデモンストレーシ
ョン用の画面が表示される。プレイヤーがゲーム機にコ
インを投入し、スタートボタンを押すと(S2でYE
S)、メインCPU12はゲームの実行を開始する。
FIG. 11 is a flowchart showing the operation of the game machine using the image position determination device. In this flowchart, when the game machine is powered on, the main CPU 12 initializes the entire game machine (S1).
That is, the main CPU 12 executes processing such as setting the input / output port of the sub CPU 15, clearing the register, and reading the application program from the ROM 41. As a result, a demonstration screen is displayed on the display 1a. When the player inserts a coin into the game machine and presses the start button (Y in S2
S), the main CPU 12 starts executing the game.

【0051】先ず、メインCPU12は、ジョイスティ
ック2a、操作ボタン2bからデータを入力し(S
3)、入力したデータの解析を行う。オペレータがジョ
イスティックを操作したために、ゲーム画面上のロボッ
ト7(図7)を移動させる必要が生じた場合には、メイ
ンCPU12はロボット7の対象点座標(両足の中点座
標)がいずれの領域に位置しているかを判断する(S
4)。そして、メインCPU12は、対象点座標が位置
する領域の勾配および高さを算出する(S5)。領域の
勾配および高さの算出は、上述したように領域を表す平
面式に基づき行われる。例えば、対象点座標(X0
0)が平面50上にある場合には、上述の式1(a0
+b0y+c0z=d0)に基づき平面の勾配は”0”で
あると判断できる。また、対象点座標(X0,Z0)が領
域53a上にある場合には、上述の式2(ax+by+
cz=d)に基づき領域53aの勾配および高さを求め
ることができる。
First, the main CPU 12 inputs data from the joystick 2a and the operation button 2b (S
3) Analyze the input data. When it is necessary to move the robot 7 (FIG. 7) on the game screen because the operator operates the joystick, the main CPU 12 causes the target point coordinates (middle point coordinates of both feet) of the robot 7 to be in any area. Determine if it is located (S
4). Then, the main CPU 12 calculates the gradient and height of the area where the target point coordinates are located (S5). The calculation of the gradient and height of the area is performed based on the plane expression representing the area as described above. For example, the target point coordinates (X 0 ,
When Z 0 ) is on the plane 50, the above equation 1 (a 0 x
Based on + b 0 y + c 0 z = d 0 ) it can be determined that the gradient of the plane is “0”. Further, when the target point coordinates (X 0 , Z 0 ) are on the area 53a, the above equation 2 (ax + by +) is used.
The gradient and height of the region 53a can be obtained based on cz = d).

【0052】また、メインCPU12は、算出された勾
配および高さのデータに従いロボット7を移動させる等
の画像制御を行う(S6)。すなわち、メインCPU1
2は、移動後のロボット7の座標を算出し、この座標に
おけるロボット7を描画するのに必要なポリゴンデータ
等を生成する。ビデオボード20上のVDP21は、こ
れらのポリゴンデータ等に基づき移動後のロボット7を
フレームメモリに描画し、VDP22は描画されたロボ
ット7の画像をスクロール画像に重ね合わせてディスプ
レイ1aに表示する(S7)。この後、メインCPU1
2は、処理を続行するか否かを判断し、処理を続行する
場合(S8でNO)にはS3に戻る。一方、処理を終了
するとメインCPU12が判断した場合(S8でYE
S)には、S1に戻る。
Further, the main CPU 12 performs image control such as moving the robot 7 according to the calculated gradient and height data (S6). That is, the main CPU 1
Reference numeral 2 calculates the coordinates of the robot 7 after movement, and generates polygon data and the like necessary for drawing the robot 7 at these coordinates. The VDP 21 on the video board 20 draws the moved robot 7 in the frame memory based on these polygon data, and the VDP 22 superimposes the drawn image of the robot 7 on the scroll image and displays it on the display 1a (S7). ). After this, the main CPU1
2 determines whether to continue the process, and if the process is to be continued (NO in S8), the process returns to S3. On the other hand, when the main CPU 12 determines that the processing is finished (YES in S8)
In S), the process returns to S1.

【0053】図12は、上述した位置判定処理(S4)
の詳細を表すフローチャートである。このフローチャー
トは、メインCPU12によって実現し得る判定手段1
22によって実行される。以下、このフローチャートを
図4、図5、図6を参照しながら説明する。
FIG. 12 shows the above-mentioned position determination processing (S4).
3 is a flowchart showing the details of FIG. This flowchart is a determination means 1 that can be realized by the main CPU 12.
22. Hereinafter, this flowchart will be described with reference to FIGS. 4, 5 and 6.

【0054】先ず、判定手段122は、RAM13また
はROM14から矩形領域の座標を読み出す(S40
1)。そして、判定手段122は対象点座標(X0
0)がいずれの矩形領域に含まれるかを判断する(S
402)。矩形領域が図5、図6に示されるように階層
化されている場合には、先ず矩形領域A、B、C・・・
のいずれに対象点座標(X0,Z0)が含まれているかを
判断する。矩形領域Aに対象点座標(X0,Z0)が含ま
れている場合には、矩形領域A中の矩形領域A1、A2
3のいずれに対象点座標(X0,Z0)が含まれるかを
判断する。このようにして、対象点座標(X0,Z0)が
位置する矩形領域が検索される。
First, the judging means 122 reads the coordinates of the rectangular area from the RAM 13 or the ROM 14 (S40).
1). Then, the determination means 122 determines the target point coordinates (X 0 ,
Which rectangular area Z 0 ) is included in is determined (S
402). When the rectangular areas are hierarchized as shown in FIGS. 5 and 6, the rectangular areas A, B, C ...
Which of the above includes the target point coordinates (X 0 , Z 0 ). When the rectangular area A includes the target point coordinates (X 0 , Z 0 ), the rectangular areas A 1 , A 2 in the rectangular area A,
It is determined which of A 3 contains the target point coordinates (X 0 , Z 0 ). In this way, the rectangular area in which the target point coordinates (X 0 , Z 0 ) are located is searched.

【0055】対象点座標(X0,Z0)がいずれの矩形領
域にも含まれていないと判定手段122によって判定さ
れた場合(S403でNO)には、S408以降の処理
が実行される。図4に示されるように、地形領域51、
52、53・・・のすべてに矩形領域が形成されてい
る。このため、対象点座標(X0,Z0)が矩形領域
1、A2、A3・・・に含まれていない場合には、対象
点座標(X0,Z0)は、地平(地形領域51、52、5
3等以外の地形5)50上に位置していると判断し得
る。したがって、この場合には、判定手段122は、対
象点座標(X0,Z0)が地形50上に位置している旨を
出力し(S408)、図11のフローチャートに戻る。
If the determination means 122 determines that the target point coordinates (X 0 , Z 0 ) are not included in any of the rectangular areas (NO in S403), the processing in S408 and thereafter is executed. As shown in FIG. 4, the terrain area 51,
Rectangular areas are formed in all of 52, 53, .... Therefore, when the target point coordinates (X 0 , Z 0 ) are not included in the rectangular areas A 1 , A 2 , A 3, ..., The target point coordinates (X 0 , Z 0 ) are Terrain areas 51, 52, 5
It can be judged that it is located on the terrain 5) 50 other than the third grade. Therefore, in this case, the determination means 122 outputs that the target point coordinates (X 0 , Z 0 ) are located on the terrain 50 (S408), and returns to the flowchart of FIG.

【0056】一方、対象点座標(X0,Z0)がいずれか
の矩形領域に含まれていると判定手段122によって判
定された場合(S403でYES)には、S404以降
の処理が実行される。すなわち、判定手段122は、地
形領域51、52、53を構成する多角形の領域のいず
れに、対象点座標(X0,Z0)が含まれているかを判断
する(S405)。多角形である領域と対象点座標(X
0,Z0)との位置関係の判断は、上述したように図8の
ベクトル積和の演算により行われる。
On the other hand, when the determination means 122 determines that the target point coordinates (X 0 , Z 0 ) are included in any of the rectangular areas (YES in S403), the processing of S404 and thereafter is executed. It That is, the determination means 122 determines which of the polygonal regions forming the terrain regions 51, 52, 53 includes the target point coordinates (X 0 , Z 0 ) (S405). Area that is polygon and target point coordinates (X
0 , Z 0 ) is determined by the calculation of the vector sum of products in FIG. 8 as described above.

【0057】例えば、前述のステップS403の処理に
よって、対象点座標(X0,Z0)が矩形領域A3に含ま
れていると判断されたとする。この場合には、判定手段
122は、矩形領域A3内のいずれの多角形の領域に対
象点座標(X0,Z0)が含まれているかを判断する。矩
形領域A3内のいずれの多角形の領域にも対象点座標
(X0,Z0)が含まれていないと判断された場合(S4
06でNO)には、対象点座標(X0,Z0)は地平50
上に位置していると考えられる。従って、判定手段12
2は、対象点座標(X0,Z0)が地平50上に位置して
いる旨を出力し(S408)、図12のフローチャート
に戻る。
For example, it is assumed that the target point coordinates (X 0 , Z 0 ) are determined to be included in the rectangular area A 3 by the processing in step S403 described above. In this case, the determination unit 122 determines which polygonal area within the rectangular area A 3 includes the target point coordinates (X 0 , Z 0 ). When it is determined that the target point coordinates (X 0 , Z 0 ) are not included in any polygonal area within the rectangular area A 3 (S4).
06), the target point coordinates (X 0 , Z 0 ) are 50
It is thought to be located above. Therefore, the determination means 12
2 outputs that the target point coordinates (X 0 , Z 0 ) are located on the horizon 50 (S408), and returns to the flowchart of FIG.

【0058】一方、矩形領域A3内の領域53aに対象
点座標(X0,Z0)が含まれていると判断された場合
(S406でYES)には、判定手段122は多角形5
3aを表すコードを出力して図12のフローチャートに
復帰する。すなわち、ロボットの両足の中点を表す対象
点座標(X0,Z0)が多角形53a上にあると判断され
る。
On the other hand, when it is determined that the area 53a in the rectangular area A 3 includes the target point coordinates (X 0 , Z 0 ) (YES in S406), the determining means 122 determines the polygon 5
The code representing 3a is output and the process returns to the flowchart of FIG. That is, it is determined that the target point coordinates (X 0 , Z 0 ) representing the midpoint of both legs of the robot are on the polygon 53a.

【0059】以上の処理により、細かな地形における対
象点座標の位置を高速に判定することが可能となる。こ
の後、図12のフローチャートにおいて、メインCPU
12は対象点座標(X0,Z0)の位置する平面(地平5
0、または、地形領域内の多角形の領域)の勾配および
高さを算出することができる(図11のS5)。
With the above processing, the position of the target point coordinates on the fine terrain can be determined at high speed. After this, in the flowchart of FIG. 12, the main CPU
12 is a plane (horizontal plane 5) where the target point coordinates (X 0 , Z 0 ) are located.
The gradient and height of 0 or a polygonal area in the terrain area) can be calculated (S5 in FIG. 11).

【0060】(他の実施例)本発明は以上の実施例に限
定されることなく、本発明の趣旨を逸脱しない範囲にお
いて変形実施可能である。
(Other Embodiments) The present invention is not limited to the above embodiments, but can be modified and implemented without departing from the spirit of the present invention.

【0061】例えば、上述の実施例の変形例として、図
13に示されるように地形130全体を縦横等間隔に区
切り、区切られた矩形領域について対象点座標の位置判
定を行ってもよい。すなわち、先ず対象点座標が位置す
る矩形領域を検索し、検索された矩形領域に地形領域1
32が含まれている場合には、さらに対象点座標が地形
領域132に位置するか否かをベクトル積の演算により
判断する。対象点座標が地形領域132に位置している
場合にはこの領域の勾配および高さに基づき対象点座標
を移動し、対象点座標が地形領域132に位置していな
い場合には地平131の勾配および高さに基づき対象点
座標を移動する。本実施例によれば、矩形領域に地形領
域132が含まれていない場合には、比較的に処理時間
のかかるベクトル積を演算する必要がないため、演算時
間を短縮することが可能である。
For example, as a modification of the above-described embodiment, as shown in FIG. 13, the entire topography 130 may be divided into equal vertical and horizontal intervals, and the position of the target point coordinates may be determined for the divided rectangular area. That is, first, the rectangular area where the target point coordinates are located is searched, and the terrain area 1 is added to the searched rectangular area.
If 32 is included, whether or not the target point coordinates are located in the topographical region 132 is further determined by calculating the vector product. When the target point coordinates are located in the terrain region 132, the target point coordinates are moved based on the gradient and height of this region, and when the target point coordinates are not located in the terrain region 132, the slope of the horizon 131. And move the target point coordinates based on height. According to the present embodiment, when the rectangular area does not include the terrain area 132, it is not necessary to calculate a vector product that requires a relatively long processing time, and thus the calculation time can be shortened.

【0062】[0062]

【発明の効果】以上説明してきたように、先ず対象点と
矩形領域との位置関係を判断することにより、対象点が
矩形領域に含まれるか否かを高速に判断することができ
る。そして、矩形領域に対象点が含まれると判定された
場合に限り、対象点が矩形領域内の多角形に含まれるか
否かを判断している。これにより、細かな地形における
対象点(ロボット等)の位置判断を高速に行うことが可
能となる。
As described above, by first determining the positional relationship between the target point and the rectangular area, it is possible to quickly determine whether or not the target point is included in the rectangular area. Then, only when it is determined that the target point is included in the rectangular area, it is determined whether the target point is included in the polygon in the rectangular area. As a result, the position of the target point (robot or the like) on the fine terrain can be determined at high speed.

【0063】また、複数の矩形領域からなる他の矩形領
域を算出し、矩形領域を階層化させることにより、所望
の矩形領域を高速に検索することが可能となる。すなわ
ち、上位の矩形領域から下位の矩形領域に向けて順に矩
形領域を検索することにより、多くの矩形領域の中から
所望の矩形領域を短時間に探し出すことができる。
Further, it is possible to search for a desired rectangular area at high speed by calculating another rectangular area consisting of a plurality of rectangular areas and hierarchically forming the rectangular area. That is, by searching the rectangular areas in order from the upper rectangular area toward the lower rectangular area, a desired rectangular area can be found out of many rectangular areas in a short time.

【0064】さらに、本発明の算出結果(対象点の位
置)に基づき対象点が位置する仮想平面(地形)の勾配
等を算出することにより、ロボット等を地形に沿って高
速に移動させることができる。
Furthermore, by calculating the gradient of the virtual plane (terrain) where the target point is located based on the calculation result (position of the target point) of the present invention, the robot or the like can be moved at high speed along the terrain. it can.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の一実施例に係るビデオゲーム機の外観
図である。
FIG. 1 is an external view of a video game machine according to an embodiment of the present invention.

【図2】本発明の一実施例に係るビデオゲーム機の概略
構成図である。
FIG. 2 is a schematic configuration diagram of a video game machine according to an embodiment of the present invention.

【図3】本発明の一実施例に係る画像位置判定装置の機
能ブロック図である。
FIG. 3 is a functional block diagram of an image position determination device according to an embodiment of the present invention.

【図4】本発明の一実施例に係る地形の上面図である。FIG. 4 is a top view of a terrain according to an embodiment of the present invention.

【図5】本発明の一実施例に係る矩形領域の階層化を説
明するための図である。
FIG. 5 is a diagram for explaining layering of rectangular areas according to an embodiment of the present invention.

【図6】本発明の一実施例に係る矩形領域の階層化を説
明するための図である。
FIG. 6 is a diagram for explaining layering of a rectangular area according to an embodiment of the present invention.

【図7】本発明の一実施例に係るゲーム画面の一例を示
す図である。
FIG. 7 is a diagram showing an example of a game screen according to an embodiment of the present invention.

【図8】本発明の一実施例に係る地形領域と対象点座標
との位置関係の判定方法を示す図である。
FIG. 8 is a diagram showing a method of determining a positional relationship between a terrain region and target point coordinates according to an embodiment of the present invention.

【図9】本発明の一実施例に係る地形領域を説明するた
めの図である。
FIG. 9 is a diagram for explaining a terrain region according to an embodiment of the present invention.

【図10】本発明の一実施例に係る矩形領域と対象点座
標との位置関係の判定方法を示す図である。
FIG. 10 is a diagram showing a method of determining a positional relationship between a rectangular area and target point coordinates according to an embodiment of the present invention.

【図11】本発明の一実施例に係るゲーム機の作用を表
すフローチャートである。
FIG. 11 is a flowchart showing the operation of the game machine according to the embodiment of the present invention.

【図12】本発明の一実施例に係る画像位置判定装置の
作用を表すフローチャートである。
FIG. 12 is a flowchart showing the operation of the image position determination device according to the embodiment of the present invention.

【図13】本発明の他の実施例に係る画像位置判定方法
を説明するための図である。
FIG. 13 is a diagram for explaining an image position determination method according to another embodiment of the present invention.

【図14】従来の画像位置判定方法を説明するための図
である。
FIG. 14 is a diagram for explaining a conventional image position determination method.

【符号の説明】[Explanation of symbols]

5 地形(仮想平面) 12 メインCPU(矩形領域算出手段、判定手段、平
面位置算出手段) 50 地平(凹凸領域以外の仮想平面) 51、52、53 地形領域(凹凸領域) 53a 多角形
5 Topography (virtual plane) 12 Main CPU (rectangular area calculation means, determination means, plane position calculation means) 50 Horizon (virtual plane other than uneven area) 51, 52, 53 Terrain area (uneven area) 53a Polygon

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 複数の多角形よりなる凹凸領域が形成さ
れた仮想平面上のいずれに対象点が位置するかを判定す
る画像位置判定装置において、 上記凹凸領域を含む矩形領域を算出する矩形領域算出手
段と、 上記対象点が上記矩形領域に含まれていると判定したこ
とを条件に、対象点が上記凹凸領域のいずれの多角形上
に位置するかを判定する判定手段とを備えた画像位置判
定装置。
1. An image position determining device for determining which of a virtual plane on which an uneven area formed of a plurality of polygons is formed is a rectangular area for calculating a rectangular area including the uneven area. An image provided with a calculating means and a determining means for determining on which polygon of the concavo-convex area the target point is located, on condition that it is determined that the target point is included in the rectangular area. Position determination device.
【請求項2】 複数の多角形よりなる凹凸領域が形成さ
れた仮想平面上のいずれに対象点が位置するかを判定す
る画像位置判定装置において、 上記凹凸領域を含む矩形領域を算出する矩形領域算出手
段と、 以下の処理を実行する判定手段とを備えた画像位置判定
装置。 1.対象点が矩形領域に含まれていないと判定した場合に
は、対象点が凹凸領域以外の仮想平面上に位置している
と判定する。 2.対象点が矩形領域に含まれていると判定した場合に
は、対象点が凹凸領域のいずれの多角形上に位置してい
るか否かを判定する。 3.上記2.の場合において、対象点が凹凸領域のいずれか
の多角形に位置していないと判定された場合には、対象
点が凹凸領域以外の仮想平面上に位置していると判定す
る。
2. An image position determining apparatus for determining which of a virtual plane on which a concavo-convex region composed of a plurality of polygons is formed is a rectangular region for calculating a rectangular region including the concavo-convex region. An image position determination device that includes a calculation unit and a determination unit that executes the following processing. 1. When it is determined that the target point is not included in the rectangular area, it is determined that the target point is located on the virtual plane other than the uneven area. 2. When it is determined that the target point is included in the rectangular area, it is determined which polygon of the uneven area the target point is located on. 3. In the case of 2. above, if it is determined that the target point is not located on any polygon of the uneven area, it is determined that the target point is located on a virtual plane other than the uneven area. To do.
【請求項3】 上記矩形領域算出手段は、上記凹凸領域
に外接する矩形に囲まれた矩形領域を算出する請求項1
または請求項2のいずれかに記載の画像位置判定装置。
3. The rectangular area calculating means calculates a rectangular area surrounded by a rectangle circumscribing the uneven area.
Alternatively, the image position determination device according to claim 2.
【請求項4】 上記判定手段は、上記対象点と上記多角
形の頂点とを結ぶベクトルの積和に基づき、対象点が多
角形上に位置しているか否かを判定する請求項1または
請求項2のいずれかに記載の画像位置判定装置。
4. The method according to claim 1, wherein the determining means determines whether or not the target point is located on the polygon based on a sum of products of vectors connecting the target point and the vertices of the polygon. Item 3. The image position determination device according to item 2.
【請求項5】 上記矩形領域算出手段は、複数の矩形領
域を含む他の矩形領域を算出する請求項1または請求項
2のいずれかに記載の画像位置判定装置。
5. The image position determination device according to claim 1, wherein the rectangular area calculation means calculates another rectangular area including a plurality of rectangular areas.
【請求項6】 上記仮想平面のうち、上記対象点が位置
すると判定された箇所の傾きおよび位置を算出する平面
位置算出手段を備えた請求項1または請求項2のいずれ
かに記載の画像位置判定装置。
6. The image position according to claim 1, further comprising plane position calculating means for calculating the inclination and position of a portion of the virtual plane where the target point is determined to be located. Judgment device.
【請求項7】 上記平面位置算出手段の算出結果に基づ
き、上記対象点を上記仮想平面の表面に沿って移動させ
る請求項6記載の画像位置判定装置。
7. The image position determining device according to claim 6, wherein the target point is moved along the surface of the virtual plane based on the calculation result of the plane position calculating means.
【請求項8】 上記矩形領域算出手段は、上記仮想平面
を複数の矩形領域に細分化する請求項1または請求項2
のいずれかに記載の画像位置判定装置。
8. The rectangular area calculating means subdivides the virtual plane into a plurality of rectangular areas.
The image position determination device according to any one of 1.
【請求項9】 複数の多角形よりなる凹凸領域が形成さ
れた仮想平面上のいずれに対象点が位置するかを判定す
る画像位置判定方法において、 上記凹凸領域を含む矩形領域を算出し、 上記対象点が上記矩形領域に含まれていると判定したこ
とを条件に、対象点が上記凹凸領域のいずれの多角形上
に位置するかを判定する画像位置判定方法。
9. An image position determining method for determining which of a virtual plane on which an uneven area formed of a plurality of polygons is formed, a rectangular area including the uneven area is calculated. An image position determination method for determining, on the condition that the target point is included in the rectangular area, on which polygon of the uneven area the target point is located.
【請求項10】 複数の多角形よりなる凹凸領域が形成
された仮想平面上のいずれに対象点が位置するかを以下
の手順により判定する画像位置判定方法において、 上記凹凸領域を含む矩形領域を算出した後、以下の処理
を実行する画像位置判定方法。 1.対象点が矩形領域に含まれていないと判定した場合に
は、対象点が凹凸領域以外の仮想平面上に位置している
と判定する。 3.対象点が矩形領域に含まれていると判定した場合に
は、対象点が凹凸領域のいずれの多角形上に位置してい
るか否かを判定する。 4.上記2.の場合において、対象点が凹凸領域のいずれか
の多角形に位置していないと判定された場合には、対象
点が凹凸領域以外の仮想平面上に位置していると判定す
る。
10. An image position determining method for determining, on the virtual plane on which an uneven region formed of a plurality of polygons is formed, a target area is located by the following procedure, wherein a rectangular region including the uneven region is determined. An image position determination method that executes the following processing after calculation. 1. When it is determined that the target point is not included in the rectangular area, it is determined that the target point is located on the virtual plane other than the uneven area. 3. When it is determined that the target point is included in the rectangular area, it is determined which polygon of the uneven area the target point is located on. 4. In the case of 2. above, if it is determined that the target point is not located in any of the polygons of the uneven area, it is determined that the target point is located on a virtual plane other than the uneven area. To do.
JP07028523A 1995-02-16 1995-02-16 Image position determining apparatus and image position determining method Expired - Lifetime JP3134215B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP07028523A JP3134215B2 (en) 1995-02-16 1995-02-16 Image position determining apparatus and image position determining method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP07028523A JP3134215B2 (en) 1995-02-16 1995-02-16 Image position determining apparatus and image position determining method

Publications (2)

Publication Number Publication Date
JPH08221600A true JPH08221600A (en) 1996-08-30
JP3134215B2 JP3134215B2 (en) 2001-02-13

Family

ID=12251037

Family Applications (1)

Application Number Title Priority Date Filing Date
JP07028523A Expired - Lifetime JP3134215B2 (en) 1995-02-16 1995-02-16 Image position determining apparatus and image position determining method

Country Status (1)

Country Link
JP (1) JP3134215B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0869458A2 (en) * 1997-04-03 1998-10-07 Konami Co., Ltd. Image perspective control for video game images

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0869458A2 (en) * 1997-04-03 1998-10-07 Konami Co., Ltd. Image perspective control for video game images
EP0869458A3 (en) * 1997-04-03 1999-11-03 Konami Co., Ltd. Image perspective control for video game images
US6295064B1 (en) 1997-04-03 2001-09-25 Konami Co., Ltd. Image perspective control for video game images

Also Published As

Publication number Publication date
JP3134215B2 (en) 2001-02-13

Similar Documents

Publication Publication Date Title
US6078329A (en) Virtual object display apparatus and method employing viewpoint updating for realistic movement display in virtual reality
US7338373B2 (en) Method and apparatus for generating sounds in a video game
EP1033682B1 (en) Image processing apparatus and image processing method
WO2006106765A1 (en) Display control program executed in game machine
JPH07146952A (en) Three-dimensional image processor
JP2002042165A (en) Image forming device, its method, and recording medium
JP2007102503A (en) Image generation device and method, program and recoding medium
JP3604312B2 (en) Computer-readable recording medium having recorded video game program, object drawing method in video game, and video game apparatus
JP2003022452A (en) Image processor and solid-shape display program
EP0948978B1 (en) Image creating apparatus, image creating method, and computer-readable recording medium containing image creating program
JP3134215B2 (en) Image position determining apparatus and image position determining method
JP3001538B1 (en) VIDEO GAME DEVICE, MODEL DISPLAY METHOD FOR VIDEO GAME, AND READABLE RECORDING MEDIUM ON WHICH MODEL DISPLAY PROGRAM FOR VIDEO GAME IS RECORDED
US8926427B2 (en) Video game with screen flip and dual sets of collision data
JP3402509B2 (en) Image display processing device
JP3571452B2 (en) Hierarchical transformation image processing method
JP4136341B2 (en) Image processing apparatus and program thereof
JP4150944B2 (en) Image processing apparatus and method thereof, game apparatus and method thereof, and recording medium on which image processing program or game program operating on computer is recorded
JP2009251887A (en) Image generation system, program, and information storage medium
JP3350672B2 (en) Contact part drawing method, contact part drawing apparatus and storage medium therefor
JP4100643B2 (en) Simulation apparatus and information storage medium
JP3934096B2 (en) Image processing apparatus, image processing method, and program
JP3715568B2 (en) Image drawing apparatus, recording medium, and program
JP3240890B2 (en) Apparatus for creating appearance display data of buildings
JP3397494B2 (en) Data processing apparatus, game machine using the processing apparatus, and data processing method
JP2003346175A (en) Image processing program

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20000215

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20001024

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

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

Free format text: PAYMENT UNTIL: 20071201

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20081201

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20091201

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20101201

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20111201

Year of fee payment: 11

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

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

Free format text: PAYMENT UNTIL: 20111201

Year of fee payment: 11

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20121201

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20131201

Year of fee payment: 13

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

Free format text: PAYMENT UNTIL: 20131201

Year of fee payment: 13

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

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

EXPY Cancellation because of completion of term