A method, device, electronic device and storage medium for processing information in a game
By responding to driving control in racing games and adjusting the rolling tire noise effect in real time, the problem of simple tire sound effects in existing technologies improves the real sense and operation feedback effect in the game.
Patent Information
- Application Number
- CN202111664951.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-31
- Publication Date
- 2025-01-28
- Estimated Expiration
- 2041-12-31
AI Technical Summary
The tire sound performance during vehicle movement in existing racing games is too simple, and it is difficult to simulate changes in tire materials and velocity in reality, resulting in poor player operation feedback and guidance effects.
By responding to the driving control of the virtual mobile vehicle in the game, its physical drive parameters are determined, and the rolling tire noise effect is adjusted in real time based on these parameters to simulate the interaction of different tire materials and pavement materials.
In the game, the sound effects of the tires of vehicle tires are more authentic, which improves the real sense of players in the game, and provides positive operating feedback and guidance through real -time adjustment sound effects.
Smart Images

Figure CN114307149B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of game technology, and in particular to an information processing method, device, electronic device and storage medium in a game. Background Art
[0002] At present, with the rapid development of online games, more and more racing games have emerged. Among them, the most popular racing games are various car games.
[0003] Existing racing games have relatively simple tire sound effects during vehicle movement. Basically, there is only a friction sound during drifting, that is, the drift sound. The drift sound effect is single in form and it is difficult to express the rich material and force changes of vehicle tires in reality, and it is also difficult to provide players with positive operational feedback and guidance. Summary of the invention
[0004] In view of this, the purpose of this application is to provide an information processing method, device, electronic device and storage medium in the game, which can adjust the rolling tire noise effect in real time according to the input physical driving parameters in the game scene, so that the player can timely and accurately know the real situation in the game scene according to the adjusted rolling tire noise effect, and play a role in giving the player positive operation feedback and guidance.
[0005] In a first aspect, an embodiment of the present application provides an information processing method in a game, wherein the game includes a game scene and a virtual mobile vehicle located in the game scene, wherein the virtual mobile vehicle has virtual wheels, and the method includes:
[0006] In response to a driving manipulation of the virtual mobile vehicle, determining a physical driving parameter of the virtual mobile vehicle under the driving manipulation;
[0007] According to the physical driving parameters, the rolling tire noise effect is adjusted; the rolling tire noise effect is determined based on the tire material of the virtual wheel and the road surface material of the road on which the virtual mobile vehicle is traveling;
[0008] The virtual wheel is controlled to roll in the game scene, and the adjusted rolling tire noise effect is played.
[0009] In an optional embodiment of the present application, the method further includes:
[0010] Determining the tire material of the virtual wheel;
[0011] Determining the road surface material of the road on which the virtual mobile vehicle is traveling;
[0012] Forming a target material combination according to the determined tire material and road material;
[0013] The rolling tire noise effect material matching the target material combination is searched from the sound effect material database, and the found rolling tire noise effect material is determined as the rolling tire noise effect of the virtual wheel.
[0014] In an optional embodiment of the present application, the step of adjusting the rolling tire noise effect according to the physical driving parameter includes:
[0015] Determine a sound effect adjustment parameter for the rolling tire noise effect corresponding to each of the physical driving parameters;
[0016] The rolling tire noise effect is adjusted according to the determined sound effect adjustment parameters.
[0017] In an optional embodiment of the present application, the physical driving parameter includes a rolling resistance value of the virtual mobile vehicle under the driving control, and the sound effect adjustment parameter includes a pitch.
[0018] The determining of the sound effect adjustment parameters for the rolling tire noise effect corresponding to each of the physical driving parameters includes:
[0019] For the rolling resistance value in the physical driving parameter, determining, according to the rolling resistance value and the weight of the virtual mobile vehicle, a vertical downward tire pressure for representing the virtual wheel;
[0020] A pitch for the rolling tire noise effect is determined based on the determined tire pressure.
[0021] In an optional embodiment of the present application, the tire pressure is a ratio of the rolling resistance value to the weight of the virtual mobile vehicle.
[0022] Among them, the greater the tire pressure, the lower the pitch of the rolling tire noise effect.
[0023] In an optional embodiment of the present application, the physical driving parameter includes the driving speed of the virtual mobile vehicle, and the sound effect adjustment parameter includes the volume.
[0024] The faster the virtual mobile vehicle travels, the louder the volume of the rolling tire noise effect.
[0025] In an optional embodiment of the present application, the physical driving parameter includes a longitudinal slip value of a tire of a virtual wheel on a driving road, and the sound effect adjustment parameter includes a mixing index.
[0026] The sound effect adjustment parameters for the rolling tire noise effect corresponding to each physical driving parameter in the determination of the physical driving parameters include:
[0027] If the longitudinal slip degree value of the tire is not a set value, determining a mixing index for the rolling tire noise effect according to the longitudinal slip degree value of the tire;
[0028] The method further comprises:
[0029] If the longitudinal slip degree of the tire is a set value, the rolling tire noise effect is output.
[0030] In an optional embodiment of the present application, the step of determining a mixing index for the rolling tire noise effect according to the longitudinal slip degree value of the tire includes:
[0031] Determine the mixing ratio value corresponding to the longitudinal tire slip value according to the pre-established correspondence between a plurality of tire longitudinal slip values and mixing ratio values;
[0032] Determine the mixing ratio value as a mixing index for the rolling tire noise effect;
[0033] The step of adjusting the rolling tire noise sound according to the determined sound effect adjustment parameters includes:
[0034] Retrieving a target skidding sound effect, wherein the target skidding sound effect is determined based on a tire material of a virtual wheel and a road surface material of a road on which the virtual mobile vehicle is traveling;
[0035] Attenuating the rolling tire noise effect according to the mixing index;
[0036] The target sliding sound effect is enhanced according to the mixing index.
[0037] In an optional embodiment of the present application, the target slipping sound effect includes a sliding friction sound effect and a rolling friction sound effect.
[0038] Among them, the target sliding sound effect is called in the following way:
[0039] If the longitudinal slippage value of the tire belongs to the first interval, the sliding friction sound effect is called;
[0040] If the longitudinal slip degree value of the tire belongs to the second interval, the rolling friction sound effect is retrieved, and the upper limit value of the first interval is less than the lower limit value of the second interval.
[0041] In an optional embodiment of the present application, the method further includes:
[0042] Determining whether the virtual mobile vehicle is in an airborne state under the driving control;
[0043] If it is determined that the vehicle is in the airborne state, turning off the rolling tire noise effect;
[0044] Before playing the adjusted rolling tire noise effect, the method further includes:
[0045] Determine that the virtual mobile vehicle is not in a suspended state.
[0046] In a second aspect, an embodiment of the present application provides an information processing device in a game, wherein the game includes a game scene and a virtual mobile vehicle located in the game scene, wherein the virtual mobile vehicle has virtual wheels, and the device includes:
[0047] a parameter determination module, configured to respond to a driving control of the virtual mobile vehicle and determine a physical driving parameter of the virtual mobile vehicle under the driving control;
[0048] A sound effect adjustment module, used for adjusting the rolling tire noise effect according to the physical driving parameter, wherein the rolling tire noise effect is determined based on the tire material of the virtual wheel and the road surface material of the road on which the virtual mobile vehicle travels;
[0049] The control module is used to control the virtual wheel to roll in the game scene and play the adjusted rolling tire noise effect.
[0050] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the memory through the bus, and the processor executes the machine-readable instructions to perform the steps of the information processing method in the game as described above.
[0051] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the information processing method in the game described above are executed.
[0052] An embodiment of the present application provides an information processing method, device, electronic device and storage medium in a game, wherein the method includes: responding to driving controls on a virtual mobile vehicle, determining the physical driving parameters of the virtual mobile vehicle under the driving controls; adjusting the rolling tire noise effect according to the physical driving parameters, wherein the rolling tire noise effect is determined based on the tire material of the virtual wheel and the road surface material of the road on which the virtual mobile vehicle is traveling; controlling the virtual wheel to roll in the game scene, and playing the adjusted rolling tire noise effect.
[0053] Compared with the prior art in which only a friction sound is emitted when the vehicle is drifting during movement, the embodiment of the present application can adjust the pre-recorded rolling tire noise effect in real time according to the physical driving parameters of the virtual mobile vehicle under the driving control during the game, so that the virtual mobile vehicle plays the adjusted rolling tire noise effect during the movement; since the physical driving parameters of each virtual wheel can be different, this will cause the rolling tire noise effect of each virtual wheel to be different. When the rolling tire noise effects of the four virtual wheels are played at the same time, the rolling tire noise effect of the vehicle in the real world during driving can be simulated in the game, thereby improving the player's sense of reality in the game; at the same time, the rolling tire noise effect adjusted in real time can show the rich material and force changes of the vehicle tires in reality, so that the player can timely and accurately know the real situation in the game scene according to the adjusted rolling tire noise effect, such as whether the vehicle speed is too large, whether the driving resistance is too large, whether slipping occurs, etc., so that the player can adjust his driving control behavior in time according to the real situation in the game. In this way, the rolling tire noise effect adjusted in real time can play a positive operational feedback and guidance role for the player.
[0054] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0056] Figure 1 A flowchart of an information processing method in a game provided by an embodiment of the present application;
[0057] Figure 2 A schematic diagram of the change between the tire pressure and the pitch of the rolling tire noise provided in an embodiment of the present application;
[0058] Figure 3 A schematic diagram of the change between the driving speed and the volume of the rolling tire noise provided in an embodiment of the present application;
[0059] Figure 4 A schematic diagram of the change between the longitudinal slip degree value of the tire and the mixing index of the rolling tire noise effect provided in the embodiment of the present application;
[0060] Figure 5A schematic diagram of the change between the longitudinal slip value of the tire and the volume of the rolling tire noise provided in the embodiment of the present application;
[0061] Figure 6 A schematic diagram of the change between the longitudinal slip degree value of the tire and the volume of the target slip sound effect provided in an embodiment of the present application;
[0062] Figure 7 A schematic diagram of the structure of an information processing device in a game provided by an embodiment of the present application;
[0063] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0064] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application usually described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, each other embodiment obtained by those skilled in the art without making creative work belongs to the scope of protection of the present application.
[0065] In the description of the present application, it should be noted that if the terms "upper", "lower", etc. appear, the orientation or position relationship indicated is based on the orientation or position relationship shown in the drawings, or is the orientation or position relationship in which the product of the application is usually placed when used. It is only for the convenience of describing the present application and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application.
[0066] In addition, the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0067] In one embodiment of the present invention, the information processing method in the game can be run on a terminal device or a server. The terminal device can be a local terminal device. When the information processing method in the game is run on the server, the information processing method in the game can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0068] In an optional implementation, various cloud applications can be run under the cloud interaction system, such as cloud games. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the operation mode of cloud games, the operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the information processing method in the game are completed on the cloud game server. The role of the client device is used for receiving and sending data and presenting the game screen. For example, the client device can be a display device with data transmission function close to the user side, such as a first terminal device, a TV, a computer, a handheld computer, etc.; but the terminal device for performing the information processing method in the game is a cloud game server in the cloud. When playing the game, the player operates the client device to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.
[0069] In an optional embodiment, the terminal device may be a local terminal device. Taking a game as an example, the local terminal device stores a game program and is used to present a game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, the game program is downloaded and installed by an electronic device and run conventionally. The local terminal device may provide the graphical user interface to the player in a variety of ways, for example, it may be rendered and displayed on a display screen of the terminal, or provided to the player through a holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present a graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, and control the display of the graphical user interface on the display screen.
[0070] It should be noted that, in the absence of conflict, the features in the embodiments of the present application may be combined with each other.
[0071] At present, with the rapid development of online games, more and more racing games have emerged. Among them, the most popular racing games are various car games.
[0072] Racing games can generally be divided into three categories: entertainment-oriented, simulation-oriented, and simulator.
[0073] Entertainment-oriented racing games are mainly based on sensory services and focus on leisure and entertainment. Various props can be used during the game to enhance the pleasure of the game. The sound performance is relatively rough. The sound performance of the tires in the game is basically only a friction sound during drifting.
[0074] A simulation racing game is a more realistic racing game that can help players master the basic principles of racing and improve their driving skills to a certain extent. At the same time, it can find a balance between entertainment and reality to make driving operations more realistic, allowing players to have driving fun without feeling too much frustration during the game.
[0075] The racing simulator simulates the physics of the real world as much as possible, giving the driver a driving feel that is close to reality. The operation requirements are just like driving a factory racing car. Every subtle operation will affect the results.
[0076] For realistic racing games and racing simulators, the feedback of vehicle tires is crucial to the driving experience. The drift sound alone is difficult to express the rich material and force changes of vehicle tires in reality, and it is also difficult to provide players with positive operational feedback and guidance.
[0077] Based on this, considering that the car tire noise heard in reality is mainly caused by the friction and compression between the tires and the road surface, the sounds produced by different material combinations are also completely different. At the same time, the change of physical driving parameters is the main factor that changes the audio performance of these two materials. Therefore, the two materials of tires and roads are disassembled and built into different combinations, and then combined with the game engine and game sound engine, and matched to various movement states of the vehicle, the real-time tire noise performance of the vehicle can be obtained.
[0078] Furthermore, the present invention proposes the following concept: according to the physical driving parameters of the virtual mobile vehicle under the driving control during the game, the pre-recorded rolling tire noise effect is adjusted in real time, so that the virtual mobile vehicle plays the adjusted rolling tire noise effect during the movement, which can not only simulate the rolling tire noise effect of the vehicle in the real world during the driving process in the game, but also improve the player's sense of reality in the game; the real-time adjusted rolling tire noise effect can also be used to show the rich material and force changes of vehicle tires in reality, so that the player can timely and accurately know the real situation in the game scene according to the adjusted rolling tire noise effect, so that the real-time adjusted rolling tire noise effect can play a role in giving the player positive operational feedback and guidance.
[0079] Before introducing the technical solution of the present invention, a brief introduction to the related terms designed in the present invention is given.
[0080] Game scene: In virtual simulation racing games, the game scene may include: a track made of various road materials and a virtual mobile vehicle moving on the track. Among them, the track usually includes straight roads and curves. Players can control virtual objects to drift on the curves of the track. The virtual object here may refer to the racing car controlled by the player, which is displayed in the graphical user interface in the form of a part or the whole of the racing car. For example, in the first-person perspective, the content of the graphical user interface is presented from the user's main control perspective, and the user's immersive experience is enhanced. Only a part of the game character can be seen in the interface, such as the driving cabin of the racing car; in the third-person perspective, the racing car can be presented as a whole in the graphical user interface, reducing the user's control difficulty and dizziness, and emphasizing the action sense of the picture. The developer can choose which specific display method is based on the content of the game, and the present invention is not limited to this.
[0081] When the racing game is running, the game scene will show the track, the player's own car and other players' cars. When the game scene of the racing game is displayed in the foreground, the player can control the car by touching the screen of the touch terminal. The virtual objects in the game scene may include a first virtual object and a second virtual object. The first virtual object may be a car controlled by the player himself, and the first virtual object is controlled by the driving control command triggered by the player. The second virtual object may be a car controlled by other players or the game system itself, and the second virtual object is not controlled by the driving control command triggered by the player himself.
[0082] Virtual mobile vehicle: can be a virtual motor vehicle, such as a virtual car, a virtual motorcycle, a racing car, etc. The load-bearing part of the virtual mobile vehicle is the virtual wheels of the virtual mobile vehicle. The present invention is described below by taking a virtual car as an example.
[0083] Virtual wheels: can be used as load-bearing components and driving components of virtual mobile vehicles. The rotation of virtual wheels can drive the virtual mobile vehicle to travel in the game scene. A virtual mobile vehicle mainly includes two virtual wheels or four virtual wheels, wherein the virtual wheels are provided with tires.
[0084] Game engine: It can perform real physical simulation of the player's operation and convert it into the physical driving parameter values required for audio, and then transfer it to the game sound engine for real-time audio control and calling.
[0085] Game sound engine: used to plan and design the logic rules that can trigger audio in advance, and process the sound performance of tires in real time through a series of parameters, and dynamically restore them in the game. For example, the game sound engine can be Wwise.
[0086] Audio recording and production processing technology: used to record real tire effects, and then after post-processing, as audio materials placed in Wwise.
[0087] Audio material: It is a sound material file that can be played. Different types of road materials in the game scene correspond to different audio samples.
[0088] Road material: refers to the material type of the road in the game scene, such as asphalt road, grass road, gravel road, etc.
[0089] Tire material: refers to the material type of the tire of the virtual wheel, generally refers to rubber material, but the formula of rubber material is different. Here, different tires correspond to different tire models, and tires of different tire models have different formulas of rubber materials.
[0090] Digital Audio Workstation (DAW): used for recording, mixing, audio editing and digital audio processing.
[0091] Real-time Parameter Controls (RTPCs): Control specific properties of various Wwise objects (including sound objects, containers, buses, effects, etc.) in real time based on real-time parameter changes occurring in the game.
[0092] Loop: A method of producing sound that can be played in an infinite loop through Wwise without the player being able to hear any breakpoints or connections in the sound.
[0093] Event: This refers to the sound event in Wwise. Wwise finally packages the sound into an Event and provides it to the game. Event also allows the program to adjust the final playback effect of the sound through parameters.
[0094] Based on the above introduction, the information processing method, device, electronic device and storage medium in the game provided by the present invention are introduced in detail below.
[0095] See also Figure 1 , Figure 1 This is a flow chart of an information processing method in a game provided by an embodiment of the present application. Figure 1 As shown in , the game provided by the embodiment of the present application includes a game scene and a virtual mobile vehicle located in the game scene, and the virtual mobile vehicle has virtual wheels. The method includes:
[0096] S110 . In response to a driving control of the virtual mobile vehicle, determine physical driving parameters of the virtual mobile vehicle under the driving control.
[0097] S120. Adjust the rolling tire noise effect according to the physical driving parameters; the rolling tire noise effect is determined based on the tire material of the virtual wheel and the road surface material of the virtual mobile vehicle's driving road.
[0098] S130: Control the virtual wheel to roll in the game scene, and play the adjusted rolling tire noise effect.
[0099] The following describes the above exemplary steps provided in the embodiment of the present application by taking the above method applied to a terminal device as an example.
[0100] In step S110, driving control may refer to driving control instructions issued by the player through the terminal device, which are used to control the movement of the virtual mobile vehicle. For PC games, the player can control the virtual mobile vehicle through the mouse and keyboard, and then send driving control instructions to the virtual mobile vehicle to move the virtual mobile vehicle in the game scene; for game devices with game controllers, the player can control the virtual mobile vehicle through the game controller, and then send driving control instructions to the virtual mobile vehicle to move the virtual mobile vehicle in the game scene; for mobile games, the player can control the virtual mobile vehicle by touching the screen of the mobile terminal, and then send driving control instructions to the virtual mobile vehicle to move the virtual mobile vehicle in the game scene.
[0101] Exemplarily, a virtual button is provided in the game scene of the graphical user interface of the touch terminal, and the terminal device responds to the player's triggering operation on the virtual button to obtain a driving control instruction for the virtual mobile vehicle, so that the server receives the driving control instruction. Specifically, the player can press the screen of the touch terminal to perform a touch operation. If the touch operation is triggered at the response area of the virtual button, a corresponding driving control instruction can be generated according to the virtual button, thereby controlling the movement of the virtual mobile vehicle, wherein the response area of the virtual button can be the virtual button itself, or it can cover the virtual button and have an area larger than the touch area of the virtual button.
[0102] For example, two virtual buttons "left" and "right" are set in the game scene. If the player presses the screen at the position of the "left" virtual button to perform a touch operation, it can be determined that the "left" virtual button responds to the touch operation, and then a driving control instruction to control the virtual mobile vehicle to move to the left is generated according to the "left" virtual button, thereby causing the virtual mobile vehicle to move to the left.
[0103] Since the rolling tires can adjust the volume of tire noise according to the vehicle's driving speed, in order to show the changes in rolling resistance of the wheels under different loads, the RTPC effect of vertical downforce on tire noise can also be added, thereby simulating the impact of different vehicle tire pressures and vehicle weights on tire noise. Furthermore, it is also possible to simulate the changes in tire pitch caused by the transfer of vehicle center of gravity during braking and turning.
[0104] Therefore, in response to the driving control of the virtual mobile vehicle, the physical driving parameters of the virtual mobile vehicle under the driving control are determined by the game engine. Here, the real physical simulation can be calculated according to the driving control instructions issued by the player into the physical driving parameter values required by the audio, and the calculated physical driving parameter values can be calculated to the game sound engine for real-time audio control and call.
[0105] In this step, the physical driving parameters may include at least one of the following items: the rolling resistance value of the virtual mobile vehicle under driving control; the driving speed of the virtual mobile vehicle; the longitudinal slip value of the tire of the virtual wheel on the driving road.
[0106] In one embodiment, the physical driving parameters may include multiple parameters, that is, the physical driving parameters may include rolling resistance value, driving speed and tire longitudinal slip value at the same time, and the rolling tire noise effect is adjusted according to the influence of the rolling resistance value, driving speed and tire longitudinal slip value on the rolling tire noise effect. Among them, the rolling resistance value affects the pitch of the rolling tire noise effect, the driving speed affects the volume of the rolling tire noise effect, and the tire longitudinal slip value affects the mixing index of the rolling tire noise effect.
[0107] Thus, in step S120, the rolling tire noise effect is adjusted according to the physical driving parameters; the rolling tire noise effect is determined based on the tire material of the virtual wheel and the road surface material of the virtual mobile vehicle's driving road.
[0108] In this step, rolling tire noise refers to the sound produced by the rolling friction between the tire and the ground during normal driving of the vehicle. Here, the initial rolling tire noise of the virtual wheel is a pre-recorded sound effect material. In real scenes, since the tire material and the road material will affect the rolling friction of the tire, and thus affect the rolling tire noise of the wheel, when collecting sound effect materials, sound effect materials matching different combinations of tire materials and road materials are established for easy server call.
[0109] Exemplarily, the rolling tire noise effect for each virtual wheel is determined in the following manner:
[0110] Step 101: Determine the tire material of the virtual wheel.
[0111] In this step, the tire model of the virtual wheel is determined according to the model of the virtual mobile vehicle; the tire material of the virtual wheel is determined according to the determined wheel model; wherein, the association relationship between the model of the virtual mobile vehicle and the tire model of the virtual wheel and the association relationship between the wheel model and the tire material are pre-established in the database.
[0112] Here, the tire material generally refers to the rubber material, but the formula of the rubber material can be different, that is, different tires correspond to different tire models, and tires of different tire models have rubber materials with different formulas.
[0113] Step 102: Determine the road surface material of the road on which the virtual mobile vehicle is traveling.
[0114] In this step, the road material of the road on which the virtual mobile vehicle is traveling is determined according to the road sign of the road on which the virtual mobile vehicle is traveling, wherein a correlation relationship between the road sign and the road material is pre-established in the database. Here, the traveling road can be an asphalt road, a grass road, a gravel road, etc.
[0115] In one embodiment, road signs may be set according to different types of game scenes, and road signs may be pre-marked for driving roads in different types of game scenes; based on the marked road signs, the road surface material of the driving road in the game scene is determined.
[0116] In another embodiment, the road signs may be set according to different road sections in the same game scene. In order to increase the difficulty of the challenge for the player in the game, multiple different road surfaces may be set on a driving road. For example, a driving road may include an asphalt road surface, a grass road surface, and a gravel road surface. In this way, at the beginning of each driving road section with different road surface materials, a road sign for the road surface may be set. The road sign is used to determine the road surface material of the road section. For example, the road sign corresponding to the asphalt road surface is a, the road sign corresponding to the grass road surface is b, and the road sign corresponding to the gravel road surface is c. In addition, if a driving road has only one road sign, it can be considered that the road surface material of the driving road is always the same.
[0117] Step 103: forming a target material combination according to the determined tire material and road material.
[0118] Here, since the rolling layer of the virtual tire is relatively stable and single, the road surface material and the tire material can be mixed in DAW according to the preset ratio, and then integrated into Wwise and processed as the same layer.
[0119] In this step, multiple target material combinations are obtained by randomly combining the determined multiple tire materials and multiple road materials, and a first material combination identifier is set for each target material combination. The first material combination identifier is used to retrieve rolling tire noise effect materials that match the material combination identifier from the sound effect material database. A large number of rolling tire noise effect materials are pre-stored in the sound effect material database, and a first material combination identifier is set for each rolling tire noise effect material to facilitate server retrieval.
[0120] Step 104: Search the sound effect material database for rolling tire noise effect material that matches the target material combination, and determine the found rolling tire noise effect material as the rolling tire noise effect of the virtual wheel.
[0121] In this step, when collecting sound effect materials, you can restore them by recording the moving car tires and then making a stable tire noise loop of the vehicle driving.
[0122] In this way, the rolling tire noise effect of the virtual wheel can be determined from the sound effect material database according to the target material combination of the tire material and the road surface material, and the determined rolling tire noise effect is used as the initial rolling tire noise effect of the virtual wheel. Next, the rolling tire noise effect can be adjusted according to the physical driving parameters.
[0123] In one embodiment, if the physical driving parameters include multiple ones, the rolling tire noise effect can be adjusted according to the game sound engine. Specifically, the sound effect adjustment parameters for the rolling tire noise effect corresponding to each physical driving parameter in the physical driving parameters are determined; and the rolling tire noise effect is adjusted according to the determined sound effect adjustment parameters.
[0124] Here, the rolling tire noise effect of the virtual wheel can be adjusted in real time based on the pre-established correlation between the physical driving parameters and the sound effect adjustment parameters, combined with the driving control of the virtual mobile vehicle in the game scene. The sound effect adjustment parameters refer to the parameters that can change the rolling tire noise effect, which may include volume, pitch, mixing index, etc.
[0125] Specifically, the rolling tire noise effect of the virtual wheel is adjusted according to the physical driving parameters including rolling resistance value, driving speed, and tire longitudinal slip value. The following is a detailed introduction:
[0126] First, the physical driving parameters include the rolling resistance value of the virtual mobile vehicle under driving control, and the sound effect adjustment parameters include pitch.
[0127] Here, the rolling resistance value can be determined by the preset rolling resistance coefficient and wheel load, wherein the wheel load can be directly input; the rolling resistance value can also be directly read from the game engine, wherein the factors affecting the rolling resistance value include: road surface material, tire material, and vehicle weight; the wheel load mainly includes the vehicle weight and the weight of the people on the vehicle;
[0128] Specifically, when the rolling resistance value is obtained by calculation, the rolling resistance value is equal to the product of the preset rolling resistance coefficient and the wheel load, which is expressed by the following formula:
[0129] F f =W×f;
[0130] Among them, F f represents the rolling resistance value, W represents the wheel load, and f represents the preset rolling resistance coefficient.
[0131] Here, pitch refers to the various sounds of different pitches, that is, the height of the sound.
[0132] Based on this, the embodiment of the present application determines the sound effect adjustment parameter for the rolling tire noise effect corresponding to the rolling resistance value in the physical driving parameter in the following manner:
[0133] For the rolling resistance value in the physical driving parameters, the tire pressure used to characterize the vertical downward pressure on the virtual wheel is determined according to the rolling resistance value and the weight of the virtual mobile vehicle; the pitch of the rolling tire noise effect is determined according to the determined tire pressure. The tire pressure is the ratio of the rolling resistance value to the weight of the virtual mobile vehicle, also known as the vehicle weight ratio. The greater the vehicle weight ratio, the greater the pressure on the tire, and thus the lower the pitch of the rolling tire noise effect; conversely, the smaller the pressure on the tire, the higher the pitch of the rolling tire noise effect.
[0134] For an example, see Figure 2 , Figure 2 This is a schematic diagram of the change between the tire pressure and the pitch of the rolling tire noise provided in the embodiment of the present application. Figure 2 As shown, the horizontal axis x in the change diagram represents the tire pressure, and the vertical axis y in the change diagram represents the pitch of the rolling tire noise effect, which is represented by Figure 2 It can be seen that as the tire pressure increases, the pitch of the rolling tire noise effect gradually decreases, that is, the greater the tire pressure, the lower the pitch of the rolling tire noise effect. In this way, based on the negative correlation between the tire pressure and the pitch of the rolling tire noise effect, the pitch of the rolling tire noise effect can be determined when the tire pressure is known.
[0135] In specific implementation, in order to show the changes in rolling resistance of virtual wheels under different tire pressures, a vertical downforce parameter is simulated and added to the game engine, represented by tyre_force_y. This vertical downforce parameter is used to represent the vertical downward pressure borne by the virtual wheel, which is affected by the rolling resistance value and the weight of the virtual mobile vehicle. For example, the heavier the virtual car, the smaller the value of tyre_force_y. Real-time calculations will be performed in the game to simulate the RTPC impact of the rolling resistance value borne by the virtual wheel and the real-time changes in the weight of the virtual mobile vehicle in reality on the pitch of the rolling tire noise effect. The impact of different virtual car tire pressures on the pitch of the rolling tire noise effect can be simulated. Furthermore, the pitch changes caused by the transfer of the vehicle's center of gravity during braking and turning can also be simulated. In this way, the motion state of the tire of the virtual wheel can be clearly grasped, so as to provide positive operational feedback and guidance to the players.
[0136] Second, the physical driving parameters include the speed of the virtual mobile vehicle, and the sound effect adjustment parameters include the volume.
[0137] Here, the driving speed is used to indicate the speed at which the virtual mobile vehicle travels in the game scene, and the volume is used to indicate the strength of the sound, that is, the size of the sound.
[0138] In an embodiment of the present application, based on the correlation relationship that the faster the virtual mobile vehicle travels, the louder the volume of the rolling tire noise effect, and the slower the virtual mobile vehicle travels, the smaller the volume of the rolling tire noise effect, the volume corresponding to the actual driving speed of the virtual mobile vehicle in the game scene is determined.
[0139] For an example, see Figure 3 , Figure 3 This is a schematic diagram of the change between the driving speed and the volume of the rolling tire noise provided in the embodiment of the present application. Figure 3 As shown in the diagram, the horizontal axis a in the change diagram represents the driving speed of the virtual mobile vehicle, and the vertical axis b represents the volume of the rolling tire noise effect. Figure 3 It can be seen that as the speed of the virtual mobile vehicle increases, the volume of the rolling tire noise effect gradually increases. When the speed of the virtual mobile vehicle reaches the speed threshold, the volume of the rolling tire noise effect tends to be balanced. Thereafter, even if the speed of the virtual mobile vehicle continues to increase, the volume of the rolling tire noise effect does not change. The speed threshold c can be determined according to the actual driving conditions of the vehicle (such as the road surface material, etc.). In this way, according to the positive correlation between the speed of the virtual mobile vehicle and the volume of the rolling tire noise effect, the volume of the rolling tire noise effect can be determined when the speed of the virtual mobile vehicle is known.
[0140] In specific implementation, a wheel_speed can be set for the tire of the virtual wheel in the game, that is, the linear speed of the tire is simulated in the game engine. The volume of the rolling tire noise effect is adjusted according to the speed of the virtual car. Figure 3 Taking the smooth asphalt road shown in the figure as an example, the volume of the rolling tire noise effect increases linearly with the driving speed, and then the volume of the recorded audio sample playback is changed in real time to simulate the characteristic in reality that the faster the speed, the louder the tire noise.
[0141] Third, the physical driving parameters include the longitudinal slip value of the tire of the virtual wheel on the driving road, and the sound effect adjustment parameters include the mixing index.
[0142] Here, the tire longitudinal slippage value is used to indicate the slippage degree of the virtual wheel when driving on the road, and the tire longitudinal slippage value can be directly read by the game engine. The mixing index can refer to the proportion of the rolling tire noise effect in the complete sound effect composed of the rolling tire noise effect and the slippage sound effect, that is, the proportion of the rolling tire noise effect in a complete sound effect.
[0143] Exemplarily, the mixing index can be determined by the following steps: determining the mixing ratio value corresponding to the longitudinal tire slip value based on a pre-constructed correspondence between multiple tire longitudinal slip values and mixing ratio values; and determining the mixing ratio value as the mixing index for the rolling tire noise effect.
[0144] Here, there is a one-to-one correspondence between the longitudinal slip value of the tire and the mixing ratio value. After establishing the correspondence between multiple longitudinal slip values of the tire and the mixing ratio values, the mixing ratio value (mixing index of rolling tire noise effect) of the current virtual wheel can be determined according to the current longitudinal slip value of the tire, and then, the rolling tire noise effect can be adjusted according to the determined mixing index of the rolling tire noise effect.
[0145] In one embodiment, the sound effect adjustment parameter for the rolling tire noise effect corresponding to the tire longitudinal slip degree value in the physical driving parameter can be determined in the following manner:
[0146] If the longitudinal slip value of the tire is not the set value, a mixing index for the rolling tire noise effect is determined according to the longitudinal slip value of the tire.
[0147] Exemplarily, the set value may be 0. If the longitudinal tire slip value is not 0, indicating that there is slip between the virtual wheel and the ground, the mixing index of the rolling tire noise effect may be determined based on the known longitudinal tire slip value according to the correlation between the longitudinal tire slip value and the mixing index of the rolling tire noise effect.
[0148] In addition, if the longitudinal slip value of the tire is a set value, the rolling tire noise effect is output.
[0149] Here, when the longitudinal slip value of the tire is 0, the virtual mobile vehicle does not slip, and accordingly, there is no slip sound effect. In this way, the final output sound effect is all rolling tire noise effect.
[0150] Specifically, the longitudinal tire slip degree value may be divided into two intervals, and different slip sound effects may be called according to different intervals.
[0151] Here, the target skidding sound effect is the sound produced by the sliding friction or rolling friction between the tire and the ground when the vehicle skids. Exemplarily, the target skidding sound effect may include sliding friction sound effect and rolling friction sound effect, wherein the sliding friction sound effect refers to the sound effect produced by the sliding friction between the tire of the virtual wheel and the road surface, and the rolling friction sound effect refers to the sound effect produced by the rolling friction between the tire of the virtual wheel and the road surface. Then, the target skidding sound effect is called in the following way:
[0152] If the longitudinal slippage degree value of the tire belongs to the first interval, the sliding friction sound effect is retrieved. Exemplarily, the upper limit value of the first interval is less than the set value; wherein the set value is 0.
[0153] If the longitudinal slip degree of the tire belongs to the second interval, the rolling friction sound effect is retrieved, and the upper limit value of the first interval is less than the lower limit value of the second interval. Exemplarily, the lower limit value of the second interval is greater than the set value.
[0154] For an example, see Figure 4 , Figure 4 This is a schematic diagram of the change between the longitudinal slip value of the tire and the mixing index of the rolling tire noise provided in the embodiment of the present application. Figure 4 As shown, the horizontal axis h in the change diagram represents the longitudinal slip value of the tire, and the vertical axis k represents the mixing index of the rolling tire noise effect. The longitudinal slip value of the tire is 0 as the dividing line between the first interval and the second interval. When the longitudinal slip value of the tire is 0, it means that the virtual mobile vehicle is not slipping at this time, and thus there is no slip sound effect; the value range of the first interval is [-1, 0), and the value range of the second interval is (0, 1], that is, the longitudinal slip value of the tire less than 0 (negative value) belongs to the first interval, and the longitudinal slip value of the tire greater than 0 (positive value) belongs to the second interval, wherein the first interval corresponds to the sliding friction sound effect. For example, when the virtual mobile vehicle in the game scene has a burnt tire, the sliding friction sound effect is called up at this time; the second interval corresponds to the rolling friction sound effect. For example, when the virtual mobile vehicle in the game scene brakes, the rolling friction sound effect is called up at this time; Figure 4It can be seen that in the first interval, as the longitudinal slip value of the tire increases, the mixing index of the rolling tire noise effect gradually increases, and at this time more and more sliding friction sound effects are called in to mix with the rolling tire noise effect; in the second interval, as the longitudinal slip value of the tire increases, the mixing index of the rolling tire noise effect gradually decreases, and at this time fewer and fewer rolling friction sound effects are called in to mix with the rolling tire noise effect.
[0155] Specifically, Figure 5 and Figure 6 As shown, Figure 5 This is a schematic diagram of the change between the longitudinal slip value of the tire and the volume of the rolling tire noise provided in the embodiment of the present application. Figure 6 This is a schematic diagram of the change between the longitudinal slip degree value of the tire and the volume of the target slip sound effect provided in the embodiment of the present application. Figure 5 As shown in the variation diagram, the horizontal axis h in the variation diagram represents the longitudinal slip value of the tire, and the vertical axis G represents the volume of the rolling tire noise effect; Figure 6 As shown in the diagram, the horizontal axis h in the change diagram represents the longitudinal slip value of the tire, and the vertical axis Q represents the volume of the target slip sound effect. Figure 5 and Figure 6 It can be seen that in the first interval, as the longitudinal slip value of the tire increases, the volume of the rolling tire noise effect becomes louder and louder, and the volume of the sliding friction sound effect becomes smaller and smaller; in the second interval, as the longitudinal slip value of the tire increases, the volume of the rolling tire noise effect becomes smaller and smaller, and the volume of the rolling friction sound effect becomes louder and louder; when the longitudinal slip value of the tire is 0, the volume of the rolling tire noise effect is the largest, and the volume of the target slip sound effect is the smallest, which is 0.
[0156] During specific implementation, a physical value wheel_roll_factor is added to the rolling tire noise effect of the tire of the virtual wheel in motion to monitor whether the virtual mobile vehicle in the game is slipping. At the same time, a volume judgment is added to the rolling tire. When the tire is not slipping (wheel_roll_factor=0), the rolling tire noise effect of the virtual mobile vehicle is of normal volume; when the tire begins to burn or slip, the rolling tire noise effect will be attenuated proportionally, leaving performance space for the slipping sound effect, thereby simulating whether the tire grip feedback is normal.
[0157] In one embodiment, the step of adjusting the rolling tire noise effect according to the determined sound effect adjustment parameters includes:
[0158] Step 201, calling a target skidding sound effect, where the target skidding sound effect is determined based on the tire material of the virtual wheel and the road surface material of the virtual mobile vehicle driving road;
[0159] Here, the road material and tire material can be mixed in DAW according to the preset ratio, and then integrated into Wwise and processed as the same layer to obtain the target material combination.
[0160] Specifically, a plurality of target material combinations are obtained by randomly combining the determined plurality of tire materials and the plurality of road materials, and a second material combination identifier is set for each target material combination, and the second material combination identifier is used to retrieve a target skidding sound effect material matching the second material combination identifier from a skidding sound effect material database. A large number of skidding sound effect materials are pre-stored in the skidding sound effect material database, and a second material combination identifier is set for each skidding sound effect material to facilitate server retrieval.
[0161] When collecting skidding sound effect materials, you can restore them by recording the moving car tires and then making a stable vehicle skidding sound effect loop for it.
[0162] In this way, the target skidding sound effect can be retrieved from the skidding sound effect material database according to the tire material and the road material.
[0163] Step 202, attenuating the rolling tire noise effect according to the mixing index;
[0164] Step 203: enhance the target sliding sound effect according to the mixing index.
[0165] Here, in step 202 and step 203, the rolling tire noise effect and the target skidding sound effect are superimposed according to the determined mixing index. Specifically, the rolling tire noise effect is attenuated according to the mixing index, and the target skidding sound effect is enhanced according to the mixing index.
[0166] It should be noted that the embodiment of the present application attenuates the volume and pitch of the rolling tire noise effect according to the mixing index, and enhances the volume and pitch of the rolling tire noise effect according to the mixing index.
[0167] In the embodiment of the present application, as a preferred embodiment, the rolling tire noise effect is adjusted by the following steps:
[0168] Step 301, determining a mixing ratio value corresponding to a longitudinal tire slip value according to a plurality of pre-established correspondences between longitudinal tire slip values and mixing ratio values;
[0169] Step 302: Determine the mixing ratio value as a mixing index for the rolling tire noise effect.
[0170] Step 303: retrieve a target skidding sound effect, where the target skidding sound effect is determined based on the tire material of the virtual wheel and the road surface material of the virtual mobile vehicle's driving road;
[0171] Step 304, attenuating the rolling tire noise effect according to the mixing index;
[0172] Step 305: enhance the target sliding sound effect according to the mixing index.
[0173] When the virtual mobile vehicle slips during driving, through steps 301 to 305, the volume and pitch of the rolling tire noise effect can be proportionally attenuated, and the volume and pitch of the target slip sound effect can be proportionally enhanced, so as to obtain the adjusted rolling tire noise effect, and superimpose the target slip sound effect to play together.
[0174] Furthermore, since the rolling resistance value of each virtual wheel and the pitch change caused by the transfer of the vehicle's center of gravity during braking and turning may be different, this will cause the rolling tire noise effect of each virtual wheel to be different. When playing the adjusted rolling tire noise effect, the rolling tire noise effect of four virtual wheels is actually played. In this way, when the rolling tire noise effects of the four virtual wheels are played at the same time, the rolling tire noise effect of a real-world vehicle in the process of driving can be simulated in the game, thereby enhancing the player's sense of reality in the game.
[0175] In an embodiment of the present application, the method further includes:
[0176] Step 401: determining whether the virtual mobile vehicle is in an airborne state under the driving control instruction;
[0177] In this step, the empty state refers to the state in which the virtual mobile vehicle leaves the road surface. The empty state can be determined by the driving speed. For example, when the driving speed reaches a certain value, the virtual mobile vehicle will leave the road surface due to excessive driving speed.
[0178] Step 402: If it is determined that the vehicle is in the air, the rolling tire noise effect is turned off;
[0179] Here, when the virtual mobile vehicle is in the air, the virtual wheels are not in contact with the road surface, and there is no rolling resistance value at this time. When the rolling resistance value is 0, the tire pressure is 0. When the tire pressure is 0, the pitch of the rolling tire noise effect is also 0. Figure 1 It is concluded that when the tire pressure is 0, the pitch of the rolling tire noise effect is also 0. Furthermore, when the virtual mobile vehicle is in the air, the rolling tire noise effect can be directly turned off.
[0180] In this way, before playing the adjusted rolling tire noise effect, the embodiment of the present application needs to first determine that the virtual mobile vehicle is not in a vacant state.
[0181] Only when the virtual mobile vehicle is not in the air under the driving control can the rolling tire noise effect be adjusted according to the physical driving parameters.
[0182] Specifically, when the virtual mobile vehicle is not in the air, the rolling tire noise effect can be adjusted according to steps S110 to S120, wherein the specific adjustment process can be as shown in the above embodiment.
[0183] The information processing method in the game provided by the embodiment of the present application can adjust the pre-recorded rolling tire noise effect in real time according to the physical driving parameters obtained by the virtual mobile vehicle under the driving control during the game, so that the virtual mobile vehicle plays the adjusted rolling tire noise effect during the movement; because the physical driving parameters received by each virtual wheel can be different, this will cause the rolling tire noise effect of each virtual wheel to be different. When the rolling tire noise effects of the four virtual wheels are played at the same time, the rolling tire noise effect of the vehicle in the real world during driving can be simulated in the game, thereby improving the player's sense of reality in the game, and can restore various rolling tire noise effect changes in reality as much as possible, thereby enhancing the player's gaming experience; at the same time, the rolling tire noise effect adjusted in real time can show the rich material and strength changes of the vehicle tires in reality, so that the player can timely and accurately know the real situation in the game scene according to the adjusted rolling tire noise effect, such as whether the vehicle speed is too high at this time, whether the driving resistance is too large, whether slipping occurs, etc., so that the player can adjust his driving control behavior in time according to the real situation in the game, so that the rolling tire noise effect adjusted in real time can play a positive operational feedback and guidance role for the player.
[0184] Based on the same inventive concept, the embodiments of the present application also provide an information processing device in the game corresponding to the information processing method in the game. Since the principle of solving the problem by the device in the embodiments of the present application is similar to the information processing method in the above-mentioned game in the embodiments of the present application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0185] See also Figure 7 , Figure 7 This is a schematic diagram of the structure of an information processing device in a game provided by an embodiment of the present application. Figure 7 As shown in , an embodiment of the present application provides an information processing device in a game, wherein the game includes a game scene and a virtual mobile vehicle located in the game scene, and the virtual mobile vehicle has virtual wheels. The device 700 includes:
[0186] A parameter determination module 710 is used to respond to a driving control of the virtual mobile vehicle and determine a physical driving parameter of the virtual mobile vehicle under the driving control;
[0187] The sound effect adjustment module 720 is used to adjust the rolling tire noise effect according to the physical driving parameters, and the rolling tire noise effect is determined based on the tire material of the virtual wheel and the road surface material of the virtual mobile vehicle driving road;
[0188] The control module 730 is used to control the virtual wheel to roll in the game scene and play the adjusted rolling tire noise effect.
[0189] In an optional embodiment of the present application, the device 700 further includes a sound effect selection module (not shown in the figure), and the sound effect selection module is used to:
[0190] Determine the tire material of the virtual wheel;
[0191] Determine the road surface material of the virtual mobile vehicle;
[0192] According to the determined tire material and road material, a target material combination is formed;
[0193] A rolling tire noise effect material matching the target material combination is searched from a sound effect material database, and the found rolling tire noise effect material is determined as the rolling tire noise effect of the virtual wheel.
[0194] In an optional embodiment of the present application, the sound effect adjustment module 720 is specifically used for:
[0195] Determine a sound effect adjustment parameter for rolling tire noise effect corresponding to each physical driving parameter in the physical driving parameters;
[0196] The rolling tire noise effect is adjusted according to the determined sound effect adjustment parameters.
[0197] In an optional embodiment of the present application, the physical driving parameter includes a rolling resistance value of the virtual mobile vehicle under driving control, and the sound effect adjustment parameter includes a pitch.
[0198] The sound effect adjustment module 720 is also specifically used for:
[0199] For the rolling resistance value in the physical driving parameters, determine the vertical downward tire pressure used to represent the virtual wheel according to the rolling resistance value and the weight of the virtual mobile vehicle;
[0200] A pitch for the rolling tire noise effect is determined based on the determined tire pressure.
[0201] In an optional embodiment of the present application, the tire pressure is a ratio of the rolling resistance value to the weight of the virtual mobile vehicle.
[0202] Among them, the greater the tire pressure, the lower the pitch of the rolling tire noise effect.
[0203] In an optional embodiment of the present application, the physical driving parameter includes the driving speed of the virtual mobile vehicle, and the sound effect adjustment parameter includes the volume.
[0204] The faster the virtual mobile vehicle travels, the louder the volume of the rolling tire noise effect.
[0205] In an optional embodiment of the present application, the physical driving parameter includes a longitudinal slip value of a tire of a virtual wheel on a driving road, and the sound effect adjustment parameter includes a mixing index.
[0206] The sound effect adjustment module 720 is also specifically used for:
[0207] If the longitudinal slippage value of the tire is not the set value, then determining a mixing index for rolling tire noise according to the longitudinal slippage value of the tire;
[0208] The device 700 further includes a sound effect output module (not shown in the figure), which is used to:
[0209] If the longitudinal slip degree of the tire is the set value, the rolling tire noise effect is output.
[0210] In an optional embodiment of the present application, the sound effect adjustment module 720 is further used to:
[0211] Determine the mixing ratio value corresponding to the tire longitudinal slip value according to the pre-established correspondence between a plurality of tire longitudinal slip values and mixing ratio values;
[0212] The mixing ratio value is determined as a mixing index for the rolling tire noise effect;
[0213] The sound effect adjustment module 720 is also specifically used for:
[0214] Retrieve the target skidding sound effect, which is determined based on the tire material of the virtual wheel and the road surface material of the virtual mobile vehicle's driving road;
[0215] Attenuate the rolling tire noise effect according to the mixing index;
[0216] Amplify the target's sliding sound effect according to the mixing index.
[0217] In an optional embodiment of the present application, the target slipping sound effect includes a sliding friction sound effect and a rolling friction sound effect.
[0218] The sound effect adjustment module 720 is used to retrieve the target sliding sound effect in the following manner:
[0219] If the longitudinal slippage value of the tire belongs to the first interval, the sliding friction sound effect is called;
[0220] If the longitudinal slip degree value of the tire belongs to the second interval, the rolling friction sound effect is retrieved, and the upper limit value of the first interval is less than the lower limit value of the second interval.
[0221] In an optional embodiment of the present application, the device 700 further includes a sound effect closing module (not shown in the figure), and the sound effect closing module is used to:
[0222] Determine whether the virtual mobile vehicle is in an airborne state under the driving control;
[0223] If it is determined to be in the air, turn off the rolling tire noise effect;
[0224] Before playing the adjusted rolling tire noise effect, the device 700 further includes a vacancy determination module (not shown in the figure), which is used to:
[0225] Make sure the virtual mobile vehicle is not in the air.
[0226] Compared with the prior art in which only a friction sound is emitted when the vehicle is drifting during movement, the information processing device in the game provided by the embodiment of the present application can adjust the pre-recorded rolling tire noise effect in real time according to the physical driving parameters obtained by the virtual mobile vehicle under the driving control during the game, so that the virtual mobile vehicle plays the adjusted rolling tire noise effect during the movement; because the physical driving parameters received by each virtual wheel can be different, this will cause the rolling tire noise effect of each virtual wheel to be different. When the rolling tire noise effects of the four virtual wheels are played at the same time, the rolling tire noise effect of the vehicle in the real world during driving can be simulated in the game, thereby improving the player's sense of reality in the game; at the same time, the rolling tire noise effect adjusted in real time can show the rich material and strength changes of the vehicle tires in reality, so that the player can timely and accurately know the real situation in the game scene according to the adjusted rolling tire noise effect, such as whether the vehicle speed is too high, whether the driving resistance is too large, whether slipping occurs, etc., so that the player can adjust his driving control behavior in time according to the real situation in the game, so that the rolling tire noise effect adjusted in real time can play a positive operational feedback and guidance role for the player.
[0227] See also Figure 8 , Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 8 As shown in , the electronic device 800 includes a processor 810 , a memory 820 and a bus 830 .
[0228] The memory 820 stores machine-readable instructions executable by the processor 810. When the electronic device 800 is running, the processor 810 communicates with the memory 820 via the bus 830. When the machine-readable instructions are executed by the processor 810, the above-mentioned Figure 1 The steps of the information processing method in the game in the method embodiment shown, the specific implementation method can be found in the method embodiment, and will not be repeated here.
[0229] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the computer program can execute the above-mentioned Figure 1 The steps of the information processing method in the game in the method embodiment shown, the specific implementation method can be found in the method embodiment, and will not be repeated here.
[0230] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0231] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0232] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0233] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0234] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application can essentially be embodied in the form of a software product, or in other words, the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0235] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A method for processing information in a game, characterized in that: The game includes a game scene and a virtual mobile vehicle located in the game scene, the virtual mobile vehicle has virtual wheels, and the method includes: In response to a driving manipulation of the virtual mobile vehicle, determining a physical driving parameter of the virtual mobile vehicle under the driving manipulation; According to the physical driving parameters, the rolling tire noise effect is adjusted; the rolling tire noise effect is determined based on the tire material of the virtual wheel and the road surface material of the road on which the virtual mobile vehicle is traveling; Controlling the virtual wheel to roll in the game scene, and playing the adjusted rolling tire noise effect; The physical driving parameters include the longitudinal slip value of the tire of the virtual wheel on the driving road, and the sound effect adjustment parameters include the mixing index. Determining the sound effect adjustment parameter for the rolling tire noise effect corresponding to each physical driving parameter in the physical driving parameters, including: if the longitudinal slip value of the tire is not a set value, determining the mixing index for the rolling tire noise effect according to the longitudinal slip value of the tire; the method also includes: if the longitudinal slip value of the tire is a set value, outputting the rolling tire noise effect; The step of determining a sound mixing index for the rolling tire noise effect according to the tire longitudinal slip value comprises: determining a sound mixing ratio value corresponding to the tire longitudinal slip value according to a pre-constructed correspondence between a plurality of tire longitudinal slip values and sound mixing ratio values; determining the sound mixing ratio value as the sound mixing index for the rolling tire noise effect; The rolling tire noise effect is adjusted according to the determined sound effect adjustment parameters, including: calling up the target slipping sound effect, wherein the target slipping sound effect is determined based on the tire material of the virtual wheel and the road surface material of the road on which the virtual mobile vehicle is traveling; attenuating the rolling tire noise effect according to the mixing index; and enhancing the target slipping sound effect according to the mixing index.
2. The information processing method according to claim 1, characterized in that: The method further comprises: Determining the tire material of the virtual wheel; Determining the road surface material of the road on which the virtual mobile vehicle is traveling; Forming a target material combination according to the determined tire material and road material; The rolling tire noise effect material matching the target material combination is searched from the sound effect material database, and the found rolling tire noise effect material is determined as the rolling tire noise effect of the virtual wheel.
3. The information processing method according to claim 1, characterized in that: The step of adjusting the rolling tire noise effect according to the physical driving parameters includes: Determine a sound effect adjustment parameter for the rolling tire noise effect corresponding to each of the physical driving parameters; The rolling tire noise effect is adjusted according to the determined sound effect adjustment parameters.
4. The information processing method according to claim 3, characterized in that: The physical driving parameter includes the rolling resistance value of the virtual mobile vehicle under the driving control, and the sound effect adjustment parameter includes the pitch. The determining of the sound effect adjustment parameters for the rolling tire noise effect corresponding to each of the physical driving parameters includes: For the rolling resistance value in the physical driving parameter, determining, according to the rolling resistance value and the weight of the virtual mobile vehicle, a vertical downward tire pressure for representing the virtual wheel; A pitch for the rolling tire noise effect is determined based on the determined tire pressure.
5. The information processing method according to claim 4, characterized in that: The tire pressure is the ratio of the rolling resistance value to the weight of the virtual mobile vehicle. Among them, the greater the tire pressure, the lower the pitch of the rolling tire noise effect.
6. The information processing method according to claim 3, characterized in that: The physical driving parameters include the speed of the virtual moving vehicle, and the sound effect adjustment parameters include the volume. The faster the virtual mobile vehicle travels, the louder the volume of the rolling tire noise effect.
7. The information processing method according to claim 1, characterized in that: The target skidding sound effect includes sliding friction sound effect and rolling friction sound effect. Among them, the target sliding sound effect is called in the following way: If the longitudinal slippage value of the tire belongs to the first interval, the sliding friction sound effect is called; If the longitudinal slip degree value of the tire belongs to the second interval, the rolling friction sound effect is retrieved, and the upper limit value of the first interval is less than the lower limit value of the second interval.
8. The information processing method according to claim 1, characterized in that: The method further comprises: Determining whether the virtual mobile vehicle is in an airborne state under the driving control; If it is determined that the vehicle is in the airborne state, turning off the rolling tire noise effect; Before playing the adjusted rolling tire noise effect, the method further includes: Determine that the virtual mobile vehicle is not in a suspended state.
9. An information processing device in a game, characterized in that: The game includes a game scene and a virtual mobile vehicle located in the game scene, the virtual mobile vehicle has virtual wheels, and the device includes: a parameter determination module, configured to respond to a driving control of the virtual mobile vehicle and determine a physical driving parameter of the virtual mobile vehicle under the driving control; An adjustment module, configured to adjust a rolling tire noise effect according to the physical driving parameter, wherein the rolling tire noise effect is determined based on a tire material of the virtual wheel and a road surface material of a road on which the virtual mobile vehicle is traveling; A control module, used for controlling the virtual wheel to roll in the game scene and playing the adjusted rolling tire noise effect; The physical driving parameters include the longitudinal slip value of the virtual wheel on the road, and the sound effect adjustment parameters include the mixing index. The sound effect adjustment module is also used to: if the longitudinal slip degree value of the tire is not the set value, determine the mixing index for the rolling tire noise effect according to the longitudinal slip degree value of the tire; The device also includes a sound effect output module, which is used to: output rolling tire noise if the longitudinal slip value of the tire is a set value; The sound effect adjustment module is also used to: determine the mixing ratio value corresponding to the tire longitudinal slip value according to the pre-established correspondence between multiple tire longitudinal slip value values and mixing ratio values; determine the mixing ratio value as a mixing index for the rolling tire noise effect; The sound effect adjustment module is also used to: retrieve the target skidding sound effect, which is determined based on the tire material of the virtual wheel and the road surface material of the virtual mobile vehicle; attenuate the rolling tire noise effect according to the mixing index; and enhance the target skidding sound effect according to the mixing index.
10. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the memory via the bus, and the processor executes the machine-readable instructions to perform the steps of the information processing method in the game as described in any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the information processing method in the game as described in any one of claims 1 to 8 are executed.
Citation Information
Patent Citations
Trajectory recording method, device and equipment of virtual carrier and storage medium
CN112717411A
Volume adjustment method and device, equipment and storage medium
CN113625988A