JP2009129167A - Program, information storage medium, and image generation system - Google Patents
Program, information storage medium, and image generation system Download PDFInfo
- Publication number
- JP2009129167A JP2009129167A JP2007303091A JP2007303091A JP2009129167A JP 2009129167 A JP2009129167 A JP 2009129167A JP 2007303091 A JP2007303091 A JP 2007303091A JP 2007303091 A JP2007303091 A JP 2007303091A JP 2009129167 A JP2009129167 A JP 2009129167A
- Authority
- JP
- Japan
- Prior art keywords
- shape information
- terrain
- template
- size
- setting
- 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.)
- Withdrawn
Links
Images
Landscapes
- Processing Or Creating Images (AREA)
Abstract
Description
本発明は、プログラム、情報記憶媒体、及び画像生成システムに関する。 The present invention relates to a program, an information storage medium, and an image generation system.
従来より、ロールプレイングゲームなどのように、オブジェクト空間に設定された地形オブジェクト(フィールドマップ)上をプレーヤキャラクタが移動する画像を生成しつつ、種々のイベントを発生させるゲームを実行する画像生成システム(ゲームシステム)が知られている。このような画像生成システムでは、地形オブジェクトの形状に応じてゲームの内容が変化するため、ゲームを実行するごとに地形オブジェクトの形状を生成するものが存在する。このような画像生成システムとしては、例えば特開2001−96059号公報に開示される従来技術がある。
しかし従来の画像生成システムでは、ランダムに地形オブジェクトの形状を生成していたため、ゲームを実行するごとに異なる地形オブジェクトを生成することができるものの、生成される地形オブジェクトのサイズや形状を制御することができないという問題があった。 However, in the conventional image generation system, since the shape of the terrain object is randomly generated, a different terrain object can be generated each time the game is executed, but the size and shape of the generated terrain object can be controlled. There was a problem that could not.
本発明は、以上のような課題に鑑みてなされたものであり、その目的は、種々の地形オブジェクトを生成しつつ、生成される地形オブジェクトのサイズや形状を制御することができるプログラム、情報記憶媒体及び画像生成システムを提供することにある。 The present invention has been made in view of the problems as described above, and an object of the present invention is to create a program and information storage capable of controlling the size and shape of a generated terrain object while generating various terrain objects. To provide a medium and an image generation system.
(1)本発明は、
オブジェクト空間に設定される地形の形状情報である地形形状情報を生成する画像生成システムであって、
サイズおよび形状の少なくとも一方が異なる複数の形状情報によって構成される複数のテンプレートを記憶する記憶部と、
前記地形形状情報の基準サイズを設定する基準サイズ設定部と、
所与の2次元空間上に前記テンプレートを前記地形形状情報として設定する地形形状設定処理を行って前記地形形状情報を生成する地形形状生成部とを含み、
前記地形形状生成部が、
前記地形形状設定処理として、
前記基準サイズよりも小さいサイズの複数のテンプレートを前記記憶部に記憶された複数のテンプレートから選択する選択処理と、
選択した複数のテンプレートのうち少なくとも1つのテンプレートを所与の2次元空間上で移動させ、少なくとも2つのテンプレートが重なったときの合成形状情報を生成し、生成した合成形状情報を評価する評価処理と、
前記評価の結果に基づいて、合成形状情報を前記地形形状情報として設定する設定処理とを行うことを特徴とする画像生成システムに関係する。また本発明は、上記各部としてコンピュータを機能させるプログラムに関係する。また本発明は、コンピュータ読み取り可能な情報記憶媒体であって、上記各部としてコンピュータを機能させるプログラムを記憶(記録)した情報記憶媒体に関係する。
(1) The present invention
An image generation system for generating terrain shape information, which is terrain shape information set in an object space,
A storage unit that stores a plurality of templates configured by a plurality of pieces of shape information having different sizes and / or shapes;
A reference size setting unit for setting a reference size of the terrain shape information;
A terrain shape generation unit for generating the terrain shape information by performing a terrain shape setting process for setting the template as the terrain shape information on a given two-dimensional space;
The terrain shape generation unit
As the terrain shape setting process,
A selection process for selecting a plurality of templates having a size smaller than the reference size from a plurality of templates stored in the storage unit;
Evaluation processing for moving at least one template among a plurality of selected templates in a given two-dimensional space, generating composite shape information when at least two templates overlap, and evaluating the generated composite shape information; ,
The present invention relates to an image generation system that performs setting processing for setting composite shape information as the terrain shape information based on a result of the evaluation. The present invention also relates to a program that causes a computer to function as each of the above-described units. The present invention also relates to a computer-readable information storage medium that stores (records) a program that causes a computer to function as each unit.
本発明において、形状情報の「サイズ」とは、例えば、形状情報を構成する最小単位(形状情報を画像として構成した場合のピクセルなど)の数や、面積など、種々の情報量によって規定することができる。また形状情報の「形状」とは、例えば、形状情報を構成する座標値の集合や、形状情報を構成する座標値のうち外縁を構成する座標値の集合などによって規定することができる。 In the present invention, the “size” of the shape information is defined by various amounts of information such as the number of minimum units (such as pixels when the shape information is configured as an image), the area, and the like. Can do. The “shape” of the shape information can be defined by, for example, a set of coordinate values constituting the shape information or a set of coordinate values constituting the outer edge among the coordinate values constituting the shape information.
本発明によれば、いかなるテンプレートを選択するか、選択したテンプレートをいかなる態様で移動させ、いかなる合成形状情報を生成するかに応じて、地形形状情報を種々の形状で生成することができる。そして本発明によれば、種々の形状の地形形状情報を、基準サイズに応じたサイズのものとして生成することができる。 According to the present invention, terrain shape information can be generated in various shapes depending on what template is selected, how the selected template is moved, and what composite shape information is generated. According to the present invention, the terrain shape information of various shapes can be generated as the size corresponding to the reference size.
(2)また本発明に係る画像生成システム、プログラム及び情報記憶媒体では、
前記地形形状生成部が、
前記地形形状設定処理として、
前記基準サイズよりも小さいサイズの第1のテンプレートを前記記憶部に記憶された複数のテンプレートから選択する第1の選択処理と、
前記所与の2次元空間上の所与の位置に前記第1のテンプレートを前記地形形状情報として設定する配置設定処理と、
前記所与の2次元空間上に設定された前記地形形状情報のサイズと前記基準サイズとの差よりも小さいサイズの第2のテンプレートを前記記憶部に記憶された複数のテンプレートから選択する第2の選択処理と、
前記所与の2次元空間上で前記第2のテンプレートを前記地形形状情報が設定された位置に向けて複数の方向から移動させ、前記第2のテンプレートと前記地形形状情報とが重なったときの合成形状情報を各方向について生成し、各方向についての前記合成形状情報を評価する評価処理と、
前記評価の結果に基づいて、1の方向についての前記合成形状情報を前記地形形状情報として更新する更新設定処理と、
更新後の前記地形形状情報のサイズが前記基準サイズに対して所与の条件を満たしたか否かを判定する判定処理とを行い、
前記所与の条件が満たされるまで、前記第2の選択処理と、前記評価処理と、前記更新設定処理と、前記判定処理とを繰り返すようにしてもよい。
(2) In the image generation system, program, and information storage medium according to the present invention,
The terrain shape generation unit
As the terrain shape setting process,
A first selection process for selecting a first template having a size smaller than the reference size from a plurality of templates stored in the storage unit;
An arrangement setting process for setting the first template as the terrain shape information at a given position in the given two-dimensional space;
A second template that selects a second template having a size smaller than the difference between the size of the terrain shape information set in the given two-dimensional space and the reference size from a plurality of templates stored in the storage unit; Selection process,
When the second template is moved from a plurality of directions toward the position where the terrain shape information is set on the given two-dimensional space, and the second template and the terrain shape information overlap each other An evaluation process for generating combined shape information for each direction and evaluating the combined shape information for each direction;
An update setting process for updating the composite shape information for one direction as the topographic shape information based on the result of the evaluation;
A determination process for determining whether the size of the updated terrain shape information satisfies a given condition with respect to the reference size;
The second selection process, the evaluation process, the update setting process, and the determination process may be repeated until the given condition is satisfied.
本発明によれば、第1のテンプレートとしていかなるテンプレートを選択するか、選択した第1のテンプレートをいかなる位置に設定するか、第2のテンプレートとしていかなるテンプレートを選択するかに応じて、地形形状情報を種々の形状で生成することができる。そして本発明によれば、種々の形状の地形形状情報を、基準サイズに応じたサイズのものとして生成することができる。 According to the present invention, the topographic shape information depends on what template is selected as the first template, what position the selected first template is set to, and what template is selected as the second template. Can be generated in various shapes. According to the present invention, the terrain shape information of various shapes can be generated as the size corresponding to the reference size.
(3)また本発明に係る画像生成システム、プログラム及び情報記憶媒体では、
前記地形形状生成部が、
前記評価処理において、
各方向についての前記合成形状情報を、前記第2のテンプレートと前記地形形状情報との重複部分のサイズに応じて評価するようにしてもよい。
(3) In the image generation system, the program, and the information storage medium according to the present invention,
The terrain shape generation unit
In the evaluation process,
You may make it evaluate the said synthetic | combination shape information about each direction according to the size of the overlapping part of the said 2nd template and the said topographic shape information.
本発明によれば、重複部分のサイズに応じて合成形状情報を評価することにより、生成される地形形状情報における各テンプレートの重なり度合いを制御することができる。 According to the present invention, it is possible to control the overlapping degree of each template in the generated terrain shape information by evaluating the composite shape information according to the size of the overlapping portion.
(4)また本発明は、
オブジェクト空間に設定される地形の形状情報である地形形状情報を生成する画像生成システムであって、
サイズおよび形状の少なくとも一方が異なる複数の形状情報によって構成される複数のテンプレートを記憶する記憶部と、
前記地形を構成する領域の数を設定する領域数設定部と、
前記領域ごとに各領域の前記地形形状情報の基準サイズを設定する基準サイズ設定部と、
所与の2次元空間上に前記テンプレートを前記地形形状情報として設定する地形形状設定処理を前記領域ごとに行って前記地形形状情報を生成する地形形状生成部とを含み、
前記地形形状生成部が、
前記地形形状設定処理として、
1の領域について前記基準サイズよりも小さいサイズの第1のテンプレートを前記記憶部に記憶された複数のテンプレートから選択する第1の選択処理と、
前記所与の2次元空間上の所与の位置に前記第1のテンプレートを前記1の領域の地形形状情報として設定する配置設定処理と、
前記所与の2次元空間上に設定された前記1の領域の地形形状情報のサイズと当該1の領域の基準サイズとの差よりも小さいサイズの第2のテンプレートを前記記憶部に記憶された複数のテンプレートから選択する第2の選択処理と、
前記所与の2次元空間上で前記第2のテンプレートを前記1の領域の地形形状情報が設定された位置に向けて複数の方向から移動させ、前記第2のテンプレートと前記1の領域の地形形状情報とが重なったときの合成形状情報を各方向について生成し、各方向についての前記合成形状情報を評価する評価処理と、
前記評価の結果に基づいて、1の方向についての前記合成形状情報を前記1の領域の地形形状情報として更新する更新設定処理と、
更新後の前記1の領域の地形形状情報のサイズが当該1の領域の基準サイズに対して所与の条件を満たしたか否かを判定する判定処理とを行い、
前記1の領域について前記所与の条件が満たされるまで、前記第2の選択処理と、前記評価処理と、前記更新設定処理と、前記判定処理とを繰り返し、
前記地形形状生成部が、
前記1の領域について前記所与の条件が満たされると、次の1の領域について前記地形形状設定処理を行い、全ての領域について前記地形形状設定処理を行うまで、前記地形形状設定処理を繰り返すことを特徴とする画像生成システムに関係する。また本発明は、上記各部としてコンピュータを機能させるプログラムに関係する。また本発明は、コンピュータ読み取り可能な情報記憶媒体であって、上記各部としてコンピュータを機能させるプログラムを記憶(記録)した情報記憶媒体に関係する。
(4) The present invention also provides:
An image generation system for generating terrain shape information, which is terrain shape information set in an object space,
A storage unit that stores a plurality of templates configured by a plurality of pieces of shape information having different sizes and / or shapes;
An area number setting unit for setting the number of areas constituting the terrain;
A reference size setting unit for setting a reference size of the terrain shape information of each region for each region;
A terrain shape generation unit that generates the terrain shape information by performing, for each region, a terrain shape setting process for setting the template as the terrain shape information on a given two-dimensional space;
The terrain shape generation unit
As the terrain shape setting process,
A first selection process for selecting a first template having a size smaller than the reference size for one region from a plurality of templates stored in the storage unit;
An arrangement setting process for setting the first template as terrain shape information of the first region at a given position in the given two-dimensional space;
A second template having a size smaller than the difference between the size of the terrain shape information of the first region set on the given two-dimensional space and the reference size of the first region is stored in the storage unit A second selection process for selecting from a plurality of templates;
In the given two-dimensional space, the second template is moved from a plurality of directions toward a position where the terrain shape information of the first area is set, and the terrain of the second template and the first area. Generating the combined shape information when the shape information overlaps for each direction, and an evaluation process for evaluating the combined shape information for each direction;
An update setting process for updating the composite shape information for one direction as the topographic shape information of the one region based on the result of the evaluation;
A determination process for determining whether or not the size of the topographic shape information of the one region after the update satisfies a given condition with respect to the reference size of the one region;
Until the given condition is satisfied for the one region, the second selection process, the evaluation process, the update setting process, and the determination process are repeated.
The terrain shape generation unit
When the given condition is satisfied for the one area, the terrain shape setting process is performed for the next one area, and the terrain shape setting process is repeated until the terrain shape setting process is performed for all the areas. Is related to an image generation system characterized by The present invention also relates to a program that causes a computer to function as each of the above-described units. The present invention also relates to a computer-readable information storage medium that stores (records) a program that causes a computer to function as each unit.
本発明において、「領域」とは、例えば都市領域、村領域、森林領域、砂漠領域など、地形形状情報に設定される属性が共通する範囲とすることができる。 In the present invention, the “region” may be a range in which attributes set in the terrain shape information are common, such as a city region, a village region, a forest region, and a desert region.
本発明によれば、領域ごとに種々の形状の地形形状情報を、領域ごとの基準サイズに応じたサイズのものとして生成することができる。 According to the present invention, it is possible to generate terrain shape information of various shapes for each region as a size corresponding to the reference size for each region.
(5)また本発明に係る画像生成システム、プログラム及び情報記憶媒体では、
前記地形形状生成部が、
前記1の領域についての前記地形形状設定処理では、
前記評価処理において、
各方向についての前記合成形状情報を、前記第2のテンプレートと前記1の領域の地形形状情報との重複部分のサイズに応じて評価し、
前記次の1の領域についての前記地形形状設定処理では、
前記評価処理において、
前記所与の2次元空間上で前記第2のテンプレートを前記次の1の領域の地形形状情報が設定された位置に向けて複数の方向から移動させ、前記第2のテンプレートと前記次の1の領域の地形形状情報とが重なったときの合成形状情報を各方向について生成し、各方向についての前記合成形状情報を、前記第2のテンプレートと前記各領域の地形形状情報との重複部分のサイズに応じて評価するようにしてもよい。
(5) In the image generation system, the program, and the information storage medium according to the present invention,
The terrain shape generation unit
In the topographic shape setting process for the one area,
In the evaluation process,
The composite shape information for each direction is evaluated according to the size of the overlapping portion between the second template and the topographic shape information of the first region,
In the terrain shape setting process for the next one region,
In the evaluation process,
In the given two-dimensional space, the second template is moved from a plurality of directions toward a position where the topographic shape information of the next one region is set, and the second template and the next one are moved. The composite shape information when the topographic shape information of the region overlaps is generated for each direction, and the composite shape information for each direction is obtained by overlapping the second template and the topographic shape information of each region. You may make it evaluate according to size.
本発明によれば、第2のテンプレートと各領域の地形形状情報との重複部分のサイズに応じて合成形状情報を評価することにより、1の領域の地形形状情報における各テンプレートの重なり度合いのみならず、既に設定されている他の領域の地形形状情報との重なり度合いをも制御することができる。 According to the present invention, by evaluating the combined shape information according to the size of the overlapping portion between the second template and the terrain shape information of each region, only the degree of overlap of each template in the terrain shape information of one region can be obtained. It is also possible to control the degree of overlap with the terrain shape information of other areas that have already been set.
(6)また本発明に係る画像生成システム、プログラム及び情報記憶媒体では、
前記評価処理における前記重複部分のサイズに応じた評価の基準となる第1の評価基準を設定する第1の評価基準設定部を更に含むようにしてもよい。
(6) In the image generation system, the program, and the information storage medium according to the present invention,
You may make it further contain the 1st evaluation criteria setting part which sets the 1st evaluation criteria used as the reference | standard of evaluation according to the size of the said overlap part in the said evaluation process.
本発明によれば、第1の評価基準を種々の態様に制御することにより、地形形状情報として設定される合成形状情報の形状や、基準サイズの地形形状情報を得るために必要なテンプレートの数や、所与の2次元空間上でテンプレート間に発生する隙間空間の量などを制御することができる。そして本発明によれば、テンプレートの種類が少なくても、第1の評価基準を変化させることにより、地形形状情報を種々の形状で生成することができる。 According to the present invention, the number of templates necessary for obtaining the shape of the composite shape information set as the terrain shape information and the terrain shape information of the reference size by controlling the first evaluation criterion in various aspects. In addition, the amount of gap space generated between templates on a given two-dimensional space can be controlled. And according to this invention, even if there are few types of templates, topographic shape information can be produced | generated by various shapes by changing the 1st evaluation criteria.
(7)また本発明に係る画像生成システム、プログラム及び情報記憶媒体では、
前記地形形状生成部が、
前記第2の選択処理において、
複数の前記第2のテンプレートを前記記憶部に記憶された複数のテンプレートから選択し、
前記評価処理において、
前記所与の2次元空間上で複数の前記第2のテンプレートをそれぞれ前記地形形状情報が設定された位置に向けて複数の方向から移動させ、複数の前記第2のテンプレートに関して前記第2のテンプレートと前記地形形状情報とが重なったときの合成形状情報を各方向について生成し、複数の前記第2のテンプレートに関して各方向についての前記合成形状情報を評価し、
前記更新設定処理において、
前記評価の結果に基づいて、複数の前記第2のテンプレートに関する前記合成形状情報から複数の前記合成形状情報を選択し、複数の前記合成形状情報から1の前記第2のテンプレートに関する1の方向についての前記合成形状情報を更に選択し、前記地形形状情報として更新するようにしてもよい。
(7) In the image generation system, the program, and the information storage medium according to the present invention,
The terrain shape generation unit
In the second selection process,
Selecting a plurality of second templates from a plurality of templates stored in the storage unit;
In the evaluation process,
A plurality of the second templates are respectively moved from a plurality of directions toward the position where the topographic shape information is set on the given two-dimensional space, and the second templates are related to the plurality of the second templates. And composite shape information when the topographic shape information overlaps for each direction, evaluate the composite shape information for each direction with respect to a plurality of the second template,
In the update setting process,
Based on the result of the evaluation, a plurality of the combined shape information is selected from the combined shape information regarding the plurality of second templates, and one direction regarding one second template is selected from the plurality of combined shape information. The combined shape information may be further selected and updated as the topographic shape information.
本発明によれば、複数の第2のテンプレートに関してそれぞれ評価の結果に基づいて合成形状情報を選択し、各第2のテンプレートに関する合成形状情報から更に1つの合成形状情報を選択することにより、いずれの合成形状情報を地形形状情報として設定するかに応じて、地形形状情報を種々の形状で生成することができる。 According to the present invention, the composite shape information is selected based on the result of the evaluation for each of the plurality of second templates, and further one composite shape information is selected from the composite shape information regarding each second template, so that Depending on whether the combined shape information is set as the terrain shape information, the terrain shape information can be generated in various shapes.
(8)また本発明に係る画像生成システム、プログラム及び情報記憶媒体では、
前記所与の2次元空間上において前記地形形状情報を設定する範囲を規定するマスク情報を設定するマスク設定部を更に含み、
前記基準サイズ設定部が、
前記基準サイズとして前記マスク情報のサイズを設定し、
前記地形形状生成部が、
前記配置設定処理において、
前記マスク情報で規定される範囲内の所与の位置に前記第1のテンプレートを前記地形形状情報として設定し、
前記評価処理において、
各方向についての前記合成形状情報を、前記第2のテンプレートと前記マスク情報との非重複部分のサイズに応じて評価するようにしてもよい。
(8) In the image generation system, the program, and the information storage medium according to the present invention,
A mask setting unit for setting mask information defining a range for setting the terrain shape information on the given two-dimensional space;
The reference size setting unit is
Set the size of the mask information as the reference size,
The terrain shape generation unit
In the arrangement setting process,
The first template is set as the terrain shape information at a given position within the range defined by the mask information,
In the evaluation process,
You may make it evaluate the said synthetic | combination shape information about each direction according to the size of the non-overlapping part of the said 2nd template and the said mask information.
本発明によれば、種々の形状の地形形状情報を、マスク情報に応じた形状のものとして生成することができる。 According to the present invention, it is possible to generate topographic shape information of various shapes as shapes according to mask information.
(9)また本発明に係る画像生成システム、プログラム及び情報記憶媒体では、
前記評価処理における前記非重複部分のサイズに応じた評価の基準となる第2の評価基準サイズを設定する第2の評価基準設定部を更に含むようにしてもよい。
(9) In the image generation system, the program, and the information storage medium according to the present invention,
You may make it further contain the 2nd evaluation reference | standard setting part which sets the 2nd evaluation reference | standard size used as the reference | standard of evaluation according to the size of the said non-overlapping part in the said evaluation process.
本発明によれば、第2の評価基準を種々の態様に制御することにより、地形形状情報として設定される合成形状情報の形状や、基準サイズの地形形状情報を得るために必要なテンプレートの数や、所与の2次元空間上でテンプレート間に発生する隙間空間の量を制御することができる。そして本発明によれば、テンプレートの種類が少なくても、第2の評価基準を変化させることにより、地形形状情報を種々の形状で生成することができる。 According to the present invention, the number of templates necessary for obtaining the shape of the composite shape information set as the terrain shape information and the terrain shape information of the reference size by controlling the second evaluation criterion in various modes. In addition, the amount of gap space generated between templates on a given two-dimensional space can be controlled. And according to this invention, even if there are few types of templates, the topographic shape information can be generated in various shapes by changing the second evaluation criterion.
(10)また本発明に係る画像生成システム、プログラム及び情報記憶媒体では、
前記地形形状生成部が、
前記所与の2次元空間上において前記地形形状情報が設定されていない空間のうち、周囲が前記地形形状情報で囲まれ、かつ所定のサイズよりも小さいサイズの空間である隙間空間を判別する隙間空間判別処理と、
前記隙間空間を前記地形形状情報として設定する補正設定処理と、
を更に行うようにしてもよい。
(10) In the image generation system, the program, and the information storage medium according to the present invention,
The terrain shape generation unit
A gap for identifying a gap space that is surrounded by the terrain shape information and is smaller than a predetermined size among the spaces in which the terrain shape information is not set on the given two-dimensional space. Spatial discrimination processing;
Correction setting processing for setting the gap space as the terrain shape information;
May be further performed.
本発明によれば、隙間空間を地形形状情報として設定することにより、テンプレートを組合せることにより発生する不自然な隙間を埋めることができる。 According to the present invention, by setting the gap space as terrain shape information, an unnatural gap generated by combining templates can be filled.
(11)また本発明に係る画像生成システム、プログラム及び情報記憶媒体では、
生成された前記地形形状情報に高さ情報を設定し、地形オブジェクトを生成する地形オブジェクト生成部と、
前記地形オブジェクトに配置するオブジェクトの位置を決定する位置決定部と、
オブジェクト空間に前記地形オブジェクトを含むオブジェクトを設定するオブジェクト空間設定部と、
前記オブジェクト空間を仮想カメラから見た画像を描画する描画部とを更に含むようにしてもよい。
(11) In the image generation system, the program, and the information storage medium according to the present invention,
Height information is set in the generated terrain shape information, and a terrain object generation unit for generating a terrain object;
A position determining unit that determines the position of an object to be placed on the terrain object;
An object space setting unit for setting an object including the terrain object in the object space;
A drawing unit for drawing an image of the object space viewed from a virtual camera may be further included.
本発明によれば、生成された前記地形形状情報に基づいて地形オブジェクトを生成し、かかる地形オブジェクトが設定されたオブジェクト空間を仮想カメラから見た画像を描画することができる。 According to the present invention, it is possible to generate a terrain object based on the generated terrain shape information and draw an image of the object space in which the terrain object is set viewed from a virtual camera.
以下、本実施形態について説明する。なお、以下に説明する本実施形態は、特許請求の範囲に記載された本発明の内容を不当に限定するものではない。また本実施形態で説明される構成の全てが、本発明の必須構成要件であるとは限らない。 Hereinafter, this embodiment will be described. In addition, this embodiment demonstrated below does not unduly limit the content of this invention described in the claim. In addition, all the configurations described in the present embodiment are not necessarily essential configuration requirements of the present invention.
1.システム全体の概略
図1は、本実施形態の画像生成システムを適用したゲームシステムの一例を示す外観図である。本実施形態のゲームシステムGSは、プレーヤが操作情報を入力する操作部CTと、操作部CTからの操作情報に基づいてゲーム画像を生成する本体装置PSと、本体装置PSで生成したゲーム画像を表示させるモニタMNとを含む。
1. FIG. 1 is an external view showing an example of a game system to which the image generation system of this embodiment is applied. The game system GS of the present embodiment includes an operation unit CT for a player to input operation information, a main unit PS that generates a game image based on the operation information from the operation unit CT, and a game image generated by the main unit PS. And a monitor MN to be displayed.
操作部CTは、図1に示すようにプレーヤが左手で握る左グリップGLと、右手で握る右グリップGRとが設けられている。そして図中正面左部に、左グリップGLを左手で握ったプレーヤが左手の親指で操作することができる方向キーDKと、左アナログスティックASLとが設けられている。この方向キーDKは、方向キーDKを押下した位置に応じて異なる信号を入力することができるように構成され、左アナログスティックASLは、左アナログスティックASLを傾倒させた角度と方向に応じて異なる信号を入力することができるように構成されている。また図中正面右部に、右グリップGRを右手で握ったプレーヤが右手の親指で操作することができる右アナログスティックASLと、4つのボタンBTとが設けられている。この右アナログスティックASLは左アナログスティックASLと同様の構成とされ、4つのボタンBTは、押下したボタンに応じて異なる信号を入力することができるように構成されている。 As shown in FIG. 1, the operation unit CT is provided with a left grip GL that the player holds with the left hand and a right grip GR that the player holds with the right hand. A directional key DK and a left analog stick ASL that can be operated with the thumb of the left hand by a player who holds the left grip GL with the left hand are provided on the left side of the figure. The direction key DK is configured to be able to input a different signal depending on the position where the direction key DK is pressed, and the left analog stick ASL differs depending on the angle and direction in which the left analog stick ASL is tilted. A signal can be input. In addition, a right analog stick ASL that can be operated with the thumb of the right hand, and four buttons BT, are provided at the front right part of the drawing. The right analog stick ASL has the same configuration as the left analog stick ASL, and the four buttons BT are configured so that different signals can be input according to the pressed button.
また操作部CTは、図中上面左部に、プレーヤが左手の人差し指で操作することができるL1ボタンL1と、中指で操作することができるL2ボタンL2とが設けられており、図中上面右部に、プレーヤが右手の人差し指で操作することができるR1ボタンR1と、中指で操作することができるR2ボタンR2とが設けられている。これらL1ボタンL1〜R2ボタンR2は、押下したボタンに応じて異なる信号を入力することができるように構成されている。 The operation unit CT is provided with an L1 button L1 that can be operated by the player with the index finger of the left hand and an L2 button L2 that can be operated with the middle finger on the upper left side in the drawing. An R1 button R1 that can be operated with the index finger of the right hand and an R2 button R2 that can be operated with the middle finger are provided in the section. These L1 buttons L1 to R2 buttons R2 are configured such that different signals can be input depending on the pressed button.
本体装置PSは、操作部CTからの操作情報やプログラムに基づいてゲーム画像を生成するなど種々のゲーム演算を実行する。特に本実施形態の本体装置PSは、操作部CTからの操作情報に応じてプレーヤキャラクタPCなどがオブジェクト空間に設定された地形オブジェクトMP上をリアルタイムに移動・動作する3次元画像をゲーム画像として生成し、モニタMNに表示させる。 The main body device PS executes various game operations such as generating game images based on operation information and programs from the operation unit CT. In particular, the main body device PS of the present embodiment generates, as a game image, a three-dimensional image in which the player character PC or the like moves and operates in real time on the terrain object MP set in the object space in accordance with operation information from the operation unit CT. And displayed on the monitor MN.
2.ゲームシステムの機能ブロック
図2に本実施形態のゲームシステム(画像生成システム)の機能ブロック図の例を示す。なお本実施形態のゲームシステムは図2の構成要素(各部)の一部を省略した構成としてもよい。
2. Functional Block of Game System FIG. 2 shows an example of a functional block diagram of the game system (image generation system) of the present embodiment. Note that the game system of this embodiment may have a configuration in which some of the components (each unit) in FIG. 2 are omitted.
操作部160は、プレーヤがプレーヤキャラクタ(移動体、プレーヤオブジェクト、ゲームキャラクタを含む)の操作情報を入力するためのものであり、その機能は、アナログスティック、ボタン、ステアリング、マイク、タッチパネル型ディスプレイ、カメラ、加速度センサ、角速度センサ或いは筺体などにより実現できる。
The
記憶部170は、処理部100や通信部196などのワーク領域となるもので、その機能はRAMやVRAMなどにより実現できる。特に、本実施形態の記憶部170は、主記憶部172、テンプレート記憶部173、地形形状バッファ174(所与の2次元空間の一例)、マスク記憶部175、地形オブジェクトバッファ176、描画バッファ177を有している。
The
主記憶部172は、本実施形態の各種処理を行う際のワーク領域となる。
The
テンプレート記憶部173は、3次元のオブジェクト空間に設定される地形オブジェクトの2次元形状情報である地形形状情報を生成するためのテンプレートを格納する。本実施形態ではテンプレート記憶部173は、サイズおよび形状の少なくとも一方が異なる複数の2次元形状情報によって構成される複数のテンプレートを格納する。
The
地形形状バッファ174は、2次元の形状情報を格納する2次元空間として構成されており、本実施形態に特徴的な処理に応じて複数のテンプレートが配置設定されることにより、種々の形状、サイズの地形形状情報が設定される。
The
マスク記憶部175は、地形形状バッファ174において地形形状情報を配置設定する範囲を規定するマスク情報を格納する。本実施形態ではマスク記憶部175は、サイズおよび形状の少なくとも一方が異なる複数の2次元形状情報によって構成される複数のマスク情報を格納する。
The
地形オブジェクトバッファ176は、3次元の形状情報を格納する3次元空間として構成されており、地形形状バッファ174に設定された2次元の地形形状情報に基づいて、3次元の地形オブジェクトが設定される。
The
描画バッファ177は、透視変換されたオブジェクト空間の画像を構成するピクセルの最終的な描画色が設定される。
In the
情報記憶媒体180(コンピュータにより読み取り可能な媒体)は、プログラムやデータなどを入力するものであり、その機能は、光ディスク(CD、DVD)、光磁気ディスク(MO)、磁気ディスク、ハードディスク、磁気テープ、或いはメモリ(ROM)、メモリカードなどにより実現できる。処理部100は、情報記憶媒体180に入力されるプログラム(データ)に基づいて本実施形態の種々の処理を行う。即ち情報記憶媒体180には、本実施形態の各部としてコンピュータを機能させるためのプログラム(各部の処理をコンピュータに実行させるためのプログラム)や種々のデータが記憶される。
The information storage medium 180 (computer-readable medium) is used for inputting programs, data, and the like, and functions as an optical disk (CD, DVD), magneto-optical disk (MO), magnetic disk, hard disk, and magnetic tape. Alternatively, it can be realized by a memory (ROM), a memory card, or the like. The
表示部190は、本実施形態により生成された画像を出力するものであり、その機能は、CRT、LCD、タッチパネル型ディスプレイ、或いはHMD(ヘッドマウントディスプレイ)などにより実現できる。
The
音出力部192は、本実施形態により生成された音を出力するものであり、その機能は、スピーカ、或いはヘッドフォンなどにより実現できる。
The
通信部196は外部(例えば、サーバや他のゲームシステム)との間で通信を行うための各種制御を行うものであり、その機能は、各種プロセッサ又は通信用ASICなどのハードウェアや、プログラムなどにより実現できる。
The
なお、本実施形態の各部としてコンピュータを機能させるためのプログラム(データ)を、ネットワークを介してサーバからダウンロードし、情報記憶媒体180に記憶するようにしてもよい。このようなサーバに入力されているプログラムの出力も本発明の範囲内に含めることができる。
Note that a program (data) for causing a computer to function as each unit of the present embodiment may be downloaded from a server via a network and stored in the
処理部100(プロセッサ)は、操作部160からの操作情報(操作データ)やプログラムなどに基づいて、ゲーム処理、画像生成処理、地形オブジェクト生成処理などの処理を行う。この処理部100は記憶部170内の主記憶部172をワーク領域として各種処理を行う。処理部100の機能は各種プロセッサ(CPU、DSP等)、ASIC(ゲートアレイ等)などのハードウェアや、プログラムにより実現できる。
The processing unit 100 (processor) performs processing such as game processing, image generation processing, and terrain object generation processing based on operation information (operation data) from the
そして処理部100は、ゲーム処理部102、マスク設定部104、領域数設定部106、基準サイズ設定部108、地形形状生成部110、第1の評価基準設定部112、第2の評価基準設定部114、地形オブジェクト生成部116、位置決定部118、移動・動作処理部120、オブジェクト空間設定部122、仮想カメラ制御部124、3次元画像描画部126、音生成部128を含む。なおこれらの一部を省略する構成としてもよい。
The
ゲーム処理部102は、オブジェクト空間に設定される地形オブジェクトを生成する地形生成モードと、地形生成モードで生成された地形オブジェクトを用いてゲーム処理を実行するゲームモードのいずれかを設定する制御を行う。本実施形態ではゲーム処理部102は、地形生成モードが終了すると、ゲームモードを設定する。そしてゲーム処理部102は、ゲームモードを設定した状態において、ゲーム開始条件が満たされた場合にゲームを開始する処理、ゲームを進行させる処理、ゲームイベントを発生させる処理、ゲーム条件を判定する処理、ゲーム結果を演算する処理、或いはゲーム終了条件が満たされた場合にゲームを終了する処理など、種々のゲーム処理を行う。
The
マスク設定部104は、マスク記憶部175からマスク情報を読み出し、地形形状バッファ174に設定する。本実施形態ではマスク設定部104は、操作部160からの操作信号や所定のアルゴリズムに基づいて、あるいは乱数を用いてランダムに、複数のマスク情報から1つのマスク情報を選択して地形形状バッファ174に設定する。なお、マスク情報を設定しないようにし、地形形状バッファ174において地形形状情報を配置設定する範囲を規定しないようにしてもよい。
The
領域数設定部106は、最終的に生成される地形オブジェクトを構成する領域の数を設定する。本実施形態では、領域とは、例えば都市領域、村領域、森林領域、砂漠領域など、地形形状情報に設定される属性が共通する範囲とすることができる。本実施形態では領域数設定部106は、操作部160からの操作信号や所定のアルゴリズムに基づいて、あるいは乱数を用いてランダムに、1〜30の領域数を設定する。なお、設定した複数の領域に同一の属性を有する領域が2つ以上設定されるようにしてもよい。
The number-of-
基準サイズ設定部108は、操作部160からの操作信号や所定のアルゴリズムに基づいて、あるいは乱数を用いてランダムに、地形形状バッファ174において最終的に生成される地形形状情報の目標サイズとなる基準サイズを、地形形状バッファ174の容量範囲内で設定する処理を行う。なお、地形形状バッファ174の容量は、基準サイズに応じて変更可能にしてもよい。
The reference
また基準サイズ設定部108は、複数の領域数が設定されている場合には、領域ごとに各領域の地形形状情報の基準サイズを設定する。またマスク情報が設定されている場合には、基準サイズとしてマスク情報のサイズを設定する。
In addition, when a plurality of areas are set, the reference
地形形状生成部110は、テンプレート記憶部173からテンプレートを読み出し、地形形状バッファ174上にテンプレートを地形形状情報として設定する地形形状設定処理を繰返し行って、複数のテンプレートが種々の態様で合成された地形形状情報を生成する。特に複数の領域数が設定されている場合には、地形形状生成部110は、領域ごとに地形形状設定処理を行う。
The terrain
詳細には地形形状生成部110は、地形形状設定処理として、基準サイズよりも小さいサイズの第1のテンプレートをテンプレート記憶部173に記憶された複数のテンプレートから選択する第1の選択処理と、地形形状バッファ174上の所与の位置に第1のテンプレートを地形形状情報として設定する配置設定処理と、地形形状バッファ174上に設定された地形形状情報のサイズと基準サイズとの差よりも小さいサイズの第2のテンプレートをテンプレート記憶部173に記憶された複数のテンプレートから選択する第2の選択処理と、地形形状バッファ174上で第2のテンプレートを地形形状情報が設定された位置に向けて複数の方向から移動させ、第2のテンプレートと地形形状情報とが重なったときの合成形状情報を各方向について生成し、各方向についての合成形状情報を評価する評価処理と、評価の結果に基づいて、1の方向についての合成形状情報を地形形状情報として更新する更新設定処理と、更新後の地形形状情報のサイズが基準サイズに対して所与の条件を満たしたか否かを判定する判定処理とを行う。そして所与の条件が満たされるまで、第2の選択処理と、評価処理と、更新設定処理と、判定処理とを繰り返し、地形形状情報を生成する。
Specifically, the terrain
また地形形状生成部110は、評価処理において、各方向についての合成形状情報を、第2のテンプレートと地形形状情報との重複部分のサイズに応じて評価するようにしてもよい。ここで「重複部分のサイズに応じて評価する」とは、重複部分のサイズに直接的に基づいて各方向についての合成形状情報を評価することのみならず、重複部分のサイズに応じて変化する合成形状情報のサイズや、合成前の地形形状情報と第2のテンプレートのサイズの和と合成後の合成形状情報との比など、重複部分のサイズに応じて変化する情報に基づいて各方向についての合成形状情報を評価することを含む。
Further, the topographic
また地形形状生成部110は、地形形状バッファ174にマスク情報が設定される場合には、配置設定処理において、マスク情報で規定される範囲内の所与の位置に第1のテンプレートを地形形状情報として設定し、評価処理において、各方向についての合成形状情報を、第2のテンプレートとマスク情報との非重複部分のサイズに応じて評価する。
Further, when the mask information is set in the
第1の評価基準設定部112は、操作部160からの操作信号や所定のアルゴリズムに基づいて、あるいは乱数を用いてランダムに、評価処理における重複部分のサイズに応じた評価の基準となる第1の評価基準を設定する。例えば評価処理において、重複部分のサイズに直接的に基づいて各方向についての合成形状情報を評価する場合には、第1の評価基準として、重複部分のサイズや、重複部分のサイズと第2のテンプレートあるいは合成形状情報との比(割合)のしきい値や有効範囲などを設定する。また、合成形状情報のサイズに基づいて各方向についての合成形状情報を評価する場合には、第1の評価基準として、合成形状情報のサイズのしきい値や有効範囲などを設定する。また、合成前の地形形状情報と第2のテンプレートのサイズの和と合成後の合成形状情報との比に基づいて各方向についての合成形状情報を評価する場合には、第1の評価基準として、当該比のしきい値や有効範囲などを設定する。
The first evaluation
第2の評価基準設定部114は、地形形状バッファ174にマスク情報が設定される場合に、操作部160からの操作信号や所定のアルゴリズムに基づいて、あるいは乱数を用いてランダムに、評価処理における非重複部分のサイズに応じた評価の基準となる第2の評価基準サイズを設定する。例えば評価処理において、非重複部分のサイズに直接的に基づいて各方向についての合成形状情報を評価する場合には、第2の評価基準として、非重複部分のサイズのしきい値や有効範囲などを設定する。また非重複部分のサイズと第2のテンプレートあるいは合成形状情報のサイズとの比、あるいはマスク情報のサイズとの比などに基づいて各方向についての合成形状情報を評価する場合には、第2の評価基準として、当該比のしきい値や有効範囲などを設定する。
When the mask information is set in the
また地形形状生成部110は、地形形状バッファ174上において地形形状情報が設定されていない空間のうち、周囲が地形形状情報で囲まれ、かつ所定のサイズよりも小さいサイズの空間である隙間空間を判別する隙間空間判別処理と、隙間空間を地形形状情報として設定する補正設定処理と、を更に行う。なおこれら隙間空間判別処理と補正設定処理とは、地形形状バッファ174上で地形形状情報を更新するごとに行うようにしてもよいし、地形形状設定処理が終了してから行うようにしてもよい。また、複数の領域数が設定され、領域ごとに地形形状設定処理を行う場合には、各領域の地形形状設定処理が終了するごとに行うようにしてもよいし、全ての領域について地形形状設定処理が終了してから行うようにしてもよい。
Further, the terrain
地形オブジェクト生成部116は、操作部160からの操作信号や所定のアルゴリズムに基づいて、あるいは乱数を用いてランダムに、2次元の地形形状情報に高さ情報を設定し、3次元の形状情報である地形オブジェクトを生成する。具体的には地形オブジェクト生成部116は、地形形状バッファ174上に生成された2次元の地形形状情報を、地形オブジェクトバッファ176に設定し、地形オブジェクトバッファ176上で地形形状情報に高さ情報を設定する。また、複数の領域数が設定され、領域ごとに地形形状情報が生成されている場合には、領域に応じたアルゴリズムで高さ情報を設定するようにしてもよい。
The terrain
位置決定部118は、操作部160からの操作信号や所定のアルゴリズムに基づいて、あるいは乱数を用いてランダムに、地形オブジェクトに配置するオブジェクトの位置を決定する。
The
移動・動作処理部120は、モデル(プレーヤキャラクタ、AIキャラクタ、車、電車又は飛行機等)の移動・動作演算(移動・動作シミュレーション)を行う。すなわち操作部160によりプレーヤが入力した操作データや、プログラム(移動・動作アルゴリズム)や、各種データ(モーションデータ)などに基づいて、モデルをオブジェクト空間内で移動させたり、オブジェクトを動作(モーション、アニメーション)させたりする処理を行う。具体的には、オブジェクトの移動情報(位置、回転角度、速度、或いは加速度)や動作情報(オブジェクトを構成する各パーツの位置、或いは回転角度)を、1フレーム(1/60秒)毎に順次求めるシミュレーション処理を行う。なおフレームは、オブジェクトの移動・動作処理(シミュレーション処理)や画像生成処理を行う時間の単位である。
The movement /
オブジェクト空間設定部122は、プレーヤキャラクタ、AIキャラクタ、移動体、建物、球場、車、樹木、柱、壁、マップ(地形)などの表示物を表す各種オブジェクト(ポリゴン、自由曲面又はサブディビジョンサーフェスなどのプリミティブで構成されるオブジェクト)をオブジェクト空間に配置設定する処理を行う。即ちワールド座標系でのオブジェクトの位置や回転角度(向き、方向と同義)を決定し、その位置(X、Y、Z)にその回転角度(X、Y、Z軸回りでの回転角度)でオブジェクトを配置する。
The object
仮想カメラ制御部124は、オブジェクト空間内の所与(任意)の仮想カメラ(視点)から見える画像を生成するための仮想カメラの制御処理を行う。具体的には、操作部160によりプレーヤが入力した操作データや、プログラム(移動アルゴリズム)や、各種データ(移動データ)などに基づいて、仮想カメラの位置(X、Y、Z)又は回転角度(X、Y、Z軸回りでの回転角度)を制御する処理(視点位置、視線方向を制御する処理)を行う。また、画角を制御するようにしてもよい。
The virtual
例えば仮想カメラによりオブジェクト(例えば、プレーヤキャラクタ、ボール、車)を後方から撮影する場合には、オブジェクトの位置又は回転の変化に仮想カメラが追従するように、仮想カメラの位置又は回転角度(仮想カメラの向き)を制御する。この場合には、移動・動作処理部120で得られたオブジェクトの位置、回転角度又は速度などの情報に基づいて、仮想カメラを制御できる。またオブジェクトの位置など関わらず、操作部160によりプレーヤが入力した操作データに基づいて、仮想カメラを制御してもよい。また仮想カメラを、予め決められた回転角度で回転させたり、予め決められた移動経路で移動させる制御を行ってもよい。この場合には、仮想カメラの位置(移動経路)又は回転角度を特定するための仮想カメラデータに基づいて仮想カメラを制御する。なお、仮想カメラ(視点)が複数存在する場合には、それぞれの仮想カメラについて上記の制御処理が行われる。
For example, when an object (for example, a player character, a ball, or a car) is photographed from behind using a virtual camera, the position or rotation angle of the virtual camera (virtual camera is set so that the virtual camera follows changes in the position or rotation of the object. The direction). In this case, the virtual camera can be controlled based on information such as the position, rotation angle, or speed of the object obtained by the movement /
3次元画像描画部126は、処理部100で行われる種々の処理(ゲーム処理)の結果に基づいて描画処理を行い、これにより画像を生成し、表示部190に出力する。いわゆる3次元ゲーム画像を生成する場合には、まずオブジェクト(モデル)の各頂点の頂点データ(頂点の位置座標、テクスチャ座標、色データ、法線ベクトル或いはα値等)を含むオブジェクトデータ(モデルデータ)が入力され、入力されたオブジェクトデータ(モデルデータ)に含まれる頂点データに基づいて、頂点処理(頂点シェーダによるシェーディング)が行われる。なお頂点処理を行うに際して、必要に応じてポリゴンを再分割するための頂点生成処理(テッセレーション、曲面分割、ポリゴン分割)を行うようにしてもよい。頂点処理では、頂点処理プログラム(頂点シェーダプログラム、第1のシェーダプログラム)に従って、頂点の移動処理や、座標変換(ワールド座標変換、カメラ座標変換)、クリッピング処理、あるいは透視変換等のジオメトリ処理が行われ、その処理結果に基づいて、オブジェクトを構成する頂点群について与えられた頂点データを変更(更新、調整)する。そして、頂点処理後の頂点データに基づいてラスタライズ(走査変換)が行われ、ポリゴン(プリミティブ)の面とピクセルとが対応づけられる。そしてラスタライズに続いて、画像を構成するピクセル(表示画面を構成するフラグメント)を描画するピクセル処理(ピクセルシェーダによるシェーディング、フラグメント処理)が行われる。ピクセル処理では、ピクセル処理プログラム(ピクセルシェーダプログラム、第2のシェーダプログラム)に従って、テクスチャの読出し(テクスチャマッピング)、色データの設定/変更、半透明合成、アンチエイリアス等の各種処理を行って、画像を構成するピクセルの最終的な描画色を決定し、透視変換されたオブジェクトの描画色を描画バッファ177(ピクセル単位で画像情報を記憶できるバッファ。VRAM、レンダリングターゲット)に出力(描画)する。すなわち、ピクセル処理では、画像情報(色、法線、輝度、α値等)をピクセル単位で設定あるいは変更するパーピクセル処理を行う。これにより、オブジェクト空間内において仮想カメラ(所与の視点)から見える画像が生成される。なお、仮想カメラ(視点)が複数存在する場合には、それぞれの仮想カメラから見える画像を分割画像として1画面に表示できるように画像を生成することができる。
The three-dimensional
なお頂点処理やピクセル処理は、シェーディング言語によって記述されたシェーダプログラムによって、ポリゴン(プリミティブ)の描画処理をプログラム可能にするハードウェア、いわゆるプログラマブルシェーダ(頂点シェーダやピクセルシェーダ)により実現される。プログラマブルシェーダでは、頂点単位の処理やピクセル単位の処理がプログラム可能になることで描画処理内容の自由度が高く、従来のハードウェアによる固定的な描画処理に比べて表現力を大幅に向上させることができる。 Note that the vertex processing and pixel processing are realized by hardware that enables polygon (primitive) drawing processing to be programmed by a shader program written in a shading language, so-called programmable shaders (vertex shaders and pixel shaders). Programmable shaders can be programmed with vertex-level processing and pixel-level processing, so that the degree of freedom of drawing processing is high, and expressive power is greatly improved compared to conventional hardware-based fixed drawing processing. Can do.
そして3次元画像描画部126は、オブジェクトを描画する際に、ジオメトリ処理、テクスチャマッピング、隠面消去処理、αブレンディング等を行う。
The three-dimensional
ジオメトリ処理では、オブジェクトに対して、座標変換、クリッピング処理、透視投影変換、或いは光源計算等の処理が行われる。そして、ジオメトリ処理後(透視投影変換後)のオブジェクトデータ(オブジェクトの頂点の位置座標、テクスチャ座標、色データ(輝度データ)、法線ベクトル、或いはα値等)は、記憶部170に保存される。
In the geometry processing, processing such as coordinate conversion, clipping processing, perspective projection conversion, or light source calculation is performed on the object. Then, the object data (positional coordinates of object vertices, texture coordinates, color data (luminance data), normal vector, α value, etc.) after geometry processing (after perspective projection conversion) is stored in the
テクスチャマッピングは、記憶部170に記憶されるテクスチャ(テクセル値)をオブジェクトにマッピングするための処理である。具体的には、オブジェクトの頂点に設定(付与)されるテクスチャ座標等を用いて記憶部170からテクスチャ(色(RGB)、α値などの表面プロパティ)を読み出す。そして、2次元の画像であるテクスチャをオブジェクトにマッピングする。この場合に、ピクセルとテクセルとを対応づける処理や、テクセルの補間としてバイリニア補間などを行う。
Texture mapping is a process for mapping a texture (texel value) stored in the
隠面消去処理としては、描画ピクセルのZ値(奥行き情報)が入力されるZバッファ(奥行きバッファ)を用いたZバッファ法(奥行き比較法、Zテスト)による隠面消去処理を行うことができる。すなわちオブジェクトのプリミティブに対応する描画ピクセルを描画する際に、Zバッファに入力されるZ値を参照する。そして参照されたZバッファのZ値と、プリミティブの描画ピクセルでのZ値とを比較し、描画ピクセルでのZ値が、仮想カメラから見て手前側となるZ値(例えば小さなZ値)である場合には、その描画ピクセルの描画処理を行うとともにZバッファのZ値を新たなZ値に更新する。 As the hidden surface removal processing, hidden surface removal processing can be performed by a Z buffer method (depth comparison method, Z test) using a Z buffer (depth buffer) to which a Z value (depth information) of a drawing pixel is input. . That is, when a drawing pixel corresponding to the primitive of the object is drawn, the Z value input to the Z buffer is referred to. Then, the Z value of the referenced Z buffer is compared with the Z value at the drawing pixel of the primitive, and the Z value at the drawing pixel is a Z value (for example, a small Z value) on the near side when viewed from the virtual camera. In some cases, the drawing process of the drawing pixel is performed and the Z value of the Z buffer is updated to a new Z value.
αブレンディング(α合成)は、α値(A値)に基づく半透明合成処理(通常αブレンディング、加算αブレンディング又は減算αブレンディング等)のことである。 α blending (α synthesis) is a translucent synthesis process (usually α blending, addition α blending, subtraction α blending, or the like) based on an α value (A value).
なお、α値は、各ピクセル(テクセル、ドット)に関連づけて記憶できる情報であり、例えば色情報以外のプラスアルファの情報である。α値は、マスク情報、半透明度(透明度、不透明度と等価)、バンプ情報などとして出力できる。 The α value is information that can be stored in association with each pixel (texel, dot), for example, plus alpha information other than color information. The α value can be output as mask information, translucency (equivalent to transparency and opacity), bump information, and the like.
音生成部128は、処理部100で行われる種々の処理の結果に基づいて音処理を行い、BGM、効果音、又は音声などのゲーム音を生成し、音出力部192に出力する。
The
3.本実施形態の手法
本実施形態のゲームシステムGSは、ゲームモードが実行される前に地形形状設定処理として、テンプレート記憶部173に記憶された複数のテンプレートから複数のテンプレートを選択する選択処理と、選択した複数のテンプレートのうち少なくとも1つのテンプレートを地形形状バッファ174上で移動させ、少なくとも2つのテンプレートが重なったときの合成形状情報を生成し、生成した合成形状情報を評価する評価処理と、評価の結果に基づいて、合成形状情報を地形形状情報として設定する設定処理とを行うことにより、種々の形状の地形形状情報を生成する。そして、生成した2次元の地形形状情報に基づいて3次元の地形オブジェクトを生成し、これを用いてゲームモードを実行することにより、ゲームを行うごとに地形オブジェクトの形状を異ならせる手法を採用する。以下、本実施形態の手法の一例について詳細に説明する。
3. Method of this embodiment The game system GS of this embodiment includes a selection process for selecting a plurality of templates from a plurality of templates stored in the
3−1.初期設定処理
本実施形態のゲームシステムGSは、ゲームモードが実行される前の地形生成モードにおいて、まず、地形形状設定処理における種々の条件設定を行う初期設定処理を行う。本実施形態では初期設定処理として、プレーヤがゲームをプレーする目安となる時間である予定ゲーム時間の選択をプレーヤから受け付け、選択された予定ゲーム時間に応じて、地形形状設定処理における種々の条件設定を行う。
3-1. Initial Setting Process In the terrain generation mode before the game mode is executed, the game system GS of the present embodiment first performs an initial setting process for setting various conditions in the terrain shape setting process. In this embodiment, as an initial setting process, selection of a scheduled game time, which is a time for the player to play a game, is accepted from the player, and various condition settings in the terrain shape setting process are performed according to the selected scheduled game time. I do.
図3は、プレーヤが選択可能な予定ゲーム時間と、各予定ゲーム時間が選択された場合に設定され得る複数の基準サイズと、複数の領域数との関係を規定したテーブルデータの例である。図3に示すように本実施形態では、プレーヤは予定ゲーム時間として、「10分」、「20分」、「30分」・・・というように、10分ごとにゲーム時間が異なる複数種類の予定ゲーム時間が用意されており、いずれか1つの予定ゲーム時間を、操作部CTを用いて選択することができる。 FIG. 3 is an example of table data that defines the relationship between a scheduled game time that can be selected by the player, a plurality of reference sizes that can be set when each scheduled game time is selected, and a plurality of areas. As shown in FIG. 3, in this embodiment, the player has a plurality of types of game times different every 10 minutes, such as “10 minutes”, “20 minutes”, “30 minutes”, etc. Scheduled game time is prepared, and any one scheduled game time can be selected using the operation unit CT.
そして予定ゲーム時間として「10分」が選択された場合には、図3に示すように、サイズが互いに異なる基準サイズA〜Cから1つの基準サイズを、乱数を用いて抽選により選択する。この基準サイズとは、最終的に生成される地形形状情報の目標サイズとなるものである。同様に、領域数1個〜3個から1つの領域数を、乱数を用いて抽選により選択する。この領域数とは、最終的に生成される地形形状情報の分割数となるものである。そして、予定ゲーム時間、基準サイズ、領域数として、それぞれ選択された値を設定する。 When “10 minutes” is selected as the scheduled game time, as shown in FIG. 3, one reference size from reference sizes A to C having different sizes is selected by random drawing using a random number. This reference size is a target size of the finally generated topographic shape information. Similarly, one area number is selected from one to three areas by lottery using random numbers. This number of regions is the number of divisions of the finally generated topographic shape information. Then, the selected values are set as the scheduled game time, the reference size, and the number of areas.
ここで、予定ゲーム時間として「40分」が選択された場合には、図3に示すように、基準サイズJ〜Lから1つの基準サイズを選択するが、本実施形態では、基準サイズJ〜Lは基準サイズA〜Cよりもサイズが大きいものとなっている。また、予定ゲーム時間として「40分」が選択された場合には、「10分」が選択された場合よりも、選択される領域数が大きい値となっている。すなわち本実施形態では、予定ゲーム時間が長くなるにつれて、選択され得る基準サイズの値が大きくなるとともに、選択され得る領域数も多くなるように、予定ゲーム時間と基準サイズと領域数とが対応付けられている。つまり本実施形態では、予定ゲーム時間が相対的に短い場合には相対的にサイズが小さい地形形状情報が生成され、予定ゲーム時間が相対的に長い場合には相対的にサイズが大きい地形形状情報が生成されるようになっている。 Here, when “40 minutes” is selected as the scheduled game time, one reference size is selected from the reference sizes J to L as shown in FIG. L is larger than the reference sizes A to C. In addition, when “40 minutes” is selected as the scheduled game time, the number of selected areas is larger than when “10 minutes” is selected. That is, in the present embodiment, as the scheduled game time becomes longer, the value of the reference size that can be selected increases and the number of regions that can be selected increases so that the scheduled game time, the reference size, and the number of regions are associated with each other. It has been. That is, in this embodiment, terrain shape information with a relatively small size is generated when the scheduled game time is relatively short, and terrain shape information with a relatively large size when the scheduled game time is relatively long. Is generated.
こうして、予定ゲーム時間に応じていずれかの基準サイズと領域数とが設定されると、本実施形態では、設定された基準サイズを設定された領域数で均等あるいは不均等に分割し、各領域の地形形状情報の目標サイズとなる各領域の基準サイズを設定する。更に本実施形態では、各領域について、都市、村、森林、草原、砂漠、山などの複数の属性から1つの属性を選択して、各領域の属性を設定する。 Thus, when any reference size and number of areas are set according to the scheduled game time, in the present embodiment, the set reference size is divided equally or non-uniformly by the set number of areas. Set the reference size of each area to be the target size of the topographic shape information. Furthermore, in this embodiment, for each region, one attribute is selected from a plurality of attributes such as a city, village, forest, grassland, desert, and mountain, and the attribute of each region is set.
また本実施形態では、地形形状設定処理で行われる評価処理における、重複部分のサイズに応じた評価の基準となる第1の評価基準を設定する。本実施形態では第1の評価基準として、重複部分のサイズと第2のテンプレートのサイズとの比である重複率の有効範囲を設定する。具体的には本実施形態では、図4に示す複数の第1の評価基準である「基準イ」〜「基準ハ」のうちいずれかを設定する。 In the present embodiment, a first evaluation criterion that is an evaluation criterion according to the size of the overlapping portion in the evaluation processing performed in the terrain shape setting processing is set. In the present embodiment, as the first evaluation criterion, an effective range of the overlapping rate that is a ratio between the size of the overlapping portion and the size of the second template is set. Specifically, in the present embodiment, any one of a plurality of first evaluation criteria “reference a” to “reference c” shown in FIG. 4 is set.
ここで例えば「基準イ」では、最も評価点が高い評価Aの重複率が6%〜10%、次に評価点が高い評価Bの重複率が11%〜15%、最も評価点が低い評価Cの重複率が1%〜5%となっている。すなわち「基準イ」によれば、ある程度重複率が高い場合に評価が最も高く、重複率が低い場合には評価が最も低くなる。そして他の「基準ロ」、「基準ハ」では、それぞれ評価が高い重複率の範囲が異なるように第1の評価基準が定められている。例えば本実施形態では、「基準ロ」では重複率が高いほど評価が高く、「基準ハ」では重複率が低いほど評価が高くなっている。 Here, for example, in “standard a”, the evaluation A having the highest evaluation score has an overlap rate of 6% to 10%, the evaluation rate B having the next highest evaluation score is 11% to 15%, and the evaluation having the lowest evaluation score The overlap rate of C is 1% to 5%. That is, according to “standard a”, the evaluation is highest when the overlap rate is high to some extent, and the evaluation is lowest when the overlap rate is low. In the other “reference B” and “reference C”, the first evaluation standard is set such that the ranges of the overlapping rates with high evaluations are different. For example, in the present embodiment, the higher the overlapping rate in “reference B”, the higher the evaluation, and the higher the evaluation rate in “reference C”, the higher the overlapping rate.
そして本実施形態では、各領域の基準サイズに応じて、領域ごとに第1の評価基準を設定する。例えば、1の領域の基準サイズが小さい場合には、少ないテンプレートを用いて当該領域の地形形状情報を生成するため、処理負荷、処理時間に余裕があることなどから、重複率が高いほど評価が高い「基準ロ」が選択されるように図3のテーブルデータを構成し、1の領域の基準サイズが大きい場合には、多くのテンプレートを用いて当該領域の地形形状情報を生成するため、処理負荷、処理時間に余裕が少ないことなどから、重複率が低いほど評価が高い「基準ハ」が選択されるようにしてもよい。 In this embodiment, the first evaluation criterion is set for each region according to the reference size of each region. For example, when the reference size of one area is small, the topographic shape information of the area is generated using a small number of templates, so there is room in processing load and processing time. The table data of FIG. 3 is configured so that a high “reference level” is selected. When the reference size of one area is large, the topographic shape information of the area is generated using many templates. Since there is little margin in the load and processing time, “reference C” that has a higher evaluation as the duplication rate is lower may be selected.
なお、図4に示す複数の第1の評価基準を、図3に示すテーブルデータにおいて、プレーヤが選択した予定プレー時間と対応付けるようにしてもよい。例えば、予定プレー時間が短い場合には、重複率が低いほど評価が高い「基準ハ」が選択されるように図3のテーブルデータを構成し、予定プレー時間が長い場合には、重複率が高いほど評価が高い「基準ロ」が選択されるように、テーブルデータを構成するようにしてもよい。 Note that the plurality of first evaluation criteria shown in FIG. 4 may be associated with the scheduled play time selected by the player in the table data shown in FIG. For example, when the scheduled play time is short, the table data of FIG. 3 is configured so that “reference C”, which has a higher evaluation as the overlap rate is lower, is selected. You may make it comprise table data so that "reference | standard B" whose evaluation is so high that it is high is selected.
このように本実施形態では、初期設定処理において、操作部160からの操作信号や所定のアルゴリズムに基づいて、あるいは乱数を用いてランダムに、予定プレー時間、地形形状情報の全体の基準サイズ、領域数、各領域の基準サイズ、各領域の属性、第1の評価基準などの種々の条件を設定する。
As described above, in the present embodiment, in the initial setting process, based on the operation signal from the
3−2.地形形状設定処理
3−2−1.地形形状設定処理の概略
本実施形態のゲームシステムGSは、初期設定処理において種々の条件設定が行われると、設定された条件に従って地形形状設定処理を行う。本実施形態では地形形状設定処理において、地形形状バッファ174上にテンプレートを地形形状情報として設定する地形形状設定処理を領域ごとに行って地形形状情報を生成する。以下では、上述した初期設定処理で領域数が「3」と設定され、第1の領域から第3の領域までの各領域について地形形状設定処理を行う場合について説明する。
3-2. Topographic shape setting process 3-2-1. Outline of Terrain Shape Setting Process When various conditions are set in the initial setting process, the game system GS of the present embodiment performs the terrain shape setting process according to the set conditions. In the present embodiment, in the terrain shape setting process, the terrain shape information is generated by performing the terrain shape setting process for setting the template as the terrain shape information on the
図5(A)は、テンプレート記憶部173に記憶されているテンプレートTPの一例を示す図である。図5(A)に示すようにテンプレート記憶部173には、サイズおよび形状の少なくとも一方が異なる複数の形状情報によって構成される複数のテンプレートTPが記憶されている。図5(A)では、各テンプレートTPの形状は滑らかな閉曲線により描かれているが、本実施形態では図5(B)に示すように、各テンプレートTPは、1m×1m(mはサイズを表現するための仮想的な単位)の正方形の形状情報(以下、セルCLという。)を最小単位としている。そして各テンプレートTPでは、複数のセルCLが各セルCLの1辺を他のセルCLと共有することにより種々の態様で連結し、種々の形状を形成している。
FIG. 5A is a diagram illustrating an example of a template TP stored in the
そして本実施形態では、図5(A)に示すように、同一またはほぼ同一のサイズについて、形状が異なる複数のテンプレートTPを用意している。従って本実施形態では、地形形状情報として設定するテンプレートTPを基準サイズに応じて選択した場合であっても、その都度異なる形状のテンプレートTPを選択することができる。 In this embodiment, as shown in FIG. 5A, a plurality of templates TP having different shapes are prepared for the same or substantially the same size. Therefore, in this embodiment, even when the template TP set as the terrain shape information is selected according to the reference size, a template TP having a different shape can be selected each time.
図6(A)は、テンプレートTPを設定する地形形状バッファ174の一例を示す図である。本実施形態では、地形形状バッファ174は、テンプレートTPを構成するセルCLを、縦に200個、横に200個の合計40000個配置できるように構成されている。そして本実施形態では、図6(A)に示すように、地形形状バッファ174上にテンプレートTPを地形形状情報MFとして配置設定する。
FIG. 6A shows an example of the
3−2−2.第1の領域についての地形形状設定処理
そして本実施形態では、上述した初期設定処理で設定された領域数に対応する複数の領域のうち、第1の領域について地形形状設定処理を開始する。第1の領域についての地形形状設定処理では、まず、第1の領域の基準サイズの約80%(本実施形態では75%〜85%の範囲内)のサイズのテンプレートTPを、第1の領域について最初に地形形状バッファ174上に配置する第1のテンプレートTP1として、図5に示すテンプレート記憶部173の複数のテンプレートTPから選択する(第1の選択処理の一例)。そして、地形形状バッファ174上の位置と、選択したテンプレートTP1の向きとをランダムに決定して、テンプレートTP1を地形形状バッファ174上に配置して、第1の領域の地形形状情報MF1として設定する(配置設定処理の一例)。
3-2-2. Topographic shape setting process for the first area In the present embodiment, the topographic shape setting process is started for the first area among a plurality of areas corresponding to the number of areas set in the initial setting process described above. In the topographic shape setting process for the first region, first, a template TP having a size of about 80% of the reference size of the first region (in the range of 75% to 85% in the present embodiment) is used as the first region. Is first selected from the plurality of templates TP in the
すると本実施形態では、設定された地形形状情報MF1(第1のテンプレートTP1)のサイズを第1の領域の基準サイズから減算し、第1の領域の基準サイズのうち、未だ地形形状情報MF1として設定されていないサイズである残存サイズを算出する。そして残存サイズの約80%(第1の領域の基準サイズのおよそ16%程度)のサイズのテンプレートTPを、第1の領域について2番目に地形形状バッファ174上に配置する第2のテンプレートTP2として、図5に示すテンプレート記憶部173の複数のテンプレートTPから選択する(第2の選択処理の一例)。
Then, in this embodiment, the size of the set topographic shape information MF1 (first template TP1) is subtracted from the reference size of the first area, and the topographic shape information MF1 is still out of the reference size of the first area. The remaining size that is not set is calculated. Then, a template TP having a size of about 80% of the remaining size (about 16% of the reference size of the first region) is used as a second template TP2 that is secondly arranged on the
すると本実施形態では、図6(B)に示すように、選択した第2のテンプレートTP2を、4方向から地形形状情報MF1(第1のテンプレートTP1)の重心に向けて移動させる。本実施形態では、地形形状バッファ174の外縁を構成する座標(セルCL)群から4つの座標CO1〜CO4を、所与のアルゴリズムでまたはランダムに選択し、第2のテンプレートTP2の重心が座標CO1〜CO4となる位置に第2のテンプレートTP2を配置する。なお、第2のテンプレートTP2を配置する向きも、所与のアルゴリズムでまたはランダムに決定される。そして、座標CO1〜CO4のそれぞれと地形形状情報MF1の重心とを結ぶ直線上を、第2のテンプレートTP2の重心が通るように、第2のテンプレートTP2を座標CO1〜CO4から地形形状情報MF1の重心に向けて移動させる。
Then, in this embodiment, as shown in FIG. 6B, the selected second template TP2 is moved from the four directions toward the center of gravity of the topographic shape information MF1 (first template TP1). In the present embodiment, four coordinates CO1 to CO4 are selected from a group of coordinates (cell CL) constituting the outer edge of the
ここで、第2のテンプレートTP2を移動させる際に、第2のテンプレートTP2の重心を1座標(1セル)ずつ移動させると、処理負荷、処理時間が大きくなってしまう。そこで本実施形態では、第2のテンプレートTP2の重心が10座標(10セル)間隔で移動するように、第2のテンプレートTP2を移動させるようにしている。 Here, when the second template TP2 is moved, if the center of gravity of the second template TP2 is moved by one coordinate (one cell), the processing load and the processing time increase. Therefore, in the present embodiment, the second template TP2 is moved so that the center of gravity of the second template TP2 moves at intervals of 10 coordinates (10 cells).
そして本実施形態では、4つの方向の各方向について、地形形状情報MF1と第2のテンプレートTP2とが重なったか否かを監視し、図7に示すように、4つの方向の各方向について、地形形状情報MF1と第2のテンプレートTP2とが最初に重なったときの、地形形状情報MF1と第2のテンプレートTP2との合成形状情報SY1〜SY4を生成する。 In the present embodiment, it is monitored whether or not the topographic shape information MF1 and the second template TP2 overlap each other in each of the four directions. As shown in FIG. Composite shape information SY1 to SY4 of the topographic shape information MF1 and the second template TP2 when the shape information MF1 and the second template TP2 first overlap each other is generated.
そして本実施形態では、図7に示すように、4つの方向の各方向の合成形状情報SY1〜SY4について、地形形状情報MF1と第2のテンプレートTP2との重複部分OLのサイズと、第2のテンプレートTP2のサイズとの比である重複率を算出する。そして、各方向の合成形状情報SY1〜SY4の重複率を図4に示す「基準イ」に則して評価する(評価処理の一例)。従って図7の例の場合には、重複率が8%となっている合成形状情報SY3が評価Aとされ、最も評価点が高い合成形状情報SYと評価される。 And in this embodiment, as shown in FIG. 7, about the synthetic | combination shape information SY1-SY4 of each direction of four directions, the size of the overlap part OL of topographic shape information MF1 and 2nd template TP2, and 2nd A duplication rate which is a ratio with the size of the template TP2 is calculated. Then, the overlapping rate of the combined shape information SY1 to SY4 in each direction is evaluated in accordance with “reference a” shown in FIG. 4 (an example of evaluation processing). Therefore, in the example of FIG. 7, the composite shape information SY3 having an overlap rate of 8% is evaluated as A, and the composite shape information SY having the highest evaluation score is evaluated.
そして本実施形態では、図7における合成形状情報SY1〜SY4のうち最も評価点が高かった合成形状情報SY3を、図8(A)に示すように、地形形状バッファ174上で第1の領域の地形形状情報MF1として更新する(更新設定処理の一例)。なお、同一クラスの評価となる合成形状情報SYが複数存在する場合には、抽選によりいずれかの合成形状情報SYを選択するようにしてもよいし、重複率が所定の基準値により近い方の合成形状情報SYを選択するようにしてもよい。
In the present embodiment, the combined shape information SY3 having the highest evaluation score among the combined shape information SY1 to SY4 in FIG. 7 is displayed on the
ここで本実施形態では、評価処理において第1の評価基準として用いる基準を変更することにより、更新設定処理において更新される地形形状情報MF1の形状を変化させることができる。例えば、図7に示す各方向の合成形状情報SY1〜SY4の重複率を、図4に示す「基準ロ」に則して評価した場合には、重複率が15%となっている合成形状情報SY2が評価Aとされ、最も評価点が高い合成形状情報SYと評価される。一方、「基準ハ」に則して評価した場合には、重複率が3%となっている合成形状情報SY1が評価Aとされ、最も評価点が高い合成形状情報SYと評価される。 Here, in the present embodiment, the shape of the topographic shape information MF1 updated in the update setting process can be changed by changing the reference used as the first evaluation reference in the evaluation process. For example, when the overlapping rate of the combined shape information SY1 to SY4 in each direction shown in FIG. 7 is evaluated according to the “reference b” shown in FIG. 4, the combined shape information whose overlapping rate is 15%. SY2 is evaluated as A, and is evaluated as composite shape information SY having the highest evaluation score. On the other hand, when the evaluation is performed in accordance with “reference c”, the composite shape information SY1 having an overlap rate of 3% is set as the evaluation A, and is evaluated as the composite shape information SY having the highest evaluation score.
また本実施形態では、図6(A)で示した配置設定処理において地形形状バッファ174上に第1のテンプレートTP1を配置する向きや、図6(B)で示した評価処理において第2のテンプレートTP2を地形形状情報MF1に向けて移動させる際の、第2のテンプレートTP2の向きや移動経路(出発点となる座標)、移動する間隔を変更することにより、各方向についての合成形状情報SY1〜SY4の形状を種々の態様のものとして生成することができる。従って本実施形態では、テンプレートTPの種類が少なくとも、種々の態様の合成形状情報SYを生成し、種々の態様で複数の合成形状情報SYを評価し、評価の結果に基づいて合成形状情報SYを地形形状情報MF1として更新することにより、種々の形状の地形形状情報MF1を生成することができる。
In this embodiment, the orientation in which the first template TP1 is placed on the
こうして図8(A)に示すように地形形状情報MF1を更新すると、本実施形態では、更新後の地形形状情報MF1のサイズが第1の領域の基準サイズの99%達したか否か(所与の条件の一例)を判定する(判定処理の一例)。そして99%に達していない場合には、条件が満たされるまで、第1の領域について第2の選択処理と、評価処理と、更新設定処理と、判定処理とを繰り返す。 When the topographic shape information MF1 is updated as shown in FIG. 8A, in this embodiment, whether or not the size of the updated topographic shape information MF1 has reached 99% of the reference size of the first area (place An example of a given condition) is determined (an example of a determination process). If it has not reached 99%, the second selection process, the evaluation process, the update setting process, and the determination process are repeated for the first area until the condition is satisfied.
図8(B)は、第1の領域についての2回目の第2の選択処理と、評価処理とを説明するための図である。2回目の第2の選択処理では、まず、図8(A)に示す更新された地形形状情報MF1(合成形状情報SY3)のサイズを第1の領域の基準サイズから減算し、残存サイズを算出する。そして残存サイズの約80%(第1の領域の基準サイズの3〜5%程度)のサイズのテンプレートTPを、第1の領域について3番目に地形形状バッファ174上に配置する第2のテンプレートTP2として、テンプレート記憶部173の複数のテンプレートTPから選択する。すなわち図8(B)に示すように、第2のテンプレートTP2は、第2の選択処理を繰り返すにつれて小さいサイズのものが選択されることになる。
FIG. 8B is a diagram for describing a second second selection process and an evaluation process for the first region. In the second selection process for the second time, first, the size of the updated topographic shape information MF1 (composite shape information SY3) shown in FIG. 8A is subtracted from the reference size of the first region to calculate the remaining size. To do. Then, the second template TP2 in which the template TP having a size of about 80% of the remaining size (about 3 to 5% of the reference size of the first region) is arranged on the
そして2回目の評価処理では、図8(B)に示すように、選択した第2のテンプレートTP2を、4方向から地形形状情報MF1(合成形状情報SY3)の重心に向けて移動させる。本実施形態では、2回目の評価処理においても、第2のテンプレートTP2を地形形状情報MF1に向けて移動させる際の、第2のテンプレートTP2の向きや移動経路(出発点となる座標)を、所与のアルゴリズムでまたはランダムに決定する。そして4方向の各方向について、地形形状情報MF1と第2のテンプレートTP2とが重なったか否かを監視し、図9に示すように、4方向の各方向について、地形形状情報MF1と第2のテンプレートTP2とが最初に重なったときの地形形状情報MF1と第2のテンプレートTP2との合成形状情報SY1〜SY4を生成する。そして、各方向の合成形状情報SY1〜SY4を、それぞれの重複率に基づいて評価する。 In the second evaluation process, as shown in FIG. 8B, the selected second template TP2 is moved from the four directions toward the center of gravity of the topographic shape information MF1 (composite shape information SY3). In the present embodiment, also in the second evaluation process, the direction and movement path (coordinates that are the starting points) of the second template TP2 when moving the second template TP2 toward the topographic shape information MF1 Determine with a given algorithm or randomly. Then, for each of the four directions, it is monitored whether or not the topographic shape information MF1 and the second template TP2 overlap each other, and as shown in FIG. 9, the topographic shape information MF1 and the second template TP2 for each of the four directions. The composite shape information SY1 to SY4 of the topographic shape information MF1 and the second template TP2 when the template TP2 first overlaps is generated. And synthetic shape information SY1-SY4 of each direction is evaluated based on each duplication rate.
そして2回目の評価処理の結果に基づいて、例えば図9に示す合成形状情報SY4が最も評価が高かった場合には、図10に示すように、合成形状情報SY4を地形形状情報MF1として更新する2回目の更新設定処理を行い、かかる2回目の更新後の地形形状情報MF1について2回目の判定処理を行う。ここで、図10に示す2回目の更新後の地形形状情報MF1のサイズが第1の領域の基準サイズの99%に達しない場合には、3回目の第2の選択処理と、評価処理と、更新設定処理と、判定処理とを行い、第1の領域の基準サイズの99%に達した場合には、第1の領域についての地形形状設定処理を終了する。 Based on the result of the second evaluation process, for example, when the composite shape information SY4 shown in FIG. 9 has the highest evaluation, the composite shape information SY4 is updated as topographic shape information MF1 as shown in FIG. A second update setting process is performed, and a second determination process is performed for the topographic shape information MF1 after the second update. Here, when the size of the topographic shape information MF1 after the second update shown in FIG. 10 does not reach 99% of the reference size of the first region, the second selection process, the evaluation process, Then, the update setting process and the determination process are performed, and when the reference size of the first area reaches 99%, the terrain shape setting process for the first area is ended.
こうして第1の領域についての地形形状設定処理を終了すると、本実施形態では、次の第2の領域について地形形状設定処理を行い、全ての領域について地形形状設定処理を行うまで、地形形状設定処理を繰り返す。 When the terrain shape setting process for the first area is thus completed, in this embodiment, the terrain shape setting process is performed for the next second area and the terrain shape setting process is performed for all the areas. repeat.
3−2−3.第2の領域以降の領域についての地形形状設定処理
図11(A)、(B)は、第2の領域についての地形形状設定処理を説明するための図である。第2の領域についての地形形状設定処理では、まず、第2の領域についての第1の選択処理として、第2の領域の基準サイズの約80%のサイズのテンプレートTPを、第2の領域についての第1のテンプレートTP1として選択する。そして第2の領域についての配置設定処理として、図11(A)に示すように、地形形状バッファ174上の位置のうち、第1の領域の地形形状情報MF1に重ならない位置に、第2の領域についての第1のテンプレートTP1を配置して、第2の領域の地形形状情報MF2として設定する。なお、第2の領域について配置される第1のテンプレートTP1の位置と向きについても、第1の領域のときと同様にランダムに決定される。
3-2-3. Terrain shape setting process for areas after the second area FIGS. 11A and 11B are diagrams for explaining the terrain shape setting process for the second area. In the topographic shape setting process for the second area, first, as the first selection process for the second area, a template TP having a size of about 80% of the reference size of the second area is used for the second area. As the first template TP1. Then, as the arrangement setting process for the second area, as shown in FIG. 11A, the second area is set at a position that does not overlap with the topographic shape information MF1 of the first area among the positions on the
すると第2の領域についての第2の選択処理として、第2の領域の残存サイズを算出して第2の領域についての第2のテンプレートTP2を選択する。そして、第2の領域についての評価処理として、図11(B)に示すように、選択した第2のテンプレートTP2を、4方向から第2の領域の地形形状情報MF2(第1のテンプレートTP1)の重心に向けて移動させ、図12に示すように、各方向について地形形状情報MF2と第2のテンプレートTP2とが最初に重なったときの地形形状情報MF2と第2のテンプレートTP2との合成形状情報SY1〜SY4を生成する。 Then, as a second selection process for the second region, the remaining size of the second region is calculated and the second template TP2 for the second region is selected. Then, as the evaluation process for the second region, as shown in FIG. 11B, the selected second template TP2 is converted into the topographic shape information MF2 of the second region from the four directions (first template TP1). As shown in FIG. 12, the combined shape of the terrain shape information MF2 and the second template TP2 when the terrain shape information MF2 and the second template TP2 first overlap each other as shown in FIG. Information SY1 to SY4 is generated.
ここで第2の領域についての評価処理では、図11(B)の中央部に示す第2のテンプレートTP2のように、第2のテンプレートTP2が第2の領域の地形形状情報MF2と最初に重なったときに、第1の領域の地形形状情報MF1とも重なっている場合がある。すなわち図12に示す合成形状情報SY4のように、第1の領域の地形形状情報MF1との特殊重複部分SOが存在する合成形状情報SYが発生する場合がある。 Here, in the evaluation process for the second region, the second template TP2 first overlaps the topographic shape information MF2 of the second region, as in the second template TP2 shown in the center of FIG. The terrain shape information MF1 of the first region may overlap. That is, there may be a case where composite shape information SY including a special overlapping portion SO with the topographic shape information MF1 of the first region is generated, as in the composite shape information SY4 shown in FIG.
そこで第2の領域についての評価処理では、図12に示す各方向の合成形状情報SY1〜SY4について、地形形状情報MF2と第2のテンプレートTP2との重複部分OLのサイズに加え、地形形状情報MF1と第2のテンプレートTP2との重複部分OSのサイズを算出し、重複部分OLのサイズと重複部分OSのサイズとの和(第2のテンプレートと各領域の地形形状情報との重複部分のサイズ)と、第2のテンプレートTP2のサイズとの比である重複率を算出する。そして、各方向の合成形状情報SY1〜SY4の重複率を図4に示す「基準イ」に則して評価する(評価処理の一例)。従って図12の例の場合には、重複率が10%となっている合成形状情報SY4が評価Aとされ、最も評価点が高い合成形状情報SYと評価される。 Therefore, in the evaluation process for the second region, for the combined shape information SY1 to SY4 in each direction shown in FIG. 12, in addition to the size of the overlapping portion OL between the topographic shape information MF2 and the second template TP2, the topographic shape information MF1. And the size of the overlap portion OS between the second template TP2 and the sum of the size of the overlap portion OL and the size of the overlap portion OS (the size of the overlap portion between the second template and the topographic shape information of each region) And a duplication rate that is a ratio of the size of the second template TP2 is calculated. Then, the overlapping rate of the combined shape information SY1 to SY4 in each direction is evaluated in accordance with “reference a” shown in FIG. 4 (an example of evaluation processing). Accordingly, in the case of the example of FIG. 12, the composite shape information SY4 having an overlap rate of 10% is evaluated as A, and is evaluated as composite shape information SY having the highest evaluation score.
そして第2の領域の更新設定処理として、合成形状情報SY1〜SY4のうち最も評価点が高かった合成形状情報SY4を、図13に示すように、地形形状バッファ174上で第2の領域の地形形状情報MF2として更新する。なお、第2の領域の地形形状情報MF2と第1の領域の地形形状情報MF1とが重複した特殊重複部分SOに対応する部分については、本実施形態では、第2の領域の地形形状情報MF2として設定される。
Then, as update setting processing of the second area, the combined shape information SY4 having the highest evaluation score among the combined shape information SY1 to SY4 is displayed on the
そして第2の領域の判定処理として、更新後の地形形状情報MF2のサイズが第2の領域の基準サイズの99%に達したか否かを判定し、99%に達していない場合には、第2の領域について条件が満たされるまで、第2の選択処理と、評価処理と、更新設定処理と、判定処理とを繰り返す。 Then, as the determination process of the second area, it is determined whether or not the size of the updated topographic shape information MF2 has reached 99% of the reference size of the second area. If the size has not reached 99%, The second selection process, the evaluation process, the update setting process, and the determination process are repeated until the condition for the second region is satisfied.
3−2−4.地形形状設定処理終了後の処理
図14(A)は、第3の領域についての地形形状設定処理が終了して、完成された地形形状情報MFの一例を示す図である。図14(A)の例では、第1の領域の地形形状情報MF1と第2の領域の地形形状情報MF2とは連続した領域として形成されているが、第3の領域の地形形状情報MF3は、他の領域とは連続しない領域として形成されている。このように本実施形態では、各領域の地形形状情報MFは、各領域についての地形形状設定処理における第1のテンプレートTP1の配置位置や、合成形状情報SYの態様などに応じて連続した領域になったり、独立した領域になったり、種々の態様で生成される。なお、地形形状バッファ174のうち地形形状情報MFが設定されなかった空間については、例えば海領域としてプレーヤキャラクタPCが船に乗って進入することができる領域としてもよいし、プレーヤキャラクタPCが進入することができない領域としてもよい。
3-2-4. Process after completion of terrain shape setting process FIG. 14A is a diagram illustrating an example of the completed terrain shape information MF after the terrain shape setting process for the third region is completed. In the example of FIG. 14A, the terrain shape information MF1 of the first region and the terrain shape information MF2 of the second region are formed as a continuous region, but the terrain shape information MF3 of the third region is The region is not continuous with other regions. As described above, in this embodiment, the terrain shape information MF of each region is a continuous region according to the arrangement position of the first template TP1 in the terrain shape setting process for each region, the form of the composite shape information SY, and the like. Or an independent region, or generated in various ways. Note that the space in which the terrain shape information MF is not set in the
また地形形状バッファ174のうち地形形状情報MFが設定されなかった空間の中には、図14(A)に示すように、周囲が地形形状情報で囲まれた空間である隙間空間BLが、合成形状情報SYを生成する過程において発生している場合がある。ここで隙間空間BLが、ある程度のサイズのものである場合には、隙間空間BLを湖領域や池領域などとして設定することにより、最終的に生成される地形オブジェクトの一態様とすることができる。しかし、あまりに小さいサイズの隙間空間BLが発生した場合には、プレーヤキャラクタPCの移動を妨げるものとしてプレーヤのストレスの原因になる場合があることから、本実施形態では、所定のサイズよりも小さいサイズの隙間空間BLについては、これを判別し(隙間空間判別処理の一例)、かかる隙間空間BLを地形形状情報として設定し、隙間空間BLを埋める処理を行う(補正設定処理の一例)。
Also, in the space in which the terrain shape information MF is not set in the
こうして地形形状バッファ174上に全ての領域について地形形状情報MFが生成され、補正設定処理が行われると、補正設定処理後の地形形状情報MFを、図14(B)に示すように、3次元の形状情報を格納する地形オブジェクトバッファ176に設定する。そして、各領域に応じて高さ情報を設定し、3次元の地形オブジェクトを生成する。そして、地形オブジェクトに配置する家オブジェクトや道オブジェクトや木オブジェクトなどの位置を決定する。
Thus, when the terrain shape information MF is generated for all areas on the
このように本実施形態では、ゲームモードが実行される前の地形生成モードにおいて、プレーヤが選択した予定ゲーム時間に応じたサイズで、種々の形状の地形形状情報MFを生成し、これに基づいて地形オブジェクトを生成することができる。そして本実施形態では、地形生成モードにおいて生成した地形オブジェクトを、ゲームモードにおいてオブジェクト空間に設定し、かかる地形オブジェクト上をプレーヤキャラクタPCが移動して種々のイベントを発生させるゲームを実行する。 As described above, in the present embodiment, in the terrain generation mode before the game mode is executed, the terrain shape information MF of various shapes is generated with a size corresponding to the scheduled game time selected by the player, and based on this A terrain object can be generated. In this embodiment, the terrain object generated in the terrain generation mode is set in the object space in the game mode, and the player character PC moves on the terrain object to execute various events.
4.本実施形態の処理の流れ
続いて図15のフローチャートを参照しながら本実施形態の制御手法を実現する処理の一例について説明する。図15に示すように本実施形態のゲームシステムGSは、まず初期設定処理として、プレーヤから予定プレー時間の選択を受け付ける(ステップS10)。すると予定プレー時間に応じた基準サイズを設定し(ステップS12)、基準サイズに応じた領域数Kを設定する(ステップS14)。そして、基準サイズを領域数Kで不均等に分割し、各領域の基準サイズを設定する(ステップS16)。ここで、各領域の属性も設定する。
4). Process Flow of the Present Embodiment Next, an example of a process for realizing the control method of the present embodiment will be described with reference to the flowchart of FIG. As shown in FIG. 15, the game system GS of this embodiment first accepts selection of a scheduled play time from the player as an initial setting process (step S10). Then, a reference size corresponding to the scheduled play time is set (step S12), and the number of areas K corresponding to the reference size is set (step S14). Then, the reference size is divided unevenly by the number K of regions, and the reference size of each region is set (step S16). Here, attributes of each area are also set.
こうして初期設定処理が終了すると、地形形状設定処理を行う領域の番号としてNに1を代入する(ステップS18)。そして第1の領域について残存サイズを算出する(ステップS20)。ここでは、未だ地形形状バッファ174上に地形形状情報を設定していないので、残存サイズは第1の領域の基準サイズとなる。そして、残存サイズの約80%のテンプレートTPを選択する(ステップS22)。そしてこれが第1の領域について最初に選択された第1のテンプレートTP1である場合には(ステップS24でY)、第1のテンプレートTP1を地形形状バッファ174上に地形形状情報として配置する(ステップS26)。
When the initial setting process is completed in this way, 1 is substituted for N as the number of the area in which the terrain shape setting process is performed (step S18). Then, the remaining size is calculated for the first region (step S20). Here, since the terrain shape information has not yet been set on the
すると、ステップS20に戻り、第1の領域について残存サイズを算出し(ステップS20)、残存サイズの約80%のテンプレートTPを選択する(ステップS22)。すると、ここで選択されたテンプレートTPは第2のテンプレートTP2であるので(ステップS24でN)、地形形状バッファ174上で第2のテンプレートTP2を各方向から地形形状情報の重心に向けて移動させ(ステップS28)、第2のテンプレートTP2と地形形状情報とが重なったときの合成形状情報SYを各方向について生成する(ステップS30)。
Then, the process returns to step S20, the remaining size is calculated for the first region (step S20), and the template TP of about 80% of the remaining size is selected (step S22). Then, since the template TP selected here is the second template TP2 (N in step S24), the second template TP2 is moved from each direction toward the center of gravity of the terrain shape information on the
そして、各方向についての合成形状情報SYを評価し(ステップS32)、評価結果に基づいて1の方向についての合成形状情報SYを新たな地形形状情報として更新する(ステップS34)。そして、更新後の地形形状情報のサイズが基準サイズの99%を超えたか否かを判定する(ステップS36)。 Then, the composite shape information SY for each direction is evaluated (step S32), and the composite shape information SY for one direction is updated as new topographic shape information based on the evaluation result (step S34). Then, it is determined whether or not the size of the updated terrain shape information exceeds 99% of the reference size (step S36).
ここで地形形状情報のサイズが条件を満たさない場合には(ステップS36でN)、ステップS20に戻り、ステップS20からステップS36までの処理を繰り返す。一方、地形形状情報のサイズが条件を満たす場合には(ステップS36でY)、第1の領域について地形形状情報を確定させる(ステップS38)。そして地形形状設定処理を行った領域の番号Nが領域数Kとなったか、すなわち全ての領域について地形形状設定処理を行ったか判定する(ステップS40)。 If the size of the terrain shape information does not satisfy the condition (N in step S36), the process returns to step S20, and the processes from step S20 to step S36 are repeated. On the other hand, if the size of the terrain shape information satisfies the condition (Y in step S36), the terrain shape information is determined for the first region (step S38). Then, it is determined whether or not the number N of the areas subjected to the terrain shape setting process has reached the number K of areas, that is, whether the terrain shape setting process has been performed for all areas (step S40).
ここでN=Kとならない場合には(ステップS40でN)、領域の番号Nを1つインクリメントし(ステップS42)、ステップS20に戻り、第2の領域について、ステップS20からステップS36までの処理を繰り返す。一方、N=Kとなった場合には(ステップS40でY)、地形形状設定処理を終了させる。 If N = K is not satisfied (N in step S40), the area number N is incremented by 1 (step S42), the process returns to step S20, and the process from step S20 to step S36 is performed for the second area. repeat. On the other hand, if N = K (Y in step S40), the terrain shape setting process is terminated.
5.マスク情報を用いる場合
次に、地形形状バッファ174上で地形形状情報を設定する範囲を規定するマスク情報を用いて地形形状設定処理を行う例について説明する。基本的な処理は上述したマスク情報を用いないと同様であるので、以下ではマスク情報を用いる場合に特徴的な部分について説明する。
5). Next, an example in which the terrain shape setting process is performed using mask information that defines a range in which the terrain shape information is set on the
マスク情報を用いる場合には、本実施形態では、上述した初期設定処理において、地形形状バッファ174上で地形形状情報を設定する範囲を規定するマスク情報を、地形形状バッファ174に設定する。そして、地形形状情報全体の基準サイズとしてマスク情報のサイズを設定する。これにより本実施形態では、種々の形状の地形形状情報を、マスク情報に応じた形状のものとして生成することができる。
In the case of using mask information, in this embodiment, in the initial setting process described above, mask information that defines a range for setting topographic shape information on the
詳細には本実施形態では、初期設定処理において、図16に示すように、プレーヤが選択可能な予定ゲーム時間と、各予定ゲーム時間が選択された場合に設定され得る複数のマスク情報と、複数の領域数との関係を規定したテーブルデータを用いて各種条件の設定を行う。図16の例では、予定ゲーム時間として「40分」が選択された場合には、マスク情報J〜Lから1つのマスク情報を選択するが、マスク情報J〜Lは、予定ゲーム時間として「10分」が選択された場合に選択されるマスク情報A〜Cよりもサイズが大きいマスク情報となっている。すなわちマスク情報を用いる場合であっても、本実施形態では、予定ゲーム時間が長くなるにつれて、選択され得るマスク情報のサイズが大きくなるとともに、選択され得る領域数も大きくなるように、予定ゲーム時間とマスク情報と領域数とが対応付けられている。そして本実施形態では、設定されたマスク情報のサイズを設定された領域数で均等あるいは不均等に分割し、各領域の地形形状情報の目標サイズとなる各領域の基準サイズを設定する。 Specifically, in the present embodiment, in the initial setting process, as shown in FIG. 16, a scheduled game time that can be selected by the player, a plurality of mask information that can be set when each scheduled game time is selected, Various conditions are set using table data that defines the relationship with the number of areas. In the example of FIG. 16, when “40 minutes” is selected as the scheduled game time, one mask information is selected from the mask information J to L. The mask information J to L is “10” as the scheduled game time. The mask information is larger than the mask information A to C selected when “minute” is selected. That is, even when mask information is used, in this embodiment, as the scheduled game time increases, the size of the mask information that can be selected increases and the number of regions that can be selected also increases. The mask information and the number of areas are associated with each other. In this embodiment, the size of the set mask information is divided equally or unevenly by the set number of regions, and the reference size of each region that is the target size of the topographic shape information of each region is set.
図17(A)、(B)は、楕円形状のマスク情報MSを地形形状バッファ174に設定した例を示す図である。図17(A)に示すように、本実施形態では、マスク情報MSを用いた場合には配置設定処理において、地形形状バッファ174上の位置のうち、マスク情報MSの範囲内に第1のテンプレートTP1を配置して地形形状情報MFとして設定する。なお、マスク情報MSの位置と向きとはランダムに決定される。
FIGS. 17A and 17B are diagrams showing an example in which elliptical mask information MS is set in the
そして評価処理として、図17(B)に示すように、選択した第2のテンプレートTP2を、4方向から地形形状情報MF(第1のテンプレートTP1)の重心に向けて移動させるが、第2のテンプレートTP2が地形形状情報MFと最初に重なったときに、第2のテンプレートTP2がマスク情報MSと重なっていない部分を含む場合がある。すなわち図18に示す合成形状情報SY1、SY3のように、マスク情報との非重複部分NOが存在する合成形状情報SYが発生する場合がある。 As the evaluation process, as shown in FIG. 17B, the selected second template TP2 is moved from the four directions toward the center of gravity of the topographic shape information MF (first template TP1). When the template TP2 first overlaps the topographic shape information MF, the second template TP2 may include a portion that does not overlap the mask information MS. That is, there are cases where composite shape information SY in which a non-overlapping portion NO with the mask information exists, such as composite shape information SY1 and SY3 shown in FIG.
そこで本実施形態の評価処理では、図18に示すように、各方向についての合成形状情報SY1〜SY4を、第2のテンプレートTP2とマスク情報MSとの非重複部分NOのサイズに応じて評価する。詳細には本実施形態では、第2のテンプレートTP2と地形形状情報MFとの重複部分OLのサイズと、第2のテンプレートTP2のサイズとの比である重複率を算出するとともに、第2のテンプレートTP2とマスク情報MSとの非重複部分NOのサイズと、第2のテンプレートTP2のサイズとの比である非重複率を算出する。そして、各方向についての合成形状情報SYを、重複率と非重複率とに基づいて評価する。 Therefore, in the evaluation process of the present embodiment, as shown in FIG. 18, the combined shape information SY1 to SY4 for each direction is evaluated according to the size of the non-overlapping portion NO between the second template TP2 and the mask information MS. . Specifically, in the present embodiment, the second template TP2 and the topographic shape information MF are calculated by calculating a duplication rate that is a ratio between the size of the overlapping portion OL and the size of the second template TP2, and the second template TP2. A non-overlapping ratio that is a ratio between the size of the non-overlapping portion NO between TP2 and the mask information MS and the size of the second template TP2 is calculated. Then, the combined shape information SY for each direction is evaluated based on the overlapping rate and the non-overlapping rate.
ここで本実施形態ではマスク情報MSを用いる場合には、上述した初期設定処理において、非重複部分NOのサイズに応じた評価の基準となる第2の評価基準を設定しており、この第2の評価基準では、非重複率については低ければ低いほど評価が高くなる。例えば、最も評価点が高い評価Aの非重複率が0%〜5%、次に評価点が高い評価Bの重複率が6%〜10%、最も評価点が低い評価Cの重複率が11%〜15%となっている。そして本実施形態では、重複率についての第1の評価基準に則した評価結果と、非重複率についての第2の評価基準に則した評価結果の双方を加味して、各方向の合成形状情報SY1〜SY4を評価する。 Here, in the present embodiment, when the mask information MS is used, in the initial setting process described above, a second evaluation criterion serving as an evaluation criterion according to the size of the non-overlapping portion NO is set. In the evaluation criteria, the lower the non-overlap rate, the higher the evaluation. For example, the non-overlap rate of evaluation A with the highest evaluation score is 0% to 5%, the overlap rate of evaluation B with the next highest evaluation score is 6% to 10%, and the overlap rate of evaluation C with the lowest evaluation score is 11 % To 15%. In the present embodiment, the combined shape information in each direction is obtained by taking into consideration both the evaluation result according to the first evaluation criterion for the overlapping rate and the evaluation result according to the second evaluation criterion for the non-overlapping rate. SY1 to SY4 are evaluated.
ここで本実施形態では、非重複率が16%以上である合成形状情報SYについては評価点をつけず、たとえ重複率についての評価がよい場合であっても、非重複率が16%以上である合成形状情報SYを地形形状情報MFとして更新しないようにしている。これにより本実施形態によれば、マスク情報MSからはみ出る部分が所定サイズ以上ある合成形状情報SYは採用されないので、領域ごとに種々の形状に形成される地形形状情報MFを、マスク情報MSに応じた形状のものとして生成することができる。 Here, in the present embodiment, the composite shape information SY having a non-overlap ratio of 16% or more is not given an evaluation point, and even if the evaluation of the overlap ratio is good, the non-overlap ratio is 16% or more. Certain composite shape information SY is not updated as topographic shape information MF. As a result, according to the present embodiment, the composite shape information SY having a portion protruding from the mask information MS of a predetermined size or more is not adopted, so that the topographic shape information MF formed in various shapes for each region is determined according to the mask information MS. It can be generated as a different shape.
なお、マスク情報MSからはみ出た地形形状情報MFについては切り取るようにしてもよい。この場合には、種々の形状に形成される地形形状情報MFを、マスク情報MSにより近い形状のものとして生成することができる。 Note that the topographic shape information MF that protrudes from the mask information MS may be cut off. In this case, the terrain shape information MF formed in various shapes can be generated as a shape closer to the mask information MS.
6.ハードウェア構成
図19に本実施形態を実現できるハードウェア構成の例を示す。メインプロセッサ900は、DVD982(情報記憶媒体)に格納されたプログラム、通信インターフェース990を介してダウンロードされたプログラム、或いはROM950に格納されたプログラムなどに基づき動作し、ゲーム処理、画像処理、音処理などを実行する。コプロセッサ902は、メインプロセッサ900の処理を補助するものであり、マトリクス演算(ベクトル演算)を高速に実行する。例えばオブジェクトを移動させたり動作(モーション)させる物理シミュレーションに、マトリクス演算処理が必要な場合には、メインプロセッサ900上で動作するプログラムが、その処理をコプロセッサ902に指示(依頼)する。
6). Hardware Configuration FIG. 19 shows an example of a hardware configuration capable of realizing this embodiment. The
ジオメトリプロセッサ904は、メインプロセッサ900上で動作するプログラムからの指示に基づいて、座標変換、透視変換、光源計算、曲面生成などのジオメトリ処理を行うものであり、マトリクス演算を高速に実行する。データ伸張プロセッサ906は、圧縮された画像データや音データのデコード処理を行ったり、メインプロセッサ900のデコード処理をアクセレートする。これにより、オープニング画面やゲーム画面において、MPEG方式等で圧縮された動画像を表示できる。
The
描画プロセッサ910は、ポリゴンや曲面などのプリミティブ面で構成されるオブジェクトの描画(レンダリング)処理を実行する。オブジェクトの描画の際には、メインプロセッサ900は、DMAコントローラ970を利用して、描画データを描画プロセッサ910に渡すと共に、必要であればテクスチャ記憶部924にテクスチャを転送する。すると描画プロセッサ910は、描画データやテクスチャに基づいて、Zバッファなどを利用した隠面消去を行いながら、オブジェクトをフレームバッファ922に描画する。また描画プロセッサ910は、αブレンディング(半透明処理)、デプスキューイング、テクスチャマッピング、フォグ処理、バイリニア・フィルタリング、トライリニア・フィルタリング、アンチエリアシング、シェーディング処理なども行う。1フレーム分の画像がフレームバッファ922に書き込まれるとその画像はディスプレイ912に表示される。
The drawing
サウンドプロセッサ930は、多チャンネルのADPCM音源などを内蔵し、BGM、効果音、音声などのゲーム音を生成し、スピーカ932を介して出力する。ゲームコントローラ942やメモリカード944からのデータはシリアルインターフェース940を介して入力される。
The
ROM950にはシステムプログラムなどが格納される。業務用ゲームシステムの場合にはROM950が情報記憶媒体として機能し、ROM950に各種プログラムが格納される。なおROM950の代わりにハードディスクを利用してもよい。RAM960は各種プロセッサの作業領域となる。DMAコントローラ970は、プロセッサ、メモリ間でのDMA転送を制御する。DVDドライブ980は、プログラム、画像データ、或いは音データなどが格納されるDVD982にアクセスする。通信インターフェース990はネットワーク(通信回線、高速シリアルバス)を介して外部との間でデータ転送を行う。
The
なお本実施形態の各部(各手段)の処理は、その全てをハードウェアのみにより実現してもよいし、情報記憶媒体に格納されるプログラムや通信インターフェースを介して配信されるプログラムにより実現してもよい。或いは、ハードウェアとプログラムの両方により実現してもよい。 The processing of each unit (each unit) in this embodiment may be realized entirely by hardware, or may be realized by a program stored in an information storage medium or a program distributed via a communication interface. Also good. Alternatively, it may be realized by both hardware and a program.
そして本実施形態の各部の処理をハードウェアとプログラムの両方により実現する場合には、情報記憶媒体には、ハードウェア(コンピュータ)を本実施形態の各部として機能させるためのプログラムが格納される。より具体的には、上記プログラムが、ハードウェアである各プロセッサ902、904、906、910、930に処理を指示すると共に、必要であればデータを渡す。そして、各プロセッサ902、904、906、910、930は、その指示と渡されたデータとに基づいて本発明の各部の処理を実現する。
When the processing of each part of this embodiment is realized by both hardware and a program, a program for causing the hardware (computer) to function as each part of this embodiment is stored in the information storage medium. More specifically, the program instructs the
7.変形例
上記実施形態で説明した手法は、一例を示したに過ぎず、上記実施形態の手法と同様の効果を奏する均等な手法を採用した場合においても本発明の範囲に含めることができる。また本発明は、上記実施形態で説明したものに限らず、種々の変形実施が可能である。そして上記実施形態と、変形例として後述する各種の手法は、本発明を実現する手法として適宜組み合わせて採用することができる。
7). Modification The method described in the above embodiment is merely an example, and even when an equivalent method that achieves the same effect as the method of the above embodiment is employed, it can be included in the scope of the present invention. The present invention is not limited to that described in the above embodiment, and various modifications can be made. And the said embodiment and the various methods mentioned later as a modification can be employ | adopted combining suitably as a method of implement | achieving this invention.
例えば上述した実施形態では、プレーヤが選択した予定プレー時間に応じて初期設定処理における条件設定を変更する例を挙げて説明したが、プレーヤがプレーしたゲーム回数をカウントし、カウント値に応じて初期設定処理における条件設定を変更するようにしてもよい。この場合には例えば、ゲーム回数が多くなるにつれ、設定される基準サイズや領域数の値が大きくなるようにしてもよい。 For example, in the above-described embodiment, the example in which the condition setting in the initial setting process is changed according to the scheduled play time selected by the player has been described. However, the number of games played by the player is counted, and the initial value is set according to the count value. The condition setting in the setting process may be changed. In this case, for example, as the number of games increases, the set reference size and the number of areas may be increased.
また、前回のゲームを行ってから今回のゲームを行うまでの時間に応じて初期設定処理における条件設定を変更するようにしてもよい。この場合には例えば、前回のゲームを開始した時刻、または前回のゲームを終了した時刻を記憶しておき、今回のゲームを開始した時刻に基づいて今回のゲームを行うまでの時間を算出してもよいし、前回のゲームを開始したとき、または前回のゲームを終了したときから今回のゲームを行うまでの経過時間をカウントするようにしてもよい。 Further, the condition setting in the initial setting process may be changed according to the time from the previous game to the current game. In this case, for example, the time when the previous game was started or the time when the previous game was finished is stored, and the time until the current game is calculated based on the time when the current game was started is calculated. Alternatively, the elapsed time from the start of the previous game or the end of the previous game to the execution of the current game may be counted.
また、プレーヤキャラクタの経験値、所持金、持ち物、イベントの発生履歴など、ゲームの進行状況に応じて変化する種々のパラメータに応じて初期設定処理における条件設定を変更するようにしてもよい。また、プレーヤが選択した予定プレー時間、ゲーム回数、今回のゲームを行うまでの時間、ゲームの進行状況に応じて変化する種々のパラメータの任意の組合せに応じて初期設定処理における条件設定を変更するようにしてもよい。 In addition, the condition setting in the initial setting process may be changed according to various parameters that change in accordance with the progress of the game, such as the player character's experience value, money, belongings, and event occurrence history. Also, the condition setting in the initial setting process is changed in accordance with the scheduled play time selected by the player, the number of games, the time until the current game is played, and any combination of various parameters that change according to the progress of the game. You may do it.
また上述した実施形態では、第2のテンプレートTP2を地形形状情報MF1(第1のテンプレートTP1)の重心に向けて移動させる際の出発点を、地形形状バッファ174の外縁を構成する座標群のいずれかに設定する例を挙げて説明したが、第2のテンプレートTP2の出発点は、地形形状バッファ174のサイズ、最終的に生成される地形形状情報の目標サイズとなる基準サイズ、領域数、第1のテンプレートTP1のサイズ、第2のテンプレートTP2のサイズに応じて変化させるようにしてもよい。例えば、地形形状バッファ174のサイズが大きい場合には、地形形状バッファ174の外縁よりも内側の座標群のいずれかに設定するようにしてもよい。
In the above-described embodiment, the starting point for moving the second template TP2 toward the center of gravity of the terrain shape information MF1 (first template TP1) is any of the coordinate groups constituting the outer edge of the
また上述した実施形態では、地形形状情報MFとテンプレートTPとの重複率として、重複部分OLのサイズと第2のテンプレートTP2のサイズとの比を用いる例を挙げて説明したが、重複率としては、重複部分OLのサイズと地形形状情報MFのサイズとの比や、重複部分OLのサイズと合成形状情報SYのサイズとの比など、種々のものを採用することができる。同様に、マスク情報MSとテンプレートTPとの非重複率として、非重複部分NOのサイズと第2のテンプレートTP2との比のみならず、非重複部分NOのサイズと地形形状情報MFのサイズとの比や、非重複部分NOのサイズと合成形状情報SYのサイズとの比など、種々のものを採用することができる。 In the above-described embodiment, the example in which the ratio between the size of the overlapped portion OL and the size of the second template TP2 is used as the overlap rate between the topographic shape information MF and the template TP has been described. Various ratios such as a ratio between the size of the overlapped portion OL and the size of the topographic shape information MF and a ratio between the size of the overlapped portion OL and the size of the combined shape information SY can be employed. Similarly, as the non-overlap ratio between the mask information MS and the template TP, not only the ratio between the size of the non-overlap portion NO and the second template TP2, but also the size of the non-overlap portion NO and the size of the topographic shape information MF Various ratios such as a ratio and a ratio between the size of the non-overlapping portion NO and the size of the combined shape information SY can be employed.
また上述した実施形態では、1回の第2の選択処理において、1つの第2のテンプレートTP2をテンプレート記憶部173に記憶された複数のテンプレートから選択し、評価処理において、1つの第2のテンプレートTP2に関する各方向についての合成形状情報SYを評価する例を挙げて説明したが、1回の第2の選択処理において、2以上の第2のテンプレートTP2を選択するようにしてもよい。この場合には評価処理において、地形形状バッファ174上で2つ以上の第2のテンプレートTP2をそれぞれ地形形状情報MFが設定された位置に向けて複数の方向から移動させ、各第2のテンプレートTP2に関して、第2のテンプレートTP2と地形形状情報MFとが重なったときの合成形状情報SYを各方向について生成する。そして、各第2のテンプレートTP2に関して、各方向についての合成形状情報SYを評価する。そして、更新設定処理において、各第2のテンプレートTP2に関する合成形状情報SYの評価の結果に基づいて、各第2のテンプレートTP2に関して最も評価が高い1の方向についての合成形状情報SYを選択する。そして、各第2のテンプレートTP2に関して最も評価が高い合成形状情報SYから1の合成形状情報SYを選択し、地形形状情報MFとして更新するようにしてもよい。
In the above-described embodiment, one second template TP2 is selected from a plurality of templates stored in the
また本発明は種々のゲームに適用できる。また本発明は、業務用ゲームシステム、家庭用ゲームシステム、多数のプレーヤが参加する大型アトラクションシステム、シミュレータ、マルチメディア端末、ゲーム画像を生成するシステムボード、携帯電話等の種々の画像生成システムに適用できる。 The present invention can be applied to various games. Further, the present invention is applied to various image generation systems such as a business game system, a home game system, a large attraction system in which a large number of players participate, a simulator, a multimedia terminal, a system board for generating a game image, and a mobile phone. it can.
GS ゲームシステム、CT 操作部、PS 本体装置、MN モニタ、
GL 左グリップ、GR 右グリップ、DK 方向キー、
ASL 左アナログスティック、ASL 右アナログスティック、BT ボタン、
L1 L1ボタン、L2 L2ボタン、R1 R1ボタン、R2 R2ボタン、
TPテンプレート、CL セル、MF 地形形状情報、CO 座標、OL 重複部分、
SY 合成形状情報、SO 特殊重複部分、BL 隙間空間、MS マスク情報、
100 処理部、102 ゲーム処理部、104 マスク設定部、
106 領域数設定部、108 基準サイズ設定部、110 地形形状生成部、
112 第1の評価基準設定部、114 第2の評価基準設定部、
116 地形オブジェクト生成部、118 位置決定部、120 移動・動作処理部、
122 オブジェクト空間設定部、124 仮想カメラ制御部、
126 3次元画像描画部、128 音生成部、170 記憶部、172 主記憶部、
173 テンプレート記憶部、174 地形形状バッファ、175 マスク記憶部、
176 地形オブジェクトバッファ、177 描画バッファ
GS game system, CT operation unit, PS main unit, MN monitor,
GL left grip, GR right grip, DK direction key,
ASL left analog stick, ASL right analog stick, BT button,
L1 L1 button, L2 L2 button, R1 R1 button, R2 R2 button,
TP template, CL cell, MF terrain shape information, CO coordinates, OL overlapping part,
SY composite shape information, SO special overlap, BL gap space, MS mask information,
100 processing unit, 102 game processing unit, 104 mask setting unit,
106 area number setting unit, 108 reference size setting unit, 110 terrain shape generation unit,
112 first evaluation criterion setting unit, 114 second evaluation criterion setting unit,
116 terrain object generation unit, 118 position determination unit, 120 movement / motion processing unit,
122 object space setting unit, 124 virtual camera control unit,
126 three-dimensional image drawing unit, 128 sound generation unit, 170 storage unit, 172 main storage unit,
173 Template storage unit, 174 Terrain shape buffer, 175 Mask storage unit,
176 Terrain object buffer, 177 Drawing buffer
Claims (13)
サイズおよび形状の少なくとも一方が異なる複数の形状情報によって構成される複数のテンプレートを記憶する記憶部と、
前記地形形状情報の基準サイズを設定する基準サイズ設定部と、
所与の2次元空間上に前記テンプレートを前記地形形状情報として設定する地形形状設定処理を行って前記地形形状情報を生成する地形形状生成部としてコンピュータを機能させ、
前記地形形状生成部が、
前記地形形状設定処理として、
前記基準サイズよりも小さいサイズの複数のテンプレートを前記記憶部に記憶された複数のテンプレートから選択する選択処理と、
選択した複数のテンプレートのうち少なくとも1つのテンプレートを所与の2次元空間上で移動させ、少なくとも2つのテンプレートが重なったときの合成形状情報を生成し、生成した合成形状情報を評価する評価処理と、
前記評価の結果に基づいて、合成形状情報を前記地形形状情報として設定する設定処理とを行うことを特徴とするプログラム。 A program for generating terrain shape information that is shape information of a terrain set in an object space,
A storage unit that stores a plurality of templates configured by a plurality of pieces of shape information having different sizes and / or shapes;
A reference size setting unit for setting a reference size of the terrain shape information;
Causing the computer to function as a terrain shape generation unit for generating the terrain shape information by performing a terrain shape setting process for setting the template as the terrain shape information on a given two-dimensional space;
The terrain shape generation unit
As the terrain shape setting process,
A selection process for selecting a plurality of templates having a size smaller than the reference size from a plurality of templates stored in the storage unit;
Evaluation processing for moving at least one template among a plurality of selected templates in a given two-dimensional space, generating composite shape information when at least two templates overlap, and evaluating the generated composite shape information; ,
A program for performing setting processing for setting composite shape information as the topographic shape information based on the result of the evaluation.
前記地形形状生成部が、
前記地形形状設定処理として、
前記基準サイズよりも小さいサイズの第1のテンプレートを前記記憶部に記憶された複数のテンプレートから選択する第1の選択処理と、
前記所与の2次元空間上の所与の位置に前記第1のテンプレートを前記地形形状情報として設定する配置設定処理と、
前記所与の2次元空間上に設定された前記地形形状情報のサイズと前記基準サイズとの差よりも小さいサイズの第2のテンプレートを前記記憶部に記憶された複数のテンプレートから選択する第2の選択処理と、
前記所与の2次元空間上で前記第2のテンプレートを前記地形形状情報が設定された位置に向けて複数の方向から移動させ、前記第2のテンプレートと前記地形形状情報とが重なったときの合成形状情報を各方向について生成し、各方向についての前記合成形状情報を評価する評価処理と、
前記評価の結果に基づいて、1の方向についての前記合成形状情報を前記地形形状情報として更新する更新設定処理と、
更新後の前記地形形状情報のサイズが前記基準サイズに対して所与の条件を満たしたか否かを判定する判定処理とを行い、
前記所与の条件が満たされるまで、前記第2の選択処理と、前記評価処理と、前記更新設定処理と、前記判定処理とを繰り返すことを特徴とするプログラム。 In claim 1,
The terrain shape generation unit
As the terrain shape setting process,
A first selection process for selecting a first template having a size smaller than the reference size from a plurality of templates stored in the storage unit;
An arrangement setting process for setting the first template as the terrain shape information at a given position in the given two-dimensional space;
A second template that selects a second template having a size smaller than the difference between the size of the terrain shape information set in the given two-dimensional space and the reference size from a plurality of templates stored in the storage unit; Selection process,
When the second template is moved from a plurality of directions toward the position where the terrain shape information is set on the given two-dimensional space, and the second template and the terrain shape information overlap each other An evaluation process for generating combined shape information for each direction and evaluating the combined shape information for each direction;
An update setting process for updating the composite shape information for one direction as the topographic shape information based on the result of the evaluation;
A determination process for determining whether the size of the updated terrain shape information satisfies a given condition with respect to the reference size;
A program that repeats the second selection process, the evaluation process, the update setting process, and the determination process until the given condition is satisfied.
前記地形形状生成部が、
前記評価処理において、
各方向についての前記合成形状情報を、前記第2のテンプレートと前記地形形状情報との重複部分のサイズに応じて評価することを特徴とするプログラム。 In claim 2,
The terrain shape generation unit
In the evaluation process,
The composite shape information for each direction is evaluated according to a size of an overlapping portion between the second template and the terrain shape information.
サイズおよび形状の少なくとも一方が異なる複数の形状情報によって構成される複数のテンプレートを記憶する記憶部と、
前記地形を構成する領域の数を設定する領域数設定部と、
前記領域ごとに各領域の前記地形形状情報の基準サイズを設定する基準サイズ設定部と、
所与の2次元空間上に前記テンプレートを前記地形形状情報として設定する地形形状設定処理を前記領域ごとに行って前記地形形状情報を生成する地形形状生成部としてコンピュータを機能させ、
前記地形形状生成部が、
前記地形形状設定処理として、
1の領域について前記基準サイズよりも小さいサイズの第1のテンプレートを前記記憶部に記憶された複数のテンプレートから選択する第1の選択処理と、
前記所与の2次元空間上の所与の位置に前記第1のテンプレートを前記1の領域の地形形状情報として設定する配置設定処理と、
前記所与の2次元空間上に設定された前記1の領域の地形形状情報のサイズと当該1の領域の基準サイズとの差よりも小さいサイズの第2のテンプレートを前記記憶部に記憶された複数のテンプレートから選択する第2の選択処理と、
前記所与の2次元空間上で前記第2のテンプレートを前記1の領域の地形形状情報が設定された位置に向けて複数の方向から移動させ、前記第2のテンプレートと前記1の領域の地形形状情報とが重なったときの合成形状情報を各方向について生成し、各方向についての前記合成形状情報を評価する評価処理と、
前記評価の結果に基づいて、1の方向についての前記合成形状情報を前記1の領域の地形形状情報として更新する更新設定処理と、
更新後の前記1の領域の地形形状情報のサイズが当該1の領域の基準サイズに対して所与の条件を満たしたか否かを判定する判定処理とを行い、
前記1の領域について前記所与の条件が満たされるまで、前記第2の選択処理と、前記評価処理と、前記更新設定処理と、前記判定処理とを繰り返し、
前記地形形状生成部が、
前記1の領域について前記所与の条件が満たされると、次の1の領域について前記地形形状設定処理を行い、全ての領域について前記地形形状設定処理を行うまで、前記地形形状設定処理を繰り返すことを特徴とするプログラム。 A program for generating terrain shape information that is shape information of a terrain set in an object space,
A storage unit that stores a plurality of templates configured by a plurality of pieces of shape information having different sizes and / or shapes;
An area number setting unit for setting the number of areas constituting the terrain;
A reference size setting unit for setting a reference size of the terrain shape information of each region for each region;
The computer functions as a terrain shape generation unit that performs the terrain shape setting process for setting the template as the terrain shape information on a given two-dimensional space for each of the regions,
The terrain shape generation unit
As the terrain shape setting process,
A first selection process for selecting a first template having a size smaller than the reference size for one region from a plurality of templates stored in the storage unit;
An arrangement setting process for setting the first template as terrain shape information of the first region at a given position in the given two-dimensional space;
A second template having a size smaller than the difference between the size of the terrain shape information of the first region set on the given two-dimensional space and the reference size of the first region is stored in the storage unit A second selection process for selecting from a plurality of templates;
In the given two-dimensional space, the second template is moved from a plurality of directions toward a position where the terrain shape information of the first area is set, and the terrain of the second template and the first area. Generating the combined shape information when the shape information overlaps for each direction, and an evaluation process for evaluating the combined shape information for each direction;
An update setting process for updating the composite shape information for one direction as the topographic shape information of the one region based on the result of the evaluation;
A determination process for determining whether or not the size of the topographic shape information of the one region after the update satisfies a given condition with respect to the reference size of the one region;
Until the given condition is satisfied for the one region, the second selection process, the evaluation process, the update setting process, and the determination process are repeated.
The terrain shape generation unit
When the given condition is satisfied for the one area, the terrain shape setting process is performed for the next one area, and the terrain shape setting process is repeated until the terrain shape setting process is performed for all the areas. A program characterized by
前記地形形状生成部が、
前記1の領域についての前記地形形状設定処理では、
前記評価処理において、
各方向についての前記合成形状情報を、前記第2のテンプレートと前記1の領域の地形形状情報との重複部分のサイズに応じて評価し、
前記次の1の領域についての前記地形形状設定処理では、
前記評価処理において、
前記所与の2次元空間上で前記第2のテンプレートを前記次の1の領域の地形形状情報が設定された位置に向けて複数の方向から移動させ、前記第2のテンプレートと前記次の1の領域の地形形状情報とが重なったときの合成形状情報を各方向について生成し、各方向についての前記合成形状情報を、前記第2のテンプレートと前記各領域の地形形状情報との重複部分のサイズに応じて評価することを特徴とするプログラム。 In claim 4,
The terrain shape generation unit
In the topographic shape setting process for the one area,
In the evaluation process,
The composite shape information for each direction is evaluated according to the size of the overlapping portion between the second template and the topographic shape information of the first region,
In the terrain shape setting process for the next one region,
In the evaluation process,
In the given two-dimensional space, the second template is moved from a plurality of directions toward a position where the topographic shape information of the next one region is set, and the second template and the next one are moved. The composite shape information when the topographic shape information of the region overlaps is generated for each direction, and the composite shape information for each direction is obtained by overlapping the second template and the topographic shape information of each region. A program characterized by evaluation according to size.
前記評価処理における前記重複部分のサイズに応じた評価の基準となる第1の評価基準を設定する第1の評価基準設定部としてコンピュータを更に機能させることを特徴とするプログラム。 In any one of Claims 3 and 5,
A program that further causes a computer to function as a first evaluation criterion setting unit that sets a first evaluation criterion serving as an evaluation criterion according to the size of the overlapping portion in the evaluation process.
前記地形形状生成部が、
前記第2の選択処理において、
複数の前記第2のテンプレートを前記記憶部に記憶された複数のテンプレートから選択し、
前記評価処理において、
前記所与の2次元空間上で複数の前記第2のテンプレートをそれぞれ前記地形形状情報が設定された位置に向けて複数の方向から移動させ、複数の前記第2のテンプレートに関して前記第2のテンプレートと前記地形形状情報とが重なったときの合成形状情報を各方向について生成し、複数の前記第2のテンプレートに関して各方向についての前記合成形状情報を評価し、
前記更新設定処理において、
前記評価の結果に基づいて、複数の前記第2のテンプレートに関する前記合成形状情報から複数の前記合成形状情報を選択し、複数の前記合成形状情報から1の前記第2のテンプレートに関する1の方向についての前記合成形状情報を更に選択し、前記地形形状情報として更新することを特徴とするプログラム。 In any one of Claims 2 and 4,
The terrain shape generation unit
In the second selection process,
Selecting a plurality of second templates from a plurality of templates stored in the storage unit;
In the evaluation process,
A plurality of the second templates are respectively moved from a plurality of directions toward the position where the topographic shape information is set on the given two-dimensional space, and the second templates are related to the plurality of the second templates. And composite shape information when the topographic shape information overlaps for each direction, evaluate the composite shape information for each direction with respect to a plurality of the second template,
In the update setting process,
Based on the result of the evaluation, a plurality of the combined shape information is selected from the combined shape information regarding the plurality of second templates, and one direction regarding one second template is selected from the plurality of combined shape information. The composite shape information is further selected and updated as the topographic shape information.
前記所与の2次元空間上において前記地形形状情報を設定する範囲を規定するマスク情報を設定するマスク設定部としてコンピュータを更に機能させ、
前記基準サイズ設定部が、
前記基準サイズとして前記マスク情報のサイズを設定し、
前記地形形状生成部が、
前記配置設定処理において、
前記マスク情報で規定される範囲内の所与の位置に前記第1のテンプレートを前記地形形状情報として設定し、
前記評価処理において、
各方向についての前記合成形状情報を、前記第2のテンプレートと前記マスク情報との非重複部分のサイズに応じて評価することを特徴とするプログラム。 In any one of Claims 2 and 4,
Further causing a computer to function as a mask setting unit for setting mask information defining a range for setting the terrain shape information on the given two-dimensional space;
The reference size setting unit is
Set the size of the mask information as the reference size,
The terrain shape generation unit
In the arrangement setting process,
The first template is set as the terrain shape information at a given position within the range defined by the mask information,
In the evaluation process,
A program characterized in that the composite shape information for each direction is evaluated according to the size of a non-overlapping portion between the second template and the mask information.
前記評価処理における前記非重複部分のサイズに応じた評価の基準となる第2の評価基準サイズを設定する第2の評価基準設定部としてコンピュータを更に機能させることを特徴とするプログラム。 In claim 8,
A program that further causes a computer to function as a second evaluation reference setting unit that sets a second evaluation reference size serving as an evaluation reference according to the size of the non-overlapping portion in the evaluation process.
前記地形形状生成部が、
前記所与の2次元空間上において前記地形形状情報が設定されていない空間のうち、周囲が前記地形形状情報で囲まれ、かつ所定のサイズよりも小さいサイズの空間である隙間空間を判別する隙間空間判別処理と、
前記隙間空間を前記地形形状情報として設定する補正設定処理と、
を更に行うことを特徴とするプログラム。 In any one of Claims 1-9,
The terrain shape generation unit
A gap for identifying a gap space that is surrounded by the terrain shape information and is smaller than a predetermined size among the spaces in which the terrain shape information is not set on the given two-dimensional space. Spatial discrimination processing;
Correction setting processing for setting the gap space as the terrain shape information;
The program characterized by further performing.
生成された前記地形形状情報に高さ情報を設定し、地形オブジェクトを生成する地形オブジェクト生成部と、
前記地形オブジェクトに配置するオブジェクトの位置を決定する位置決定部と、
オブジェクト空間に前記地形オブジェクトを含むオブジェクトを設定するオブジェクト空間設定部と、
前記オブジェクト空間を仮想カメラから見た画像を描画する描画部としてコンピュータを更に機能させることを特徴とするプログラム。 In any one of Claims 1-10,
Height information is set in the generated terrain shape information, and a terrain object generation unit for generating a terrain object;
A position determining unit that determines the position of an object to be placed on the terrain object;
An object space setting unit for setting an object including the terrain object in the object space;
A program that further causes a computer to function as a drawing unit that draws an image of the object space viewed from a virtual camera.
サイズおよび形状の少なくとも一方が異なる複数の形状情報によって構成される複数のテンプレートを記憶する記憶部と、
前記地形形状情報の基準サイズを設定する基準サイズ設定部と、
所与の2次元空間上に前記テンプレートを前記地形形状情報として設定する地形形状設定処理を行って前記地形形状情報を生成する地形形状生成部とを含み、
前記地形形状生成部が、
前記地形形状設定処理として、
前記基準サイズよりも小さいサイズの複数のテンプレートを前記記憶部に記憶された複数のテンプレートから選択する選択処理と、
選択した複数のテンプレートのうち少なくとも1つのテンプレートを所与の2次元空間上で移動させ、少なくとも2つのテンプレートが重なったときの合成形状情報を生成し、生成した合成形状情報を評価する評価処理と、
前記評価の結果に基づいて、合成形状情報を前記地形形状情報として設定する設定処理とを行うことを特徴とする画像生成システム。 An image generation system for generating terrain shape information, which is terrain shape information set in an object space,
A storage unit that stores a plurality of templates configured by a plurality of pieces of shape information having different sizes and / or shapes;
A reference size setting unit for setting a reference size of the terrain shape information;
A terrain shape generation unit for generating the terrain shape information by performing a terrain shape setting process for setting the template as the terrain shape information on a given two-dimensional space;
The terrain shape generation unit
As the terrain shape setting process,
A selection process for selecting a plurality of templates having a size smaller than the reference size from a plurality of templates stored in the storage unit;
Evaluation processing for moving at least one template among a plurality of selected templates in a given two-dimensional space, generating composite shape information when at least two templates overlap, and evaluating the generated composite shape information; ,
An image generation system characterized by performing a setting process for setting composite shape information as the topographic shape information based on a result of the evaluation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007303091A JP2009129167A (en) | 2007-11-22 | 2007-11-22 | Program, information storage medium, and image generation system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007303091A JP2009129167A (en) | 2007-11-22 | 2007-11-22 | Program, information storage medium, and image generation system |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2009129167A true JP2009129167A (en) | 2009-06-11 |
Family
ID=40820021
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007303091A Withdrawn JP2009129167A (en) | 2007-11-22 | 2007-11-22 | Program, information storage medium, and image generation system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2009129167A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2020080008A (en) * | 2018-11-12 | 2020-05-28 | 任天堂株式会社 | Information processor, information processing program, information processing system, and information processing method |
JP2020080007A (en) * | 2018-11-12 | 2020-05-28 | 任天堂株式会社 | Information processor, information processing program, information processing system, and information processing method |
JP2020154923A (en) * | 2019-03-22 | 2020-09-24 | 任天堂株式会社 | Image processing program, image processing system, image processing device, and image processing method |
CN112530012A (en) * | 2020-12-24 | 2021-03-19 | 网易(杭州)网络有限公司 | Virtual earth surface processing method and device and electronic device |
US11244499B2 (en) | 2018-11-12 | 2022-02-08 | Nintendo Co., Ltd. | Information processing apparatus, non-transitory computer-readable storage medium storing information processing program, information processing system, and information processing method |
-
2007
- 2007-11-22 JP JP2007303091A patent/JP2009129167A/en not_active Withdrawn
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2020080008A (en) * | 2018-11-12 | 2020-05-28 | 任天堂株式会社 | Information processor, information processing program, information processing system, and information processing method |
JP2020080007A (en) * | 2018-11-12 | 2020-05-28 | 任天堂株式会社 | Information processor, information processing program, information processing system, and information processing method |
US11244499B2 (en) | 2018-11-12 | 2022-02-08 | Nintendo Co., Ltd. | Information processing apparatus, non-transitory computer-readable storage medium storing information processing program, information processing system, and information processing method |
JP7223555B2 (en) | 2018-11-12 | 2023-02-16 | 任天堂株式会社 | Information processing device, information processing program, information processing system, and information processing method |
JP7223556B2 (en) | 2018-11-12 | 2023-02-16 | 任天堂株式会社 | Information processing device, information processing program, information processing system, and information processing method |
JP2020154923A (en) * | 2019-03-22 | 2020-09-24 | 任天堂株式会社 | Image processing program, image processing system, image processing device, and image processing method |
US11219829B2 (en) | 2019-03-22 | 2022-01-11 | Nintendo Co., Ltd. | Non-transitory computer-readable storage medium storing image processing program, image processing system, image processing apparatus, and image processing method |
JP7223610B2 (en) | 2019-03-22 | 2023-02-16 | 任天堂株式会社 | Image processing program, image processing system, image processing apparatus, and image processing method |
CN112530012A (en) * | 2020-12-24 | 2021-03-19 | 网易(杭州)网络有限公司 | Virtual earth surface processing method and device and electronic device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4651435B2 (en) | Program, information storage medium, and image generation system | |
JP4771821B2 (en) | Program, information storage medium, and image generation system | |
JP4804120B2 (en) | Program, information storage medium, and image generation system | |
JP4804122B2 (en) | Program, texture data structure, information storage medium, and image generation system | |
JP4305903B2 (en) | Image generation system, program, and information storage medium | |
JP2009129167A (en) | Program, information storage medium, and image generation system | |
JP4749198B2 (en) | Program, information storage medium, and image generation system | |
JP4502678B2 (en) | Program, information storage medium, and image generation system | |
JP2008027064A (en) | Program, information recording medium, and image forming system | |
JP4073031B2 (en) | Program, information storage medium, and image generation system | |
JP4743770B2 (en) | Image generation system, program, and information storage medium | |
JP4754384B2 (en) | Program, information recording medium, and image generation system | |
JP2006323512A (en) | Image generation system, program, and information storage medium | |
JP4651436B2 (en) | Program, information storage medium, and image generation system | |
JP4721476B2 (en) | Image generation system and information storage medium | |
JP4913399B2 (en) | Program, information storage medium, and image generation system | |
JP4528008B2 (en) | Program, information storage medium, and image generation system | |
JP4632855B2 (en) | Program, information storage medium, and image generation system | |
US20100144448A1 (en) | Information storage medium, game device, and game system | |
JP4592087B2 (en) | Image generation system, program, and information storage medium | |
JP2010231364A (en) | Image generation system, program and information recording medium | |
JP4450535B2 (en) | Image generation system and information storage medium | |
JP4624527B2 (en) | GAME SYSTEM AND INFORMATION STORAGE MEDIUM | |
JP2007164736A (en) | Image generation system, program and information storage medium | |
JP4521811B2 (en) | Program, information storage medium, and image generation system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20110201 |