Information processing program, information processor and information processing method
The information processing program addresses the challenge of aligning objects on a map with map features by automatically orienting them based on proximity and feature alignment, thereby improving user immersion and simplifying the placement process.
Patent Information
- Application Number
- JP2023144876
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-09-06
- Publication Date
- 2025-03-18
AI Technical Summary
In location-based games, objects placed on a map often appear at predetermined angles that do not align with map information like roads, reducing user immersion. Manually correcting these angles is laborious and impractical.
An information processing program that automatically arranges objects on a map by aligning their surface with map information, such as roads or real estate points, within a predetermined distance, using bounding boxes to determine the correct orientation.
This solution enhances user immersion by ensuring objects on a map are properly aligned with map features, simplifying the placement process and reducing manual labor.
Smart Images

Figure 2025037750000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to an information processing program, an information processing method, and an information processing device. [Background technology]
[0002] 2. Description of the Related Art Conventionally, there is known a location information game in which the game progresses based on location information of a terminal carried by a player.
[0003] For example, Patent Document 1 discloses that in a location-based game, a game character controlled by a player gains experience points by defeating enemy characters, and the game progresses as the game character levels up in accordance with the experience points gained. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] Patent Publication No. 2022-076018 Summary of the Invention [Problem to be solved by the invention]
[0005] Incidentally, when a map is used as information, objects such as buildings are often placed on the map. However, because objects are placed at a pre-determined angle, the angle often does not match the map information, such as roads, displayed on the map, reducing the user's sense of immersion. Although it is possible to match the object placement angle to the angle of roads, etc., manually correcting the placement angle of each object is time-consuming and unrealistic.
[0006] An object of the present disclosure is to provide an information processing program, an information processing method, and an information processing device that are capable of arranging an object placed on a map toward map information. [Means for solving the problem]
[0007] The information processing program of the first aspect causes a computer to execute a process of placing a predetermined face of an object toward the map information when a distance between a position of map information displayed on a map that is closest to the object and a position at which the object is to be placed is within a predetermined distance.
[0008] The information processing program of the second aspect is the information processing program of the first aspect, wherein the map information is at least one of a line segment indicating a road displayed on a map and a point indicating real estate displayed on the map.
[0009] An information processing program of a third aspect is the information processing program of the second aspect, which causes the computer to execute a process of placing the object at an angle that matches the angle of the line segment if the distance between the position of the line segment that is closest to the object to be placed on the map and the position at which the object is to be placed is within a predetermined distance.
[0010] An information processing program of a fourth aspect is an information processing program of the second or third aspect, which causes the computer to create a rectangular bounding box of a predetermined range that includes both points of the line segment indicating a road or the point indicating real estate, and to execute a process of placing the object toward the line segment or the point associated with the bounding box that has a collision detection with the object, at an angle that matches the angle of the line segment or toward the point.
[0011] In a fifth aspect of the information processing method, a computer executes a process of placing an object with a predetermined side facing the map information when the distance between a position of map information displayed on a map that is closest to the object and a position at which the object is to be placed is within a predetermined distance.
[0012] An information processing device of a sixth aspect includes a processor, and when a distance between a position of map information displayed on a map that is closest to an object to be placed on the map and a position at which the object is to be placed is within a predetermined distance, the processor places a predetermined side of the object facing the map information. Effect of the Invention
[0013] In the information processing program, the information processing method, and the information processing device according to the present disclosure, an object to be placed on a map can be placed facing the map information. [Brief description of the drawings]
[0014] [Figure 1] FIG. 2 is a block diagram showing a hardware configuration of an information processing device according to the present disclosure. [Diagram 2] 11 is an explanatory diagram for explaining an example of a process of arranging objects on a map performed by an information processing device of the present disclosure. FIG. [Diagram 3] FIG. 1 is an explanatory diagram for explaining a bounding box of the present disclosure. [Figure 4] FIG. 2 is an explanatory diagram for explaining a relationship between a line segment and an object according to the present disclosure. [Figure 5A] FIG. 11 is an explanatory diagram illustrating an example of an object to be displayed on a display of a terminal device of a user playing a game. [Figure 5B] FIG. 11 is an explanatory diagram illustrating an example of an object to be displayed on a display of a terminal device of a user playing a game. [Figure 5C] FIG. 11 is an explanatory diagram illustrating an example of an object to be displayed on a display of a terminal device of a user playing a game. [Figure 6] 13 is a flowchart showing the flow of a control process. [Figure 7] 11 is an explanatory diagram for explaining an example of a process of arranging objects on a map performed by an information processing device of the present disclosure. FIG. [Figure 8]FIG. 11 is an explanatory diagram illustrating an example of an object to be displayed on a display of a terminal device of a user playing a game. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0015] Hereinafter, an example of an embodiment of the present disclosure will be described with reference to the drawings. In each drawing, the same or equivalent components and parts are given the same reference numerals. In addition, the dimensional ratios of the drawings are exaggerated for the convenience of explanation and may differ from the actual ratios.
[0016] The information processing device 10 according to this embodiment will be described below. 1 is a block diagram showing a hardware configuration of an information processing device 10. The information processing device 10 is, for example, a computer used to develop game software.
[0017] 1, an information processing device 10 includes a CPU (Central Processing Unit) 11, a ROM (Read Only Memory) 12, a RAM (Random Access Memory) 13, a storage 14, a display unit 15, an operation unit 16, and a communication interface (I / F) 17. Each component is connected to each other via a bus 18 so as to be able to communicate with each other.
[0018] The CPU 11 is a central processing unit that executes various programs and controls each part. Here, the CPU 11 is an example of a processor.
[0019] The ROM 12 stores various programs and various data. The RAM 13 serves as a working area for temporarily storing programs or data.
[0020] The storage 14 is configured by a storage device such as a hard disk drive (HDD), a solid state drive (SSD), or a flash memory, and stores various programs and various data. In this embodiment, the storage 14 stores an information processing program 14A and map information 14B of the present disclosure. The CPU 11 reads the information processing program 14A from the storage 14, expands it in the RAM 13, and executes processing. As a result, the information processing device that executes the information processing program operates as the information processing device of the present disclosure. The information processing program 14A may be stored in the ROM 12. The type of the map information 14B does not matter. For example, the map information 14B may be uniquely created or may use map data such as MAPBOX (registered trademark).
[0021] For example, a liquid crystal display (LCD) or an organic EL (Electro Luminescence) display is used as the display unit 15. The display unit 15 may be integrated with a touch panel.
[0022] The operation unit 16 is implemented by devices for inputting operations, such as a keyboard and a mouse. The operation unit 16 receives various operations from the user of the information processing device 10.
[0023] The communication I / F 17 is an interface for connecting the information processing device 10 to a network. For example, the communication I / F 17 uses a wired communication standard such as Ethernet (registered trademark) or FDDI (Fiber Distributed Data Interface), or a wireless communication standard such as 4G, 5G, or Wi-Fi (registered trademark).
[0024] Next, an example of processing for arranging the object 150 on a map performed by the information processing device 10 in this embodiment will be described with reference to FIGS.
[0025] Fig. 2 is a diagram showing an example of map information displayed on a map, in which a rectangular bounding box 200 is created for a line segment 100 indicating a road displayed on a map, the bounding box 200 being a predetermined range including both points 110 of the line segment 100. In this embodiment, as shown in Fig. 2, bounding boxes 200 are created for all line segments 100 indicating roads. Here, in this embodiment, the bounding box 200 is created with a size that surrounds a position 210 that is furthest in the east-west, north-south and east-west directions among points within a predetermined range of 50 m (meters) from both points 110 of the line segment 100 in each of the east-west, north-south and west directions, as shown in Fig. 3.
[0026] Furthermore, for all objects 150 arranged on the map, the information processing device 10 detects bounding boxes 200 that are subject to collision determination with the objects 150. Then, it detects line segments 100 that indicate roads associated with the detected bounding boxes 200. By detecting line segments 100 using the bounding boxes 200 in this manner, it is possible to reduce candidates for line segments 100 to be detected, and it is possible to reduce the processing load.
[0027] In the example shown in FIG. 2, a bounding box 201 and a bounding box 202 are detected from a bounding box 200, and line segments 101 and 102 associated with the bounding boxes 201 and 202 are detected. Then, of the detected line segments 101 and 102, the line segment 102 closest to the object 150 to be placed on the map is detected, and the distance from the object 150 to the closest line segment 102 is calculated. Here, the distance from the object 150 to the line segment 102 is calculated using position information on the position where the object 150 is placed and position information on the position where the line segment 102 is placed. When the calculated distance is within a predetermined distance, for example, 20 m, the information processing device 10 places a predetermined face of the object 150 facing the line segment 102, as shown in FIG. 4. Here, placing a predetermined face facing the line segment 102 means calculating the angle of the line segment 102 based on north, and placing the object 150 at an angle that matches the angle of the line segment. Moreover, the predetermined distance is not limited to within 20 m, but may be within 50 m, which is the range in which the bounding box 200 is created. In this embodiment, the object 150 is configured with an image of a building. The predetermined surface of the object 150 is preferably a surface on which an image of the entrance of the building is drawn. By configuring it in this way, it is possible to give the user an image of entering the building from the road.
[0028] Note that an example of the object 150 is not limited to being composed of an image of a building, and may be composed of, for example, an image of an item, a character, an animal, or a robot that can be used by the user. The object 150 also includes an object corresponding to a building that does not exist on a map of real space. That is, the object 150 may be composed of an image of a fantasy building or a historical building that existed in the past. In addition, even if the road in this embodiment is not a straight line but a curved portion, the road is composed in the map information as a collection of straight line segments, that is, a collection of straight lines that change angle little by little.
[0029] Next, an example of an object displayed on a display of a terminal device of a user playing a game, such as a home game console or a smartphone, will be described with reference to FIGS. 5A to 5C.
[0030] 5A shows an example of the conventional technology in which the process of arranging the object 150 on the map, which is performed by the information processing device 10 in the present embodiment described above, is not performed. Specifically, the object 150 is displayed on the display at a predetermined angle or a random angle of the object 150, regardless of the angle θ of the line segment 102 indicating the road calculated based on north.
[0031] 5B shows an example of a case where the information processing device 10 in the present embodiment performs the process of arranging the object 150 on the map. Specifically, the object 150 is displayed with its angle adjusted to match the angle θ of the line segment 102 indicating the road calculated with the north as the base. Here, the object 150 in this example is arranged at an angle adjusted to the angle of the line segment 102 indicating the road, while remaining at the position where the object 150 is arranged.
[0032] FIG. 5C shows an example of a case where the position where the object 150 is placed is moved from the position where the object 150 is placed in FIG. 5B to a position further along the position of the line segment 102 indicating the road. With this configuration, it is possible to place buildings in association with roads more easily than in the example shown in FIG. 5B. In addition, in this embodiment, the line segment 102 indicating the road is set to be displayed as a road of a predetermined width for each road when displayed on the display of the terminal device of the user playing the game. Then, it is desirable to move the position where the object 150 is placed to a position along the road of a predetermined width.
[0033] Next, the operation of the information processing device 10 in this embodiment will be described with reference to FIG.
[0034] 6 is a flowchart showing the flow of processing for arranging objects 150 on a map, which is performed by the information processing device 10 in this embodiment. The CPU 11 reads out the information processing program 14A from the storage 14, expands it in the RAM 13, and executes it, thereby performing the processing. The processing shown in FIG. 6 is performed for all objects 150 to be arranged on the map.
[0035] 6, the CPU 11 extracts a line segment 100 from the map information, and then proceeds to the next step S102.
[0036] In step S102, the CPU 11 creates a bounding box 200 for each line segment 100 extracted in step S100. Then, the process proceeds to the next step, S104.
[0037] In step S104, the CPU 11 detects the bounding box 200 that collides with the object, and then proceeds to the next step S106.
[0038] In step S106, the CPU 11 extracts the line segment 100 to which the associated line segment 100 is closest from within the bounding box 200 detected in step S104, and then proceeds to the next step S108.
[0039] In step S108, the CPU 11 calculates the distance from the object 150 to the closest line segment 100 extracted in step S106, and then proceeds to the next step S110.
[0040] In step S110, the CPU 11 determines whether the distance calculated in step S108 is within a predetermined distance, and if it is determined that the distance is within the predetermined distance, the process proceeds to the next step S112.
[0041] In step S112, the CPU 11 calculates the angle of the line segment 100 calculated in step S108, and then proceeds to the next step S114.
[0042] In step S114, object 150 is placed at an angle that matches the angle of line segment 100 calculated in step S112, and the process then ends.
[0043] On the other hand, if it is not determined in step S110 that the distance calculated in step S108 is within the predetermined distance, the process proceeds to step S120. In step S120, the object 150 is placed at a predetermined angle, and the process then ends.
[0044] Although a computer that develops game software has been described as an example of an information processing device, the present invention is not limited to this. For example, a terminal device such as a smartphone or a home game console operated by a user, or a server device that progresses the game play on the terminal device, may be an example of an information processing device. In this case, the above-mentioned process is performed each time the object 150 is displayed as the game progresses. Furthermore, the information processing device 10 is not limited to a computer that develops game software, and may be a computer that develops software using a map.
[0045] Next, another example of the process of arranging the object 150 on the map performed by the information processing device 10 in this embodiment will be described with reference to FIGS.
[0046] Fig. 7 is a diagram showing an example of a rectangular bounding box 200 created for a point 300 indicating real estate displayed on a map, which is an example of map information displayed on a map, and having a predetermined range including the point 300. In this embodiment, as shown in Fig. 7, bounding boxes 200 (201, 202) are created for all points 300 (301, 302) indicating real estate. Here, in this embodiment, the bounding box 200 is created with a size that surrounds a predetermined range, for example, a point 50 m in each of the north-south, east-west directions of the point 300.
[0047] Furthermore, the information processing device 10 detects, for all objects 150 to be arranged on the map, bounding boxes 200 that are subject to collision determination with the objects 150. Then, it detects points 300 indicating real estate associated with the detected bounding boxes 200. In the example shown in FIG. 7, bounding boxes 201 and 202 are detected from the bounding boxes 200, and points 301 and 302 associated with the bounding boxes 201 and 202 are detected. Then, of the detected points 301 and 302, the point 301 closest to the object 150 to be arranged on the map is detected, and the distance from the object 150 to the closest point 301 is calculated. Here, the distance from the object 150 to the point 301 is calculated using position information where the object 150 is arranged and position information where the line segment 102 is arranged. When the calculated distance is within a predetermined distance, for example, 20 m, the information processing device 10 places the predetermined surface of the object 150 toward the point 301, as shown in FIG. 8. Here, the predetermined distance is not limited to within 20 m, and may be within 50 m, which is the range in which the bounding box 200 is created. Here, in this embodiment, the point 301 (300) is displayed as an image of a castle as an image of real estate. In addition, in this embodiment, the object 150 is configured with an image of a cannon, as shown in FIG. 8. And, it is desirable that the predetermined surface of the object 150 is a surface on which an image of the muzzle of the cannon is described. By configuring in this way, it is possible to give the user an image of the cannon pointing the muzzle at the real estate. Note that the image of the real estate is not limited to the image of a castle, and may be an image of another real estate. Also, an example of the object 150 is not limited to being configured with an image of a cannon, and may be configured with, for example, an image of an item, a character, an animal, or a robot that the user can use.
[0048] Although the embodiments of the present disclosure have been described in detail above with reference to the accompanying drawings, the technical scope of the present disclosure is not limited to such examples. It is clear that a person having ordinary knowledge in the technical field of the present disclosure can conceive of various modified examples or examples of modifications within the scope of the technical ideas described in the claims, and it is understood that these modified examples or examples of modifications also belong to the technical scope of the present disclosure.
[0049] In addition, the effects described in the above embodiments are explanatory or exemplary, and are not limited to those described in the above embodiments. In other words, the technology according to the present disclosure may achieve other effects that are obvious to a person having ordinary skill in the technical field of the present disclosure from the description in the above embodiments, in addition to or in place of the effects described in the above embodiments.
[0050] In the above embodiment, the program is pre-stored (installed) in the storage 14, but the present invention is not limited to this. The program may be provided in a form recorded on a recording medium such as a CD-ROM (Compact Disk Read Only Memory), a DVD-ROM (Digital Versatile Disk Read Only Memory), or a USB (Universal Serial Bus) memory. The program may also be downloaded from an external device via the network 30.
[0051] In addition, in the above-described embodiments, the term "processor" refers to a processor in a broad sense, and includes general-purpose processors (e.g., CPU: Central Processing Unit, etc.) and dedicated processors (e.g., GPU: Graphics Processing Unit, ASIC: Application Specific Integrated Circuit, FPGA: Field Programmable Gate Array, programmable logic device, etc.).
[0052] A game is a set of activities and rules for playing or competing. Games are played, for example, by players using strategies and skills to achieve a specific goal. Games are played to achieve various goals, for example, competitive goals such as winning, combat goals such as defeating an opponent, educational goals such as learning, and narrative goals such as completing the progression of a scenario. Games may be competitive or non-competitive.
[0053] In addition, the operations of the processor in the above-mentioned embodiments may be performed not only by one processor but also by multiple processors located at physically separate locations working together. The order of the operations of the processor is not limited to the order described in the above-mentioned embodiments, and may be changed as appropriate. [Explanation of symbols]
[0054] 10. Information processing device 100 lines 110 both points 150 Objects 200 Bounding Box 300 points
Claims
1. On the computer, An information processing program for executing a process of placing an object with a predetermined side facing the map information when the distance between the position of the map information displayed on a map that is closest to the object and the position at which the object is to be placed is within a predetermined distance.
2. 2. The information processing program according to claim 1, wherein the map information is at least one of a line segment indicating a road displayed on a map and a point indicating real estate displayed on a map.
3. The computer includes:
3. The information processing program according to claim 2, for executing a process of placing the object at an angle that matches the angle of the line segment when the distance between the position of the line segment that is closest to the object to be placed on the map and the position at which the object is to be placed is within a predetermined distance.
4. The computer includes: Creating a rectangular bounding box of a predetermined range including both points of the line segment indicating a road or the point indicating a real estate; 4. The information processing program according to claim 2 or claim 3, for executing a process of placing an object toward a line segment or a point associated with the bounding box that has a collision detection with the object, at an angle that matches the angle of the line segment or toward the point.
5. An information processing method in which, when the distance between the position of map information displayed on a map that is closest to an object to be placed on the map and the position at which the object is to be placed is within a predetermined distance, a process is executed in which a predetermined face of the object is placed facing the map information.
6. A processor is provided. The processor, An information processing device that positions a predetermined face of an object toward the map information when the distance between the position of map information displayed on a map that is closest to the object and the position at which the object is to be placed is within a predetermined distance.
Citation Information
Patent Citations
Method and system for computer to progress a game based on user's location information, and program for causing a computer to execute said method
JP2022076018A