Game program, information processing device, and object display method

The information processing device enhances game visibility by highlighting hidden objects with color changes, addressing the challenge of maintaining player interest in games with obscured elements.

JP7577014B2Active Publication Date: 2024-11-01KOEI TECMO GAMES CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2021057444
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-03-30
Publication Date
2024-11-01
Estimated Expiration
2041-03-30

AI Technical Summary

Technical Problem

Conventional game technologies struggle to maintain player interest when objects hidden behind obstacles are difficult to notice, leading to a decrease in engagement.

Method used

An information processing device that generates image data and applies color settings to highlight overlapping objects, enhancing visibility by changing the color of the first object where it overlaps with a second object hidden behind it.

Benefits of technology

Improves game interest by making hidden objects more visible, increasing player engagement and enjoyment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007577014000002
    Figure 0007577014000002
  • Figure 0007577014000003
    Figure 0007577014000003
  • Figure 0007577014000004
    Figure 0007577014000004
Patent Text Reader

Abstract

To provide a game program with increased interest in a game.SOLUTION: Provided is a game program to cause an information processing device to function as: an image data generation unit for generating image data that a virtual camera has captured a plurality of objects arranged in a virtual space; a determination unit for determining whether or not at least a part of a first object and a second object is overlapped when viewed from the virtual camera, referring to a storage unit for storing position information and shape information of the plurality of objects; and a color setting unit for changing the color of at least a portion that the second object and the first object are overlapped in the image data, when at least a portion of the first object and the second object existing on the back side of the first object is overlapped.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a game program, an information processing device, and an object display method. [Background technology]

[0002] There are known games in which an object may be hidden behind an obstruction. For example, in a game in which the viewpoint is a virtual camera arranged in a virtual three-dimensional space, multiple objects may be present in the field of view, and the player may see the multiple objects overlapping. For example, in a fighting game, an enemy character may be hidden behind a building, or an item may be placed behind a tree. In such cases, a technique is known for adding visual effects to objects hidden behind obstructions so as not to impair the interest of the game (see, for example, Patent Document 1).

[0003] Patent Document 1 discloses a technique for displaying a marker such as a silhouette, an arrow, or a frame when a character is hidden by an obstacle. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] Patent No. 3637031 Summary of the Invention [Problem to be solved by the invention]

[0005] However, the conventional technology has a problem that the interest of the game may be reduced. For example, when a second object hidden by a first object is displayed as a silhouette, it is difficult for a player to notice the existence of the second object, and the interest of the game may be reduced.

[0006] In view of the above problems, an object of the present invention is to provide a game program that improves the entertainment value of the game. [Means for solving the problem]

[0007] In consideration of the above problems, the present invention provides a game program for causing an information processing device to function as an image data generation unit that generates image data of a plurality of objects arranged in a virtual space photographed by a virtual camera, a determination unit that determines whether a first object and at least a portion of a second object overlap as viewed from the virtual camera by referring to a memory unit that stores positional information and shape information of the plurality of objects, and a color setting unit that, when the first object overlaps with at least a portion of the second object that is located behind the first object, changes the color of at least a portion of the portion of the image data where the second object and the first object overlap. Effect of the Invention

[0008] It is possible to provide a game program that improves the entertainment value of the game. [Brief description of the drawings]

[0009] [Figure 1] 11 is an example of a diagram showing a monster object projected onto a virtual camera in a game world. [Diagram 2] FIG. 1 is a diagram illustrating an example of a configuration of a game system. [Diagram 3] FIG. 2 is a diagram illustrating an example of a hardware configuration of an information processing device. [Figure 4] FIG. 2 is an example of a functional block diagram illustrating functions of an information processing device divided into blocks. [Diagram 5] FIG. 11 is a diagram illustrating an example of an attribute of an object. [Figure 6] FIG. 2 is a diagram illustrating a method for generating a captured image. [Figure 7] FIG. 2 is a diagram illustrating rasterization of polygons by scanlines. [Figure 8] Schematic of the Z-buffer and frame buffer. [Figure 9]FIG. 13 is a flowchart illustrating an example of a hidden surface removal process. [Figure 10] 11 is a flowchart illustrating an example of a procedure in which a color setting unit emphasizes, by using a color, at least a part of an overlapping portion between a second object and a first object; FIG. [Figure 11] 13 is an example of a captured image in which color is set only to the outer edge of a second object. [Figure 12] FIG. 11 is a diagram showing a display example of a second object. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] Hereinafter, an embodiment of the game program of the present disclosure will be described with reference to the drawings. In this specification and the drawings, substantially the same configurations are denoted by the same reference numerals, and duplicated explanations will be omitted.

[0011] <Overview of Operation of the Game System of the Present Embodiment> First, the general operation of the game system of this embodiment will be described with reference to Fig. 1. Fig. 1 shows a monster object 21 photographed by a virtual camera 10 in a virtual space (for example, a virtual three-dimensional space). Note that in reality, a player character operated by the player himself often exists in the game world, but this is omitted in Fig. 1.

[0012] With respect to the viewpoint of virtual camera 10, there is a wall object 11 in front of monster object 21. In an image (hereinafter referred to as a captured image) of objects in the game world photographed by virtual camera 10, monster object 21 is hidden by wall object 11. For this reason, the game player cannot notice the presence of the monster.

[0013] Conventionally, there are known techniques for informing a player of the presence of an object hidden behind an obstruction, such as a technique for displaying a silhouette of the object on the obstruction and a technique for displaying the object through the obstruction. However, the technique for displaying a silhouette may make it difficult for a player to notice an object hidden behind an obstruction, and the technique for displaying the object through the obstruction may make it difficult for a player to see the object.

[0014] Therefore, the game program of this embodiment highlights hidden objects with a color, and further displays objects hidden at least behind an obstruction so that they can be seen.

[0015] FIG. 1(b) is an example of a photographed image. In the photographed image of FIG. 1(b), a monster object 21 is displayed on a wall object 11. The color of the monster object 21 is at least different from that of the wall object 11, and is preferably a color that can emphasize the presence of the monster object 21. For example, the color of the monster object 21 is emphasized with a higher density of red than when the monster object 21 is not hidden. The emphasized color may be any color, such as blue, green, yellow, or gold. Also, the wall object 11 may be semi-transparent, allowing the monster object 21, whose color is emphasized, to be seen through it.

[0016] This improves the visibility of objects hidden behind obstacles, making the game program more entertaining.

[0017] <Terminology> The game program of this embodiment emphasizes the color of the monster object 21 in order to improve the visibility of the monster object 21 hidden by the wall object 11. Visually, the player sees in the image data that at least a part of the overlapping portion of the wall object 11 and the monster object 21 is a different color from the surroundings. Also, as image processing, a process is performed to change the color of the wall object 11 in the overlapping portion with the monster object 21.

[0018] <Game System> Next, a configuration example of a game system will be described with reference to Fig. 2. Fig. 2 is a diagram showing the configuration of a game system 1 of this embodiment. The game system 1 has an information processing device 3, a game controller 5, and a display device 7. Each of the game controller 5 and the display device 7 is connected to the information processing device 3 so as to be able to communicate with each other via wire or wirelessly.

[0019] The information processing device 3 is, for example, a stationary game machine. However, the information processing device 3 is not limited to this, and may be, for example, a portable game machine integrally equipped with an input unit, a display unit, etc.

[0020] Furthermore, the information processing device 3 does not have to be a dedicated game machine, and may be, for example, a computer, a desktop computer, a notebook computer, a tablet computer, or the like that is manufactured and sold as a computer, or a smartphone, a mobile phone, or the like that is manufactured and sold as a telephone. These devices are usually used as general-purpose information processing terminals, but when a player executes an installed game program, the player can progress through the game in the same way as with a dedicated game machine.

[0021] The game program of this embodiment is installed in the information processing device 3. The game program is distributed in a state stored in an optical storage medium such as a CD-ROM or a semiconductor memory such as a USB memory, or is distributed in a form in which it is downloaded from a server.

[0022] The player uses the game controller 5 to input various operations. In the example shown in FIG. 2, the game controller 5 has, for example, a cross key 9 and a plurality of buttons 8. Note that the game controller 5 may have, for example, a joystick or a touchpad instead of or in addition to the above. The game controller 5 may also have a microphone, allowing voice operation. The game controller 5 may also have a gyro sensor, an acceleration sensor, etc., allowing the player to operate the game controller 5 by changing its attitude.

[0023] Furthermore, the information processing device 3 may further communicate with a server on the network. In this case, a plurality of information processing devices 3 executing the same game program are connected to the server, enabling a so-called online game. An online game is, for example, a game in which multiple players can cooperate to operate the same game program. The server of an online game performs the minimum processing of accepting the positions and operation commands of other players and transmitting them to the information processing devices 3 of the other players. The information processing device 3 performs the actual game processing, such as drawing each player and reflecting the operation commands.

[0024] Furthermore, the game system 1 may be of a so-called P2P (Peer To Peer) type in which an information processing device 3 communicates with another information processing device 3.

[0025] The game system 1 may also be a so-called cloud game.

[0026] In the following, the game system 1 of this embodiment will be described mainly using the configuration of FIG.

[0027] <Example of hardware configuration of information processing device> Fig. 3 is an example of a hardware configuration diagram of the information processing device 3. As shown in Fig. 3, the information processing device 3 includes, for example, a CPU 501, a ROM 502, a RAM 503, a GPU 504, a dedicated integrated circuit 505 constructed for a specific purpose such as an ASIC or an FPGA, an input device 506, an output device 507, a recording device 508, a drive 509, a connection port 510, and a communication device 511. These components are connected to each other via a bus 513, an input / output interface 514, etc. so as to be able to transmit signals to each other.

[0028] The game program can be recorded in, for example, the ROM 502, the RAM 503, the recording device 508, or the like.

[0029] The CPU 501 may, for example, directly read out and execute the game program from the recording device 508, or may execute the game program after first loading it into the RAM 503. Furthermore, when the CPU 501 receives the game program via the communication device 511, the drive 509, or the connection port 510, for example, the CPU 501 may directly execute the received game program without recording it in the recording device 508.

[0030] Furthermore, the CPU 501 may perform various processes based on signals and information input from an input device 506, such as a mouse, keyboard, microphone, etc. (not shown), including the above-mentioned game controller 5, as necessary.

[0031] The GPU 504 performs processing for image display, such as rendering processing, in response to instructions from the CPU 501 .

[0032] Then, the CPU 501 and the GPU 504 output the results of the above-mentioned processing from an output device 507 including, for example, the above-mentioned display device 7 and audio output unit. The CPU 501 and the GPU 504 may transmit the results of the processing via a communication device 511 or a connection port 510 as necessary, or may record the results in the recording device 508 or recording medium 512.

[0033] The hardware configuration of the server or general-purpose information processing device may be the same as that of the information processing device 3, or may be different from that of the information processing device 3, but this does not pose any problems for the convenience of explaining this embodiment.

[0034] <Game summary> The method of displaying an object hidden by an obstruction in this embodiment can be applied regardless of the type (genre) of the game. That is, any game in which an object may be hidden by an obstruction can be applied. Note that this obstruction is also an object in the game program. Hereinafter, the obstruction may be referred to as a "first object" and the object hidden by the obstruction may be referred to as a "second object."

[0035] For example, game types include action games, shooting games, simulation games, racing games, adventure games, role-playing games, sports games, etc. Furthermore, there are many games that combine multiple elements of these games.

[0036] Furthermore, the objects appearing in the game are not limited to, for example, human male characters, female characters, or the like, but also include non-human animals, creatures other than humans and animals, virtual creatures (e.g., monsters, spirits, aliens, etc.), robots, natural objects such as mountains and oceans, goods and objects, etc. In this embodiment, any object that can appear in the game can be the first object or the second object.

[0037] <Functions of information processing device> Fig. 4 is an example of a functional block diagram explaining the functions of the information processing device 3 by dividing them into blocks. As shown in Fig. 4, the information processing device 3 has an object generation unit 31, an object management unit 32, an image data generation unit 33, a color setting unit 34, a display control unit 35, and a determination unit 36. Each of these functional units of the information processing device 3 is a function or means realized by the CPU 501 shown in Fig. 3 executing a game program expanded in the RAM 503.

[0038] First, in this embodiment, an image of a plurality of objects is obtained by a virtual camera 10 arranged in a virtual space. The objects are also three-dimensional solid objects. Therefore, in this image, it is assumed that a second object overlaps a first object. In computer graphics, a three-dimensional object is composed of polygons (or a collection of three-dimensional points). A polygon is polygonal data formed by connecting three or more vertices, and is the smallest unit that composes a curved surface.

[0039] The object generation unit 31 places various objects in the virtual space. The object generation unit 31 converts the objects created in the local coordinate system into world coordinates that represent the game world and places them. Furthermore, the object generation unit 31 performs view coordinate transformation on each object. The view coordinate transformation is a process that transforms the coordinates of an object so that the virtual camera 10 becomes the origin, and reflects the associated effects (movement and rotation) on the object.

[0040] The object management unit 32 manages information relating to objects in an object data storage unit 39. The following will be described with reference to FIG.

[0041] Fig. 5(a) is a diagram showing an example of object attributes. Object attributes are information that indicates the characteristics of each object. Attributes vary depending on the game program, and Fig. 5(a) is merely one example.

[0042] Each item will be explained below. - Object ID is an identification information of an object that is unique in the game world. The object type indicates what kind of object it is. Object types vary depending on the game genre, but may include humans, items, robots, animals, etc. Gender is the gender of the character in the game program. - Ally / Enemy indicates whether the character corresponding to each player is an ally or enemy when playing a game in which multiple players are fighting. Rarity indicates how difficult it is to obtain an item. For example, the rarity of an item is S, followed by A, B, and C. Rarity is an example of a predetermined value. ·HP (Hit Point) is the remaining vitality of the object if it is a character. Normally, a character dies when HP reaches zero. HP is an example of a predetermined value. MP (Magic Point) is the remaining magical power when the object is a character. Normally, the player can use magic by consuming MP according to the type of magic until MP becomes zero. MP is an example of a predetermined value. Weapon is the type of weapon the character carries. Herbs are a type of recovery item carried by characters. They restore a certain amount of HP.

[0043] Fig. 5(b) is a diagram showing an example of position information and shape information of an object. The object data storage unit 39 stores the position information and shape information of the object for each object. Since an object is formed by polygons, Fig. 5(b) shows three coordinates (world coordinate system) of each polygon of the object. In addition to the information shown in the figure, each polygon also has a normal vector, vertex color information, blending weight (combining ratio of colors of each vertex), etc.

[0044] Returning to Fig. 4, the image data generating unit 33 converts objects in the game world viewed from the virtual camera 10 into captured images (image data). Details will be described with reference to Fig. 6.

[0045] The determination unit 36 ​​determines whether or not a first object overlaps at least a part of a second object that is located behind the first object as viewed from the virtual camera 10. The determination unit 36 ​​refers to an object data storage unit 39 that stores position information and shape information of a plurality of objects, and determines whether or not two or more overlapping objects exist based on the position information and shape information of the objects. Details will be described with reference to FIG. 6.

[0046] The color setting unit 34 emphasizes at least a part of the overlapping portion between the second object and the first object by using a color. In simple terms, the color setting unit 34 sets a color for the first object, so that the player can see the second object that is supposed to be hidden by the first object. In terms of image processing, when there is a second object at least a part of which is hidden by the first object with respect to the viewpoint from the virtual camera 10, the color of the part of the first object in the captured image that overlaps at least a part of the second object is changed to a color different from that of the first object. Details will be described in FIG. 7 and subsequent figures.

[0047] The display control unit 35 displays on the display device 7 the captured image that is generated by the image data generation unit 33 and in which the color setting unit 34 has improved the visibility of the second object.

[0048] <About generating captured images> Fig. 6 is a diagram for explaining a method for generating a captured image. As shown in Fig. 6, a virtual camera 10 is placed in a virtual space. The position of this virtual camera 10 is a viewpoint 203, the direction of the virtual camera 10 is an optical axis 206, and the area formed by four straight lines connecting the viewpoint 203 and the four corners of the vertices of a virtual screen 202 is a field of view 204. A virtual screen 202 is placed at a certain short distance from the viewpoint 203 in the direction of the optical axis 206.

[0049] Within the field of view 204, a front clipping plane 205 is set at a fixed short distance from the viewpoint 203 in the direction of an optical axis 206, and a back clipping plane 207 is set at a fixed long distance. The range from the front clipping plane 205 to the back clipping plane 207 within the field of view 204 is defined as a visual field space 208, which is the range in which an image is rendered by perspective projection transformation. However, for image processing purposes, the front clipping plane is normalized to 0 and the back clipping plane is normalized to 1.0.

[0050] In this way, the coordinate system used to project an image onto the virtual screen 202 (the coordinate system after the view coordinate transformation) is the viewpoint coordinate system (X', Y', Z'), and the direction of the optical axis 206 is the Z' axis of the viewpoint coordinate system. The coordinates of the world coordinate system (X, Y, Z) (including the coordinates transformed from the coordinates of the local coordinate system) are transformed into the coordinates of the viewpoint coordinate system.

[0051] The image data generating unit 33 performs a perspective projection process, during which hidden surface removal using a Z-buffer is performed. After the hidden surface removal, the color setting unit 34 sets a color to the first object in order to improve the visibility of the second object.

[0052] A coordinate transformation matrix (not shown) is used for the perspective projection transformation. The coordinate transformation matrix may include a viewing angle, an aspect ratio, a near clip value, and a far clip value. The viewing angle is half the field of view 204 (the right or left half angle from the optical axis). The aspect ratio is the aspect ratio of the screen on which the captured image is displayed. For example, the size (aspect ratio) of the display device 7 or the window is used. The near clip value and the far clip value are the Z' coordinates of the front clip plane 205 and the rear clip plane 207. These values ​​may be set in the game program or may be dynamically set by an event that occurs in the game.

[0053] <Hidden surface removal and color change> Next, hidden surface removal and color change will be described with reference to Figures 7 to 10. First, hidden surface removal will be described.

[0054] FIG. 7 is a diagram for explaining rasterization of polygon 300 by scan line. Image data generating unit 33 scans all polygons 300 constituting an object by scan line 301 to determine pixels to be converted (rasterized) into a captured image. Scan line 301 is a straight line horizontal to the X' axis of the camera coordinate system, and the interval d is determined by the resolution of the captured image. Pixels between intersections A and B of three sides of polygon 300 and scan line 301 are pixels in the polygon. Since polygon 300 in FIG. 7 is projected onto the XY plane, intersections A and B with scan line 301 can be obtained (it does not matter whether scan line 301 and sides of polygon 300 intersect in virtual space). It is not necessary to obtain the coordinates of pixels between intersections A and B. For the sake of later explanation, the coordinates of intersection A are (xa, ya) and the coordinates of intersection B are (xb, yb). It is not necessary to obtain the z coordinate at the time of scanning.

[0055] The image data generating unit 33 prepares a Z buffer 311 and a frame buffer 312 as shown in Fig. 8. The squares of the Z buffer 311 and the frame buffer 312 represent each pixel of the captured image. The coordinates of a pixel are specified by (i, j).

[0056] The Z buffer 311 stores the distance to the object corresponding to each pixel of the captured image. In other words, the value of the Z' axis in FIG. 6 is stored. The frame buffer 312 stores the color of each pixel. For this reason, a frame buffer 312 is prepared for each of RGB. The image data generation unit 33 initializes the Z buffer 311 for each frame. The initial value is the maximum value (for example, the far clip value of 1.0). The image data generation unit 33 initializes the frame buffer 312 to the background color (the color displayed when nothing is present) for each frame.

[0057] 9 is a flowchart illustrating an example of the hidden surface removal process. As described above, the image data generating unit 33 initializes the Z buffer 311 and the frame buffer 312 (S1).

[0058] Next, the image data generating unit 33 extracts polygons 300 one by one from all objects in the visual field space 208 (S2). The order of extraction may be on an object-by-object basis, or may be sorted by polygon coordinates regardless of object.

[0059] The image data generating unit 33 converts the polygon 300 into a photographed image by performing perspective projection transformation (S3). Here, transformation is performed only on the vertices of the polygon 300. As a result, the coordinates (i, j) of each vertex of the polygon 300 in the photographed image are obtained.

[0060] Furthermore, the image data generating unit 33 scans the polygon 300 with the scan line 301 to determine intersections A and B between the polygon 300 and the scan line 301 (S4). A triangle onto which the polygon 300 is projected is obtained by perspective projection transformation in the Z buffer 311 and the frame buffer 312 as shown in FIG. 8. The pixel (i, j) that forms the left side of this triangle is intersection A. Similarly, the pixel (i, j) that forms the right side of the triangle is intersection B.

[0061] The image data generating unit 33 calculates the Z value for each pixel inside the polygon (intersections A and B, and the pixels between intersections A and B) (S5). Although derivation is omitted, the Z value is calculated by equation (1).

[0062]

number

[0063] Supplementally, (xi, yi, zi) are the coordinates of one of the three vertices of polygon 300. The normal vector (nx, ny, nz) of polygon 300 is known. Therefore, information processing device 3 can calculate d. Substituting the virtual space coordinates (xa, ya) of intersection A for x and y in formula (1) gives the Z value of intersection A on the Z' axis. Substituting the virtual space coordinates (xb, yb) of intersection B gives the Z value of intersection B on the Z' axis. For pixels between intersection A and intersection B, image data generating unit 33 divides the difference in the Z values ​​of intersection A and B by the number of pixels between intersection A and intersection B to apportion the difference.

[0064] Next, the image data generating unit 33 determines whether the value stored at (i, j) in the Z buffer 311 is smaller than the calculated Z value (S6).

[0065] If the value of Z buffer 311 is smaller than the calculated Z value, polygon 300 is closer, so image data generation unit 33 stores the color of the polygon at (i, j) in frame buffer 312 (S7). Image data generation unit 33 stores the color of polygon 300 in frame buffer 312 for each of RGB.

[0066] Furthermore, the image data generating unit 33 updates the value of the Z buffer 311 with the Z value calculated in step S5 (S8). This is for the purpose of comparing with the Z values ​​of the next and subsequent polygons 300.

[0067] The image data generating unit 33 judges whether or not the processing of one polygon 300 is completed (S9). If the processing of one polygon 300 is not completed, the image data generating unit 33 repeats from step S5.

[0068] When the processing of one polygon 300 is completed, the image data generating unit 33 judges whether or not the processing of all polygons 300 in the visual field space 208 is completed (S10).

[0069] If the processing of all the polygons 300 has not been completed, the image data generating unit 33 repeats the process from step S2.

[0070] Through the above process, the captured image (having pixel values ​​of the frame buffer 312) displays the pixel values ​​(RGB) of the foreground object for each pixel. For example, when the process shown in FIG. 9 is completed, the captured image will be in the state shown in FIG. 10.

[0071] It should be noted that the hidden surface removal method shown in FIG. 9 is merely an example, and the object in the virtual space may be converted into the photographed image in any manner.

[0072] Once hidden surface removal has been performed, only the wall object 11 is displayed in the captured image.

[0073] <Changing the color of the first object> Next, color setting unit 34 calculates the Z value of the object having the attribute to be highlighted, and if it is greater than the value in Z buffer 311 (the object is at the back), sets a color in frame buffer 312 to improve the visibility of the second object.

[0074] 10 is a flowchart showing an example of a procedure (object display method) in which the color setting unit 34 highlights at least a part of an overlapping portion between a second object and a first object by using a color. The determination unit 36 ​​and the color setting unit 34 perform the process of FIG. 10 for each object.

[0075] First, the determination unit 36 ​​prepares a second Z buffer, initializes it to a maximum value (for example, 1.0), and initializes the second frame buffer to the background color (S11). For the sake of explanation, the Z buffer 311 used in Fig. 9 is referred to as the first Z buffer, and the frame buffer 312 used in Fig. 9 is referred to as the first frame buffer.

[0076] The determination unit 36 ​​calculates Z values ​​for all polygons 300 of an object with a predetermined attribute for which visibility is to be improved (S12). The object with the predetermined attribute is, for example, an object such as a character or a predetermined item. For the polygons 300 of the object that overlap each other, the Z value of the foremost polygon 300 is stored in the second Z buffer. The method of calculating the Z value is the same as in FIG. 9, and the coordinates (i, j) and Z value of each polygon 300 are calculated. The determination unit 36 ​​stores this Z value in the second Z buffer, and stores the color of the polygon in the second frame buffer.

[0077] The determination unit 36 ​​compares the values ​​of the same coordinates (i, j) in the second Z buffer with those in the first Z buffer to determine whether the second Z buffer has a larger Z value than the first Z buffer (S13). In other words, it determines whether the second object is hidden by the first object or the like. Although a Z buffer is used here, the determination unit 36 ​​refers to the object data storage unit 39 that stores position information and shape information of multiple objects, and determines whether two or more overlapping objects exist based on the object position information and shape information.

[0078] If the determination in step S13 is Yes, the object with the predetermined attribute is the second object as referred to in this embodiment. The color setting unit 34 sets a color to the coordinates of each pixel in the first frame buffer where the second object exists (S14). In this way, a captured image such as that shown in FIG. 1(b) is obtained. In this way, the color setting unit 34 can change the color of the first object based on the shape of the second object.

[0079] For example, the color setting unit 34 can emphasize the red of the second object. In this case, the color setting unit 34 increases the R value and decreases the G and B values ​​of the R, G, and B values ​​of the second frame buffer. The color set in the second frame buffer is usually guaranteed to be different from the color of the first object in the first frame buffer. In other words, the color setting unit 34 changes the color of the portion where the second object and the first object overlap (changing the color from both the color of the second object and the color of the first object).

[0080] Furthermore, the color setting unit 34 may increase or decrease the saturation or the luminance of the color of the second object. In this manner, the color setting unit 34 changes the color of the first object using the color of the second object.

[0081] Then, the color setting unit 34 sets the changed color of the second frame buffer to the same pixel of the first frame buffer. The color setting unit 34 may not simply store this changed color in the first frame buffer, but may combine it with the color of the first frame buffer at a predetermined ratio. The player sees the second object as if it is transparent to the first object.

[0082] In addition, if the color set in the second frame buffer is the same as the color of the first object in the first frame buffer, the color setting unit 34 performs processing such as changing the color set in the second frame buffer to its complementary color.

[0083] Alternatively, the color setting unit 34 may simply set a predetermined color in the first frame buffer. For example, when the color setting unit 34 sets red, it sets (R, G, B) = (255, 0, 0) to the coordinates where the second object is present in the first frame buffer. When the color setting unit 34 sets blue, it sets (R, G, B) = (0, 0, 255) to the coordinates where the second object is present in the first frame buffer. When the color setting unit 34 sets green, it sets (R, G, B) = (0, 255, 0) to the coordinates where the second object is present in the first frame buffer. When the color setting unit 34 sets yellow, it sets (R, G, B) = (255, 255, 0) to the coordinates where the second object is present in the first frame buffer.

[0084] In this way, the color setting unit 34 can improve the visibility of the second object that is supposed to be hidden by the first object by setting a color to the first object. To indicate that the second object is hidden by the first object, the brightness or saturation of the changed color can also be reduced. The brightness is changed by converting the pixel value represented by RGB to brightness (e.g., Y in the YUV color space), lowering the brightness, and then converting it back to RGB. The saturation is changed by converting the pixel value represented by RGB to saturation (e.g., S in the HSV color space), lowering the saturation, and then converting it back to RGB.

[0085] <Other display examples of captured images> The color setting unit 34 may set a color only to the outer edge of the second object, instead of applying a color to the entire second object as in FIG. 1(b).

[0086] Fig. 11 is an example of a captured image in which color is set only to the outer edge of the second object. With the emphasis method as shown in Fig. 11, the player can notice the second object emphasized by the outer edge 320, and since the shape is emphasized, it is easy to determine what the second object is.

[0087] Such a display method can be generated by utilizing a second Z buffer. In step S12 of FIG. 10, the Z value of the second object is set in the second Z buffer. The Z value of the second object is smaller (closer) than the initial value of the second object. Therefore, if the color setting unit 34 applies a filter that detects edges of only the outer frame to the second Z buffer, the outer edge of the second object can be obtained.

[0088] In addition, there may be cases where only a part of the second object is hidden by the first object. In this case, the color setting unit 34 may emphasize with color only the part hidden by the first object, or may emphasize with color the part that is not hidden by the first object as well.

[0089] 12(a) is an example of a captured image in which only the portion overlapping with the second object is highlighted with color. Only the portion of the wall object 11 (first object) where the monster object 21 is hidden is colored.

[0090] In the display method shown in FIG. 12(a), the color setting unit 34 only needs to set colors to pixels in the first frame buffer that have a Z value (however, not including the maximum value, which is the initial value) in the second Z buffer used in FIG. 10 that is greater than the value in the first Z buffer. Note that the part of the second object that is not hidden by the first object may be displayed normally. At the stage where the processing in FIG. 9 is completed, the original color of the second object is set to the part of the second object that is not hidden by the first object. Also, in FIG. 12(a), the color setting unit 34 can set colors only to the outer edge.

[0091] 12B is an example of a captured image in which a color is set also to the portion of the second object that is not hidden by the first object. A color is set to the entire second object.

[0092] The display method as shown in Fig. 12(b) can be achieved by setting a color in the first frame buffer at the same coordinates as the coordinates at which the color of the polygon is set in the second frame buffer, similar to step S14 in Fig. 10. Note that, even in Fig. 12(b), the color setting unit 34 can set a color only to the outer edge.

[0093] <Change color according to attributes> In the following, a captured image in which the color setting unit 34 changes the color to emphasize the presence of a second object according to the attribute of the object will be described.

[0094] For example, the color setting unit 34 may change the color depending on the gender of the character. For example, red is set for female characters or red is emphasized. For example, blue is set for male characters or blue is emphasized. For example, yellow is set for characters of other genders or yellow is emphasized.

[0095] The color of the second object changes depending on the gender, making it easier for the player to determine whether the character hiding behind the first object is female or male.

[0096] The color setting unit 34 may change the color depending on whether the character is an ally or an enemy. For example, green is set for an ally character, or green is emphasized. For example, red is set for an enemy character, or red is emphasized.

[0097] The color of the second object changes depending on whether it is an ally or enemy, allowing the player to approach if the character is an ally and avoid approaching if the character is an enemy.

[0098] The color setting unit 34 may change the color according to the rarity of the object. For example, a yellow color is set for an object with a high rarity, or the yellow color is emphasized. For example, a blue color is set for an object with a low rarity, or the blue color is emphasized.

[0099] The color of the second object changes depending on its rarity, making it easier for the player to decide whether or not to go for the second object.

[0100] In addition to these, the color setting unit 34 may change the color according to the HP of the second object (ally character). If there is a character with little HP remaining and waiting for support from an ally, the player can proactively give an item such as a medicinal herb to the character.

[0101] Furthermore, the color setting unit 34 may change the color depending on whether or not the second object (ally character) has a weapon. If there is a character without a weapon, it becomes easier for the player to take action such as handing over the weapon.

[0102] Furthermore, the color setting unit 34 may change the color depending on whether the second object (ally character) does not have a recovery item and has little HP remaining. If there is a character with no recovery item and little HP remaining, it becomes easier for the player to take action such as handing over a recovery item.

[0103] <Major Effects> According to the game system of the present embodiment, the position and shape of an object hidden by an obstruction can be visibly displayed, and the player can also recognize the attributes of the object.

[0104] <Other application examples> The present invention is not limited to the above-described embodiment, and various modifications are possible without departing from the spirit and technical concept of the present invention.

[0105] For example, the information processing device 3 may display the second object with a hole made in the first object, either unchanged or with a different color. Making a hole means that the color of the hole in the first object is not used in the frame buffer. The information processing device 3 can achieve this by, for example, placing a transparent circular object in front of the first object.

[0106] In the present embodiment, at least a part of the overlapping portion between the second object and the first object is emphasized by color, but gradation may be performed by the shape of the second object. The information processing device 3 may also emphasize the color of the second object by dividing the shape of the second object into a mosaic pattern. The color of the first object may also be emphasized by a circle or a square, regardless of the shape of the second object. The position of the circle or square may be anywhere, such as the center of gravity or the top of the second object.

[0107] The color setting unit 34 may perform the highlighting process using the color of this embodiment only for second objects that are stationary. This is because a player is less likely to notice a stationary object. The color setting unit 34 displays a silhouette of a moving second object, and when the object comes to a standstill, performs the highlighting process using the color of this embodiment.

[0108] Furthermore, in this embodiment, the process of highlighting the second object is performed after the process of hidden surface removal, but the process of highlighting the second object and the process of removing the hidden surface may be performed in parallel.

[0109] Moreover, the configuration example in Fig. 4 and the like is divided according to main functions in order to facilitate understanding of the processing by the information processing device 3. The present invention is not limited by the manner in which the processing units are divided or the names of the processing units. The processing by the information processing device 3 can be divided into more processing units according to the processing contents. Also, it can be divided so that one processing unit includes more processes.

[0110] In addition, in this embodiment, some or all of the processing performed by the game program may be performed by a hardware processing circuit such as an ASIC (Application Specific Integrated Circuit), a DSP (digital signal processor), or an FPGA (field programmable gate array). [Explanation of symbols]

[0111] 1. Game System 3. Information processing equipment 5. Game Controllers 7 Display device 33 Image data generation unit 34 Color setting section

Claims

1. An information processing device, an image data generating unit that generates image data of a plurality of objects arranged in a virtual space photographed by a virtual camera; a determination unit that determines whether or not at least a part of a first object and a second object overlap with each other as viewed from the virtual camera by referring to a storage unit that stores position information and shape information of a plurality of the objects; When the first object and the second object located behind the first object overlap with each other at least in part, a color setting unit that changes a color of at least a part of an overlapping portion between the second object and the first object in the image data; Functioning as a the color setting unit changes a color of at least a part of an overlapping portion between the second object and the first object based on a shape of the second object; If only a portion of the second object is obscured by the first object, The color setting unit changes the color of an overlapping portion of the second object and the first object, and further changes the color of a portion of the second object that does not overlap with the first object to the same color as the changed first object.

2. An information processing device, an image data generating unit that generates image data of a plurality of objects arranged in a virtual space photographed by a virtual camera; a determination unit that determines whether or not at least a part of a first object and a second object overlap with each other as viewed from the virtual camera by referring to a storage unit that stores position information and shape information of a plurality of the objects; When the first object and the second object located behind the first object overlap with each other at least in part, a color setting unit that changes a color of at least a part of an overlapping portion between the second object and the first object in the image data; Functioning as a The color setting unit changes the color of at least a portion of an overlapping portion between the second object and the first object using the color of the second object and the color of the first object.

3. The game program described in Claim 2, wherein the color setting unit changes the color of at least a portion of the overlapping area between the second object and the first object to a color obtained by combining the modified color obtained by using the color of the second object with the color of the first object in a predetermined ratio.

4. The computer-readable storage medium according to claim 1 , wherein the color setting unit sets a color of at least a part of an overlapping portion between the second object and the first object to a predetermined color.

5. A game program according to any one of claims 1 to 4, wherein the color setting unit changes the color of at least a portion of the overlapping area between the second object and the first object in accordance with an attribute of the second object.

6. 6. The game program according to claim 1, wherein the color setting section changes saturation of a portion of the image data where the second object and the first object overlap.

7. an image data generating unit that generates image data of a plurality of objects arranged in a virtual space photographed by a virtual camera; a determination unit that determines whether or not at least a part of a first object and a second object overlap with each other as viewed from the virtual camera by referring to a storage unit that stores position information and shape information of a plurality of the objects; When the first object and the second object located behind the first object overlap with each other at least in part, a color setting unit that changes a color of at least a part of an overlapping portion between the second object and the first object in the image data; having the color setting unit changes a color of at least a part of an overlapping portion between the second object and the first object based on a shape of the second object; If only a portion of the second object is obscured by the first object, The color setting unit changes the color of the portion where the second object and the first object overlap, and further changes the portion of the second object that does not overlap with the first object to the same color as the changed first object.

8. An image data generation unit that generates image data of a plurality of objects arranged in a virtual space photographed by a virtual camera; a determination unit that determines whether or not at least a part of a first object and a second object overlap with each other as viewed from the virtual camera by referring to a storage unit that stores position information and shape information of a plurality of the objects; When the first object and the second object located behind the first object overlap with each other at least in part, a color setting unit that changes a color of at least a part of an overlapping portion between the second object and the first object in the image data; having The color setting unit changes a color of at least a part of an overlapping portion between the second object and the first object by using a color of the second object and a color of the first object.

9. A step of an information processing device generating image data of a plurality of objects arranged in a virtual space captured by a virtual camera; a step of the information processing device referring to a storage unit that stores position information and shape information of a plurality of the objects and determining whether or not at least a part of a first object and a second object overlap as viewed from the virtual camera; When the first object and the second object located behind the first object overlap with each other at least in part, changing a color of at least a part of an overlapping portion of the second object and the first object in the image data by the information processing device; having In the changing step, a color of at least a part of an overlapping portion between the second object and the first object is changed based on a shape of the second object, If only a portion of the second object is obscured by the first object, The object display method includes a step of changing a color of an overlapping portion of the second object and the first object, and further changing a portion of the second object that does not overlap with the first object to the same color as the changed first object.

10. An information processing device generates image data of a plurality of objects arranged in a virtual space captured by a virtual camera; a step of the information processing device referring to a storage unit that stores position information and shape information of a plurality of the objects and determining whether or not at least a part of a first object and a second object overlap as viewed from the virtual camera; When the first object and the second object located behind the first object overlap with each other at least in part, changing a color of at least a part of an overlapping portion of the second object and the first object in the image data by the information processing device; having The object display method, wherein the changing step includes a step of changing the color of at least a portion of the overlapping area between the second object and the first object using the color of the second object and the color of the first object.

Citation Information

Patent Citations

  • Game device and game program

    JP2003290550A

  • Game device, method of controlling game device, and program

    JP2013066561A

  • Information processing program, information processing method, information processing system, and information processor

    JP2018110659A

  • Game program and game device

    JP2020189064A

  • game device and game program

    JP3637031B2