Game program and game device
The game program and device dynamically adjust sound based on object thickness and material to enhance realism and immersion by simulating realistic sound propagation, addressing limitations in existing audio playback methods.
Patent Information
- Application Number
- JP2023027926
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-27
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2043-02-27
AI Technical Summary
Existing game technologies limit the enhancement of realism through audio playback by relying on pre-generated sounds without considering the actual propagation and material properties of objects in the virtual space.
A game program and device that dynamically adjust sound based on the thickness and material of objects between a sound source and a listener using ray casting to simulate realistic sound propagation.
Enhances the sense of immersion and realism in virtual spaces by accurately simulating sound propagation, considering object thickness and material, thereby improving audio reproduction.
Smart Images

Figure 2024121059000001
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a game program and a game device. [Background technology]
[0002] Some game programs reproduce environmental sounds corresponding to game scenes in order to enhance the sense of realism (for example, Patent Document 1). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2007-209604 A Summary of the Invention [Problem to be solved by the invention]
[0004] In games, in order to enhance the sense of realism, it is required that sounds corresponding to the game scenes be reproduced.
[0005] An object of the present disclosure is to improve the sense of immersion through audio playback in a virtual space. [Means for solving the problem]
[0006] A first aspect of the present invention provides a computer comprising: a game progression unit that causes a character to move in a virtual space in response to a user's operation; an audio processing unit that reproduces audio in the virtual space; Function as a When an object is disposed on a propagation path of the sound from a sound source to the character, the sound processing unit changes the sound in accordance with a thickness of the object on the propagation path. It is a game program.
[0007] In a first aspect, The sound processing unit may calculate a thickness of the object by ray casting.
[0008] In a first aspect, The sound processing unit may change the sound depending on a material of the object.
[0009] A second aspect of the present invention is a game device comprising: a storage unit that stores the game program of the first aspect; A control unit that executes the game program; It is a game device equipped with the above. Effect of the Invention
[0010] According to the present disclosure, the sense of immersion is improved through audio playback in a virtual space. [Brief description of the drawings]
[0011] [Figure 1] FIG. 2 is a block diagram showing the configuration of the game device. [Diagram 2] FIG. 13 is a diagram showing an example of a game screen. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] [Embodiment] Hereinafter, an embodiment of a game program and a game device will be described.
[0013] A game based on this game program is played in a virtual space (three-dimensional). There are no limitations on the type of game. For example, the game may be a battle-type action game in which a player character attacks and defeats an enemy character.
[0014] Configuration of the Game Device Hardware Configuration 1 is a block diagram showing the configuration of a game device 5. The game device 5 executes a predetermined game based on a user's operation. The game device 5 has a display 61, a speaker 62, and a controller 63 either externally connected or built-in.
[0015] The game device 5 may be, for example, a personal computer, PlayStation (registered trademark), XBox (registered trademark), PlayStation Vita (registered trademark), Nintendo Switch (registered trademark), or other commercially available device.
[0016] In the game device 5, the game progresses based on the installed game program and game data. The game devices 5 can also communicate data with each other using a communication network (not shown) or a short-range wireless communication device (not shown).
[0017] The game device 5 has a network interface 51, a graphics processing unit 52, an audio processing unit 53, an operation unit 54, a storage unit 55, and a control unit 56. The network interface 51, the graphics processing unit 52, the audio processing unit 53, the operation unit 54, and the storage unit 55 are electrically connected to the control unit 56 via a bus 59.
[0018] The network interface 51 is communicatively connected to the communication network in order to transmit and receive various data to and from, for example, other game devices 5 and external server devices (not shown).
[0019] The graphics processing unit 52 renders game images including the player character and various objects in the virtual space in a moving image format according to the game image information output from the control unit 56. The graphics processing unit 52 is connected to a display 61 (e.g., a liquid crystal display). The game images rendered in a moving image format are displayed on the display 61 as a game screen.
[0020] The audio processing unit 53 is connected to the speaker 62. The audio processing unit 53 reproduces digital game sounds in accordance with instructions from the control unit 56. Specifically, the audio processing unit 53 converts the sound data output by the control unit 56 into an analog signal and outputs it to the speaker 62.
[0021] The audio processing unit 53 is configured to be capable of outputting multi-channel audio in order to reproduce three-dimensional sound. Accordingly, a plurality of speakers 62 are connected to the game device 5. These speakers 62 may be arranged on the left and right, front and rear, above, etc. of a listener (e.g., a game player) in order to reproduce three-dimensional sound.
[0022] The operation unit 54 is connected to the controller 63. The operation unit 54 transmits and receives signals to and from the controller 63. A game player operates various operators such as buttons of the controller 63 to input signals (commands, data, etc.) to the game device 5.
[0023] The storage unit 55 is composed of an HDD, an SSD, a RAM, a ROM, etc. Game data, various programs including a game program, etc. are stored in the storage unit 55. Examples of game data include game media and user account information.
[0024] The control unit 56 controls the operation of the game device 5. The control unit 56 includes a CPU (microcomputer) and a semiconductor memory. The semiconductor memory stores programs and data for operating the CPU.
[0025] <Functional configuration of the control unit 56> The control unit 56 executes a game program, thereby functioning as a game progression unit 561 and a sound processing unit 562 (see FIG. 1).
[0026] -Game Progression Section 561- The game progression unit 561 moves the player character in the virtual space in response to operations by the user (here, the game player). The game progression unit 561 also moves non-player characters and predetermined objects (such as vehicles) in the virtual space.
[0027] The game progression unit 561 controls the actions of non-player characters and predetermined objects using, for example, AI (artificial intelligence). The game progression unit 561 progresses the game in accordance with the actions of the player characters and non-player characters.
[0028] -Audio Processing Unit 562- In this game program, various kinds of sound data are prepared in advance. The sound processor 562 reproduces the sound data in accordance with the progress of the game. Specifically, the sound processor 562 selects sound data in accordance with the progress of the game, and outputs the selected sound data to the audio processor 53.
[0029] When outputting audio data, the audio processing unit 562 instructs the volume of the audio data to the audio processing unit 53. The audio processing unit 53 converts the audio data output by the audio processing unit 562 into an analog signal of the instructed volume and outputs the analog signal to the speaker 62.
[0030] The sound processor 562 performs sound image localization during sound reproduction. To perform sound image localization, the sound processor 562 sets a virtual sound receiving point (hereinafter referred to as a "virtual microphone") in the virtual space where sound is heard. In this example, the virtual microphone is set near the player character (hereinafter referred to as a "character P"). The virtual microphone moves in accordance with the movement of the character P.
[0031] In this game, acoustic effects are produced so that sounds appear as if they are coming from a virtual sound source existing in the virtual space. The sound processor 562 outputs sounds coming from a virtual sound source (such as a weapon held by the player character) to the speaker 62 in an acoustic representation as if the sound was collected by a virtual microphone. The virtual microphone is a virtual listener and is the reference point for sound image localization by the sound processor 562.
[0032] In the game progressed by the game progress unit 561, in response to operations by each user, the player characters are made to act in a three-dimensional virtual space, and the player characters are made to form groups to perform various actions. More specifically, this game is an action game in which the player characters attack and defeat enemy characters.
[0033] In this game, background music (BGM) plays when a predetermined trigger condition is met during the movement or action of the player character. The predetermined trigger condition is, for example, the movement of the player character to a predetermined location, the appearance of an enemy character, after defeating an enemy character, etc. In addition, so-called environmental sounds are also added to this game as an acoustic expression.
[0034] Examples of such environmental sounds include the sound of water droplets falling from the ceiling into a puddle inside a cave, the sound of wind blowing from the entrance to the exit of a cave, the sounds of the hustle and bustle of a town (such as the voices of passersby and the sounds of cars passing nearby), the sound of the wind blowing through a forest or grassland, and the cries of birds, insects, and other small animals.
[0035] In this game, the virtual space has multiple subspaces (areas) separated from each other by walls with openings. An example of a subspace is a room in a building. In this example, a "wall" is a wall that separates one room from another. An "opening" is an entrance (e.g., an open door) provided between the rooms.
[0036] In this game, objects that are treated as sound sources are placed in each area. The objects include environmental objects that configure the environment in the virtual space, and sound source objects that serve as virtual sound sources in the virtual space. Examples of environmental objects include objects that represent terrain such as bedrock, caves, and rivers, and objects that represent buildings and trees. Examples of sound source objects include objects that operate in the virtual space, and objects that only output sound in the virtual space. Character P also serves as a virtual sound source in the virtual space.
[0037] In this game, objects that are treated as sound sources (hereinafter, referred to as "objects F1") are placed in each area. Examples of such objects F1 include enemy characters, non-player characters, items, machines, and equipment.
[0038] In this game, an object that changes the sound (hereinafter, "object F2") may be placed in a specific area. Examples of such an object F2 include objects with thickness, such as walls and pillars.
[0039] For example, as shown in FIG. 2, suppose that an object F2 is placed between an object F1 and a character P. In this case, the sound emitted by the object F1 is transmitted to the character P via the object F2. Therefore, the sound emitted by the object F1 changes depending on the thickness d1 and material of the object F2. For example, if the object F2 is a wall, the sound of the object F is transmitted to the character P as a muffled sound.
[0040] In conventional games, the sound of the object F1 is generated in advance, taking into account the thickness d1 of the object F2, and is played back as needed. As a result, only the sound generated in advance is played back, which limits the sense of realism that can be achieved.
[0041] Therefore, in this embodiment, when an object F2 is placed on the sound propagation path from the object F1 (sound source) to the character P, the sound processor 562 changes the sound according to the thickness d1 of the object F2 on the propagation path. This enables realistic sound expression.
[0042] Example of operation Here, the processing of the sound processing unit 562 will be described with reference to FIG.
[0043] For example, when the object F1 is the sound source, the sound processing unit 562 determines whether or not an object that changes the sound is placed between the character P and the object F1.
[0044] For example, the presence or absence of object F2 is judged using a technique called ray casting. The basic principle of ray casting is to cast a virtual ray from one reference point (hereafter referred to as the starting point) to another reference point (hereafter referred to as the end point) and check whether an object exists that intersects with the ray.
[0045] 2, the sound processing unit 562 starts from the character P, which is a virtual microphone, and ends at the object F1, which is a sound source. In this case, if a virtual ray (straight line) L is extended from the character P to the object F1, it will intersect with the object F2. That is, the sound processing unit 562 determines that the object F2 that changes the sound is present between the character P and the object F1. Note that the virtual ray L at this time corresponds to the sound propagation path.
[0046] When the sound processor 562 determines that the object F2 exists between the character P and the object F1, it detects the length of the virtual ray L in the object F2. Specifically, the sound processor 562 finds two points where the periphery of the object F2 and the virtual ray L intersect, and detects the distance between these two points. The length of the virtual ray L in the object F2 corresponds to the thickness d1 of the object F2.
[0047] Furthermore, when the sound processing unit 562 determines that an object F2 exists between the character P and the object F1, it detects the material of the object F2. Examples of the material of the object F2 include metal, wood, stone, etc. Data such as the material of the object F2 is stored in the storage unit 55 in advance.
[0048] The sound processing unit 562 changes the sound of the object F1 according to the length of the virtual light ray L in the detected object F2 (the thickness d1 of the object F2) and the material of the detected object F2.
[0049] Specifically, the audio processor 562 performs volume control and filtering on the audio of the object F1 according to the detected thickness d1 of the object F2. For example, when the thickness d1 of the object F is thick, the audio processor 562 reduces the volume and applies a low-pass filter with a low cutoff frequency. When the thickness d1 of the object F is thin, the audio processor 562 reduces the volume and applies a low-pass filter with a high cutoff frequency.
[0050] Furthermore, the sound processor 562 performs volume control and filtering on the sound of the object F1 according to the material of the detected object F2. For example, when the material of the object F is stone or the like that does not easily transmit sound, the sound processor 562 reduces the sound volume and applies a low-pass filter with a low cutoff frequency.
[0051] To summarize the above, this is a game program that causes the computer (control unit 56) to function as a game progression unit 561 that moves character P in virtual space in response to user operation, and an audio processing unit 562 that plays sound in the virtual space, and when object F2 is placed on a virtual ray L (sound propagation path) from object F1 (sound source) to character P, the audio processing unit 562 changes the sound in response to the thickness d1 of object F2 on the virtual ray L.
[0052] Effects of this embodiment In this game, the sound of the object F1 changes according to the thickness d1 of the object F2 on the sound propagation path. This allows the sound to be reproduced taking into account the thickness d1 of the object F2 placed between the character P and the sound source, making it possible to enhance the sense of realism and improve the sense of immersion through sound reproduction.
[0053] Furthermore, the sound processing unit 562 detects the thickness d1 of the object F2 by ray casting, which makes it possible to obtain the thickness d1 of the object F2 more accurately, thereby enhancing the sense of realism.
[0054] Furthermore, the sound processor 562 changes the sound depending on the material of the object F2. This allows the sound to be reproduced taking into account the material of the object F2, thereby enhancing the sense of realism.
[0055] [Other embodiments] In addition, in the above embodiment, an example was described in which the object F1 is a sound source object, but the object F1 may be an environmental object, etc., or may be any object that can be a sound source.
[0056] In the above embodiment, the sound processor 562 detects the thickness d1 of the object F2 by ray casting, but the present invention is not limited to this. For example, the thickness d1 may be set in advance for the object F2, and the sound processor 562 may detect (read) this thickness d1.
[0057] In the above embodiment, the object F2 is a structure such as a wall or a pillar, but the object F2 is not limited to this. The object F2 may be a moving object such as an enemy character or an animal. In this case, the sound processor 562 performs a raycast at a predetermined timing to detect the current position of the object F2. As a result, the sound processor 562 determines whether the object F2 is present on the propagation path of the sound of the object F1.
[0058] In the above embodiment, the sound propagation path between the character P and the object F1 is a straight line (specifically, a virtual light ray L), but the sound propagation path is not limited to a straight line. A navi mesh set as a movement path of a non-player character may be used as the sound propagation path.
[0059] Furthermore, the processing of this program may be performed by a server device to which the user device (game device 5) is connected, or may be shared between the user device and the server device. This form is assumed when this program is implemented as a game program for an online game.
[0060] Even when these other embodiments are adopted, the effects of the present aspect are exhibited. In addition, this embodiment can be appropriately combined with other embodiments, and other embodiments can be appropriately combined with each other. [Explanation of symbols]
[0061] 5. Gaming Devices 55 Storage section 56 Control Unit (Computer) 561 Game Progression Department 562 Sound Processing Unit
Claims
1. Computer, a game progression unit that causes a character to move in a virtual space in response to a user's operation; an audio processing unit that reproduces audio in the virtual space; Function as a When an object is disposed on a propagation path of the sound from a sound source to the character, the sound processing unit changes the sound in accordance with a thickness of the object on the propagation path. Game program.
2. In the game program of claim 1, The sound processing unit calculates a thickness of the object by ray casting. Game program.
3. In the game program of claim 1, The sound processing unit changes the sound depending on the material of the object. Game program.
4. A storage unit that stores the game program according to any one of claims 1 to 3; A control unit that executes the game program; A game device comprising:
Citation Information
Patent Citations
Output device and control method for game sound, and program
JP2007236833A
Video game processing apparatus and video game processing program
JP2012045200A
Video game processing device and video game processing program
JP2014226201A
Game program and game system
JP2017221554A
Game program and game device
JP2020014495A
