Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7062482B2 - Program, information processing device, and moving area generation method - Google Patents
[go: Go Back, main page]

JP7062482B2 - Program, information processing device, and moving area generation method - Google Patents

Program, information processing device, and moving area generation method Download PDF

Info

Publication number
JP7062482B2
JP7062482B2 JP2018059198A JP2018059198A JP7062482B2 JP 7062482 B2 JP7062482 B2 JP 7062482B2 JP 2018059198 A JP2018059198 A JP 2018059198A JP 2018059198 A JP2018059198 A JP 2018059198A JP 7062482 B2 JP7062482 B2 JP 7062482B2
Authority
JP
Japan
Prior art keywords
area
information
height
search area
search
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2018059198A
Other languages
Japanese (ja)
Other versions
JP2019170427A (en
Inventor
一寿 上原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Koei Tecmo Games Co Ltd
Original Assignee
Koei Tecmo Games Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Koei Tecmo Games Co Ltd filed Critical Koei Tecmo Games Co Ltd
Priority to JP2018059198A priority Critical patent/JP7062482B2/en
Publication of JP2019170427A publication Critical patent/JP2019170427A/en
Application granted granted Critical
Publication of JP7062482B2 publication Critical patent/JP7062482B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Description

本発明は、プログラム、情報処理装置、及び移動領域生成方法に関する。 The present invention relates to a program, an information processing apparatus, and a method for generating a mobile region.

ゲームに表示されるノンプレイヤーキャラクターが移動することのできる移動可能領域を設定する技術が知られている。 A technique for setting a movable area in which a non-player character displayed in a game can move is known.

特許文献1には、「「ナビゲーションメッシュ」の概念について述べる必要がある。ナビゲーションメッシュはキャラクタの原型(例えば、ヒーロ、悪役、傍観者、……)に対して規定され、及び/又はキャラクタの大きさ(例えば、小さい、中くらい、大きい、……)にも依存する。ナビゲーションメッシュはキャラクタが移動又は操縦されることが許容されるゲーム環境内の領域又はパスの集合体を指定している。」と記載されている。 Patent Document 1 needs to describe the concept of "navigation mesh". The navigation mesh is defined for the character's prototype (eg, hero, villain, bystander, ...) and / or also depends on the character's size (eg, small, medium, large, ...). The navigation mesh specifies a collection of areas or paths in the game environment where the character is allowed to move or steer. ".

特開2017-217481号公報JP-A-2017-217481

制作者は、コンピューターグラフィックスの編集用ソフトウェアを用いて、ゲーム内の背景を含む地図情報を参照しながら、移動可能領域を定め、該移動可能領域を示す情報を生成する。地図情報が広大であれば、移動可能領域の決定には多大な労力が必要となる。 The creator uses computer graphics editing software to determine a movable area while referring to map information including an in-game background, and generates information indicating the movable area. If the map information is vast, it takes a lot of effort to determine the movable area.

特許文献1に開示された技術は、移動可能領域の生成に関するものではなく、製作者の労力を削減しうるものではない。 The technique disclosed in Patent Document 1 does not relate to the generation of a movable region, and cannot reduce the labor of the producer.

そこで、本発明は、移動可能領域を示す情報の生成を効率的に行うことを目的とする。 Therefore, an object of the present invention is to efficiently generate information indicating a movable area.

上記課題を解決するために、本発明の一態様に係るプログラムは、情報処理装置に実行させるプログラムであって、探索領域を示すオブジェクトの指定を受け付ける探索領域設定部と、前記探索領域及び該探索領域内のオブジェクトの表層の高さに関する情報を抽出する高さ情報抽出部と、前記高さの差が所定範囲内にある領域を用いて、キャラクターオブジェクトが移動可能な領域を示す移動領域情報を生成する移動領域情報生成部として、前記情報処理装置を機能させることを特徴とする。 In order to solve the above problems, the program according to one aspect of the present invention is a program to be executed by an information processing apparatus, and is a search area setting unit that accepts designation of an object indicating a search area, the search area, and the search. Using the height information extraction unit that extracts information about the height of the surface layer of the object in the area and the area where the height difference is within a predetermined range, the moving area information indicating the area where the character object can move is obtained. The information processing apparatus is characterized by functioning as a moving area information generation unit to be generated.

上記のプログラムにおいて、前記高さ情報抽出部は、前記探索領域内の所定の方向に進行する複数の光線の各々と、前記各オブジェクトの表層との交点を抽出し、前記移動領域情報生成部は、隣り合う交点との前記高さの差が所定範囲内にある複数の前記交点を含む領域に前記移動領域情報を生成することを特徴としてもよい。 In the above program, the height information extraction unit extracts the intersection of each of the plurality of light rays traveling in a predetermined direction in the search area and the surface layer of each object, and the moving area information generation unit , The moving area information may be generated in a region including a plurality of the intersections whose height difference from the adjacent intersections is within a predetermined range.

上記のプログラムにおいて、前記探索領域内の特定のオブジェクトを含むよう通過除外領域を示すオブジェクトを生成する通過除外領域生成部を備え、前記高さ情報抽出部は、前記探索領域内の所定の方向に進行する複数の光線の各々と、前記各オブジェクトの表層との交点を抽出し、前記移動領域情報生成部は、前記通過除外領域と前記複数の光線との交点を除く他の前記交点を含む領域に前記移動領域情報を生成することを特徴としてもよい。 In the above program, the passage exclusion area generation unit for generating an object indicating the passage exclusion area so as to include a specific object in the search area is provided, and the height information extraction unit is provided in a predetermined direction in the search area. An intersection of each of the plurality of traveling light rays and the surface layer of the object is extracted, and the moving area information generation unit includes a region including the other intersections other than the intersection of the passage exclusion region and the plurality of rays. It may be characterized in that the moving area information is generated.

上記のプログラムにおいて、前記探索領域設定部は、前記光線の密度の設定を受け付けることを特徴としてもよい。 In the above program, the search area setting unit may be characterized in that it accepts the setting of the density of the light rays.

上記のプログラムにおいて、前記移動領域情報生成部は、前記探索領域と前記複数の光線との交点を含む領域に前記移動領域情報を生成することを特徴としてもよい。 In the above program, the moving area information generation unit may be characterized in that the moving area information is generated in a region including an intersection of the search region and the plurality of light rays.

上記のプログラムにおいて、前記移動領域情報生成部は、複数の前記交点から所定の方法で抽出した前記交点を結ぶ線を輪郭とする前記領域に前記移動領域情報を生成することを特徴としてもよい。 In the above program, the moving area information generation unit may be characterized in that the moving area information is generated in the area whose contour is a line connecting the intersections extracted from a plurality of the intersections by a predetermined method.

上記のプログラムにおいて、前記高さ情報抽出部は、前記探索領域に前記オブジェクトの一部が含まれる場合、前記探索領域に含まれる前記オブジェクトの一部の高さに関する情報を抽出し、前記探索領域に含まれない前記オブジェクトの部分の高さに関する情報を抽出しないことを特徴してもよい。 In the above program, when the search area includes a part of the object, the height information extraction unit extracts information about the height of a part of the object included in the search area, and the search area. It may be characterized in that it does not extract information about the height of a portion of the object that is not included in.

上記の課題を解決する本発明の他の態様は、情報処理装置であって、探索領域を示すオブジェクトの指定を受け付ける探索領域設定部と、前記探索領域及び前記探索領域内のオブジェクトの表層の高さに関する情報を抽出する高さ情報抽出部と、前記高さの差が所定範囲内にある領域を用いて、キャラクターオブジェクトが移動可能な領域を示す移動領域情報を生成する移動領域情報生成部と、を備えることを特徴とする。 Another aspect of the present invention that solves the above problems is an information processing apparatus, in which a search area setting unit that accepts designation of an object indicating a search area and a height of the surface layer of the search area and the objects in the search area. A height information extraction unit that extracts information about the height, and a moving area information generation unit that generates moving area information indicating a movable area of a character object by using an area where the height difference is within a predetermined range. , Is characterized by the provision of.

上記の課題を解決する本発明の他の態様は、情報処理装置において実行される移動領域生成方法であって、前記情報処理装置は、探索領域設定部と、高さ情報抽出部と、移動領域情報生成部と、を備え、前記探索領域設定部は、探索領域を示すオブジェクトの指定を受け付ける探索領域設定手順を実行し、前記高さ情報抽出部は、前記探索領域及び前記探索領域内のオブジェクトの表層の高さに関する情報を抽出する高さ情報抽出実行手順を実行し、前記移動領域情報生成部は、前記高さの差が所定範囲内にある領域を用いて、キャラクターオブジェクトが移動可能な領域を示す移動領域情報を生成する移動領域情報生成手順を実行することを特徴とする。 Another aspect of the present invention that solves the above problems is a moving area generation method executed in an information processing apparatus, wherein the information processing apparatus includes a search area setting unit, a height information extraction unit, and a moving area. The search area setting unit includes an information generation unit, the search area setting unit executes a search area setting procedure for accepting designation of an object indicating a search area, and the height information extraction unit is a search area and an object in the search area. The height information extraction execution procedure for extracting information about the height of the surface layer of the above is executed, and the moving area information generation unit can move the character object using the area where the height difference is within a predetermined range. It is characterized by executing a moving area information generation procedure for generating moving area information indicating an area.

本発明の一態様によれば、移動可能領域を示す情報の生成を効率的に行うことができる。 According to one aspect of the present invention, it is possible to efficiently generate information indicating a movable area.

情報処理装置の機能ブロック構成の一例を示す図である。It is a figure which shows an example of the functional block composition of an information processing apparatus. 移動領域情報生成処理の概要を示す図である。It is a figure which shows the outline of the moving area information generation processing. 情報処理装置のハードウェア構成の一例を示す図である。It is a figure which shows an example of the hardware composition of an information processing apparatus. 移動領域情報生成処理の一例を示すフローチャートである。It is a flowchart which shows an example of the moving area information generation processing. シーンデータの表示例を示す図(その1)である。It is a figure (the 1) which shows the display example of a scene data. シーンデータの表示例を示す図(その2)である。It is a figure (the 2) which shows the display example of a scene data. シーンデータの表示例を示す図(その3)である。It is a figure (3) which shows the display example of a scene data. シーンデータの表示例を示す図(その4)である。It is a figure (4) which shows the display example of a scene data. シーンデータの表示例を示す図(その5)である。It is a figure (the 5) which shows the display example of a scene data. 変形例における移動領域情報生成処理の概要を示す図である。It is a figure which shows the outline of the moving area information generation processing in a modification. 変形例における移動領域情報生成処理の一例を示すフローチャートである。It is a flowchart which shows an example of the moving area information generation processing in a modification. 変形例におけるシーンデータの表示例を示す図である。It is a figure which shows the display example of the scene data in the modification.

以下、図面に基づいて本発明の実施の形態を説明する。図1は、情報処理装置100の機能ブロック構成の一例を示す図である。情報処理装置100は、例えばPC(Personal Computer)等の装置である。一例として、情報処理装置100は、ゲームの制作者により操作される。 Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a diagram showing an example of a functional block configuration of the information processing apparatus 100. The information processing device 100 is, for example, a device such as a PC (Personal Computer). As an example, the information processing device 100 is operated by the creator of the game.

また、本実施形態において、オブジェクトとは、3Dコンピューターグラフィックスの編集用ソフトウェアを用いて表示される各種物体である。オブジェクトは、3本以上の線(エッジ)に囲われた領域に、描画用の面情報(ポリゴン)を有するものであってもよく、例えばドットやワイヤーフレームなど、面情報を有さないものであってもよい。 Further, in the present embodiment, the object is various objects displayed by using the editing software of 3D computer graphics. The object may have surface information (polygons) for drawing in an area surrounded by three or more lines (edges), and may not have surface information such as dots and wire frames. There may be.

情報処理装置100は、制御部110と、入力部120と、出力部130とを備える。制御部110は、情報処理装置100の全体を統括的に制御する。入力部120は、入力装置を用いて制作者からの入力操作を受け付ける。出力部130は、出力装置を介して情報処理装置100の有する情報を出力する。 The information processing apparatus 100 includes a control unit 110, an input unit 120, and an output unit 130. The control unit 110 comprehensively controls the entire information processing apparatus 100. The input unit 120 receives an input operation from the creator using the input device. The output unit 130 outputs the information possessed by the information processing device 100 via the output device.

制御部110は、探索領域設定部111と、高さ情報抽出部112と、通過除外領域生成部113と、移動領域情報生成部114と、を備える。探索領域設定部111は、移動領域情報の生成の対象となる探索領域の設定を受け付ける。 The control unit 110 includes a search area setting unit 111, a height information extraction unit 112, a passage exclusion area generation unit 113, and a movement area information generation unit 114. The search area setting unit 111 accepts the setting of the search area for which the movement area information is generated.

一例として、制作者は、編集用ソフトウェアを操作し、幅情報、奥行き情報、及び高さ情報を有する3D空間上で、背景のオブジェクトに対して、机や椅子、縁石等の配置物であるオブジェクトが設置されたシーンデータを表示する。制作者は、シーンデータに対して探索領域となるオブジェクトを配置して表示させる。探索領域となるオブジェクトは、幅情報、奥行き情報、及び高さ情報を有する立体形状である。制作者は、探索領域の位置や大きさ、及び形状等を設定可能である。 As an example, the creator operates editing software, and an object that is an arrangement such as a desk, a chair, or a rim stone with respect to a background object in a 3D space having width information, depth information, and height information. Displays the installed scene data. The creator arranges and displays an object as a search area on the scene data. The object to be the search area is a three-dimensional shape having width information, depth information, and height information. The creator can set the position, size, shape, etc. of the search area.

探索領域設定部111は、探索領域となるオブジェクトを指定した探索領域決定指示を受け付けると、該オブジェクトを探索領域として設定する。また、探索領域設定部111は、探索領域内に仮想的に走査される複数の光線の密度の設定を受け付ける。 When the search area setting unit 111 receives a search area determination instruction designating an object to be a search area, the search area setting unit 111 sets the object as a search area. Further, the search area setting unit 111 accepts the setting of the densities of a plurality of light rays that are virtually scanned in the search area.

高さ情報抽出部112は、探索領域を示すオブジェクト、及び探索領域内のオブジェクトの表層の高さに関する情報を抽出する。例えば、高さ情報抽出部112は、探索領域内の所定の方向に複数の光線を仮想的に走査する、いわゆるレイキャスト処理を実行する。レイキャスト処理は、探索領域の一面(例えば上面)上の複数の点をそれぞれ始点とし、該一面に対向する他面(例えば下面)に向けて、他面に対して各々の始点から垂直に光線を進行させることにより実行される。 The height information extraction unit 112 extracts information regarding the height of the surface layer of the object indicating the search area and the object in the search area. For example, the height information extraction unit 112 executes a so-called ray cast process of virtually scanning a plurality of light rays in a predetermined direction in the search area. In the raycast process, a plurality of points on one surface (for example, the upper surface) of the search region are set as starting points, and light rays are directed toward the other surface (for example, the lower surface) facing the other surface and perpendicular to the other surface from each starting point. Is executed by advancing.

高さ情報抽出部112は、所定の方向に進行する複数の光線の各々と、探索領域自身及び探索領域内のオブジェクトの表層との交点を抽出する。交点の高さ情報を参照することにより、オブジェクトの表層の高さに関する情報を抽出可能である。 The height information extraction unit 112 extracts the intersection of each of the plurality of light rays traveling in a predetermined direction with the search area itself and the surface layer of the object in the search area. By referring to the height information of the intersection, it is possible to extract the information regarding the height of the surface layer of the object.

なお、高さ情報抽出部112は、探索領域内にオブジェクトの一部が含まれ、他の一部が探索領域からはみ出す場合に、探索領域に含まれるオブジェクトの一部の高さに関する情報を抽出し、探索領域に含まれないオブジェクトの部分の高さに関する情報を抽出しない。 The height information extraction unit 112 extracts information on the height of a part of the object included in the search area when a part of the object is included in the search area and the other part protrudes from the search area. However, it does not extract information about the height of the part of the object that is not included in the search area.

通過除外領域生成部113は、キャラクターオブジェクトの移動の障害となるオブジェクトである障害オブジェクトを含むよう通過除外領域を生成する。通過除外領域は、高さ情報抽出部112が探索領域内の障害オブジェクトの表層の高さ情報を抽出するために用いられる。即ち、先述の高さ情報抽出部112は、複数の光線と通過除外領域との交点を抽出することにより、障害オブジェクトの表層の高さに関する情報を得る。 The passage exclusion area generation unit 113 generates a passage exclusion area so as to include an obstacle object which is an object that hinders the movement of the character object. The passage exclusion area is used by the height information extraction unit 112 to extract the height information of the surface layer of the obstacle object in the search area. That is, the height information extraction unit 112 described above obtains information on the height of the surface layer of the obstacle object by extracting the intersections of the plurality of light rays and the passage exclusion region.

通過除外領域は、例えば面情報を有するオブジェクトである。通過除外領域は、障害オブジェクトのコピーであってもよいが、処理をより高速に行うため、障害オブジェクトをより単純化したオブジェクトであることが望ましい。例えば、後述のレイキャストによる衝突判定を効率的に行うため、通過除外領域生成部113は、AABBTree(axis-aligned bounding box tree)と呼ばれる構造を利用した通過除外領域を生成することができる。 The pass exclusion area is, for example, an object having surface information. The pass exclusion area may be a copy of the fault object, but it is desirable that the fault object be a simplified object in order to perform processing at a higher speed. For example, in order to efficiently perform the collision determination by the ray cast described later, the passage exclusion region generation unit 113 can generate a passage exclusion region using a structure called AABBTree (axis-aligned bounding box tree).

この場合、通過除外領域は、3D空間におけるXYZ軸に各辺が平行な立方体を通過除外領域とすることができる。また、探索領域に複数の障害オブジェクトが存在する場合、各障害オブジェクトに対して生成される通過除外領域は任意の探索処理高速化のためのデータ構造とすることができる。 In this case, the passage exclusion region can be a cube whose sides are parallel to the XYZ axes in the 3D space. Further, when a plurality of failure objects exist in the search area, the passage exclusion area generated for each failure object can be an arbitrary data structure for speeding up the search process.

又は、例えば通過除外領域生成部113は、障害オブジェクトのコピーに対し、公知のポリゴンリダクション処理を行うことにより、データ容量の軽い通過除外領域を得てもよい。なお、通過除外領域生成部113は、例えば探索領域の基準面(例えば下面)との高さの差が所定範囲の値を超える障害オブジェクトに対して、通過除外領域を生成するよう設定されていてもよい。 Alternatively, for example, the passage exclusion region generation unit 113 may obtain a passage exclusion region having a light data capacity by performing a known polygon reduction process on the copy of the obstacle object. The passage exclusion area generation unit 113 is set to generate a passage exclusion area for an obstacle object whose height difference from the reference surface (for example, the lower surface) of the search area exceeds a predetermined range value. May be good.

移動領域情報生成部114は、探索領域内のオブジェクトの表層の高さの差が所定範囲内にある領域を用いて、キャラクターオブジェクトが移動可能な領域を示す移動領域情報を生成する。 The moving area information generation unit 114 generates moving area information indicating an area in which the character object can move, using an area in which the height difference of the surface layer of the object in the search area is within a predetermined range.

図2は、移動領域情報生成処理の概要を示す図である。図2には、探索領域Bと、オブジェクトAとが示されている。本実施形態の一例として、移動領域情報生成部114は、探索領域Bの下面と、複数の光線との交点を含む領域に、移動領域情報を生成する。 FIG. 2 is a diagram showing an outline of the moving area information generation process. FIG. 2 shows the search area B and the object A. As an example of this embodiment, the moving area information generation unit 114 generates moving area information in a region including an intersection of the lower surface of the search area B and a plurality of light rays.

先述したように、高さ情報抽出部112は、探索領域内に光線を走査することにより、探索領域Bのオブジェクトの下面、及び探索領域内のオブジェクト(即ち通過除外領域)の表層の高さに関する情報を抽出する。光線と通過除外領域とが交わった場合、光線は通過除外領域に遮られ、探索領域Bの下面には届かないため、光線と探索領域Bの下面との交点は形成されない。即ち、移動領域情報生成部114は、通過除外領域と光線との交点を除く他の交点(即ち光線と探索領域Bの下面との交点)を含む領域に、移動領域情報を生成する。 As described above, the height information extraction unit 112 relates to the height of the lower surface of the object in the search area B and the surface layer of the object (that is, the passage exclusion area) in the search area by scanning the light beam in the search area. Extract information. When the light ray and the passage exclusion region intersect, the light ray is blocked by the passage exclusion region and does not reach the lower surface of the search area B, so that an intersection point between the light ray and the lower surface of the search area B is not formed. That is, the moving area information generation unit 114 generates moving area information in a region including other intersections (that is, intersections between the light rays and the lower surface of the search area B) excluding the intersections between the passage exclusion region and the light rays.

通過除外領域生成部113が、探索領域Bの下面との高さの差が所定範囲の値を超える障害オブジェクトに対して、通過除外領域を生成する場合について説明する。通過除外領域生成部113が、図2に示す高さsを超える障害オブジェクトに対して通過除外領域を生成する場合、オブジェクトAは高さsを超えるため、オブジェクトAに対し通過除外領域が生成される。 A case where the passage exclusion area generation unit 113 generates a passage exclusion area for an obstacle object whose height difference from the lower surface of the search area B exceeds a value in a predetermined range will be described. When the passage exclusion area generation unit 113 generates a passage exclusion area for an obstacle object having a height s exceeding the height s shown in FIG. 2, the passage exclusion area is generated for the object A because the object A exceeds the height s. The object.

レイキャスト処理を行う結果、探索領域Bの上面から下面に向かって進行する光線が、オブジェクトAに対して生成された通過除外領域と衝突する場合、光線は通過除外領域に遮られ、探索領域Bの下面とは交わらない。即ち、領域b内において、光線と探索領域Bの下面との交点は形成されない。その一方で、領域a及び領域cについては、光線と探索領域Bの下面との交点が形成される。移動領域情報生成部114は、領域a及び領域cについて、移動領域情報を生成する。 As a result of performing the raycast process, when a light ray traveling from the upper surface to the lower surface of the search area B collides with the passage exclusion area generated for the object A, the light ray is blocked by the passage exclusion area and the search area B is used. Does not intersect with the underside of. That is, the intersection of the light ray and the lower surface of the search region B is not formed in the region b. On the other hand, for the region a and the region c, the intersection of the light ray and the lower surface of the search region B is formed. The moving area information generation unit 114 generates moving area information for the area a and the area c.

通過除外領域生成部113が、図2に示す高さtを超える障害オブジェクトに対して通過除外領域を生成する場合、オブジェクトAは高さtを超えないため、オブジェクトAに対し通過除外領域が生成されない。 When the passage exclusion area generation unit 113 generates a passage exclusion area for an obstacle object having a height t exceeding the height t shown in FIG. 2, the passage exclusion area is generated for the object A because the object A does not exceed the height t. Not done.

レイキャスト処理を行う結果、探索領域Bの上面から下面に向かって進行する光線が、オブジェクトAを通過し、探索領域Bの下面に衝突する。即ち、領域a、領域b、及び領域cにおいて、光線と探索領域Bの下面との交点が形成される。移動領域情報生成部114は、領域a、領域b、及び領域cについて、移動領域情報を生成する。 As a result of performing the raycast process, the light rays traveling from the upper surface to the lower surface of the search area B pass through the object A and collide with the lower surface of the search area B. That is, in the region a, the region b, and the region c, the intersection of the light ray and the lower surface of the search region B is formed. The moving area information generation unit 114 generates moving area information for the area a, the area b, and the area c.

換言すれば、探索領域の基準面との高さの差が所定範囲の値を超える障害オブジェクトに対して通過除外領域を生成する場合、移動領域情報生成部114は、高さの差が所定範囲内にある領域に対して、移動領域情報を生成するといえる。 In other words, when the passage exclusion area is generated for the obstacle object whose height difference from the reference surface of the search area exceeds the value in the predetermined range, the moving area information generation unit 114 has the height difference in the predetermined range. It can be said that the moving area information is generated for the area inside.

なお、基準面は探索領域Bの下面に限定されない。例えば、探索領域Bの下面よりも上に床面を構成するオブジェクトがある場合、光線が床面のオブジェクトに遮られ、探索領域Bの下面に到達しないことが考えられる。その場合、移動領域情報生成部114は、床面のオブジェクトを基準面とし、床面のオブジェクトと光線との交点を含む領域に、移動領域情報を生成することができる。 The reference plane is not limited to the lower surface of the search area B. For example, when there is an object constituting the floor surface above the lower surface of the search area B, it is conceivable that the light beam is blocked by the object on the floor surface and does not reach the lower surface of the search area B. In that case, the moving area information generation unit 114 can generate the moving area information in the area including the intersection of the object on the floor surface and the light beam with the object on the floor surface as the reference surface.

図3は、情報処理装置100のハードウェア構成の一例を示す図である。情報処理装置100は、演算処理装置141と、主記憶装置142と、記録装置143と、入力装置144と、出力装置145とを有し、各構成要素はバスにより接続されている。 FIG. 3 is a diagram showing an example of the hardware configuration of the information processing apparatus 100. The information processing device 100 includes an arithmetic processing device 141, a main storage device 142, a recording device 143, an input device 144, and an output device 145, and each component is connected by a bus.

演算処理装置141は、例えば、CPU(Central Processing Unit)などの演算ユニットであって、主記憶装置142又は記録装置143に記録されたプログラムに従って処理を実行する。制御部110を構成する各処理部は、演算処理装置141がプログラムを実行することにより各々の機能を実現する。主記憶装置142は、例えば、RAM(Random Access Memory)などの記憶装置である。記録装置143は、例えば、HDD(Hard Disk Drive)、SSD(Solid State Drive)、フラッシュROM(Read Only Memory)などの記録装置である。 The arithmetic processing unit 141 is, for example, an arithmetic unit such as a CPU (Central Processing Unit), and executes processing according to a program recorded in the main storage device 142 or the recording apparatus 143. Each processing unit constituting the control unit 110 realizes each function by executing a program by the arithmetic processing unit 141. The main storage device 142 is, for example, a storage device such as a RAM (Random Access Memory). The recording device 143 is, for example, a recording device such as an HDD (Hard Disk Drive), an SSD (Solid State Drive), or a flash ROM (Read Only Memory).

入力装置144は、制作者からの入力操作を受け付ける装置であって、タッチパネルやキーボード等の入力デバイスである。出力装置145は、情報処理装置100に格納されたデータの出力処理を行う装置であって、例えばLCD(Liquid Crystal Display)等の表示装置である。 The input device 144 is a device that receives an input operation from the creator, and is an input device such as a touch panel or a keyboard. The output device 145 is a device that outputs data stored in the information processing device 100, and is a display device such as an LCD (Liquid Crystal Display).

例えば、演算処理装置141は、記録装置143に記憶されているコンピューターグラフィックスソフトウェアのプログラムを読み込み、主記憶装置142に展開する。なお、情報処理装置100には、該コンピューターグラフィックスソフトウェアが予めダウンロードされている。演算処理装置141は、プログラムを実行することで、例えば情報処理装置100からの入力操作の信号に従ってコンピューターグラフィックスソフトウェアの表示画面上に所望の情報を出力する。 For example, the arithmetic processing unit 141 reads a computer graphics software program stored in the recording device 143 and deploys it in the main storage device 142. The computer graphics software is downloaded in advance to the information processing apparatus 100. By executing the program, the arithmetic processing apparatus 141 outputs desired information on the display screen of the computer graphics software according to, for example, an input operation signal from the information processing apparatus 100.

なお、情報処理装置100の各構成要素の処理は、1つのハードウェアで実行されてもよいし、複数のハードウェアで実行されてもよい。また、情報処理装置100の各構成要素の処理は、1つのプログラムで実現されてもよいし、複数のプログラムで実現されてもよい。 The processing of each component of the information processing apparatus 100 may be executed by one hardware or may be executed by a plurality of hardware. Further, the processing of each component of the information processing apparatus 100 may be realized by one program or may be realized by a plurality of programs.

図4は、移動領域情報生成処理の一例を示すフローチャートである。本処理開始前に、制作者は、シーンデータを出力装置145であるディスプレイに表示させる。 FIG. 4 is a flowchart showing an example of the moving area information generation process. Before the start of this process, the creator displays the scene data on the display which is the output device 145.

図5は、シーンデータの表示例を示す図(その1)である。出力装置145に表示されたシーンデータには、例えば床及び壁の背景オブジェクトと、机とが配置されている。机のオブジェクトをオブジェクトAとする。 FIG. 5 is a diagram (No. 1) showing an example of displaying scene data. In the scene data displayed on the output device 145, for example, a background object on the floor and a wall and a desk are arranged. Let the desk object be object A.

説明を図4に戻す。探索領域設定部111は、探索領域を配置する(ステップS11)。具体的には、探索領域設定部111は、探索領域を示すオブジェクトの生成指示を示す入力操作を受け付ける。探索領域を示すオブジェクトは、任意の形状及び大きさに設定することができる。探索領域設定部111は、当該オブジェクトを指定した探索領域決定指示を受け付けると、該オブジェクトを探索領域として取り扱う。 The explanation is returned to FIG. The search area setting unit 111 arranges the search area (step S11). Specifically, the search area setting unit 111 accepts an input operation indicating an instruction to generate an object indicating the search area. The object indicating the search area can be set to any shape and size. When the search area setting unit 111 receives the search area determination instruction specifying the object, the search area setting unit 111 treats the object as the search area.

次に、探索領域設定部111は、レイキャストの密度を決定する(ステップS12)。具体的には、探索領域設定部111は、探索領域内を進行する光線の密度の指定の入力操作を受け付ける。光線の密度は、探索領域内の単位面積当たりの光線の数と同義である。 Next, the search area setting unit 111 determines the ray cast density (step S12). Specifically, the search area setting unit 111 accepts an input operation for designating the density of light rays traveling in the search area. The density of rays is synonymous with the number of rays per unit area in the search area.

図6は、シーンデータの表示例を示す図(その2)である。図6は、図5に示すシーンデータに探索領域Bを配置した状態を示している。図6では、探索領域Bの内部に、オブジェクトAの全体が含まれるよう配置されている。上述のステップS11において、制作者は立方体のオブジェクトをシーンデータに配置し、オブジェクトを指定して探索領域決定指示を入力する。オブジェクトは探索領域Bとして取り扱われる。 FIG. 6 is a diagram (No. 2) showing an example of displaying scene data. FIG. 6 shows a state in which the search area B is arranged in the scene data shown in FIG. In FIG. 6, the search area B is arranged so as to include the entire object A. In step S11 described above, the creator arranges a cubic object in the scene data, designates the object, and inputs a search area determination instruction. The object is treated as the search area B.

また、図6に示す探索領域Bの下面は、シーンデータの床面に一致している。本実施形態において、光線は探索領域Bの上面から下面に向けて、Y軸-方向に進行するが、光線の進行方向については設定による変更が可能である。 Further, the lower surface of the search area B shown in FIG. 6 coincides with the floor surface of the scene data. In the present embodiment, the light ray travels in the Y-axis-direction from the upper surface to the lower surface of the search region B, but the traveling direction of the light ray can be changed by setting.

図6に示す探索領域Bの下面には、格子(グリッド)が表示されている。グリッドの交点に向かって、下面に対して垂直に光線が進行する。即ち、上述のステップS12で決定した光線の密度により、探索領域Bの下面のグリッドの細かさが定まる。 A grid is displayed on the lower surface of the search area B shown in FIG. A ray of light travels perpendicular to the bottom surface toward the intersection of the grid. That is, the fineness of the grid on the lower surface of the search region B is determined by the density of the light rays determined in step S12 described above.

説明を図4に戻す。次に、通過除外領域生成部113は、探索領域の範囲内の通過除外領域を生成する(ステップS13)。具体的には、通過除外領域生成部113は、探索領域B内に少なくとも1つの頂点を有する1又は複数のオブジェクトを抽出する。通過除外領域生成部113は、抽出したオブジェクトを障害オブジェクトとして特定し、障害オブジェクトの各々について通過除外領域を生成する。 The explanation is returned to FIG. Next, the passage exclusion area generation unit 113 generates a passage exclusion area within the range of the search area (step S13). Specifically, the pass exclusion region generation unit 113 extracts one or a plurality of objects having at least one vertex in the search region B. The passage exclusion area generation unit 113 identifies the extracted object as an obstacle object, and generates a passage exclusion area for each of the obstacle objects.

なお、通過除外領域生成部113は、探索領域の下面を基準として所定範囲の値を超えた高さを有する頂点をもつオブジェクトを、障害オブジェクトとして抽出してもよい。また、通過除外領域生成部113は、制作者の入力により障害オブジェクトを特定し、通過除外領域を生成してもよい。 The passage exclusion region generation unit 113 may extract an object having vertices having a height exceeding a predetermined range value with respect to the lower surface of the search region as an obstacle object. Further, the passage exclusion area generation unit 113 may specify the obstacle object by the input of the creator and generate the passage exclusion area.

図7は、シーンデータの表示例を示す図(その3)である。図7は、図6に示すシーンデータのオブジェクトAに対し、通過除外領域Mを生成した状態を示している。障害オブジェクトAの全体を含むように、通過除外領域Mが設定されている。 FIG. 7 is a diagram (No. 3) showing an example of displaying scene data. FIG. 7 shows a state in which the passage exclusion region M is generated for the object A of the scene data shown in FIG. The passage exclusion area M is set so as to include the entire obstacle object A.

説明を図4に戻す。次に、高さ情報抽出部112が、レイキャストを実行する(ステップS14)。具体的には、高さ情報抽出部112は、設定された密度の光線を用いて、探索領域の上面から下面へと探索領域B内を走査する。高さ情報抽出部112は、光線と通過除外領域M との交点を抽出する。また、高さ情報抽出部112は、探索領域Bの下面と通過除外領域Mとの交点を抽出する。 The explanation is returned to FIG. Next, the height information extraction unit 112 executes ray casting (step S14). Specifically, the height information extraction unit 112 scans the inside of the search region B from the upper surface to the lower surface of the search region using light rays having a set density. The height information extraction unit 112 extracts the intersection of the light beam and the passage exclusion region M. Further, the height information extraction unit 112 extracts the intersection of the lower surface of the search region B and the passage exclusion region M.

次に、移動領域情報生成部114は、通過除外領域に衝突した点を除去する(ステップS15)。具体的には、移動領域情報生成部114は、光線と通過除外領域Mとの交点に関する情報を削除する。その結果、高さ情報抽出部112の抽出した交点のうち、探索領域Bの下面と通過除外領域Mとの交点が除去されずに残る。その後、移動領域情報生成部114は、探索領域と通過除外領域とを削除する。 Next, the moving area information generation unit 114 removes the points that collide with the passage exclusion area (step S15). Specifically, the moving area information generation unit 114 deletes information regarding the intersection of the light beam and the passage exclusion area M. As a result, among the intersections extracted by the height information extraction unit 112, the intersection between the lower surface of the search region B and the passage exclusion region M remains without being removed. After that, the moving area information generation unit 114 deletes the search area and the passage exclusion area.

図8は、シーンデータの表示例を示す図(その4)である。図8には、削除されずに残った、探索領域Bの下面と光線との交点により構成されるグリッドCが表示されている。本実施形態において、グリッドは、各点を結ぶことにより得られる格子状の情報である。グリッドCは、探索領域Bの下面に該当する領域のうち、障害オブジェクトAの真下に当たる部分をくりぬいた領域であるといえる。 FIG. 8 is a diagram (No. 4) showing an example of displaying scene data. FIG. 8 shows a grid C composed of intersections between the lower surface of the search area B and the light rays, which remains without being deleted. In the present embodiment, the grid is grid-like information obtained by connecting the points. It can be said that the grid C is a region in which the portion directly below the obstacle object A is hollowed out in the region corresponding to the lower surface of the search region B.

説明を図4に戻す。次に、移動領域情報生成部114は、交点をグループ化し、移動領域情報を生成する(ステップS16)。具体的には、移動領域情報生成部114は、ステップS15において除去されずに残った交点を、所定の方法を用いて1又は複数のグループに分ける。 The explanation is returned to FIG. Next, the moving area information generation unit 114 groups the intersections and generates the moving area information (step S16). Specifically, the moving area information generation unit 114 divides the intersections remaining unremoved in step S15 into one or a plurality of groups by a predetermined method.

例えば移動領域情報生成部114は、除去されずに残った交点により構成されるグリッドを定義する。移動領域情報生成部114は、グリッドのうち3以上の交点により囲われる複数の多角形領域を、所定の方法を用いて併合する。一例として、移動領域情報生成部114は、併合してできた領域が閉じた多角形であり、かつ穴や自己交差のないよう、多角形領域を併合する。穴とは、併合した多角形領域により構成される面の内部に含まれる、面のない部分である。 For example, the moving area information generation unit 114 defines a grid composed of intersections that remain without being removed. The moving area information generation unit 114 merges a plurality of polygonal areas surrounded by three or more intersections in the grid by using a predetermined method. As an example, the moving area information generation unit 114 merges polygonal regions so that the merged regions are closed polygons and there are no holes or self-intersections. A hole is a faceless portion contained inside a face composed of merged polygonal regions.

なお、移動領域情報生成部114は、併合してできた領域の角の数が予め設定された上限値以下となるよう多角形領域を併合してもよい。多角形領域を併合した結果、同じ領域を構成する複数の交点は同じグループに属するものとして、交点が1又は複数のグループに分割される。なお、併合後の複数の領域の境界に位置する交点は、各々の領域を構成する点として、両グループに属するよう設定される。 The moving area information generation unit 114 may merge polygonal regions so that the number of corners of the merged region is equal to or less than a preset upper limit value. As a result of merging the polygonal regions, the plurality of intersections constituting the same region are regarded as belonging to the same group, and the intersections are divided into one or a plurality of groups. The intersections located at the boundaries of the plurality of regions after merging are set to belong to both groups as points constituting each region.

その後、移動領域情報生成部114は、同じグループに属する交点を含む領域の輪郭にあたる部分の点を抽出し、抽出した点を結ぶ線を輪郭とするポリゴンデータを生成する。より具体的には、移動領域情報生成部114は、同じグループに属する交点を含む領域を定義し、領域の輪郭にあたる部分の点を残し、それ以外の点、即ち領域内部に位置する点を削除する。 After that, the moving area information generation unit 114 extracts points corresponding to the contour of the area including the intersections belonging to the same group, and generates polygon data having the line connecting the extracted points as the contour. More specifically, the moving area information generation unit 114 defines an area including intersections belonging to the same group, leaves points in the portion corresponding to the outline of the area, and deletes other points, that is, points located inside the area. do.

移動領域情報生成部114は、残った点に対し、例えば輪郭追跡アルゴリズム等の公知の方法を用いてポリゴンデータを生成する。その後、移動領域情報生成部114は、生成したポリゴンデータを移動領域情報として図示しない記憶部に記憶させ、本フローチャートの処理を終了する。 The moving area information generation unit 114 generates polygon data for the remaining points by using a known method such as a contour tracking algorithm. After that, the moving area information generation unit 114 stores the generated polygon data as moving area information in a storage unit (not shown), and ends the processing of this flowchart.

図9は、シーンデータの表示例を示す図(その5)である。図9は、図8に示すグリッドCを構成する多角形領域を併合して輪郭にあたる部分の点を抽出し、抽出した点を結ぶ線を輪郭とするポリゴンデータにより構成される移動領域情報Dを表している。移動領域情報Dは、グリッドCに比べて交点が減少していることが分かる。なお、図7に示すグリッドCから生成される移動領域情報Dは、図9に示す態様に限られない。 FIG. 9 is a diagram (No. 5) showing an example of displaying scene data. In FIG. 9, the polygonal regions constituting the grid C shown in FIG. 8 are merged to extract the points corresponding to the contours, and the moving region information D composed of the polygon data having the line connecting the extracted points as the contour is obtained. Represents. It can be seen that the moving area information D has fewer intersections than the grid C. The moving area information D generated from the grid C shown in FIG. 7 is not limited to the mode shown in FIG.

その後、本処理により生成された移動領域情報の示す領域を、ノンプレイヤーオブジェクトが移動するよう設定することができる。 After that, the non-player object can be set to move in the area indicated by the movement area information generated by this process.

なお、本実施形態では、通過除外領域との間で交点を形成しない光線は、探索領域の下面との交点を形成するものと説明した。しかしながら、通過除外領域との間で交点を形成しない光線は、床面のオブジェクトとの交点を形成してもよい。その場合、床面のオブジェクトと光線との交点を含む領域に、移動領域情報が形成される。 In this embodiment, it has been described that a light ray that does not form an intersection with the passage exclusion region forms an intersection with the lower surface of the search region. However, a ray that does not form an intersection with the pass exclusion region may form an intersection with an object on the floor. In that case, the moving area information is formed in the area including the intersection of the object on the floor surface and the light beam.

本実施形態により、障害オブジェクトの位置を反映させた移動領域情報を効率的に生成することができる。また、探索領域の配置を調整することにより、移動領域情報を生成させる位置を調整することができるため、例えば広大な地図情報の一部をノンプレイヤーオブジェクトの移動可能な領域としたい場合等に、制作者の意図を反映させた移動領域情報の設置を柔軟に行うことができる。 According to this embodiment, it is possible to efficiently generate moving area information that reflects the position of the obstacle object. Further, by adjusting the arrangement of the search area, the position where the moving area information is generated can be adjusted. Therefore, for example, when a part of the vast map information is desired to be a movable area of the non-player object. It is possible to flexibly set up moving area information that reflects the creator's intentions.

また、本実施形態では、レイキャスト処理を行う光線の密度を調整することができるため、移動領域情報がどの程度通過除外領域の形状に追随するかを調整できるといえる。例えば通過除外領域を探索領域の下面に投影した際に円形を構成する場合、光線の密度が高ければ、移動領域情報は円形に近い形がくり抜かれた形状となる。また、光線の密度が低ければ、移動領域情報は円形を含む多角形(例えば四角形)がくり抜かれた形状となり、光線の密度が高い場合に比べデータ容量の低減が可能となる。 Further, in the present embodiment, since the density of the light rays to be ray cast can be adjusted, it can be said that it is possible to adjust how much the moving region information follows the shape of the passage exclusion region. For example, when a circular shape is formed when the passage exclusion region is projected on the lower surface of the search region, if the density of light rays is high, the moving region information has a shape close to a circle. Further, if the density of the light rays is low, the moving area information has a shape in which a polygon including a circle (for example, a quadrangle) is hollowed out, and the data capacity can be reduced as compared with the case where the density of the light rays is high.

なお、障害オブジェクトの一部が探索領域からはみ出す場合においても、図4に示す処理と同様の処理が行われる。障害オブジェクトのうち、探索領域内の一部を部分X、探索領域からはみ出る部分を部分Yとする。高さ情報抽出部112は、探索領域内に光線を進行させるため、レイキャストを実行することにより、部分Xに対して生成された通過除外領域の高さ情報を抽出することができる。 Even when a part of the obstacle object protrudes from the search area, the same processing as that shown in FIG. 4 is performed. Of the obstacle objects, a part in the search area is referred to as a part X, and a part outside the search area is referred to as a part Y. Since the height information extraction unit 112 advances the light beam in the search region, the height information of the passage exclusion region generated for the portion X can be extracted by executing the ray cast.

その後、移動領域情報生成部114は、探索領域の下面に該当する領域のうち、部分Xの真下に当たる部分をくりぬいた領域を示す移動領域情報を生成する。従って、本実施形態によれば、障害オブジェクトの一部が探索領域からはみ出す場合であっても、探索領域及び障害オブジェクトの位置に従った移動領域情報を生成することができる。 After that, the moving area information generation unit 114 generates moving area information indicating a region corresponding to the lower surface of the search area, which is a hollowed out portion directly under the portion X. Therefore, according to the present embodiment, even when a part of the obstacle object protrudes from the search area, it is possible to generate the movement area information according to the position of the search area and the obstacle object.

付言すると、本実施形態において、探索領域内に存在するオブジェクトであっても、障害オブジェクトと取り扱わないよう設定することができる。その場合、例えば探索領域の配置後に、障害オブジェクトとして取り扱わないオブジェクト(以下、「例外オブジェクト」とする)の指定を、入力装置144を介して受け付ける。 In addition, in the present embodiment, even an object existing in the search area can be set not to be treated as an obstacle object. In that case, for example, after arranging the search area, the designation of an object that is not treated as an obstacle object (hereinafter referred to as an "exception object") is accepted via the input device 144.

その後、通過除外領域生成部113は、探索領域内のオブジェクトの通過除外領域を生成する際に、例外オブジェクトの通過除外領域の生成を回避する。これにより、探索領域内の光線は例外オブジェクトを透過し、例外オブジェクトが配置された探索領域の下面に衝突して交点を形成する。従って、例外オブジェクトが配置された下面に対しても移動可能領域が生成され、キャラクターオブジェクトの移動が可能となる。 After that, the passage exclusion area generation unit 113 avoids the generation of the passage exclusion area of the exception object when generating the passage exclusion area of the object in the search area. As a result, the light rays in the search area pass through the exception object and collide with the lower surface of the search area in which the exception object is placed to form an intersection. Therefore, a movable area is generated even on the lower surface where the exception object is arranged, and the character object can be moved.

<変形例> <Modification example>

次に、本実施形態の変形例について説明する。本変形例では、移動領域情報の生成の際に、隣り合う交点の高さの比較を行う点が、上述の実施形態と異なる。以下、上述の実施形態と異なる点について説明する。 Next, a modification of the present embodiment will be described. This modification differs from the above-described embodiment in that the heights of adjacent intersections are compared when the moving area information is generated. Hereinafter, the points different from the above-described embodiment will be described.

図10は、変形例における移動領域情報生成処理の概要を示す図である。図10の領域aにおいて、光線と探索領域Bの下面との交点が点e1群であって、領域bにおいて、光線と通過除外領域Mとの交点が点e2群であって、領域cにおいて、光線と探索領域Bの下面との交点が点e3群である。 FIG. 10 is a diagram showing an outline of the moving area information generation process in the modified example. In the region a of FIG. 10, the intersection of the light ray and the lower surface of the search region B is the point e1 group, and in the region b, the intersection of the light ray and the passage exclusion region M is the point e2 group. The intersection of the light ray and the lower surface of the search area B is the point e3 group.

本変形例における移動領域情報生成部114は、探索領域内の所定の方向に進行する複数の光線の各々と、探索領域自身及び探索領域内のオブジェクトとの交点のうち、隣り合う交点の高さの差が所定範囲内にある複数の交点を含む領域に、移動領域情報を生成する。そのため、移動領域情報生成部114は、レイキャスト処理の後に形成された複数の交点について、隣り合う交点との高さの差が所定範囲内の値であるか否かを各々判定する。 The moving area information generation unit 114 in this modification is the height of the adjacent intersections of the intersections of each of the plurality of rays traveling in a predetermined direction in the search area and the search area itself and the objects in the search area. The moving area information is generated in the area including a plurality of intersections where the difference between the two is within a predetermined range. Therefore, the moving area information generation unit 114 determines whether or not the difference in height between the plurality of intersections formed after the raycast processing and the adjacent intersections is within a predetermined range.

図10に示す例において、前述の所定範囲の上限を示す値がsであるとする。隣り合う交点の高さの差を判定した結果、点e1群を構成する各点の高さの差は、上限sを超えないため、同じグループに分類される。同様に、点e2群を構成する各点は同じグループに分類され、点e3群を構成する各店は同じグループに分類される。点e1群と点e2群は異なるグループであって、点e2群と点e3群は異なるグループである。点e1群と点e3群は、図10の図示しない奥行方向において穴を有さないよう連結していれば、同じグループに分類されていてもよいが、ここでは異なるグループに分類されたものとして説明する。 In the example shown in FIG. 10, it is assumed that the value indicating the upper limit of the above-mentioned predetermined range is s. As a result of determining the difference in height between adjacent intersections, the difference in height of each point constituting the point e1 group does not exceed the upper limit s, and is therefore classified into the same group. Similarly, each point constituting the point e2 group is classified into the same group, and each store constituting the point e3 group is classified into the same group. The point e1 group and the point e2 group are different groups, and the point e2 group and the point e3 group are different groups. The point e1 group and the point e3 group may be classified into the same group as long as they are connected so as not to have a hole in the depth direction (not shown in FIG. 10), but here, they are classified into different groups. explain.

移動領域情報生成部114は、点e1群を含む移動領域情報を生成する。同様に、移動領域情報生成部114は、点e2群を含む移動領域情報、及び点e3群を含む移動領域情報を、各々生成する。 The moving area information generation unit 114 generates moving area information including the point e1 group. Similarly, the moving area information generation unit 114 generates moving area information including the point e2 group and moving area information including the point e3 group, respectively.

図11は、変形例における移動領域情報生成処理の一例を示すフローチャートである。ステップS21~ステップS24において行われる処理は、図4に示すステップS11~ステップS14において行われる処理と同様であるため、説明を省略する。 FIG. 11 is a flowchart showing an example of the moving area information generation process in the modified example. Since the processes performed in steps S21 to S24 are the same as the processes performed in steps S11 to S14 shown in FIG. 4, the description thereof will be omitted.

次に、移動領域情報生成部114は、隣り合う交点の高さの差が所定範囲内の交点をグループ化する(ステップS25)。具体的には、移動領域情報生成部114は、探索領域の下面と光線との交点、及び通過除外領域と光線との交点について、隣り合う交点の高さを比較する。移動領域情報生成部114は、比較の結果、隣り合う交点の高さの差が所定範囲内の交点をグループ化する。 Next, the moving area information generation unit 114 groups the intersections whose height difference between the adjacent intersections is within a predetermined range (step S25). Specifically, the moving area information generation unit 114 compares the heights of adjacent intersections with respect to the intersections between the lower surface of the search region and the light rays, and the intersections between the passage exclusion region and the light rays. As a result of comparison, the moving area information generation unit 114 groups intersections whose height difference between adjacent intersections is within a predetermined range.

なお、移動領域情報生成部114は、上述の実施形態と同様に、同じグループの交点により形成される領域に穴や自己交差がないか否かを判定し、穴や自己交差がある場合にグループをより細かく分割する。 The moving area information generation unit 114 determines whether or not there is a hole or self-intersection in the region formed by the intersections of the same group, as in the above-described embodiment, and if there is a hole or self-intersection, the group Is divided into smaller pieces.

次に、移動領域情報生成部114は、グループ化した交点から移動領域情報を生成する(ステップS26)。具体的には、移動領域情報生成部114は、同じグループに属する交点を含む領域の輪郭に当たる部分の点を抽出し、抽出した点を結ぶ線を輪郭とするポリゴンデータを生成する。その際、移動領域情報生成部114は、上述の実施形態と同様に、同じグループに属する交点を含む領域を定義し、領域の輪郭にあたる部分の点を残し、それ以外の点、即ち領域内部に位置する点を削除する。 Next, the moving area information generation unit 114 generates moving area information from the grouped intersections (step S26). Specifically, the moving area information generation unit 114 extracts points in a portion corresponding to the contour of a region including intersections belonging to the same group, and generates polygon data having a line connecting the extracted points as the contour. At that time, the moving area information generation unit 114 defines an area including intersections belonging to the same group, leaving a point corresponding to the outline of the area, and the other points, that is, inside the area, as in the above-described embodiment. Delete the located point.

移動領域情報生成部114は、残った点に対し、例えば輪郭追跡アルゴリズム等の公知の方法を用いてポリゴンデータを生成する。その後、移動領域情報生成部114は、生成したポリゴンデータを移動領域情報として図示しない記憶部に記憶させ、本フローチャートの処理を終了する。 The moving area information generation unit 114 generates polygon data for the remaining points by using a known method such as a contour tracking algorithm. After that, the moving area information generation unit 114 stores the generated polygon data as moving area information in a storage unit (not shown), and ends the processing of this flowchart.

図12は、変形例におけるシーンデータの表示例を示す図である。本変形例では、高さの差が所定範囲内の交点を用いて移動領域情報を生成するため、探索領域の下面に該当する部分のほか、机のオブジェクトAの天面にも移動領域情報が生成される。 FIG. 12 is a diagram showing a display example of scene data in the modified example. In this modification, since the moving area information is generated using the intersections where the height difference is within a predetermined range, the moving area information is generated not only on the lower surface of the search area but also on the top surface of the object A of the desk. Generated.

本変形例により、オブジェクトの天面等にも移動可能領域が生成される。これは、探索領域の下面とオブジェクトの天面等、異なる高さの複数の領域にキャラクターオブジェクトを移動させたい場合に特に有用である。 According to this modification, a movable area is also generated on the top surface of the object. This is especially useful when you want to move a character object to multiple areas of different heights, such as the underside of the search area and the top of the object.

以上、本発明に係る各実施形態及び変形例の説明を行ってきたが、本発明は、上記した実施形態の一例に限定されるものではなく、様々な変形例が含まれる。例えば、上記した実施形態の一例は、本発明を分かり易くするために詳細に説明したものであり、本発明は、ここで説明した全ての構成を備えるものに限定されない。また、ある実施形態の一例の構成の一部を他の一例の構成に置き換えることが可能である。また、ある実施形態の一例の構成に他の一例の構成を加えることも可能である。また、各実施形態の一例の構成の一部について、他の構成の追加・削除・置換をすることもできる。また、上記の各構成、機能、処理部、処理手段等は、それらの一部又は全部を、例えば集積回路で設計する等によりハードウェアで実現してもよい。また、図中の制御線や情報線は、説明上必要と考えられるものを示しており、全てを示しているとは限らない。ほとんど全ての構成が相互に接続されていると考えてもよい。 Although the embodiments and modifications according to the present invention have been described above, the present invention is not limited to one of the above-described embodiments, and includes various modifications. For example, an example of the above-described embodiment has been described in detail for the sake of clarity of the present invention, and the present invention is not limited to those having all the configurations described here. Further, it is possible to replace a part of the configuration of one example of a certain embodiment with the configuration of another example. It is also possible to add the configuration of another example to the configuration of one example of one embodiment. Further, it is also possible to add / delete / replace a part of the configuration of one example of each embodiment with another configuration. Further, each of the above configurations, functions, processing units, processing means and the like may be realized by hardware by designing a part or all of them by, for example, an integrated circuit. In addition, the control lines and information lines in the figure indicate what is considered necessary for explanation, and do not necessarily indicate all. You can think of almost all configurations as interconnected.

また、上記の情報処理装置100の機能構成は、理解を容易にするために、主な処理内容に基づいて分類したものである。構成要素の分類の仕方や名称によって、本発明が制限されることはない。上述に示す通り、情報処理装置100の構成は、処理内容に基づいて、さらに多くの構成要素に分類することもできる。また、1つの構成要素がさらに多くの処理を実行するように分類することもできる。 Further, the functional configurations of the information processing apparatus 100 are classified based on the main processing contents in order to facilitate understanding. The present invention is not limited by the method and name of classification of the components. As shown above, the configuration of the information processing apparatus 100 can be further classified into more components based on the processing content. It can also be categorized so that one component performs more processing.

また、本発明は、プログラムだけでなく、当該プログラムを記録したコンピューター読み取り可能な記録媒体、当該プログラムを実行する情報処理装置あるいはコンピューター、移動領域生成方法、などの様々な態様で提供することができる。 Further, the present invention can be provided not only in a program but also in various aspects such as a computer-readable recording medium in which the program is recorded, an information processing apparatus or computer that executes the program, a mobile area generation method, and the like. ..

100:情報処理装置、110:制御部、111:探索領域設定部、112:高さ情報抽出部、113:通過除外領域生成部、114:移動領域情報生成部、120:入力部、130:出力部、141:演算処理装置、142:主記憶装置、143:記録装置、144:入力装置、145:出力装置、A:オブジェクト、B:探索領域、C:グリッド、D:移動領域情報、M:通過除外領域、a・b・c:領域、e1・e2・e3:点、s・t:高さ 100: Information processing device, 110: Control unit, 111: Search area setting unit, 112: Height information extraction unit, 113: Pass exclusion area generation unit, 114: Movement area information generation unit, 120: Input unit, 130: Output Unit, 141: Arithmetic processing device, 142: Main storage device, 143: Recording device, 144: Input device, 145: Output device, A: Object, B: Search area, C: Grid, D: Moving area information, M: Pass exclusion area, a ・ b ・ c: area, e1, e2, e3: point, s ・ t: height

Claims (9)

情報処理装置に実行させるプログラムであって、
探索領域を示すオブジェクトの指定を受け付ける探索領域設定部と、
前記探索領域及び該探索領域内のオブジェクトの表層の高さに関する情報を抽出する高さ情報抽出部と、
前記高さの差が所定範囲内にある領域を用いて、キャラクターオブジェクトが移動可能な領域を示す移動領域情報を生成する移動領域情報生成部として、前記情報処理装置を機能させることを特徴とする、プログラム。
It is a program to be executed by an information processing device.
A search area setting unit that accepts the designation of objects indicating the search area,
A height information extraction unit that extracts information on the height of the search area and the surface layer of the object in the search area, and the height information extraction unit.
It is characterized in that the information processing apparatus functions as a moving area information generation unit that generates moving area information indicating a movable area of a character object by using an area in which the height difference is within a predetermined range. ,program.
請求項1に記載のプログラムであって、
前記高さ情報抽出部は、前記探索領域内の所定の方向に進行する複数の光線の各々と、前記各オブジェクトの表層との交点を抽出し、
前記移動領域情報生成部は、隣り合う交点との前記高さの差が所定範囲内にある複数の前記交点を含む領域に前記移動領域情報を生成することを特徴とする、プログラム。
The program according to claim 1.
The height information extraction unit extracts the intersection of each of the plurality of light rays traveling in a predetermined direction in the search area and the surface layer of each object.
The moving area information generation unit is a program characterized in that the moving area information is generated in a region including a plurality of the intersections whose height difference from adjacent intersections is within a predetermined range.
請求項1に記載のプログラムであって、
前記探索領域内の特定のオブジェクトを含むよう通過除外領域を示すオブジェクトを生成する通過除外領域生成部を備え、
前記高さ情報抽出部は、前記探索領域内の所定の方向に進行する複数の光線の各々と、前記各オブジェクトの表層との交点を抽出し、
前記移動領域情報生成部は、前記通過除外領域と前記複数の光線との交点を除く他の前記交点を含む領域に前記移動領域情報を生成することを特徴とする、プログラム。
The program according to claim 1.
It is provided with a pass exclusion area generation unit that generates an object indicating a pass exclusion area so as to include a specific object in the search area.
The height information extraction unit extracts the intersection of each of the plurality of light rays traveling in a predetermined direction in the search area and the surface layer of each object.
The moving area information generation unit is a program characterized in that the moving area information is generated in a region including the other intersections other than the intersections of the passage exclusion region and the plurality of light rays.
請求項2又は3に記載のプログラムであって、
前記探索領域設定部は、前記光線の密度の設定を受け付けることを特徴とする、プログラム。
The program according to claim 2 or 3.
The search area setting unit is a program characterized by accepting a setting of the density of the light rays.
請求項3に記載のプログラムであって、
前記移動領域情報生成部は、前記探索領域と前記複数の光線との交点を含む領域に前記移動領域情報を生成することを特徴とする、プログラム。
The program according to claim 3.
The moving region information generation unit is a program characterized in that the moving region information is generated in a region including an intersection of the search region and the plurality of light rays.
請求項3に記載のプログラムであって、
前記移動領域情報生成部は、複数の前記交点から所定の方法で抽出した前記交点を結ぶ線を輪郭とする前記領域に前記移動領域情報を生成することを特徴とする、プログラム。
The program according to claim 3.
The moving area information generation unit is a program characterized in that the moving area information is generated in the area whose contour is a line connecting the intersections extracted from a plurality of the intersections by a predetermined method.
請求項1に記載のプログラムであって、
前記高さ情報抽出部は、前記探索領域に前記オブジェクトの一部が含まれる場合、前記探索領域に含まれる前記オブジェクトの一部の高さに関する情報を抽出し、前記探索領域に含まれない前記オブジェクトの部分の高さに関する情報を抽出しないことを特徴とする、プログラム。
The program according to claim 1.
When the search area includes a part of the object, the height information extraction unit extracts information about the height of a part of the object included in the search area, and the height information extraction unit does not include the object in the search area. A program characterized by not extracting information about the height of parts of an object.
探索領域を示すオブジェクトの指定を受け付ける探索領域設定部と、
前記探索領域及び前記探索領域内のオブジェクトの表層の高さに関する情報を抽出する高さ情報抽出部と、
前記高さの差が所定範囲内にある領域を用いて、キャラクターオブジェクトが移動可能な領域を示す移動領域情報を生成する移動領域情報生成部と、を備えることを特徴とする、情報処理装置。
A search area setting unit that accepts the designation of objects indicating the search area,
A height information extraction unit that extracts information on the height of the search area and the surface layer of the object in the search area, and the height information extraction unit.
An information processing apparatus comprising: a moving area information generation unit for generating moving area information indicating a movable area of a character object by using an area having a height difference within a predetermined range.
情報処理装置において実行される移動領域生成方法であって、
前記情報処理装置は、探索領域設定部と、高さ情報抽出部と、移動領域情報生成部と、を備え、
前記探索領域設定部は、探索領域を示すオブジェクトの指定を受け付ける探索領域設定手順を実行し、
前記高さ情報抽出部は、前記探索領域及び前記探索領域内のオブジェクトの表層の高さに関する情報を抽出する高さ情報抽出実行手順を実行し、
前記移動領域情報生成部は、前記高さの差が所定範囲内にある領域を用いて、キャラクターオブジェクトが移動可能な領域を示す移動領域情報を生成する移動領域情報生成手順を実行することを特徴とする、移動領域生成方法。
It is a moving area generation method executed in an information processing device.
The information processing apparatus includes a search area setting unit, a height information extraction unit, and a moving area information generation unit.
The search area setting unit executes a search area setting procedure that accepts the designation of an object indicating the search area.
The height information extraction unit executes a height information extraction execution procedure for extracting information regarding the height of the search area and the surface layer of the object in the search area.
The moving area information generation unit is characterized in that it executes a moving area information generation procedure for generating moving area information indicating an area in which a character object can move, using an area in which the height difference is within a predetermined range. How to generate a moving area.
JP2018059198A 2018-03-27 2018-03-27 Program, information processing device, and moving area generation method Active JP7062482B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018059198A JP7062482B2 (en) 2018-03-27 2018-03-27 Program, information processing device, and moving area generation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018059198A JP7062482B2 (en) 2018-03-27 2018-03-27 Program, information processing device, and moving area generation method

Publications (2)

Publication Number Publication Date
JP2019170427A JP2019170427A (en) 2019-10-10
JP7062482B2 true JP7062482B2 (en) 2022-05-06

Family

ID=68167823

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018059198A Active JP7062482B2 (en) 2018-03-27 2018-03-27 Program, information processing device, and moving area generation method

Country Status (1)

Country Link
JP (1) JP7062482B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7525988B2 (en) * 2019-09-03 2024-07-31 株式会社スクウェア・エニックス Video game processing program and video game processing system
JP7577437B2 (en) * 2019-09-04 2024-11-05 株式会社スクウェア・エニックス Video game processing program and video game processing system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010068872A (en) 2008-09-16 2010-04-02 Namco Bandai Games Inc Program, information storage medium and game device
JP2012213485A (en) 2011-03-31 2012-11-08 Copcom Co Ltd Game program and game system
JP2017217481A (en) 2016-06-10 2017-12-14 スクウェア エニックス、リミテッドSquare Enix,Ltd., System and method for placing character animation at location in game environment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010068872A (en) 2008-09-16 2010-04-02 Namco Bandai Games Inc Program, information storage medium and game device
JP2012213485A (en) 2011-03-31 2012-11-08 Copcom Co Ltd Game program and game system
JP2017217481A (en) 2016-06-10 2017-12-14 スクウェア エニックス、リミテッドSquare Enix,Ltd., System and method for placing character animation at location in game environment

Also Published As

Publication number Publication date
JP2019170427A (en) 2019-10-10

Similar Documents

Publication Publication Date Title
CN105492981B (en) Method and apparatus for generating geometric data for use in additive manufacturing
JP2001096059A (en) Method of forming field map, video game system and recording medium
JP7062482B2 (en) Program, information processing device, and moving area generation method
US11886781B2 (en) Three-dimensional shape data generation apparatus, three-dimensional modeling apparatus, and non-transitory computer readable medium storing three-dimensional shape data generation program
Liu et al. Real-time, dynamic level-of-detail management for three-axis NC milling simulation
KR20170025993A (en) Method for generating and traverse acceleration structure
KR102095118B1 (en) Automated design generation method and system
KR101665908B1 (en) Pre-visualization method for 3d printing
US20160378892A1 (en) Simulation device
JP7039294B2 (en) Programs, image processing methods, and image processing equipment
JP4936522B2 (en) Image processing method and image processing apparatus
US6104409A (en) Three-dimensional object data processing method and system
JP6972647B2 (en) 3D shape data editing device and 3D shape data editing program
US20160125659A1 (en) Methods and systems for multilevel editing of subdivided polygonal data
CN102598000B (en) Correction of topology interference for solid objects in a modeling environment
CN110871573A (en) Three-dimensional shape data generating device, three-dimensional modeling device, and computer-readable medium
KR102302833B1 (en) Method for beveling for 3D(dimension) model and apparatus for performing the method
JP2013196648A (en) Information processing device, information processing method, program and computer readable storage medium
KR20110050143A (en) Apparatus and method for partial update of hierarchical space division structure
JP4966937B2 (en) Analysis device, mesh generation program
JP7303340B2 (en) Program, image processing method, and image processing apparatus
JP3632127B2 (en) Finite element mesh generator
JP4066103B2 (en) Graphic clipping device and graphic clipping method
JP2008158962A (en) Mesh divider
US20220379379A1 (en) Generating supports

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210201

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220228

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20220329

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220420

R150 Certificate of patent or registration of utility model

Ref document number: 7062482

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150