Threat audiovisual data generation method and apparatus, storage medium, and electronic device
By creating threat-triggered areas in the game and calculating multiple distances to generate threat audiovisual data, the problem of monotonous threat information display in existing technologies is solved, improving user experience and game interaction.
Patent Information
- Application Number
- CN202211533316.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-01
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2042-12-01
AI Technical Summary
In existing technologies, the display of threat information in game scenarios is simplistic and relies primarily on the distance between the player and the attacked player, resulting in a poor user experience.
By acquiring threat triggering information of virtual characters, a threat triggering area of target shape is created. When virtual objects enter the area, the first threat distance and the second threat distance are calculated, and threat audiovisual data is generated, including threat sound effects, visual effects, and trajectory effects.
It improves the gaming experience by generating threat audiovisual data through comprehensive distance calculation, making it more closely aligned with actual effects and enhancing user immersion and gaming interaction.
Smart Images

Figure CN116036592B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer processing, and specifically to a method for generating threat audiovisual data, a device for generating threat audiovisual data, a storage medium, and an electronic device. Background Technology
[0002] In game scenarios, when players are attacked, it is usually necessary to trigger threatening sound effects or visual effects at special moments to warn of the attack threat and enhance the game atmosphere.
[0003] However, existing technologies mostly rely on the distance between the attacking player and the attacked player as a single factor to provide threat information alerts, resulting in a poor gaming experience for users.
[0004] It should be noted that the information disclosed in the background section above is only used to enhance the understanding of the background of this disclosure, and therefore may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention
[0005] The purpose of this disclosure is to provide a method, apparatus, storage medium, and electronic device for generating threat audiovisual data, aiming to enrich the display effect of threat information and improve user experience.
[0006] Other features and advantages of this disclosure will become apparent from the following detailed description, or may be learned in part from practice of this disclosure.
[0007] According to one aspect of the present disclosure, a method for generating threat audiovisual data is provided, comprising: acquiring threat triggering requirement information of a first virtual character, and creating a target-shaped threat triggering area at a first position of the first virtual character based on the threat triggering requirement information; when a virtual item is detected entering the threat triggering area, acquiring the trajectory of the virtual item and a second position of a second virtual character that launches the virtual item; determining a first threat distance based on the first position and the trajectory, and determining a second threat distance based on the first position and the second position; and generating threat audiovisual data based on the first threat distance and the second threat distance.
[0008] According to a second aspect of the present disclosure, a threat audiovisual data generation apparatus is provided, comprising: a creation module, configured to acquire threat triggering requirement information of a first virtual character, and create a target-shaped threat triggering area at a first position of the first virtual character based on the threat triggering requirement information; a detection module, configured to acquire the running trajectory of a virtual item and a second position of a second virtual character that launches the virtual item when a virtual item is detected entering the threat triggering area; a determination module, configured to determine a first threat distance based on the first position and the running trajectory, and determine a second threat distance based on the first position and the second position; and a generation module, configured to generate threat audiovisual data based on the first threat distance and the second threat distance.
[0009] According to a third aspect of the present disclosure, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the threat audiovisual data generation method as described in the above embodiments.
[0010] According to a fourth aspect of the present disclosure, an electronic device is provided, characterized in that it includes: one or more processors; and a storage device for storing one or more programs, which, when executed by the one or more processors, cause the one or more processors to implement the threat audiovisual data generation method as described in the above embodiments.
[0011] The exemplary embodiments disclosed herein may have some or all of the following beneficial effects:
[0012] In some embodiments of this disclosure, the technical solutions firstly involve creating a target-shaped threat triggering area at the first position of the first virtual character based on the acquired threat triggering requirement information of the first virtual character. This threat triggering area is used to detect whether threat audiovisual data needs to be triggered. When a virtual object is detected entering the threat triggering area, the trajectory of the virtual object and the second position of the second virtual character that launched the virtual object are acquired, and then a first threat distance and a second threat distance are calculated. Finally, corresponding threat audiovisual data is generated using the first and second threat distances. Based on the above method, on the one hand, a suitable threat triggering area can be customized for the first virtual character based on the threat triggering requirement information, which can more accurately identify threat information relative to the virtual character and thus accurately trigger the display or playback of threat audiovisual data, improving the user's immersive gaming experience. On the other hand, compared to generating threat audiovisual data solely based on distance, when a threat is triggered, the first and second threat distances are calculated together to generate threat audiovisual data, making the threat audiovisual data more realistic and reliable, and more consistent with the actual effect, further enhancing the user's gaming experience.
[0013] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0014] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure. It is obvious that the drawings described below are merely some embodiments of this disclosure, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort. In the drawings:
[0015] Figure 1 The illustration shows a flowchart of a method for generating threat audiovisual data in an exemplary embodiment of the present disclosure.
[0016] Figure 2 The illustration schematically shows a flowchart of a method for creating a threat-triggered zone in an exemplary embodiment of the present disclosure;
[0017] Figure 3 This schematic diagram illustrates a three-dimensional perspective view of a threat triggering area in an exemplary embodiment of the present disclosure;
[0018] Figure 4 This schematic diagram illustrates a two-dimensional planar view of a threat triggering area in an exemplary embodiment of the present disclosure;
[0019] Figure 5 A schematic three-dimensional perspective view of an audio effect filter according to an exemplary embodiment of the present disclosure is shown.
[0020] Figure 6 This schematic diagram illustrates a two-dimensional planar representation of an audio effect filter according to an exemplary embodiment of the present disclosure.
[0021] Figure 7 This schematic diagram illustrates the composition of a threat audiovisual data generation apparatus according to an exemplary embodiment of the present disclosure;
[0022] Figure 8 This schematic diagram illustrates a computer-readable storage medium according to an exemplary embodiment of the present disclosure;
[0023] Figure 9 The schematic diagram illustrates the structure of a computer system of an electronic device according to an exemplary embodiment of the present disclosure. Detailed Implementation
[0024] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be more thorough and complete, and will fully convey the concept of the exemplary embodiments to those skilled in the art.
[0025] Furthermore, the described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Numerous specific details are provided in the following description to give a thorough understanding of embodiments of this disclosure. However, those skilled in the art will recognize that the technical solutions of this disclosure can be practiced without one or more of the specific details, or other methods, components, apparatuses, steps, etc., can be employed. In other instances, well-known methods, apparatuses, implementations, or operations are not shown or described in detail to avoid obscuring various aspects of this disclosure.
[0026] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.
[0027] The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily have to be performed in the described order. For example, some operations / steps can be broken down, while others can be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.
[0028] The implementation details of the technical solutions of the embodiments of this disclosure are described in detail below.
[0029] Figure 1 This illustration schematically depicts a flowchart of a method for generating threat audiovisual data according to an exemplary embodiment of this disclosure. Figure 1 As shown, the method for generating threat audiovisual data includes steps S101 to S104:
[0030] Step S101: Obtain threat triggering requirement information of the first virtual character, and create a target-shaped threat triggering area at the first position of the first virtual character based on the threat triggering requirement information;
[0031] Step S102: When a virtual item is detected entering the threat-triggered area, the trajectory of the virtual item and the second location of the second virtual character that launched the virtual item are obtained.
[0032] Step S103: Determine a first threat distance based on the first position and the running trajectory, and determine a second threat distance based on the first position and the second position;
[0033] Step S104: Generate threat audiovisual data based on the first threat distance and the second threat distance.
[0034] In some embodiments of this disclosure, the technical solutions firstly involve creating a target-shaped threat triggering area at the first position of the first virtual character based on the acquired threat triggering requirement information of the first virtual character. This threat triggering area is used to detect whether threat audiovisual data needs to be triggered. When a virtual object is detected entering the threat triggering area, the trajectory of the virtual object and the second position of the second virtual character that launched the virtual object are acquired, and then a first threat distance and a second threat distance are calculated. Finally, corresponding threat audiovisual data is generated using the first and second threat distances. Based on the above method, on the one hand, a suitable threat triggering area can be customized for the first virtual character based on the threat triggering requirement information, which can more accurately identify threat information relative to the virtual character and thus accurately trigger the display or playback of threat audiovisual data, improving the user's immersive gaming experience. On the other hand, compared to generating threat audiovisual data solely based on distance, when a threat is triggered, the first and second threat distances are calculated together to generate threat audiovisual data, making the threat audiovisual data more realistic and reliable, and more consistent with the actual effect, further enhancing the user's gaming experience.
[0035] The steps of the threat audiovisual data generation method in this exemplary embodiment will now be described in more detail with reference to the accompanying drawings and embodiments.
[0036] In step S101, threat triggering requirement information of the first virtual character is obtained, and a target-shaped threat triggering area is created at the first position of the first virtual character based on the threat triggering requirement information.
[0037] In one embodiment of this disclosure, the terminal device provides a graphical user interface (GUI) that includes virtual characters in a scene. Specifically, the first virtual character refers to a virtual character controlled by the current player through the terminal device that needs to trigger threatening audiovisual data, i.e., to identify whether external behavior needs to emphasize its warning effect or provide special feedback to the user.
[0038] For example, in a game scenario, when the first virtual character is attacked by a gun, when the bullet approaches the first virtual character, threatening audiovisual effects such as "bullet threat sound effect", "bullet trajectory effect prompt", and "screen firepower suppression effect" will be triggered to enhance the user's gaming experience.
[0039] The threat triggering requirement information is related to the first virtual character. Specifically, it refers to the conditions under which the first virtual character triggers threat audiovisual data, such as which direction or range around the first virtual character needs to be monitored to trigger the threat.
[0040] The threat trigger zone is a detection zone created based on threat triggering requirement information. The threat trigger zone is used to detect whether any virtual items have entered the zone. If they have, threat audio-visual data is triggered.
[0041] Figure 2 This schematically illustrates a flowchart of a method for creating a threat-triggered zone according to an exemplary embodiment of this disclosure. Figure 2 As shown, the specific steps for creating the threat triggering zone in step S101 include the following:
[0042] Step S201: Create an initial spherical region with the first position as the center and a preset distance as the radius;
[0043] Step S202: Determine a first cross-section based on the character's orientation, and determine the bottom height of the trigger area based on the character's environment information, so as to determine a second cross-section based on the bottom height of the trigger area;
[0044] Step S203: Cut the initial spherical region according to the first cut surface and the second cut surface to obtain the threat triggering region.
[0045] Specifically, threat triggering information includes character orientation and character environment information. Character orientation refers to the current orientation of the first virtual character, such as the direction it is facing, whether the character is looking down or up, etc. Character environment information refers to the environment of the game scene in which the first virtual character is located, such as whether the character is on flat ground, a slope, or an uneven or irregular ground such as stairs or floors.
[0046] Figure 3 This schematically illustrates a three-dimensional perspective view of a threat triggering area in an exemplary embodiment of the present disclosure, with reference to... Figure 3 As shown, the threat triggering area is Figure 3 The solid-line three-dimensional region in the image is a quarter-hemisphere with center A and radius R, extending to the bottom height h of the trigger area at point B.
[0047] Figure 4 This schematically illustrates a two-dimensional planar diagram of a threat-triggered area in an exemplary embodiment of the present disclosure. Figure 4 for Figure 3 Side view, viewed from the side Figure 3 The threat triggering area shown is as follows Figure 4 As shown.
[0048] The following is combined with Figure 3 and Figure 4 The steps for creating a threat triggering zone are explained in detail.
[0049] In step S201, the first virtual character is located in the first position, that is... Figure 3 or Figure 4 Point O in the equation can be pre-configured with a preset distance as the radius R to obtain an initial spherical region.
[0050] Then, in step S202, firstly, the first tangent plane is determined based on the character's orientation. That is, a plane including point O is constructed with the character's orientation as the plane normal vector, referencing... Figure 3 The diagram shows the vertical plane including B, O, and C, which is viewed from the side. Figure 4 Line segment BC in the diagram.
[0051] Simultaneously, the second facet is determined based on the character's environment information. First, the bottom height h of the trigger area is determined based on the character's environment information, corresponding to... Figure 3 or Figure 4 The length of the OA line segment. Considering the environment of the first virtual character, in order to cover as much of the threat triggering area as possible below the character, a volume area corresponding to the height of the first virtual character's feet needs to be reserved to detect threats about to approach the virtual character. Corresponding h can be configured for different character environment information, that is, after obtaining the character environment information, the value of the bottom height h of the triggering area can be determined. Then, based on h, a second tangent plane parallel to the plane where the first virtual character is located can be determined, referring to... Figure 3 The diagram shows the horizontal plane including A and E, which is viewed from the side. Figure 4 The AE line segment in the diagram.
[0052] In step S204, the initial spherical region is cut twice based on the first and second cut surfaces, and a suitable cut area is selected as the threat triggering area according to the virtual character's standing direction (up) and the direction opposite to the character's facing direction (left).
[0053] It should be noted that during the cutting process, cutting can be performed based on the first cutting plane or the second plane. This disclosure does not make any specific limitation here.
[0054] The above embodiments are merely illustrative examples. In practical applications, threat triggering areas can be created in other ways according to requirements. For example, if the threat triggering requirement information for the first virtual character indicates that the character's environment is on flat ground, then there is no need to reserve an area corresponding to the bottom height h of the triggering area, and the result is a quarter-hemisphere. Alternatively, if it is necessary to display threats from all directions of the first virtual character, it can be designed as a half-hemisphere.
[0055] The created threat trigger area is bound to the first virtual character as a trigger for transmitting threat information. It can also move with the first virtual character to identify whether external behavior needs to be emphasized for its warning or special feedback. Essentially, it serves to enhance the game atmosphere and trigger specific feedback to create a special game experience for the user.
[0056] Based on the above methods, different shapes of threat triggering areas can be planned and defined. The environment and orientation information of the first virtual character can be taken into account to create a reasonable detection area, thereby improving the accuracy of threat detection. Threat audio-visual data can be triggered reasonably, and the degree of threat posed by the enemy can be more easily distinguished through visual and auditory effects, thus improving the user experience.
[0057] In step S102, when a virtual item is detected entering the threat-triggered area, the trajectory of the virtual item and the second location of the second virtual character that launched the virtual item are obtained.
[0058] Specifically, virtual items can be objects with movement characteristics such as bullets, darts, grenades, and missiles. The second virtual character attacks the first virtual character by launching or throwing virtual items.
[0059] In addition, in order to filter out attacks from friendly forces or non-threatening factions, the source of the virtual item can be detected after it enters the threat triggering area. If it is a friendly force or a non-threatening faction, no threat audio-visual data will be generated and displayed.
[0060] refer to Figure 3 or Figure 4 As shown, the trajectory of the virtual item and the second coordinate point G of the second virtual character can be obtained.
[0061] In step S103, a first threat distance is determined based on the first position and the running trajectory, and a second threat distance is determined based on the first position and the second position.
[0062] Regarding the first threat distance: Specifically, determining the first threat distance based on the first position and the running trajectory includes: calculating the distance between the first position and the straight line of the running trajectory as the first threat distance.
[0063] refer to Figure 3 or Figure 4 As shown, point F is obtained by drawing a line segment O perpendicular to the running trajectory. OF is the first threat distance, denoted as K.
[0064] Regarding the second threat distance: Specifically, refer to Figure 3 or Figure 4As shown, the first virtual character is located at point O, and the second virtual character is located at point G. OG is the second threat distance, denoted as L.
[0065] In step S104, threat audiovisual data is generated based on the first threat distance and the second threat distance.
[0066] In one embodiment of this disclosure, the threat audiovisual data is used to render the game atmosphere and trigger specific feedback, and may include one or more of the following: threat sound effect data, visual effect data, trajectory effect data, and directional indicator control data.
[0067] The first threat distance K determines the location of the threat relative to the threat triggering area, that is, the distance between the actual threat and the first virtual character. The second threat distance L is the distance between the threat triggerer and the player; both will affect the generation of threat audiovisual data.
[0068] Specifically, for threat sound effect data, step S104, generating the threat sound effect data based on the first threat distance and the second threat distance, includes: determining the sound source location based on the first threat distance, and determining the sound loudness and sound frequency based on the second threat distance; generating the threat sound effect data based on the sound source location, the sound loudness, and the sound frequency.
[0069] The threat sound data can be a high-frequency, short, and intense sound, used to alert the player that an enemy is attacking the character and that the threat is distributed around the character but has not been hit.
[0070] The first threat distance K determines the location of the sound source, and the second threat distance L determines the loudness and frequency of the sound. The closer L is, the louder the sound and the higher the frequency. The farther L is, the quieter the sound and the lower the frequency.
[0071] Based on the above method, compared with the sound effect data in the prior art that does not include the direction of the sound source, the present disclosure can reflect the direction of the sound source based on the first threat distance K through audio, thereby enabling the user controlling the first virtual character to distinguish the direction of the threat source, which facilitates subsequent game decisions.
[0072] For visual effects data, step S104 generates the visual effects data based on the first threat distance and the second threat distance, including: determining the effect dwell time based on the first threat distance and determining the effect depth based on the second threat distance; and generating the visual effects data based on the effect dwell time and the effect depth.
[0073] Among these, visual effects data, such as the "blacked-out corners" screen effect displayed in the graphical user interface, convey threat information. For example, when a virtual character is attacked by bullets, it can be shown as being suppressed by bullets amidst a hail of bullets.
[0074] The distance of the first threat, K, determines the duration of the special effect; the closer K is, the longer the effect lasts. The distance of the second threat, L, determines the depth of the special effect; the closer K is, the deeper the effect.
[0075] Additionally, entry and exit effects can be added to visual effects data. For example, the entry of visual effects data can be set to a fade-in effect, and the exit to a fade-out effect, with a duration of 0.2 seconds. The transition pattern can be set to half-life or linear, etc. Furthermore, the time difference between two consecutive triggering of visual effects data can be determined. If the interval between consecutively triggered visual effects data and the previous one exceeds 1 second, the triggering effect intensity is set to 0.75 and the duration to 0.2 seconds. Conversely, if the interval between consecutively triggered visual effects data and the previous one is less than 1 second, the triggering effect intensity is set to 1 and the duration to 0.01 seconds.
[0076] For trajectory effect data, step S104 generates the trajectory effect data based on the first threat distance and the second threat distance, including: determining the trajectory width based on the first threat distance and determining the trajectory depth based on the second threat distance; and generating the trajectory effect data based on the trajectory width and the trajectory depth.
[0077] Among them, trajectory effect data can be visual effects added to the trajectory of virtual items, such as a thin, semi-transparent white straight line, which is attached to the virtual item and used to track it when the virtual item is launched.
[0078] The distance K from the first threat determines the width of the trajectory; the closer K is, the wider the trajectory. The distance L from the second threat determines the depth of the trajectory; the closer K is, the deeper the trajectory.
[0079] Based on the above method, by determining the visual effects data, directional indicator control data, and trajectory effects data based on the first threat distance K and the second threat distance L, it is possible to simultaneously display information such as the intensity and distance of the firepower attacking the first virtual character from a visual perspective. This can intuitively convey threat information and enhance the user's gaming experience.
[0080] It should be noted that the embodiments of threat audiovisual data presented in this disclosure are merely illustrative examples. Other threat audiovisual data generated based on the first threat distance K and the second threat distance L, obtained by those skilled in the art based on the content of this disclosure and in combination with the technical means available in the field, should also fall within the protection scope of this disclosure.
[0081] For the directional indicator control data, step S104 generates the directional indicator control data based on the first threat distance and the second threat distance, including: determining the control color based on the first threat distance and determining the control size based on the second threat distance; and generating the directional indicator control data in the threat audiovisual data based on the control color and the control size.
[0082] The orientation indicator control data can be virtual controls added within a preset area around the first virtual character.
[0083] The first threat distance K determines the control color. For example, when K is in the second range with a larger distance value, the control color is red, while when K is in the first range with a smaller distance value, the control color is dark red, indicating a stronger threat. The second threat distance L determines the control size; the closer K is, the larger the size.
[0084] After generating the threat audio-visual data, the terminal device can play the corresponding audio data and video data to intuitively display the threat information received by the first virtual character.
[0085] In one embodiment of this disclosure, in order to reduce the synchronization consumption of playing threat sound effect data and to ensure that the threat sound effect data can be triggered on time and immediately, a filter can be performed before playing the threat sound effect data, so that the sound effect is played synchronously only when the server needs to forward the threat sound effect data.
[0086] Specifically, the method further includes: obtaining the starting point of the virtual item's operation, and determining the ending point of the virtual item's operation based on the operation trajectory and the threat triggering area; creating a sound effect filter sphere based on the starting point, the ending point, and the radius of the threat triggering area; and transmitting the threat sound effect data according to the sound effect filter sphere.
[0087] Figure 5 This schematic diagram illustrates a three-dimensional stereoscopic representation of an audio effect filter according to an exemplary embodiment of the present disclosure. Figure 6 A schematic diagram illustrating a two-dimensional planar representation of sound effect filtering according to an exemplary embodiment of this disclosure is shown below. Figure 5 and Figure 6 Please provide a detailed explanation.
[0088] The starting point of the virtual item's trajectory is as follows: Figure 5 or Figure 6 Point C shown is the intersection of the trajectory of the virtual item launched by the second virtual character and the threat triggering area, determined by the trajectory of the virtual item. Figure 5 or Figure 6Point D, as shown, represents the trajectory line segment CD. Using the midpoint O of CD as the center, and the sum of the radii OD and the threat triggering area R as the radius R1 of the sound effect filter, a filtering sphere is created. Only virtual characters within this filtering sphere can receive the server's synchronization message for sound effects; virtual characters outside the filtering sphere will not synchronize threat sound effect data. For example... Figure 6 If the third virtual character is located at point B, and B is outside the filter sphere, then the threat sound effect data will not be played to the third virtual character.
[0089] Figure 7 This schematic diagram illustrates the composition of a threat audiovisual data generation apparatus according to an exemplary embodiment of the present disclosure, such as... Figure 7 As shown, the threat audiovisual data generation device 700 may include a creation module 701, a detection module 702, a determination module 703, and a generation module 704. Wherein:
[0090] The creation module 701 is used to obtain the threat triggering requirement information of the first virtual character, and create a target-shaped threat triggering area at the first position of the first virtual character based on the threat triggering requirement information;
[0091] The detection module 702 is used to obtain the running trajectory of the virtual item and the second position of the second virtual character that launched the virtual item when it is detected that a virtual item has entered the threat triggering area;
[0092] The determining module 703 is configured to determine a first threat distance based on the first position and the running trajectory, and to determine a second threat distance based on the first position and the second position;
[0093] The generation module 704 is used to generate threat audiovisual data based on the first threat distance and the second threat distance.
[0094] According to an exemplary embodiment of this disclosure, the threat triggering requirement information includes character orientation and character environment information. The creation module 701 is used to create an initial spherical region with the first position as the center and a preset distance as the radius; determine a first cross-section based on the character orientation, and determine the bottom height of the triggering region based on the character environment information, so as to determine a second cross-section based on the bottom height of the triggering region; and cut the initial spherical region according to the first cross-section and the second cross-section to obtain the threat triggering region.
[0095] According to an exemplary embodiment of this disclosure, the determining module 703 is used to calculate the distance between the first position and the straight line of the running trajectory as the first threat distance.
[0096] According to an exemplary embodiment of this disclosure, the threat audiovisual data includes threat sound effect data, and the generation module 704 includes a first generation unit, configured to determine the sound source location based on the first threat distance, and determine the sound loudness and sound frequency based on the second threat distance; and generate threat sound effect data in the threat audiovisual data according to the sound source location, the sound loudness and the sound frequency.
[0097] According to an exemplary embodiment of this disclosure, the first generation unit is further configured to obtain the starting point of the virtual item's operation, and determine the ending point of the virtual item's operation based on the operation trajectory and the threat triggering area; create a sound effect filter sphere based on the starting point, the ending point, and the radius of the threat triggering area; and transmit the threat sound effect data according to the sound effect filter sphere.
[0098] According to an exemplary embodiment of this disclosure, the threat audiovisual data includes visual effects data, and the generation module 704 includes a second generation unit, configured to determine the effect dwell time based on the first threat distance and the effect depth based on the second threat distance; and generate visual effects data in the threat audiovisual data based on the effect dwell time and the effect depth.
[0099] According to an exemplary embodiment of this disclosure, the threat audiovisual data includes trajectory effect data, and the generation module 704 includes a third generation unit, configured to determine the trajectory width based on the first threat distance and the trajectory depth based on the second threat distance; and generate trajectory effect data in the threat audiovisual data based on the trajectory width and the trajectory depth.
[0100] The specific details of each module in the aforementioned threat audiovisual data generation device 700 have been described in detail in the corresponding threat audiovisual data generation method, so they will not be repeated here.
[0101] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to embodiments of this disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0102] In an exemplary embodiment of this disclosure, a storage medium capable of implementing the above-described method is also provided. Figure 8 This schematic diagram illustrates a computer-readable storage medium according to an exemplary embodiment of the present disclosure, such as... Figure 8As shown, a program product 800 for implementing the above-described method according to an embodiment of the present disclosure is described. This product may employ a portable compact disc read-only memory (CD-ROM) and include program code, and may run on a terminal device, such as a mobile phone. However, the program product of the present disclosure is not limited thereto. In this document, the readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.
[0103] In an exemplary embodiment of this disclosure, an electronic device capable of implementing the above-described method is also provided. Figure 9 The schematic diagram illustrates the structure of a computer system of an electronic device according to an exemplary embodiment of the present disclosure.
[0104] It should be noted that, Figure 9 The computer system 900 of the electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments disclosed herein.
[0105] like Figure 9 As shown, the computer system 900 includes a Central Processing Unit (CPU) 901, which can perform various appropriate actions and processes based on programs stored in Read-Only Memory (ROM) 902 or programs loaded from storage section 908 into Random Access Memory (RAM) 903. The RAM 903 also stores various programs and data required for system operation. The CPU 901, ROM 902, and RAM 903 are interconnected via a bus 904. An Input / Output (I / O) interface 905 is also connected to the bus 904.
[0106] The following components are connected to I / O interface 905: an input section 906 including a keyboard, mouse, etc.; an output section 907 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 908 including a hard disk, etc.; and a communication section 909 including a network interface card such as a LAN (Local Area Network) card, modem, etc. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to I / O interface 905 as needed. Removable media 911, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., are installed on drive 910 as needed so that computer programs read from them can be installed into storage section 908 as needed.
[0107] In particular, according to embodiments of this disclosure, the processes described below with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 909, and / or installed from removable medium 911. When the computer program is executed by central processing unit (CPU) 901, it performs various functions defined in the system of this disclosure.
[0108] It should be noted that the computer-readable medium shown in the embodiments of this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fiber, portable compact disc read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such transmitted data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to wireless, wired, etc., or any suitable combination thereof.
[0109] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0110] The units described in the embodiments of this disclosure can be implemented in software or hardware, and the described units can also be located in a processor. The names of these units do not necessarily limit the unit itself.
[0111] In another aspect, this disclosure also provides a computer-readable medium, which may be included in the electronic device described in the above embodiments; or it may exist independently and not assembled into the electronic device. The computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to perform the methods described in the above embodiments.
[0112] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to embodiments of this disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0113] From the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, touch terminal, or network device, etc.) to execute the method according to the embodiments of this disclosure.
[0114] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein.
[0115] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. A method for generating threat audiovisual data, characterized in that, include: Obtain threat triggering requirement information for the first virtual character, the threat triggering requirement information including the character's orientation and the character's environment information; An initial spherical region is created with the threat triggering requirement information located at the first position of the first virtual character as the center and a preset distance as the radius. A first spherical surface is determined based on the character's orientation, and the bottom height of the trigger area is determined based on the character's environmental information, so as to determine a second spherical surface based on the bottom height of the trigger area; the initial spherical area is cut according to the first spherical surface and the second spherical surface to obtain a threat trigger area of a target shape; When a virtual item is detected entering the threat-triggered area, the trajectory of the virtual item and the second location of the second virtual character that launched the virtual item are obtained. The distance between the first position and the straight line containing the running trajectory is calculated as the first threat distance, and a second threat distance is determined based on the first position and the second position; Threat audiovisual data is generated based on the first threat distance and the second threat distance.
2. The method for generating threat audiovisual data according to claim 1, characterized in that, The threat audiovisual data includes threat sound effect data, and the generation of threat audiovisual data based on the first threat distance and the second threat distance includes: The location of the sound source is determined based on the first threat distance, and the loudness and frequency of the sound are determined based on the second threat distance; Threat sound effect data in the threat audiovisual data is generated based on the location of the sound source, the loudness of the sound, and the frequency of the sound.
3. The method for generating threat audiovisual data according to claim 2, characterized in that, The method further includes: The starting point of the virtual item's operation is obtained, and the ending point of the virtual item's operation is determined based on the operation trajectory and the threat triggering area; A sound filter sphere is created based on the radius of the running start point, the running end point, and the threat triggering area; The threat sound effect data is transmitted according to the sound effect filter sphere.
4. The method for generating threat audiovisual data according to claim 1, characterized in that, The threat audiovisual data includes visual effects data, and the generation of threat audiovisual data based on the first threat distance and the second threat distance includes: The duration of the special effect is determined based on the first threat distance, and the depth of the special effect is determined based on the second threat distance; The visual effects data in the threat audiovisual data are generated based on the duration and depth of the special effects.
5. The method for generating threat audiovisual data according to claim 1, characterized in that, The threat audiovisual data includes trajectory effects data, and the generation of threat audiovisual data based on the first threat distance and the second threat distance includes: The trajectory width is determined based on the first threat distance, and the trajectory depth is determined based on the second threat distance; The trajectory effects data in the threat audiovisual data are generated based on the trajectory width and the trajectory depth.
6. A threat audiovisual data generation device, characterized in that, include: A creation module is used to obtain threat triggering requirement information for the first virtual character, including the character's orientation and the character's environment information; An initial spherical region is created with the threat triggering requirement information located at the first position of the first virtual character as the center and a preset distance as the radius. A first spherical surface is determined based on the character's orientation, and the bottom height of the trigger area is determined based on the character's environmental information, so as to determine a second spherical surface based on the bottom height of the trigger area; the initial spherical area is cut according to the first spherical surface and the second spherical surface to obtain a threat trigger area of a target shape; The detection module is used to obtain the trajectory of the virtual item and the second location of the second virtual character that launched the virtual item when it is detected that a virtual item has entered the threat-triggered area; The determination module is used to calculate the distance between the first position and the straight line of the running trajectory as a first threat distance, and to determine a second threat distance based on the first position and the second position; The generation module is used to generate threat audiovisual data based on the first threat distance and the second threat distance.
7. A computer-readable storage medium having a computer program stored thereon, the program being executed by a processor to implement the threat audiovisual data generation method as described in any one of claims 1 to 5.
8. An electronic device, characterized in that, include: One or more processors; A storage device for storing one or more programs, which, when executed by one or more processors, cause the one or more processors to implement the threat audiovisual data generation method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Threat degree sound effect playing method and device, storage medium and electronic equipment
CN115193044A
