JP-7857327-B2 - Information processing program, information processing system, information processing device, and information processing method
Inventors
- 森 洋介
- 山中 雄作
- 橋本 和典
Assignees
- 任天堂株式会社
Dates
- Publication Date
- 20260512
- Application Date
- 20240130
Claims (20)
- An information processing program executed in a computer of an information processing device, The aforementioned computer, A terrain rendering means that renders the faces of the terrain object that are facing the virtual camera, An internal determination means for determining whether the virtual camera is located inside the terrain object, When it is determined that the virtual camera is located inside the terrain object, a display change means is provided to change the display mode of the display image based on the image of the virtual space including the terrain object to a display mode different from the one when the determination is not made . An information processing program that functions as an image output means for performing the process of outputting the aforementioned display image to a display device.
- The information processing program according to claim 1, wherein the display changing means applies an effect to the image in which the virtual space including the terrain objects is rendered.
- The information processing program according to claim 1, wherein the display changing means places a change object in the virtual space.
- The information processing program according to claim 1 , wherein the display changing means reduces the visibility of an object located far from the virtual camera.
- The information processing program according to claim 4, wherein the display changing means applies fog to the object so that its visibility decreases the further it is from the virtual camera.
- The information processing program according to claim 1, wherein the display changing means changes the display mode of at least a portion of the non-front portion, which is the portion of the surface constituting the terrain object in which the front- facing surface was not drawn.
- The information processing program according to claim 6, wherein the display changing means changes the display mode of at least a portion of the non -front portion by darkening the background color of the virtual space.
- The information processing program according to claim 6, wherein the display changing means changes the display mode of the effect in the virtual space so that the effect is not displayed in the non-front portion.
- The information processing program according to claim 4, wherein the display changing means highlights the outline of a cavity inside the terrain object.
- The information processing program according to claim 1, wherein the display changing means reduces the visibility of the edges of the display image.
- The information processing program according to claim 1, wherein the internal determination means determines whether the virtual camera is located inside the terrain object based on whether the four corners of the near-clip surface of the virtual camera are located inside the terrain object.
- A determination means for determining whether permission conditions are met regarding how other objects, including the terrain objects , surround a player character in a virtual space. If the aforementioned permission conditions are not met and the virtual camera approaches the terrain object, avoidance control is performed to prevent the virtual camera from being located inside the terrain object. If the aforementioned permission conditions are met, the computer is further configured as a virtual camera control means to control the virtual camera without performing the avoidance control. The information processing program according to claim 1, wherein the virtual camera control means automatically moves the virtual camera so that it is positioned inside the terrain object when the permission conditions are met.
- The information processing program according to claim 1, further comprising the functioning of the computer as a transparency display means for displaying a player character in a virtual space in a way that allows the player character to be seen through a surface that is obscured by the surface facing the front, as viewed from the virtual camera.
- The information processing program according to claim 1, further comprising the functioning of the computer as a player character action control means for causing a player character in a virtual space to perform an action that destroys and/or deforms at least a portion of the terrain object based on user input.
- A determination means for determining whether the positional relationship between the player character in the virtual space and the terrain objects surrounding the player character satisfies the permission conditions, When the virtual camera approaches the terrain object if the positional relationship does not satisfy the permission conditions, avoidance control is performed to prevent the virtual camera from being located inside the terrain object. The computer is further configured as a virtual camera control means to control the virtual camera without performing the avoidance control when the positional relationship satisfies the permission conditions. The information processing program according to claim 1, wherein the determination means determines that the positional relationship satisfies the permission condition when the proportion of the area around the position based on the player character being obscured by the terrain object is greater than or equal to a threshold.
- A determination means for determining whether permission conditions are met regarding how other objects, including the terrain objects , surround a player character in a virtual space. If the aforementioned permission conditions are not met and the virtual camera approaches the terrain object, avoidance control is performed to prevent the virtual camera from being located inside the terrain object. If the aforementioned permission conditions are met, the computer is further configured as a virtual camera control means to control the virtual camera without performing the avoidance control. The information processing program according to claim 1, wherein the determination means determines whether or not the permission conditions are met based on the distance between the player character and the terrain object .
- A determination means for determining whether permission conditions are met regarding how other objects, including the terrain objects , surround a player character in a virtual space. If the aforementioned permission conditions are not met and the virtual camera approaches the terrain object, avoidance control is performed to prevent the virtual camera from being located inside the terrain object. If the aforementioned permission conditions are met, the computer is further configured as a virtual camera control means to control the virtual camera without performing the avoidance control. The information processing program according to claim 1, wherein the determination means determines whether the permission conditions are met by prioritizing the horizontal positional relationship between the player character and the terrain object in the virtual space over the vertical positional relationship between the player character and the terrain object .
- A terrain rendering means that renders the faces of the terrain object that are facing the virtual camera, An internal determination means for determining whether the virtual camera is located inside the terrain object, When it is determined that the virtual camera is located inside the terrain object, a display change means is provided to change the display mode of the display image based on the image of the virtual space including the terrain object to a display mode different from the one when the determination is not made . An information processing apparatus comprising an image output means that performs processing to output the aforementioned display image to a display device.
- A terrain rendering means that renders the faces of the terrain object that are facing the virtual camera, An internal determination means for determining whether the virtual camera is located inside the terrain object, When it is determined that the virtual camera is located inside the terrain object, a display changing means is provided to change the display mode of the display image based on the image of the virtual space including the terrain object to a display mode different from the one when the determination is not made . An information processing system comprising: an image output means for performing a process to output the aforementioned display image to a display device.
- A terrain rendering step that renders the faces of the terrain object that are facing the virtual camera, An internal determination step to determine whether the virtual camera is located inside the terrain object, If it is determined that the virtual camera is located inside the terrain object, the display change step involves changing the display mode of the display image based on the image of the virtual space including the terrain object to a display mode different from the one in the case where the determination was not made. An information processing method comprising an image output step of performing a process to output the aforementioned display image to a display device.
Description
This invention relates to an information processing program, information processing system, information processing device, and information processing method for performing processing that displays an image based on a virtual space as viewed from a virtual camera. Conventionally, technologies for displaying images of a virtual space as seen from a virtual camera have been disclosed (see, for example, Non-Patent Document 1). The technology disclosed in Non-Patent Document 1 reduces processing load by performing back-face culling, which involves not rendering the back-facing faces of a polygon relative to the virtual camera. "Unity User Manual - ShaderLab culling and depth testing", [online], Unity Technologies, [Accessed April 5, 2012], Internet (URL: https://docs.unity3d.com/2018.4/Documentation/Manual/SL-CullAndDepth.html) This diagram shows an example of the main unit 2 with the left controller 3 and right controller 4 attached.This diagram shows an example of the state in which the left controller 3 and the right controller 4 have been removed from the main unit 2.A six-view drawing showing an example of the main unit 2.A six-view drawing showing an example of the left controller 3.A six-view drawing showing an example of the right controller 4.Block diagram showing an example of the internal configuration of the main unit 2.Block diagram showing an example of the internal configuration of the main unit 2, left controller 3, and right controller 4.This diagram shows an example of a terrain object that is a voxel object.Figure 8 shows an example of what the terrain object looked like before a portion of it was deleted.Figure 8 shows an example of what the terrain looks like after a portion of the terrain object has been deleted.A diagram showing an example of the contents of voxel data.A diagram showing an example of property information that indicates the properties of a material.A diagram showing an example of texture information that indicates the texture of a material.A diagram showing an example of a mesh generation method.A diagram showing an example of a game image that includes terrain objects.This diagram shows an example where a virtual camera C is placed in a game space with terrain object TO and player character PC set up, in a first state.This diagram shows an example of how a player character PC erases part of a terrain object TO.This diagram shows an example of the destruction range of voxels targeted for destruction in terrain object TO.This diagram shows an example where a virtual camera C is placed in a second state within a game space where terrain object TO and player character PC are set.This diagram shows an example where a virtual camera C is placed in a third state within a game space where terrain objects TO and player characters PC are set.A diagram illustrating an example of the range of motion of virtual camera C when the underground camera permit conditions are not met, and an example of the range of motion of virtual camera C when the underground camera permit conditions are met.This diagram shows an example of images taken from the position of the player character PC, capturing the six sides (up, down, left, right, front, and back).This figure shows an example of a display image that will be shown on the display 12 based on the image viewed from the virtual camera C positioned in the first state.This figure shows an example of a display image that will be shown on the display 12 based on the image viewed from the virtual camera C positioned in the second state.This figure shows an example of a display image that will be shown on the display 12 based on the image viewed from the virtual camera C positioned in the third state.This figure shows an example of points P1 to P4 at the four corners of the near-clip surface of virtual camera C.This figure shows an example of a display image with a fog effect applied based on the distance from the virtual camera C.This figure shows an example of a display image that changes the display pattern of the background portion of the game space.This figure shows an example of various types of data used in information processing in game system 1.This figure shows an example of various types of data used in information processing in game system 1.A subroutine showing an example of the underground camera switching process in step S12 of the flowchart shown in Figure 30. The following describes a game system according to an example of this embodiment. An example of the game system 1 in this embodiment includes a main unit (information processing device; functioning as the game device main unit in this embodiment) 2, a left controller 3, and a right controller 4. The left controller 3 and the right controller 4 are detachable from the main unit 2. In other words, the game system 1 can be used as an integrated device by attaching the left controller 3 and the right controller 4 to the main unit 2. Alternatively, the game system 1 can be used with th