CN108465241A - Processing method, device, storage medium and the electronic equipment of game sound reverberation - Google Patents

Processing method, device, storage medium and the electronic equipment of game sound reverberation Download PDF

Info

Publication number
CN108465241A
CN108465241A CN201810146129.1A CN201810146129A CN108465241A CN 108465241 A CN108465241 A CN 108465241A CN 201810146129 A CN201810146129 A CN 201810146129A CN 108465241 A CN108465241 A CN 108465241A
Authority
CN
China
Prior art keywords
game
reverberation
virtual resource
virtual
scene
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810146129.1A
Other languages
Chinese (zh)
Other versions
CN108465241B (en
Inventor
万长锟
姚志茂
沈剑锋
叶永盛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201810146129.1A priority Critical patent/CN108465241B/en
Publication of CN108465241A publication Critical patent/CN108465241A/en
Application granted granted Critical
Publication of CN108465241B publication Critical patent/CN108465241B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/54Controlling the output signals based on the game progress involving acoustic signals, e.g. for simulating revolutions per minute [RPM] dependent engine sounds in a driving game or reverberation against a virtual wall
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/60Methods for processing data by generating or executing the game program
    • A63F2300/6063Methods for processing data by generating or executing the game program for sound processing
    • A63F2300/6081Methods for processing data by generating or executing the game program for sound processing generating an output signal, e.g. under timing constraints, for spatialization

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Stereophonic System (AREA)

Abstract

Present disclose provides a kind of processing method and processing device of game sound reverberation, storage medium, electronic equipments, by obtaining current location of the virtual objects in scene of game;The virtual resource in the scene of game in preset range is determined according to the current location;The reverberation coefficient of the virtual resource is determined according to the location information of the virtual resource;The acoustic reverberation value of current location of the virtual objects in the scene of game is determined according to the reverberation coefficient of the virtual resource, according to the real-time condition of virtual resource in scene of game, realize the dynamic change of acoustic reverberation effect, the resource consumption of system is substantially reduced simultaneously so that player can obtain better immersion audio experience in game;In addition for developer, each corresponding sound effect in position in label scene of game is removed without expending a large amount of manpower.

Description

Processing method, device, storage medium and the electronic equipment of game sound reverberation
Technical field
This disclosure relates to game technical field more particularly to a kind of processing method and processing device of game sound reverberation, storage Medium, electronic equipment.
Background technology
In the game of the ends PC or films and television programs, in order to enhance the substitution sense of user, it will usually for the sound in a certain scene Sound is handled, such as the processing of acoustic reverberation is introduced in cavern scene, and reverberation of sound conjunction is carried out by series of algorithms At, but due to the complexity of algorithm, a large amount of memories that terminal is lost can be only achieved to relatively good acoustic reverberation effect.Cause This, for the weaker game of mobile terminal of process performance and is not suitable for, and based on the considerations of efficiency, most of game are all logical at present The scene environment in handmarking's map is crossed, is realized using different reverberation parameters by different scene environments.This Kind method itself will consume a large amount of manpower, and can not realize and carry out acoustic reverberation according to the concrete condition of scene of game Dynamic adjusts.We need to propose a kind of scheme of the acoustic reverberation processing for mobile terminal game.
It should be noted that information is only used for reinforcing the reason to the background of the disclosure disclosed in above-mentioned background technology part Solution, therefore may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Invention content
The be designed to provide a kind of processing method and processing device of game sound reverberation, storage medium, the electronics of the disclosure are set It is standby, and then one or more is overcome the problems, such as caused by the limitation and defect of the relevant technologies at least to a certain extent.
According to one aspect of the disclosure, a kind of processing method of game sound reverberation is provided, the method includes:
Obtain current location of the virtual objects in scene of game;
The virtual resource in the scene of game in preset range is determined according to the current location;
The reverberation coefficient of the virtual resource is determined according to the location information of the virtual resource;
Current location of the virtual objects in the scene of game is determined according to the reverberation coefficient of the virtual resource Acoustic reverberation value.
It is described to be determined in the scene of game in advance according to the current location in a kind of exemplary embodiment of the disclosure If the virtual resource in range, including:
The void at least one pre-configured orientation in the scene of game in preset range is determined according to the current location Quasi- resource.
It is described to be determined in the scene of game in advance according to the current location in a kind of exemplary embodiment of the disclosure If the virtual resource in range, including:
The void at least one pre-configured orientation in the scene of game in preset range is determined according to the current location Quasi- resource.
In a kind of exemplary embodiment of the disclosure, the preset range includes multiple predeterminable areas, the preset areas Domain is respectively according to priority orders:For first predeterminable area to N predeterminable areas, N is the positive integer more than or equal to 2;
On at least one pre-configured orientation determined according to the current location in the scene of game in preset range Virtual resource, including:
The trip is determined in the multiple predeterminable area successively according to the priority orders according to the current location The virtual resource at least one of scene of playing pre-configured orientation.
In a kind of exemplary embodiment of the disclosure, the space of the scene of game, which is divided into, multiple mutually splices Solid, the virtual resource are built on surface or the solid inner section of solid.
In a kind of exemplary embodiment of the disclosure, the location information according to the virtual resource determines the void The reverberation coefficient of quasi- resource, including:
The relative position of the solid and the solid residing for the virtual objects residing for the virtual resource Information determines the reverberation coefficient of the virtual resource;Or
The relative position information of solid residing for the virtual resource and the virtual objects determines described virtual The reverberation coefficient of resource.
In a kind of exemplary embodiment of the disclosure, the location information according to the virtual resource determines the void The reverberation coefficient of quasi- resource, including:
The relative position of the solid and the solid residing for the virtual objects residing for the virtual resource Information determines the reverberation coefficient of the virtual resource;Or
The relative position information of solid residing for the virtual resource and the virtual objects determines described virtual The reverberation coefficient of resource.
In a kind of exemplary embodiment of the disclosure, the method further includes:According to acoustic reverberation value unlatching pair The acoustic reverberation effect answered.
According to one aspect of the disclosure, a kind of processing unit of game sound reverberation is provided, described device includes:
Virtual objects position acquisition module, for obtaining current location of the virtual objects in scene of game;
Virtual resource determining module, for determining the void in the scene of game in preset range according to the current location Quasi- resource;
Reverberation coefficient determination module, the reverberation for determining the virtual resource according to the location information of the virtual resource Coefficient;
Acoustic reverberation value determining module, for determining the virtual objects in institute according to the reverberation coefficient of the virtual resource State the acoustic reverberation value of the current location in scene of game.
According to one aspect of the disclosure, a kind of computer readable storage medium is provided, computer program is stored thereon with, The computer program realizes the processing method of the game sound reverberation described in above-mentioned any one when being executed by processor.
According to one aspect of the disclosure, a kind of electronic equipment is provided, including:
Processor;And
Memory, the executable instruction for storing the processor;
Wherein, the processor be configured to execute via the executable instruction is executed it is any one of above-mentioned described in The processing method of game sound reverberation.
The processing method and processing device for the game sound reverberation that a kind of example embodiment of the disclosure provides, storage medium, electronics Equipment.By the processing method of the game sound reverberation in the present exemplary embodiment, the position of virtual objects in scene of game is obtained Confidence is ceased determines reverberation coefficient with the virtual resource in preset range, so that it is determined that sound of the virtual objects in scene of game Sound reverberation value, and can realize the dynamic change of acoustic reverberation effect according to the real-time condition of virtual resource in scene of game, The resource consumption of system is substantially reduced simultaneously so that player can obtain better immersion audio experience in game;In addition For developer, each corresponding sound effect in position in label scene of game is removed without expending a large amount of manpower.
It should be understood that above general description and following detailed description is only exemplary and explanatory, not The disclosure can be limited.
Description of the drawings
It is described in detail its exemplary embodiment by referring to accompanying drawing, the above and other feature and advantage of the disclosure will become It obtains more obvious.It should be evident that the accompanying drawings in the following description is only some embodiments of the present disclosure, it is common for this field For technical staff, without creative efforts, other drawings may also be obtained based on these drawings.Attached In figure:
Fig. 1 is a kind of flow chart of the processing method of game sound reverberation of the disclosure;
Fig. 2 is the schematic diagram of the virtual objects and virtual resource in one exemplary embodiment of the disclosure;
Fig. 3 a are that virtual objects determine reverberation coefficient with virtual resource relative position in one exemplary embodiment of the disclosure Schematic diagram;
Fig. 3 b are that virtual objects determine reverberation system with virtual resource relative position in one another exemplary embodiment of the disclosure Several schematic diagrames;
Fig. 4 is the schematic diagram of 2 predeterminable area ranges in one another exemplary embodiment of the disclosure;
Fig. 5 is the schematic diagram of the solid of one another exemplary embodiment game scenario of the disclosure;
Fig. 6 is the virtual objects of X-Z axial planes and the schematic diagram of virtual resource in one another exemplary embodiment of the disclosure;
Fig. 7 is the virtual objects of Y direction and the schematic diagram of virtual resource in one another exemplary embodiment of the disclosure;
Fig. 8 is the signal of the corresponding reverberation coefficient of virtual resource of Y direction in one another exemplary embodiment of the disclosure Figure;
Fig. 9 is the virtual objects of X-Z axial planes and the schematic diagram of virtual resource in one another exemplary embodiment of the disclosure;
Figure 10 is a kind of composition figure of information processing unit in one exemplary embodiment of the disclosure;
Figure 11 is the structural schematic diagram of a kind of electronic equipment in one exemplary embodiment of the disclosure;
Figure 12 is a kind of structural schematic diagram of storage medium in one exemplary embodiment of the disclosure.
Specific implementation mode
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be real in a variety of forms It applies, and is not understood as limited to embodiment set forth herein;On the contrary, thesing embodiments are provided so that the disclosure will be comprehensively and complete It is whole, and the design of example embodiment is comprehensively communicated to those skilled in the art.Identical reference numeral indicates in figure Same or similar part, thus repetition thereof will be omitted.
In addition, described feature, structure or characteristic can be incorporated in one or more implementations in any suitable manner In example.In the following description, many details are provided to fully understand embodiment of the disclosure to provide.However, It will be appreciated by persons skilled in the art that can be with technical solution of the disclosure without one in the specific detail or more It is more, or other methods, constituent element, material, device, step may be used etc..In other cases, it is not shown in detail or describes Known features, method, apparatus, realization, material or operation are to avoid fuzzy all aspects of this disclosure.
Block diagram shown in attached drawing is only functional entity, not necessarily must be corresponding with physically separate entity. I.e., it is possible to realize these functional entitys using software form, or these are realized in the module of one or more softwares hardening A part for functional entity or functional entity, or realized in heterogeneous networks and/or processor device and/or microcontroller device These functional entitys.
A kind of processing method of game sound reverberation, the executive agent of this method are disclosed in the present exemplary embodiment first It can be the arbitrary mobile terminal device such as mobile phone, PDA, tablet computer, handheld game terminal, electronic equipment;The execution of this method Main body can also be server-side, which can be that the arbitrary server-side such as one or more computer, server, cluster is set It is standby.As shown in Figure 1, the method includes:
S10:Obtain current location of the virtual objects in scene of game;
S20:The virtual resource in the scene of game in preset range is determined according to the current location of the virtual objects;
S30:The reverberation coefficient of the virtual resource is determined according to the location information of the virtual resource;
S40:Determine that the virtual objects are current in the scene of game according to the reverberation coefficient of the virtual resource The acoustic reverberation value of position.
By the processing method of the game sound reverberation in the present exemplary embodiment, virtual objects in scene of game are obtained Location information determines reverberation coefficient with the virtual resource in preset range, so that it is determined that the virtual objects are in scene of game Acoustic reverberation value, and according to the real-time condition of virtual resource in scene of game, can realize that the dynamic of acoustic reverberation effect becomes Change, while substantially reducing the resource consumption of system so that player can obtain better immersion audio experience in game;Separately Outside, for developer, each corresponding sound effect in position in label scene of game is removed without expending a large amount of manpower.
In the following, by combine Fig. 2~Fig. 9 in the present exemplary embodiment play acoustic reverberation processing method do further Ground explanation.
In the present example embodiment, by executing software application on the processor of mobile terminal and in mobile terminal It is rendered on touch control display and obtains graphic user interface, the content shown by graphic user interface includes a part at least partly Or whole scene of game, scene of game includes at least one first virtual objects.The specific form of scene of game can the side of being Shape can also be other shapes (for example, circle etc.).Can include ground, mountain, stone, flower, grass, tree, building in scene of game Deng.
Scene of game includes an at least virtual objects, can be presented by graphic user interface, the content presented The whole that virtual objects can be included can also be the part of virtual objects.For example, in third person game, figure The content that user interface is presented can include the whole of virtual objects;For another example, in first person game, figure is used The content that family interface is presented can include part/part of virtual objects.The virtual objects can be that player passes through movement The game virtual role that terminal is manipulated can also be pre-set non-player role (Non- in scene of game Practicing Character, NPC).
Virtual resource can be the specific object in scene of game, for example, mountain, stone, building and metope etc., are often referred to have Certain area/volume, and the object that the sound transmission in scene of game can be impacted.Virtual resource can be by exploit person Member is set in advance in some specific location in scene of game, or according to type of play, such as under the build model of game, Virtual objects are controlled by player and build completion in gaming, and virtual resource can be some face (construction in a house Least unit) rather than entire house, the present invention is not limited to this.
In alternative embodiments, as shown in Fig. 2, by taking the vertical view of scene of game as an example, player can by handle, Movement of the virtual objects 100 in scene of game 200 in the control game of the operation formats such as stylus, finger touch screen, is obtained Take current location O of the virtual objects 100 in scene of game 200.The trip is determined according to the current location O of virtual objects 100 A virtual resource 400 in scene of playing in preset range 300.Optionally, the preset range can be one in scene of game Predeterminable area, or the predeterminable area centered on the virtual objects, the preset range can by game developer or Player's sets itself, the present invention are not limited to this.According to the location information of virtual resource 400, determine that virtual resource 400 is corresponding Reverberation factor alpha, so that it is determined that the acoustic reverberation value α of current location O of the virtual objects 100 in scene of game.
In alternative embodiments, step S20:Described determined in the scene of game according to the current location is preset Virtual resource in range, including:It is determined according to the current location at least one in preset range in the scene of game Virtual resource on pre-configured orientation.As shown in Fig. 2, the position O based on virtual objects 100 in scene of game, if setting east, South, west, four, north orientation are as pre-configured orientation, correspondingly, determine that pre-configured orientation is the virtual resource in north in preset range 300 400.When obtaining virtual resource in scene of game, the virtual resource of at least one pre-configured orientation, Neng Gouti are detected by being arranged The acquisition efficiency of high virtual resource determines virtual resource and its corresponding position of pre-configured orientation as early as possible.
In alternative embodiments, step S30:The virtual resource is determined according to the location information of the virtual resource Reverberation coefficient, including:The virtual resource is determined according to the relative position information of the virtual resource and the virtual objects Reverberation coefficient.Carry out the simulation of true reverberation audio in gaming, and the propagation of sound to apart from related, as shown in Figure 3a, Virtual objects 100 are located at O, according to the relative position information of virtual resource 401 and virtual objects 100, it is assumed that virtual resource 401 With at a distance from virtual objects 100 be a, so that it is determined that 401 corresponding reverberation factor alpha of virtual resource.Similarly, as shown in Figure 3b, empty The position of quasi- object 100 is still at O, and same type of virtual resource 402 is false at a distance from virtual objects 100 in scene of game It is set as 2a, to determine reverberation factor beta=α/2 of virtual resource 402.In addition, when obtaining the reverberation coefficient of virtual resource, may be used also Consider that the decaying of sound, the present invention are not limited to this according to specific requirements.By obtaining the opposite of virtual resource and virtual objects Location information determines reverberation coefficient further according to relative position information, from the emulation angle of audio, has directly fed back player's control Virtual objects and virtual resource relative distance, enhance the feeling of immersion of game player.
In alternative embodiments, the preset range includes multiple predeterminable areas, and the predeterminable area is according to preferential Grade sequence be respectively:For first predeterminable area to N predeterminable areas, N is the positive integer more than or equal to 2;Step S20:According to described Current location determines the virtual resource at least one pre-configured orientation in the scene of game in preset range, further wraps It includes:The scene of game is determined in the multiple predeterminable area successively according to the priority orders according to the current location At least one of the virtual resource on pre-configured orientation.The case where multiple predeterminable areas are arranged to for preset range Under, by the way that the priority of each predeterminable area is arranged, with by priority from high to low successively to each preset areas in a certain orientation Virtual resource in domain is detected, for example, the first predeterminable area may be configured as the smaller region of an area and/or apart from virtual The closer region of object, priority are highest;The second predeterminable area then covers an area bigger and/or apart from void in contrast The region of quasi- object farther out, and so on.
It is assumed that N=2, i.e., set preset range to 2 predeterminable areas, respectively the first predeterminable area 301, the second predeterminable area 302, priority are set as the first predeterminable area 301 and are higher than the second predeterminable area 302.Virtual objects The center that 100 position is located at scene of game as shown in the figure gets the first predeterminable area 301 first according to priority orders The virtual resource 403 of interior direct north then stops at the further acquisition virtual resource of positive true north orientation, even if in same orientation On there are the virtual resources of multiple-layer overlapped structure, it is assumed that sound can't penetrate virtual resource propagated it is (very micro- having Weak, can be ignored substantially), thus only innermost layer virtual resource (that i.e. nearest apart from virtual objects layer) can pair The effect of acoustic reverberation has an impact.The virtual resource in the due south direction in the first predeterminable area 301 is obtained, feedback is without corresponding Virtual resource then continues the virtual resource 404 for obtaining the due south direction of the second predeterminable area 302 according to priority orders.Similarly, It is still to be carried out virtually at least one orientation successively according to priority orders when being provided with N number of predeterminable area in scene of game The acquisition of resource, so as to improve the acquisition efficiency of virtual resource.
In alternative embodiments, step S30:The virtual resource is determined according to the location information of the virtual resource Reverberation coefficient, further comprise:
The reverberation system of the virtual objects is determined according to the relative position information of the virtual resource and the virtual objects Number.
In alternative embodiments, the space of the scene of game is divided into multiple solids mutually spliced, institute Virtual resource is stated to be built on surface or the solid inner section of solid.Wherein, solid can be Cuboid, cube, parallelepiped, honeycomb body etc., it will be understood that can mutually it splice between solid, it is whole to be formed The space of a scene of game.It should be noted that the solid that the space of scene of game is divided into is one piece of area in logic Domain, such as:X, y, a room region of the z coordinate in 0~50 range.
Preferably, the solid could be provided as the identical cuboid of length and width.As shown in figure 5, in the sky of scene of game Between establish coordinate system XYZ, respectively horizontal direction X-Z coordinates, coordinate Y vertically upward.For example, the mode that space divides just will be empty Between be divided into unlimited horizontal X=5 meter, Z=5 meters, the vertically upward cuboid of Y=3.5 meters of spacing needs to illustrate It is that the length, width and height scale division value of cuboid can be arbitrarily arranged by developer according to actual conditions.
It is described for dividing the space into the identical cuboid mutually spliced of multiple length and width below, needs to illustrate , divide the space into any shape the multiple solids that can mutually splice be included in the disclosure protection domain it It is interior.
As shown in fig. 6, by taking the vertical view of scene of game as an example, the plane based on scene of game establishes X-Z axis, shown in Fig. 6 Scene of game vertical view the partial game scene that is made of 9 solids (such as bottom surface is square) is presented, shown Solid sectional view is nine grids structure, and virtual role current location is O, the virtual resource in preset range is detected, if by empty Solid residing for quasi- role is got in preset range as preset range there are the virtual resource of the four sides A, B, C, D wall, Due to four sides wall all apart from the distance of virtual objects it is identical, correspondingly the reverberation coefficient of each face wall body can be preset as 1.
In alternative embodiments, the quantity of the virtual resource is at least two;It is described according to the virtual resource Reverberation coefficient determines the acoustic reverberation value of current location of the virtual objects in the scene of game, including:To described more The reverberation coefficient of a virtual resource is weighted, to obtain current location of the virtual objects in the scene of game Acoustic reverberation value.In the embodiment shown in fig. 6, the virtual resource quantity in preset range is 4, by each virtual resource Reverberation coefficient is added 1+1+1+1=4, and the sound for obtaining current location of the virtual objects in the scene of game in X-Z plane is mixed It is 4 to ring value.
In alternative embodiments, the type or not of virtual resource can also be associated with for the reverberation coefficient of virtual resource Same game state etc., is weighted by the different weights in the case of being arranged respectively, to obtain final virtual objects Current location acoustic reverberation value in scene of game.Such as:By the current towards virtual on corresponding direction of virtual objects The weights of resource are set as 1.5, and the weights of the virtual resource towards vertical direction with virtual objects are set to 1, will be virtual The weights of the virtual resource towards opposite direction of object are set as 0.5, and the weights setting of the virtual resource in the present embodiment is only Example can be configured in practical applications according to specific requirements, and the present invention is not limited to this.In the embodiment shown in fig. 6, When virtual objects current is oriented the positive north (i.e. Z axis is square), to the reverberation coefficient of multiple virtual resources in all directions It is weighted, the acoustic reverberation value to obtain current location of the virtual objects in the scene of game is:1*1.5 + 1*1+1*1+1*0.5=4.
Further, in scene of game, virtual resource may also be provided in the vertical direction of scene of game plane. Similarly, the virtual resource in the preset range in vertical direction is obtained, it is assumed that virtual objects are in room, then virtual resource For positioned at the ceiling on the virtual objects crown, according to the scene of game being made of solid, ceiling can be considered based on solid Surface and/or section create virtual resource.As shown in fig. 7, virtual role is presently in position O, in Y-axis vertical direction, By obtain preset range in virtual objects, there are A in the preset range of Y direction ', B ', three pieces of ceilings of C ', obtain The position of three pieces of ceilings and corresponding reverberation coefficient.The setting of reverberation coefficient can be as shown in figure 8, according to the virtual of Y direction The reverberation coefficient of the position relationship of resource and virtual objects, the ceiling B ' nearest apart from virtual objects is maximum, it is assumed that is 0.6, for ease of calculation, the sum of the reverberation coefficient of the virtual resource in same orientation can be set as 1, then Y direction its The ceiling of his position is identical as the relative position of virtual objects, and reverberation coefficient is set as 0.05.Therefore, A ', B ', the three pieces of days C ' The corresponding reverberation coefficient of card is respectively 0.05,0.6,0.05, and in the Y-axis direction, virtual objects are in the scene of game The acoustic reverberation value of current location is 0.05+0.6+0.05=0.7.
Such as the embodiment as shown in earlier figures 6 and Fig. 7, based on X-Z plane virtual objects 100 in the scene of game The acoustic reverberation value of current location is 4, and the acoustic reverberation value based on Y direction is 0.7, and being overlapped calculating summation to the two is 4.7, therefore the acoustic reverberation value of current location of the virtual objects in scene of game is 4.7.
In alternative embodiments, the method further includes:Corresponding acoustic reverberation effect is opened according to acoustic reverberation value Fruit.The acoustic reverberation value being finally calculated is matched with preset sound effect, for example, one can be arranged in game Include the acoustic reverberation effect of three grades, if acoustic reverberation value >=5, enables the third level reverberation effect of most forte effect;Sound Sound reverberation value >=4 item enable the second grade reverberation effect;The first estate reverberation effect is enabled if acoustic reverberation value >=3, specifically Grade separation and specific reverberation effect can be configured according to the type and content of game by developer or player, the present invention It is not limited to this.In the present embodiment, acoustic reverberation value is 4.7, according to such as above-mentioned exemplary setting, correspondingly base in gaming The second final grade reverberation effect is generated in the position of virtual objects.In addition, the setting of acoustic reverberation effect can be linear So that the transition of reverberation effect more naturally, still consume compared to discrete classification setting can it is some larger, developer can root It is configured according to specific requirements, the invention is not limited thereto.
In alternative embodiments, step S30:The virtual resource is determined according to the location information of the virtual resource Reverberation coefficient, further comprise:Step S310:The solid residing for the virtual resource and the virtual objects Relative position information between residing solid determines the reverberation coefficient of the virtual resource;Or step S320:According to described The relative position information of virtual resource and the solid residing for the virtual objects, determines the reverberation system of the virtual resource Number.
As shown in figure 9, by taking the top plan view of scene of game as an example, the current location O of virtual objects, i.e. X-Z axis are obtained Origin position, it is assumed that the first predeterminable area 303 is the geometry body section grid that is presently in of virtual objects 100, the geometry The bottom surface of body is square, and the length of side of the first predeterminable area 303 is the bottom surface length of side of solid, 100 distance first of virtual objects The distance of predeterminable area 303 is the half of the solid length of side.Second predeterminable area 304 is that 9 bottom surfaces of 3*3 layouts are same The geometry volume mesh being square is constituted, i.e., square nine grids structure correspondingly obtains four orientation of East, West, South, North respectively Virtual resource.By taking due west orientation as an example, the solid residing for virtual objects 100 is located at same solid with virtual resource A " Interior, the reverberation coefficient by the virtual objects 100 in the virtual resource B " of positive true north orientation is calculated as 1.Similarly, positive true north orientation and due south The virtual resource B " in orientation, the reverberation coefficient of F " are also respectively 1.The solid residing for virtual resource and virtual objects Relative position information between residing solid determines the reverberation coefficient of virtual resource, can be by virtual resource and virtual right As the gridding structure that respective positions Information Simplification is solid, all location informations are all standardized so that The acquisition of reverberation coefficient and calculating process are easier.Optionally, the reverberation coefficient of virtual resource can also be according to virtual resource It is determined with the relative position information of the solid residing for virtual objects.By taking due east orientation shown in Fig. 9 as an example, The virtual resource has not been obtained in one predeterminable area, three virtual moneys in the orientation of due east are got in the second predeterminable area Source:C ", D ", E ", the relative position of solid and virtual resource residing for virtual objects 100, then three virtual resource C ", D ", The reverberation coefficient of E " is respectively 0.2,0.6,0.2.In the present embodiment, current location of the virtual objects 100 in X-Z plane Acoustic reverberation value is 1+1+1+0.6+0.2+0.2=4.
By the above embodiment, the virtual money in the location information and preset range of virtual objects in scene of game is obtained Source determines reverberation coefficient, so that it is determined that acoustic reverberation value of the virtual objects in scene of game, and can be according to game The real-time condition of virtual resource in scene realizes the dynamic change of acoustic reverberation effect, while the resource for substantially reducing system disappears Consumption so that player can obtain better immersion audio experience in game;In addition, for developer, without consumption Take a large amount of manpower and removes each corresponding sound effect in position in label scene of game.
A kind of processing unit of game sound reverberation, as shown in Figure 10, the dress are also disclosed in the present exemplary embodiment Setting 60 includes:
Virtual objects position acquisition module 601, for obtaining current location of the virtual objects in scene of game;
Virtual resource determining module 602, for being determined in the scene of game in preset range according to the current location Virtual resource;
Reverberation coefficient determination module 603, for determining the virtual resource according to the location information of the virtual resource Reverberation coefficient;
Acoustic reverberation value determining module 604, for determining the virtual objects according to the reverberation coefficient of the virtual resource The acoustic reverberation value of current location in the scene of game.
The detail of each modular unit has carried out in corresponding information processing method in detail in above-described embodiment Description, furthermore, it is to be understood that further include that other unit modules are corresponding with information processing method in information processing unit, because Details are not described herein again for this.
It should be noted that although being referred to several modules or list for acting the equipment executed in above-detailed Member, but this division is not enforceable.In fact, according to embodiment of the present disclosure, it is above-described two or more The feature and function of module either unit can embody in a module or unit.Conversely, an above-described mould Either the feature and function of unit can be further divided into and embodied by multiple modules or unit block.
Figure 11 is the structural schematic diagram of the one of which electronic equipment of the embodiment of the present disclosure.As shown in figure 11, the present embodiment Electronic equipment 910 include:Memory 911 and processor 912.It wherein, can be by total between memory 911 and processor 912 Line connects.Graphical user circle is obtained by executing software application on the processor of terminal and being rendered in the display equipment of terminal Face.
Processor 912;And
Memory 911, the executable instruction for storing the processor;
Wherein, the processor is configured to realize following steps via the executable instruction is executed:
Obtain current location of the virtual objects in scene of game;
The virtual resource in the scene of game in preset range is determined according to the current location;
The reverberation coefficient of the virtual resource is determined according to the location information of the virtual resource;
Current location of the virtual objects in the scene of game is determined according to the reverberation coefficient of the virtual resource Acoustic reverberation value.
In alternative embodiments, described to be determined in the scene of game in preset range according to the current location Virtual resource, including:
The void at least one pre-configured orientation in the scene of game in preset range is determined according to the current location Quasi- resource.
In alternative embodiments, described to be determined in the scene of game in preset range according to the current location Virtual resource, including:
The void at least one pre-configured orientation in the scene of game in preset range is determined according to the current location Quasi- resource.
In alternative embodiments, the preset range includes multiple predeterminable areas, and the predeterminable area is according to preferential Grade sequence be respectively:For first predeterminable area to N predeterminable areas, N is the positive integer more than or equal to 2;
On at least one pre-configured orientation determined according to the current location in the scene of game in preset range Virtual resource, including:
The trip is determined in the multiple predeterminable area successively according to the priority orders according to the current location The virtual resource at least one of scene of playing pre-configured orientation.
In alternative embodiments, the space of the scene of game is divided into multiple solids mutually spliced, institute Virtual resource is stated to be built on surface or the solid inner section of solid.
In alternative embodiments, the location information according to the virtual resource determines the mixed of the virtual resource Coefficient is rung, including:
The relative position of the solid and the solid residing for the virtual objects residing for the virtual resource Information determines the reverberation coefficient of the virtual resource;Or
The relative position information of solid residing for the virtual resource and the virtual objects determines described virtual The reverberation coefficient of resource.
In alternative embodiments, the location information according to the virtual resource determines the mixed of the virtual resource Coefficient is rung, including:
The relative position of the solid and the solid residing for the virtual objects residing for the virtual resource Information determines the reverberation coefficient of the virtual resource;Or
The relative position information of solid residing for the virtual resource and the virtual objects determines described virtual The reverberation coefficient of resource.
In alternative embodiments, the method further includes:It is mixed that corresponding sound is opened according to the acoustic reverberation value Ring effect.
Processing method by the game sound reverberation proposed in the exemplary embodiment of the disclosure obtains in scene of game Virtual resource in the location information and preset range of virtual objects determines reverberation coefficient, so that it is determined that the virtual objects are being swum Acoustic reverberation value in scene of playing, and can realize acoustic reverberation effect according to the real-time condition of virtual resource in scene of game The dynamic change of fruit, while substantially reducing the resource consumption of system so that player can obtain better immersion in game Audio is experienced;In addition, for developer, go to each position in label scene of game corresponding without expending a large amount of manpower Sound effect.
In alternative embodiments, the electronic equipment its can further include one or more processors, and By the memory resource representated by memory, for storing the instruction that can be executed by processing component, such as application program.Memory The application program of middle storage may include it is one or more each correspond to one group of instruction module.In addition, processing Component is configured as executing instruction, to execute the processing method of above-mentioned game sound reverberation.
The electronic equipment can also include:One power supply module, power supply module are configured to carry out to executing electronic equipment Power management;One wired or wireless network interface, is configured to electronic equipment being connected to network;An and input and output (I/O) interface.The electronic equipment can be operated based on the operating system for being stored in memory, such as Android, iOS, Windows, Mac OS X, Unix, Linux, FreeBSD or similar.
Figure 12 is the structural schematic diagram of the one of which storage medium of the embodiment of the present disclosure.As shown in figure 12, root is described According to the program product 1100 of embodiments of the present invention, it is stored thereon with computer program, the computer program is by processor Following steps are realized when execution:
Obtain current location of the virtual objects in scene of game;
The virtual resource in the scene of game in preset range is determined according to the current location;
The reverberation coefficient of the virtual resource is determined according to the location information of the virtual resource;
Current location of the virtual objects in the scene of game is determined according to the reverberation coefficient of the virtual resource Acoustic reverberation value.
In alternative embodiments, described to be determined in the scene of game in preset range according to the current location Virtual resource, including:
The void at least one pre-configured orientation in the scene of game in preset range is determined according to the current location Quasi- resource.
In alternative embodiments, described to be determined in the scene of game in preset range according to the current location Virtual resource, including:
The void at least one pre-configured orientation in the scene of game in preset range is determined according to the current location Quasi- resource.
In alternative embodiments, the preset range includes multiple predeterminable areas, and the predeterminable area is according to preferential Grade sequence be respectively:For first predeterminable area to N predeterminable areas, N is the positive integer more than or equal to 2;
On at least one pre-configured orientation determined according to the current location in the scene of game in preset range Virtual resource, including:
The trip is determined in the multiple predeterminable area successively according to the priority orders according to the current location The virtual resource at least one of scene of playing pre-configured orientation.
In alternative embodiments, the space of the scene of game is divided into multiple solids mutually spliced, institute Virtual resource is stated to be built on surface or the solid inner section of solid.
In alternative embodiments, the location information according to the virtual resource determines the mixed of the virtual resource Coefficient is rung, including:
The relative position of the solid and the solid residing for the virtual objects residing for the virtual resource Information determines the reverberation coefficient of the virtual resource;Or
The relative position information of solid residing for the virtual resource and the virtual objects determines described virtual The reverberation coefficient of resource.
In alternative embodiments, the location information according to the virtual resource determines the mixed of the virtual resource Coefficient is rung, including:
The relative position of the solid and the solid residing for the virtual objects residing for the virtual resource Information determines the reverberation coefficient of the virtual resource;Or
The relative position information of solid residing for the virtual resource and the virtual objects determines described virtual The reverberation coefficient of resource.
In alternative embodiments, the method further includes:It is mixed that corresponding sound is opened according to the acoustic reverberation value Ring effect.
Processing method by the game sound reverberation proposed in the exemplary embodiment of the disclosure obtains in scene of game Virtual resource in the location information and preset range of virtual objects determines reverberation coefficient, so that it is determined that the virtual objects are being swum Acoustic reverberation value in scene of playing, and can realize acoustic reverberation effect according to the real-time condition of virtual resource in scene of game The dynamic change of fruit, while substantially reducing the resource consumption of system so that player can obtain better immersion in game Audio is experienced;In addition, for developer, go to each position in label scene of game corresponding without expending a large amount of manpower Sound effect.
Computer readable storage medium may include in a base band or as the data-signal that a carrier wave part is propagated, In carry readable program code.The data-signal of this propagation may be used diversified forms, including but not limited to electromagnetic signal, Optical signal or above-mentioned any appropriate combination.Computer readable storage medium can send, propagates or transmit for by referring to Enable execution system, device either device use or program in connection.
The program code for including in computer readable storage medium can transmit with any suitable medium, including but unlimited In wireless, wired, optical cable, radio frequency etc. or above-mentioned any appropriate combination.
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the present invention The technical solution of embodiment can be expressed in the form of software products, the software product can be stored in one it is non-volatile Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating Equipment (can be personal computer, server, electronic equipment or network equipment etc.) is executed according to embodiment of the present invention Method.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Adaptive change follow the general principles of this disclosure and include the undocumented common knowledge in the art of the disclosure or Conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by claim It points out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (11)

1. a kind of processing method of game sound reverberation, which is characterized in that the method includes:
Obtain current location of the virtual objects in scene of game;
The virtual resource in the scene of game in preset range is determined according to the current location;
The reverberation coefficient of the virtual resource is determined according to the location information of the virtual resource;
The sound of current location of the virtual objects in the scene of game is determined according to the reverberation coefficient of the virtual resource Sound reverberation value.
2. the method as described in claim 1, which is characterized in that described to be determined in the scene of game according to the current location Virtual resource in preset range, including:
The virtual money at least one pre-configured orientation in the scene of game in preset range is determined according to the current location Source.
3. the method as described in claim 1, which is characterized in that determined according to the location information of the virtual resource described virtual The reverberation coefficient of resource, including:
The reverberation coefficient of the virtual resource is determined according to the relative position information of the virtual resource and the virtual objects.
4. method as claimed in claim 2, which is characterized in that the preset range includes multiple predeterminable areas, described default Region is respectively according to priority orders:For first predeterminable area to N predeterminable areas, N is the positive integer more than or equal to 2;
The void determined according to the current location at least one pre-configured orientation in the scene of game in preset range Quasi- resource, including:
The sports ground is determined in the multiple predeterminable area successively according to the priority orders according to the current location The virtual resource at least one of scape pre-configured orientation.
5. the method as described in any in Claims 1 to 4, which is characterized in that the space of the scene of game is divided into more A solid mutually spliced, the virtual resource be built in solid surface or the solid inner section it On.
6. method as claimed in claim 5, which is characterized in that determined according to the location information of the virtual resource described virtual The reverberation coefficient of resource, including:
The relative position information of the solid and the solid residing for the virtual objects residing for the virtual resource, Determine the reverberation coefficient of the virtual resource;Or
The relative position information of solid residing for the virtual resource and the virtual objects, determines the virtual resource Reverberation coefficient.
7. the method as described in claim 1, which is characterized in that the quantity of the virtual resource is at least two;It is described according to institute The reverberation coefficient for stating virtual resource determines the acoustic reverberation value of current location of the virtual objects in the scene of game, packet It includes:
The reverberation coefficient of the multiple virtual resource is weighted, to obtain the virtual objects in the scene of game In current location acoustic reverberation value.
8. the method as described in claim 1, which is characterized in that the method further includes:It is opened according to the acoustic reverberation value Corresponding acoustic reverberation effect.
9. a kind of processing unit of game sound reverberation, which is characterized in that described device includes:
Virtual objects position acquisition module, for obtaining current location of the virtual objects in scene of game;
Virtual resource determining module, for determining the virtual money in the scene of game in preset range according to the current location Source;
Reverberation coefficient determination module, the reverberation system for determining the virtual resource according to the location information of the virtual resource Number;
Acoustic reverberation value determining module, for determining the virtual objects in the trip according to the reverberation coefficient of the virtual resource The acoustic reverberation value of current location in scene of playing.
10. a kind of electronic equipment, which is characterized in that including:
Processor;And
Memory, the executable instruction for storing the processor;
Wherein, the processor is configured to carry out perform claim requirement 1-8 any one of them via the execution executable instruction The processing method of game sound reverberation.
11. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The processing method of claim 1-8 any one of them game sound reverberation is realized when being executed by processor.
CN201810146129.1A 2018-02-12 2018-02-12 Game sound reverberation processing method and device, storage medium and electronic equipment Active CN108465241B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810146129.1A CN108465241B (en) 2018-02-12 2018-02-12 Game sound reverberation processing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810146129.1A CN108465241B (en) 2018-02-12 2018-02-12 Game sound reverberation processing method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN108465241A true CN108465241A (en) 2018-08-31
CN108465241B CN108465241B (en) 2021-05-04

Family

ID=63266358

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810146129.1A Active CN108465241B (en) 2018-02-12 2018-02-12 Game sound reverberation processing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN108465241B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108924705A (en) * 2018-09-25 2018-11-30 Oppo广东移动通信有限公司 3D sound effect treatment method and Related product
CN109104687A (en) * 2018-09-25 2018-12-28 Oppo广东移动通信有限公司 Sound effect treatment method and Related product
CN109529335A (en) * 2018-11-06 2019-03-29 Oppo广东移动通信有限公司 Game role sound effect treatment method, device, mobile terminal and storage medium
CN110270094A (en) * 2019-07-17 2019-09-24 珠海天燕科技有限公司 A kind of method and device of game sound intermediate frequency control
EP3629145A1 (en) * 2018-09-25 2020-04-01 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for processing 3d audio effect and related products
CN111135572A (en) * 2019-12-24 2020-05-12 北京像素软件科技股份有限公司 Game sound effect management method and device, storage medium and electronic equipment
CN111408135A (en) * 2020-03-20 2020-07-14 网易(杭州)网络有限公司 Method and device for adding environmental sound source, electronic equipment and storage medium
CN114404973A (en) * 2021-12-28 2022-04-29 网易(杭州)网络有限公司 Audio playing method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1120965A (en) * 1994-05-13 1996-04-24 松下电器产业株式会社 Game apparatus, voice selection apparatus, voice recognition apparatus and voice response apparatus
US20140112505A1 (en) * 2012-10-23 2014-04-24 Nintendo Co., Ltd. Information processing system, computer-readable non-transitory storage medium having stored therein information processing program, information processing control method, and information processing apparatus
CN104801043A (en) * 2014-01-23 2015-07-29 腾讯科技(深圳)有限公司 Method and device for scene sound effect control
JP2016214462A (en) * 2015-05-18 2016-12-22 株式会社ユニバーサルエンターテインメント Gaming machine and performance assembly thereof
CN106843801A (en) * 2017-01-10 2017-06-13 福建省天奕网络科技有限公司 The approximating method and its system of audio

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1120965A (en) * 1994-05-13 1996-04-24 松下电器产业株式会社 Game apparatus, voice selection apparatus, voice recognition apparatus and voice response apparatus
US20140112505A1 (en) * 2012-10-23 2014-04-24 Nintendo Co., Ltd. Information processing system, computer-readable non-transitory storage medium having stored therein information processing program, information processing control method, and information processing apparatus
CN104801043A (en) * 2014-01-23 2015-07-29 腾讯科技(深圳)有限公司 Method and device for scene sound effect control
JP2016214462A (en) * 2015-05-18 2016-12-22 株式会社ユニバーサルエンターテインメント Gaming machine and performance assembly thereof
CN106843801A (en) * 2017-01-10 2017-06-13 福建省天奕网络科技有限公司 The approximating method and its system of audio

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108924705A (en) * 2018-09-25 2018-11-30 Oppo广东移动通信有限公司 3D sound effect treatment method and Related product
CN109104687A (en) * 2018-09-25 2018-12-28 Oppo广东移动通信有限公司 Sound effect treatment method and Related product
EP3629145A1 (en) * 2018-09-25 2020-04-01 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for processing 3d audio effect and related products
US10993063B2 (en) 2018-09-25 2021-04-27 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for processing 3D audio effect and related products
CN108924705B (en) * 2018-09-25 2021-07-02 Oppo广东移动通信有限公司 3D sound effect processing method and related product
CN109529335A (en) * 2018-11-06 2019-03-29 Oppo广东移动通信有限公司 Game role sound effect treatment method, device, mobile terminal and storage medium
CN110270094A (en) * 2019-07-17 2019-09-24 珠海天燕科技有限公司 A kind of method and device of game sound intermediate frequency control
CN111135572A (en) * 2019-12-24 2020-05-12 北京像素软件科技股份有限公司 Game sound effect management method and device, storage medium and electronic equipment
CN111408135A (en) * 2020-03-20 2020-07-14 网易(杭州)网络有限公司 Method and device for adding environmental sound source, electronic equipment and storage medium
CN114404973A (en) * 2021-12-28 2022-04-29 网易(杭州)网络有限公司 Audio playing method and device and electronic equipment

Also Published As

Publication number Publication date
CN108465241B (en) 2021-05-04

Similar Documents

Publication Publication Date Title
CN108465241A (en) Processing method, device, storage medium and the electronic equipment of game sound reverberation
JP7067848B2 (en) Virtual resource processing methods and devices in the game scene
CN108245894B (en) Information processing method and device, storage medium, electronic equipment
EP3822918B1 (en) Water wave effect rendering
US9645648B2 (en) Audio computer system for interacting within a virtual reality environment
CN108434734B (en) Method, device, terminal and storage medium for processing virtual resources in game scene
US10300382B1 (en) Three dimensional terrain modeling
US8784214B2 (en) Method and system for establishing location-based leaderboard
US7269539B2 (en) Dynamic weather simulation
CN111111167B (en) Sound effect playing method and device in game scene and electronic device
CN106693365B (en) A kind of quick transfer approach of game object and device
WO2021026772A1 (en) Motor vibration model building method, tactility realization method, and apparatuses therefor
CN110152297A (en) Edit methods and device, storage medium, the electronic equipment of virtual resource
CN110433495A (en) The configuration method and device of virtual scene, storage medium and electronic equipment in game
CN110478898A (en) The configuration method and device of virtual scene, storage medium and electronic equipment in game
CN111714895A (en) Game data processing method and device, storage medium and computer equipment
JP2020018620A (en) Voice generation program in virtual space, generation method of quadtree, and voice generation device
CN117398685A (en) Virtual scene construction method and device, electronic equipment and storage medium
CN117173285A (en) Image generation method, device, equipment and storage medium
CN116212374A (en) Model processing method, device, computer equipment and storage medium
CN113426131B (en) Picture generation method and device of virtual scene, computer equipment and storage medium
CN113117328B (en) Data processing method and equipment
KR20210057605A (en) Method and apparatus for generating game contents
US10009127B1 (en) Partitioning of surfaces of structures in propagation modeling
JP6647376B1 (en) Spatial information search program and spatial information search device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant