Method and apparatus for displaying motion effects, computer equipment, and computer program

By segmenting and adjusting playback speeds of action effects based on execution speed, the method ensures consistent display of skill effects with virtual object movement, enhancing display accuracy and efficiency.

JP7776085B2Active Publication Date: 2025-11-26TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
JP2023571534
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2021-08-18
Filing Date
2022-06-27
Publication Date
2025-11-26
Estimated Expiration
2042-06-27

AI Technical Summary

Technical Problem

Existing methods for displaying skill effects in virtual environments fail to maintain consistency between the movement of virtual objects and the playback of skill effects, leading to mismatches when the attack speed changes.

Method used

The method involves dividing the action effect into segments with different playback speed adjustments based on execution speed information, emphasizing the display of important parts and omitting less significant segments to ensure synchronization with the virtual object's movement.

Benefits of technology

This approach enhances the accuracy and efficiency of displaying action effects by prioritizing the display of crucial segments, ensuring that the movement effect aligns with the execution speed, thus improving the overall display quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007776085000002
    Figure 0007776085000002
  • Figure 0007776085000003
    Figure 0007776085000003
  • Figure 0007776085000004
    Figure 0007776085000004
Patent Text Reader

Abstract

This application provides a method and device for displaying action effects, a computer device and a program, and relates to the technical field of interface interaction. The method includes: displaying a first virtual object, the first virtual object having the ability to perform a target action, the target action including a corresponding action effect; receiving an action execution operation; dividing the action effect of the target action into n effect segments, and adjusting the playback speed of at least two effect segments at different adjustment ratios; and sequentially playing the n effect segments. The acceleration ratio of the segment that needs to be displayed with emphasis is relatively small, and the acceleration ratio of the segment with a relatively weak effect is relatively large, that is, the part with a relatively weak effect is ignored, and the part with a clear effect is displayed with emphasis, thereby achieving the display of the action effect while accelerating the display of the action effect and the display of the part with a relatively clear effect, and improving the accuracy and efficiency of the display of the action effect.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] This application claims priority from a Chinese patent application filed with the China Patent Office on August 18, 2021, bearing application number 202110949685.4 and entitled "Method, device, equipment and medium for displaying operational effects," the entire contents of which are incorporated herein by reference.

[0002] The embodiments of the present application relate to the technical field of interface interaction, and in particular to the display of action effects. [Background technology]

[0003] In game application programs or some virtual environment-based application programs, players can usually control virtual objects to release skills or use props (items) in the virtual environment, and the skill release process is usually accompanied by special skill effects that appear on the interface.

[0004] In the related technology, the skills that a player releases in a virtual environment may have changes in attack speed, but generally speaking, when a skill is released and the attack speed changes, the process of the skill's special effect remains unchanged. For example, if the attack speed increases, the damage value to the enemy per attack after the skill is released will increase to reflect the change in attack speed.

[0005] However, due to the above-mentioned method of displaying the special effect of the skill after the attack speed is changed, when the player controls the virtual object to move after completing the attack, the special effect of the skill is still being played, so it is easy for a mismatch to occur between the virtual object's movement and the playback of the special effect of the skill. Summary of the Invention [Problem to be solved by the invention]

[0006] An object of the embodiments of the present application is to provide a method and apparatus for displaying action effects, a computer device, and a computer program that can improve the consistency between actions and the reproduction of special effects of skills. [Means for solving the problem]

[0007] According to one aspect, there is provided a method for displaying a motion effect, the method comprising: displaying a first virtual object, the first virtual object having the capability of performing a target action, the target action including a corresponding action effect; receiving an action execution operation, the action execution operation being used to control the first virtual object to execute the target action, and the target action having corresponding execution speed information; According to the action execution operation, divide the action effect of the target action into n effect segments, where the effect segments are segments whose playback speeds are adjusted by an adjustment ratio corresponding to the execution speed information, and the adjustment ratios adopted when adjusting the playback speeds of at least two effect segments are different, n≧2, and n is an integer; and The method includes sequentially playing the n effect segments to obtain an action effect display result of the target action corresponding to the execution speed information.

[0008] According to another aspect, there is provided a display device for motion effects, said device comprising: a display module for displaying a first virtual object, the first virtual object having the capability of performing a target action, the target action including a corresponding action effect; a receiving module for receiving an action execution operation, the action execution operation being used to control the first virtual object to execute the target action, and the target action correspondingly having execution speed information; and a dividing module for dividing the action effect of the target action into n effect segments according to the action execution operation, wherein the effect segments are segments whose playback speeds have been adjusted by an adjustment ratio corresponding to the execution speed information, and the adjustment ratios adopted when adjusting the playback speeds of at least two effect segments are different, n≧2, and n is an integer; The display module is further used to sequentially play the n effect segments to obtain an action effect display result of the target action corresponding to the execution speed information.

[0009] According to another aspect, there is provided a computing device, the computing device including a processor and a memory, the memory storing at least one instruction, at least one program, code set or instruction set, the at least one instruction, the at least one program, code set or instruction set being loaded and executed by the processor to implement the method for displaying an operational effect as described in the previous aspect.

[0010] According to another aspect, a computer-readable storage medium is provided, the storage medium being used to store a computer program, and the computer program being executed to realize the method for displaying an action effect according to the previous aspect.

[0011] According to another aspect, there is provided a computer program product or computer program, the computer program product or computer program including computer instructions stored on a computer-readable storage medium, the computer instructions being read by a processor of a computing device from the computer-readable storage medium, and the processor executing the computer instructions to cause the computing device to perform the method for displaying an action effect according to the previous aspect. [Effects of the Invention]

[0012] The technical solutions provided in the embodiments of the present application may include at least the following advantageous effects:

[0013] When accelerating and displaying a movement effect based on the execution speed information, the movement effect is divided into segments, and acceleration processing is performed on the segments according to the acceleration conditions corresponding to different effect segments, so that at least two of the n effect segments have different adjustment rates when adjusting the playback speed. Among them, the acceleration proportion of the segments that need to be displayed primarily is relatively small, and the acceleration proportion of the segments that have a weaker effect is relatively large, i.e., the parts with a weaker effect are ignored and the parts with a clearer effect are displayed primarily, thereby achieving the acceleration of the displayed movement effect while simultaneously emphasizing the display of the parts with a clearer effect. Thus, when the execution of the target movement is accelerated by the first virtual object, the displayed movement effect is accelerated on the premise that the important parts of the movement effect are displayed primarily, and the accuracy and efficiency of the display of the movement effect relative to the target movement can be improved. [Brief explanation of the drawings]

[0014] [Figure 1] FIG. 10 is a diagram showing an interface for special effects of skills according to the related art. [Figure 2] FIG. 2 is a block diagram illustrating the configuration of a terminal provided in one exemplary embodiment of the present application. [Figure 3] 1 illustrates an implementation environment provided in one exemplary embodiment of the present application. [Figure 4] FIG. 2 illustrates the display principle of the action effect provided in one exemplary embodiment of the present application. [Figure 5] 1 is a flowchart of a method for displaying an action effect provided in one exemplary embodiment of the present application; [Figure 6] 10 is a flowchart of a method for displaying an action effect provided in another exemplary embodiment of the present application. [Figure 7]10 is a flowchart of a method for displaying an action effect provided in another exemplary embodiment of the present application. [Figure 8] FIG. 1 illustrates an attack speed adjustment process provided in one exemplary embodiment of the present application. [Figure 9] 1 is a block diagram illustrating a configuration of a motion effect display device provided in one exemplary embodiment of the present application. [Figure 10] FIG. 10 is a block diagram showing the configuration of a motion effect display device provided in another exemplary embodiment of the present application. [Figure 11] FIG. 2 is a block diagram illustrating the configuration of a terminal provided in one exemplary embodiment of the present application. DETAILED DESCRIPTION OF THE INVENTION

[0015] In order to make the objectives, technical solutions and advantages of the present application clearer, the following detailed description of the embodiments of the present application is provided in conjunction with the drawings.

[0016] 1 is a diagram illustrating a skill special effect interface in the related art. As shown in FIG. 1, a virtual object 110 is displayed on a game interface 100. The virtual object 110 releases a skill in a virtual environment at twice the initial speed. After the skill release at twice the initial speed is completed, the virtual object starts moving in the virtual environment. At this time, the skill special effect is still being played at the original speed. That is, when the virtual object starts moving in the virtual environment, the skill special effect has not yet been played, so a discrepancy may occur between the movement of the virtual object and the playback of the skill special effect.

[0017] The terminal according to the present application may be a desktop computer, a laptop computer, a smartphone, a tablet computer, an e-book reader, a Moving Picture Experts Group Audio Layer III (MP3) player, a Moving Picture Experts Group Audio Layer IV (MP4) player, etc. An application program supporting a virtual environment, for example, an application program supporting a three-dimensional (3D) virtual environment, is installed and executed on the terminal. The application program may be any one of a virtual reality application program, a three-dimensional map program, a third-person shooting game (FPS), a first-person shooting game (FPS), and a multiplayer online battle arena game (MOBA). Optionally, the application program may be a standalone version of the application program, for example, a standalone three-dimensional game program, or a network online version of the application program.

[0018] 2 is a block diagram showing the configuration of an electronic device provided in one exemplary embodiment of the present application. The electronic device 200 includes an operating system 220 and an application program 222.

[0019] The operating system 220 is basic software that provides application programs 222 with secure access to the computer hardware.

[0020] The application program 222 is an application program that supports a virtual environment. Optionally, the application program 222 is an application program that supports a three-dimensional virtual environment. The application program 222 may be any one of a virtual reality application program, a three-dimensional map program, a TPS game, an FPS game, an MOBA game, and a multiplayer online battle arena game. The application program 222 may be a standalone version of the application program, for example, a standalone three-dimensional game program, or a network online version of the application program.

[0021] 3 is a block diagram showing the configuration of a computer system provided in one exemplary embodiment of the present application. The computer system 300 includes a first device 320, a server 340, and a second device 360.

[0022] An application program supporting the virtual environment is installed and executed on the first device 320. The application program may be any one of a virtual reality application program, a 3D map program, a TPS game, an FPS game, a MOBA game, and a multiplayer online battle arena game. The first device 320 is used by a first user, and the first user uses the first device 320 to control a first virtual object located in the virtual environment to perform an activity, including, but not limited to, at least one of adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up, shooting, attacking, and throwing. Illustratively, the first virtual object is a first virtual person, such as a simulated or animated human character.

[0023] The first device 320 is connected to the server 340 via a wireless or wired network.

[0024] The server 340 may include at least one of a single server, multiple servers, a cloud computing platform, and a virtualization center. The server 340 may be used to provide background services for application programs supporting the 3D virtual environment. Optionally, the server 340 may perform primary computing tasks, while the first device 320 and the second device 360 ​​perform other computing tasks. Alternatively, the first device 320 and the second device 360 ​​may perform primary computing tasks, while the server 340 performs other computing tasks. Alternatively, the server 340, the first device 320, and the second device 360 ​​may perform collaborative computing using a distributed computing architecture.

[0025] An application program supporting the virtual environment is installed and executed on the second device 360. The application program may be any one of a virtual reality application program, a 3D map program, an FPS game, a MOBA game, and a multiplayer online battle arena game. The second device 360 ​​is used by a second user, and the second user uses the second device 360 ​​to control a second virtual object in the virtual environment to perform an activity, including, but not limited to, at least one of adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up, shooting, attacking, and throwing. Illustratively, the second virtual object is a second virtual person, such as a simulated or animated human character.

[0026] Optionally, the first virtual person and the second virtual person are located in the same virtual environment. Optionally, the first virtual person and the second virtual person belong to the same team or the same organization, have a friendship relationship, or have temporary communication rights. Optionally, the first virtual person and the second virtual person belong to different teams, different organizations, or two groups with an adversarial relationship.

[0027] Optionally, the application programs installed on the first device 320 and the second device 360 ​​are the same, or the application programs installed on the two devices are application programs of the same type but on different control system platforms. The first device 320 may generally refer to one of multiple devices, and the second device 360 ​​may generally refer to one of multiple devices. In this embodiment, only the first device 320 and the second device 360 ​​are used as an example. The first device 320 and the second device 360 ​​may be the same or different device types, including at least one of a game console, a desktop computer, a smartphone, a tablet computer, an e-reader, an MP3 player, an MP4 player, and a laptop computer. In the following embodiment, the device is used as a desktop computer.

[0028] As will be appreciated by those skilled in the art, the number of the above-described devices may be greater or less. For example, there may be only one of the above-described devices, or there may be dozens or hundreds of the above-described devices, or even more. Note that the number and types of devices are not limited in the embodiments of the present application.

[0029] Furthermore, the server 340 may be implemented as a physical server or a cloud server. Cloud technology refers to hosting technology that integrates a series of resources, such as hardware, software, and networks, over a wide area network or a local area network to achieve data computing, storage, processing, and sharing. Cloud technology is a collective term for network technology, information technology, integration technology, management platform technology, and application technology for cloud computing-based business model applications. It forms a resource pool and allows on-demand use, making it flexible and convenient. Cloud computing technology is expected to become an important support. Background services in technical network systems require large amounts of computing and storage resources, such as video websites, image websites, and more portal websites. With the rapid development and application of the Internet industry, in the future, each item may have its own unique identification mark, all of which will need to be transmitted to a background system for logical processing. Furthermore, different levels of data will be processed separately, and data from all industries will require powerful system support, which can only be achieved through cloud computing.

[0030] In some embodiments, the methods provided in the embodiments of the present application can be applied to cloud gaming scenarios, in which the cloud server completes the logical operations of the game data, and the terminal is responsible for displaying the game interface.

[0031] In some embodiments, the server 340 may be further implemented as a node in a blockchain system. Blockchain is a new application model of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanisms, and encryption algorithms. A blockchain is essentially a distributed database and a series of related data blocks generated using cryptographic techniques, where each data block contains information about a batch of network transactions and is used to verify the validity of the information (to prevent counterfeiting) and generate the next data block. A blockchain may include a blockchain base platform, a platform product service layer, and an application service layer.

[0032] In an embodiment of the present application, the special effect of a skill can be accelerated by dividing it into segments and accelerating each effect segment, thereby speeding up the playback of the special effect of the skill while retaining important parts of the special effect of the skill and omitting negligible parts of the special effect of the skill. For example, refer to FIG. 4, which is a diagram illustrating the display principle of action effects provided in one exemplary embodiment of the present application. As shown in FIG. 4, the special effect of the skill of the target skill 400 includes a total of 12 screen frames. When the target skill 400 needs to be released at twice the attack speed, the special effect of the target skill is correspondingly accelerated.

[0033] Of these, the 12 screen frames corresponding to the skill's special effect are divided to obtain two effect segments, which are effect segment 410 and effect segment 420, and each effect segment corresponds to six screen frames. When the skill's special effect is played at double speed, the two effect segments are compressed according to the adjustment ratios corresponding to the two effect segments, and two screen frames are removed from the first effect segment 410 and four screen frames are removed from the second effect segment 420, thereby halving the playback time of the skill's special effect to correspond to the skill release time length.

[0034] The following describes the method for displaying action effects provided in an embodiment of the present application, along with a brief introduction to the above-mentioned terms and a description of the implementation environment. Please refer to Figure 5, which is a flowchart of the method for displaying action effects provided in one exemplary embodiment of the present application. The method is described by taking the example of being applied to a terminal. As shown in Figure 5, the method includes the following steps:

[0035] Step 501: A first virtual object is displayed, and the first virtual object has the ability to perform a target action.

[0036] The target action includes a corresponding action effect, which includes at least one of a target skill action, a target attack action, a target dance action, and a target movement action. In the embodiment of the present application, the target action is realized as a target skill action.

[0037] For example, the action effect corresponding to the target skill action is a special effect of the skill. When the first virtual object releases the target skill, it performs the target skill action, and the target skill action has a corresponding special effect of the skill.

[0038] In some embodiments, the target skill is a skill set for the first virtual object, and the target skill has a preparation stage and a cooling stage, in which the preparation stage refers to a stage in which the target skill is in a preparation process and the first virtual object cannot release the target skill within a predetermined time period of the preparation process, and the cooling stage refers to a stage in which the preparation of the target skill is complete and the first virtual object can release the target skill.

[0039] Optionally, when a target skill is set for the first virtual object and the target skill is in a cooling phase, the first virtual object has the ability to release the target skill.

[0040] The first virtual subject unleashes a target skill on a second virtual subject in a hostile relationship in the virtual environment.

[0041] In the embodiments of the present application, an example is given in which the first virtual object is a virtual object that is mainly controlled by an application program currently installed on the terminal, that is, the player controls the first virtual object through the application program to move and perform actions in the virtual environment, for example, the player controls the first virtual object to release a target skill on a second virtual object in the virtual environment.

[0042] Step 502: Receive an action execution operation, which is used to control a first virtual object to execute a target action.

[0043] The target action has corresponding execution speed information, which is used to indicate that the execution of the target action is accelerated by the first virtual object.

[0044] The execution speed information includes at least one of the following:

[0045] 1. The execution speed information is information determined based on the props set for the first virtual object.

[0046] For example, the target action has corresponding initial speed information, and based on the acceleration prop set for the first virtual object, the attack speed is increased based on the initial speed information. For example, an acceleration ball is set for the first virtual object, and the acceleration ball is used to increase the attack speed of the first virtual object, with an increase ratio of 20%, that is, to increase the attack speed for the release of a specified (predetermined) skill (e.g., a target skill) or a normal attack of the first virtual object, or to increase the attack speed for all skills or normal attacks set for the first virtual object.

[0047] 2. The execution speed information is speed information determined based on the target information in the virtual game of the first virtual target.

[0048] For example, the target action has corresponding initial speed information, and the attack speed is increased based on the initial speed information based on the level of the first virtual object in the virtual game. For example, at the initial stage when the first virtual object enters the virtual game, the attack speed corresponding to the release of a predetermined skill (e.g., the target skill) or a normal attack is the initial attack speed, and every time the level of the first virtual object increases to level 5, the attack speed of the release of a predetermined skill (e.g., the target skill) or a normal attack corresponding to the first virtual object is increased, and the increase gradient (increase ratio) is 20%.

[0049] 3. The execution speed information is speed information that is determined based on the first virtual target purchasing an attack speed attribute.

[0050] For example, the target action has corresponding initial speed information, and when the first virtual object purchases an attack speed attribute in a virtual game, for example, by exchanging 20% ​​of the attack speed by executing a virtual prop, after the first virtual object purchases the attack speed attribute, the attack speed corresponding to the release of a certain skill (e.g., a target skill) or a normal attack will be 120% of the initial attack speed.

[0051] The above-described method for determining execution speed information is merely an example, and is not limited to this in the embodiments of the present application. Furthermore, the above-described methods for setting props, target information, and purchasing attack speed attributes may be used in combination or independently. For example, the method with the highest attack speed may be used.

[0052] Step 503: According to the action execution operation, divide the action effect of the target action into n effect segments, where the effect segment is a segment after the playback speed is adjusted according to an adjustment ratio corresponding to the execution speed information, where n≧2 and n is an integer.

[0053] Among them, at least two of the effect segments have different adjustment ratios when their playback speeds are adjusted.

[0054] That is, when adjusting the playback speed for different effect segments, the adjustment is performed at different rates, i.e., assuming that they are played at the same speed, some effect segments will play faster and some effect segments will play slower.

[0055] In some embodiments, first, the action effect of the target action is divided to obtain n candidate effect segments, and adjustment ratios corresponding to the n candidate effect segments are determined based on the execution speed information. Then, playback speed adjustment is performed on the n candidate effect segments based on the adjustment ratios corresponding to the n candidate effect segments, thereby obtaining n effect segments.

[0056] The execution speed information can reflect the acceleration situation when the target action is executed, so that it is possible to determine how much adjustment needs to be made to the original action effect, thereby improving the accuracy of the playback speed adjustment by making the playback speed of the action effect match the target action whose execution is accelerated.

[0057] In some embodiments, the method of adjusting the playback speed for n candidate effect segments includes at least one of the following.

[0058] 1. For the i-th candidate effect segment, obtain the i-th adjustment ratio corresponding to the i-th candidate effect segment, where 0 < i ≤ n; and compress the number of screen frames of the i-th candidate effect segment based on the i-th adjustment ratio to obtain the i-th effect segment.

[0059] Exemplarily, the operation effect of the target operation includes a total of 12 screen frames. The operation effect is divided into two candidate effect segments, where each effect segment corresponds to 6 screen frames. Based on the adjustment ratio, the number of screen frames of the first effect segment is reduced to 5 screen frames, and the second effect segment is reduced to 3 screen frames. Thus, the overall operation effect is reduced to 8 screen frames.

[0060] By compressing the number of screen frames, the number of screen frames included in the i-th effect segment is made smaller than the number of screen frames included in the i-th candidate effect segment. With a relatively small number of screen frames, the playback time length of the i-th effect segment can be directly shortened. Therefore, the effect of accurately adjusting the playback speed by controlling the number of screen frames can be achieved.

[0061] 2. For the i-th candidate effect segment, obtain the i-th adjustment ratio corresponding to the i-th candidate effect segment, where 0 < i ≤ n; and adjust the frame rate of the i-th candidate effect segment based on the i-th adjustment ratio to obtain the i-th effect segment.

[0062] For example, the action effect of the target action includes a total of 12 screen frames, and the initial playback speed of the action effect is 12 frames / second. The action effect is divided into two candidate effect segments, each of which corresponds to 6 screen frames. Based on the adjustment ratio, the frame rate of the first effect segment is controlled to be 18 frames / second, and the frame rate of the second effect segment is controlled to be 24 frames / second.

[0063] Optionally, the action effect of the target action is divided to obtain m candidate effect segments, where m>n and m is an integer. Reduction is performed on the m candidate effect segments, and n candidate effect segments are selected from the m candidate effect segments to adjust the playback speed.

[0064] Illustratively, first, the motion effect of the target motion is divided to obtain six candidate effect segments, and then a reduction is performed on the sixth candidate effect segment of the six candidate effect segments to obtain five candidate effect segments, and subsequent speed adjustment is performed on the five candidate effect segments to obtain five effect segments.

[0065] Optionally, during the process of displaying the special effects of a skill, the special effect displayed first is usually the special effect with the best effect, and the special effect displayed afterwards is the ending animation, so in some embodiments, the adjustment ratios corresponding to the n effect segments are positively correlated with the arrangement order of the n effect segments.

[0066] For example, the motion effect of the target action includes a total of 12 screen frames, and the motion effect of the target action is divided into three candidate effect segments and speed-adjusted, of which the adjustment ratio of the first candidate effect segment is 10%, the adjustment ratio of the second candidate effect segment is 20%, and the adjustment ratio of the third candidate effect segment is 30%.

[0067] Optionally, the adjustment ratio is multiplied by the number of screen frames in the original candidate effect segment and the remainder is removed (truncated) to determine the number of screen frames that need to be reduced, or the adjustment ratio is multiplied by the number of screen frames in the original candidate effect segment and the remainder is rounded to determine the number of screen frames that need to be reduced.

[0068] In some embodiments, the number of divisions of the effect segments is preset, or the number of divisions of the effect segments is randomly determined, or the number of divisions of the effect segments is determined based on the total duration of the effect motion.

[0069] Step 504: The n effect segments are played back sequentially to obtain the action effect display result corresponding to the execution speed information of the target action.

[0070] As an option, after determining the n effect segments after adjusting the playback speed, the n effect segments are sequentially played back to provide the action effect when the target action corresponds to the above-mentioned execution speed information.

[0071] In some embodiments, by varying the above-mentioned speed adjustment methods, the playback of the effect segment includes at least one of the following methods:

[0072] 1. When speed adjustment is performed on a candidate effect segment using the screen frame compression method, the screen frames in the effect segment obtained by compressing n screen frames are displayed frame by frame, that is, the action effect of the target action after speed adjustment is performed according to the execution speed information is obtained.

[0073] 2. When adjusting the speed of candidate effect segments using the frame rate compression method, when playing n effect segments, they are displayed frame by frame at the frame rate corresponding to each effect segment. For example, if the frame rate of effect segment A is 12 frames / second and the frame rate of effect segment B is 24 frames / second, when displaying n effect segments sequentially, effect segment A is played first at 12 frames / second, followed by effect segment B at 24 frames / second. In other words, the action effect of the target action is obtained after the speed has been adjusted according to the execution speed information.

[0074] 3. When adjusting the speed of candidate effect segments using a method of compressing the number of screen frames and frame rate, when playing n effect segments, the screen frames after the quantity compression are displayed frame by frame based on the frame rate corresponding to each effect segment.

[0075] It should be noted that the playback status of the effect segments described above is merely an example, and the embodiments of the present application are not limited thereto.

[0076] In summary, when the action effect display method provided in the embodiment of the present application accelerates and displays the action effect based on the execution speed information, the action effect is divided into segments, and the acceleration process is performed for each segment according to the acceleration conditions corresponding to different effect segments, so that at least two of the n effect segments have different adjustment rates when adjusting the playback speed. Among them, the acceleration proportion of the segments that need to be displayed primarily is relatively small, and the acceleration proportion of the segments with weaker effects is relatively large, that is, the weaker effects are ignored and the more obvious effects are displayed. Thus, when the execution of the target action is accelerated by the first virtual object, the displayed action effect is accelerated on the premise that the important parts of the action effect are displayed primarily, and at the same time, the more obvious effects are displayed primarily, thereby improving the accuracy and efficiency of the display of the action effect relative to the target action.

[0077] In one alternative embodiment, the speed of the candidate effect segments is adjusted in a manner that compresses the number of screen frames. Figure 6 is a flowchart of a method for displaying action effects provided in another exemplary embodiment of the present application. The method is described by taking the application of the method to a terminal as an example. As shown in Figure 6, the method includes the following steps:

[0078] Step 601: A first virtual object is displayed, and the first virtual object has the ability to perform a target action.

[0079] The target action has a corresponding action effect. In the embodiment of the present application, an example will be described in which the target action is realized as a target skill action.

[0080] Take the example where the action effect corresponding to the target skill action is a special effect of the skill, and when the first virtual object releases the target skill, it performs the target skill action, and the target skill action has a corresponding special effect of the skill.

[0081] Step 602: Receive an action execution operation, which is used to control the first virtual object to execute a target action.

[0082] The target motion has corresponding execution speed information.

[0083] Step 603: Divide the action effect of the target action to obtain n candidate effect segments.

[0084] In some embodiments, the action effect of the target action is directly divided to obtain n candidate effect segments; or the action effect of the target action is first divided to obtain m candidate effect segments, where m>n and m is an integer, and then reduction is performed on the m candidate effect segments, and n candidate effect segments are selected from among them to adjust the playback speed.

[0085] In some embodiments, m candidate effect segments are reduced based on the importance parameters of the m candidate effect segments, where the importance parameters are determined based on a preset importance arrangement method, for example, when the arrangement of importance from high to low (e.g., the arrangement after sorting) is taken as the importance corresponding to the m candidate effect segments after division, the k candidate effect segments with the lowest importance are reduced to obtain n candidate effect segments; or the importance parameters are determined by discriminant analysis of the screen frame, for example, the result obtained by discriminating the display ratio of the action effect in the screen frame is taken as the importance parameter, and the k candidate effect segments with the lowest importance parameters are reduced to obtain n candidate effect segments, where k is a positive integer.

[0086] The above-described method of obtaining n candidate effect segments by division is merely an example, and the embodiment of the present application does not limit the method of reducing m candidate effect segments.

[0087] Furthermore, in this embodiment, the example is explained in which step 603 is executed after step 602, but step 603 may also be executed before step 602 or before step 601, and the execution order of step 603 is not limited in this embodiment.

[0088] Step 604: In response to the action execution operation, determine an adjustment ratio corresponding to each of the n candidate effect segments based on the execution speed information.

[0089] In some embodiments, determining the adjustment ratio corresponding to each of the n candidate effect segments includes at least one of the following ways:

[0090] 1. The adjustment ratios corresponding to the n candidate effect segments are positively correlated with the sequence order of the n candidate effect segments, i.e., the later a candidate effect segment is located in the sequence, the higher the adjustment ratio corresponding to the candidate effect segment. For example, in the case of shortening the playback time, the later the candidate effect segment is located, the greater the degree to which the playback time is shortened.

[0091] 2. Adjustment ratios corresponding to the n candidate effect segments are preset. Optionally, for the action effects of different actions, there are effect emphasis stages, i.e., for some action effects, there are effect emphasis initial stages, for some action effects, there are effect emphasis middle stages, or for some action effects, there are effect emphasis final stages. Thus, by setting different adjustment ratios for the candidate effect segments for different action effects, the action effects can be compressed more targetedly with different adjustment ratios.

[0092] 3. The adjustment ratios corresponding to the n candidate effect segments are randomly determined, that is, the n candidate effect segments are compressed in a randomly determined manner.

[0093] The above-mentioned method is merely an example, and the present embodiment is not limited to this method.

[0094] Step 605: For the i-th candidate effect segment, obtain the i-th adjustment ratio corresponding to the i-th candidate effect segment, and <i≦nである。

[0095] Among the n candidate effect segments, obtain the i-th adjustment ratio of the i-th candidate effect segment, that is, when i is 1 to n, obtain the adjustment ratio of each candidate effect segment, and then perform the subsequent compression process.

[0096] Step 606: Compress the number of screen frames of the ith candidate effect segment based on the ith adjustment ratio to obtain the ith effect segment.

[0097] In some embodiments, a first playback duration of the i-th candidate effect segment is obtained, the first playback duration is adjusted based on the i-th adjustment ratio to obtain a second playback duration, and the number of screen frames of the i-th candidate effect segment is compressed based on the second playback duration to obtain the i-th effect segment.

[0098] For example, if the first playback duration of the acquired i-th candidate effect segment is 2 seconds, corresponding to 12 screen frames, and the adjustment ratio of the i-th candidate effect segment is 25%, the playback duration obtained by adjusting based on the first playback duration and the adjustment ratio is 1.5 seconds, corresponding to 9 screen frames, i.e., the screen frames of the i-th candidate effect segment are compressed from 12 frames to 9 frames.

[0099] Alternatively, the adjusted number of screen frames is obtained by directly obtaining the adjustment ratio corresponding to the i-th adjustment ratio and adjusting the number of screen frames in the i-th candidate effect segment.

[0100] Under the same frame rate, different playback time lengths can intuitively correspond to different numbers of screen frames, so the determined playback time length can accurately guide how to compress the screen frames and improve the compression effect.

[0101] In some embodiments, when performing reduction on screen frames in a candidate effect segment, the manner in which screen frames to be reduced are selected includes at least one of the following:

[0102] 1. Determine the priority corresponding to the screen frame in the i-th candidate effect segment, and obtain the i-th effect segment by compressing the number of screen frames based on the priority order of the screen frame in the i-th candidate effect segment and the i-th adjustment ratio.

[0103] Optionally, the priority of the screen frames in the i-th candidate effect segment may be determined by sorting; or may be determined in a pre-defined manner; or may be determined in an image identification manner.

[0104] Illustratively, when determining the priority of screen frames in the i-th candidate effect segment by reordering, illustratively, the priority of screen frames in the i-th candidate effect segment is negatively correlated with the reordering order of the screen frames, i.e., screen frames that are later after reordering in the i-th candidate effect segment are preferentially reduced.

[0105] For example, when determining the screen frames to be reduced in the i-th candidate effect segment in a preset manner, if the priority of odd-numbered frames in the i-th candidate effect segment is greater than the priority of even-numbered frames and the priority of odd-numbered frames is negatively correlated with the order of the arrangement, the screen frames in the i-th candidate effect segment are sequentially reduced in the order of the first frame, the third frame, and the fifth frame.

[0106] For example, when determining the screen frame to be reduced in the i-th candidate effect segment using the image identification method, for example, image identification is performed on the screen frame to identify the content of the special effect in the screen frame, and the proportion of the content of the special effect in the screen frame is positively correlated with the priority of the screen frame. In this case, the screen frame with the smallest proportion of the content of the special effect in the screen frame is preferentially reduced.

[0107] The priority can reflect the importance of the corresponding screen frame in the i-th candidate effect segment, and the importance can be related to the action effect or the deletion of the screen frame. Therefore, the priority of the screen frame can accurately indicate how to delete the screen frame during the screen frame compression, thereby improving the compression accuracy.

[0108] 2. Compress the screen frames in the i-th candidate effect segment by random reduction, and compress the number of screen frames according to the i-th adjustment ratio to obtain the i-th effect segment.

[0109] Illustratively, when randomly determining the screen frames to be reduced in the i-th candidate effect segment, a random algorithm is employed to select and reduce the screen frames from among the screen frames in the i-th candidate effect segment.

[0110] 3. Determine the similarity between the screen frames in the i-th candidate effect segment, and randomly retain one screen frame among the screen frames whose similarity is greater than the similarity threshold, and remove the other screen frames. For example, if three frames need to be removed from the i-th candidate effect segment, and the similarity between the second, third, and fourth frames is greater than the similarity threshold, first remove the third and fourth frames, and then select and remove one frame from the other screen frames whose similarity is greater than the similarity threshold.

[0111] The above-described method for reducing the number of screen frames is merely an example, and the present embodiment is not limited to this method.

[0112] Step 607: The n effect segments are played back sequentially to obtain the action effect display result corresponding to the execution speed information of the target action.

[0113] As an option, after determining the n effect segments after adjusting the playback speed, the n effect segments are sequentially played back to provide the action effect when the target action corresponds to the above-mentioned execution speed information.

[0114] In summary, when the action effect display method provided in the embodiments of the present application accelerates and displays the action effect based on the execution speed information, the action effect is divided into segments, and the acceleration process is performed for each segment based on the acceleration conditions corresponding to different effect segments, among which the acceleration proportion of segments that need to be displayed with emphasis is relatively small, and the acceleration proportion of segments with relatively weak effects is relatively large, that is, the parts with relatively weak effects are ignored and the parts with obvious effects are displayed with emphasis, thereby accelerating the display of the action effect and simultaneously focusing on the parts with relatively obvious effects, thereby improving the accuracy and efficiency of the display of the action effect.

[0115] The method provided in this embodiment reduces the screen frame for the i-th candidate effect segment based on the priority of the screen frame in the i-th candidate effect segment, thereby improving the accuracy of the screen frame reduction and improving the effect of displaying the effect of the i-th effect segment.

[0116] In one alternative embodiment, the dividing of the action effect includes multiple division methods. Figure 7 is a flowchart of a method for displaying action effects provided in one exemplary embodiment of the present application. The method is described by taking the example of being applied to a terminal. As shown in Figure 7, the method includes the following steps:

[0117] Step 701: A first virtual object is displayed, and the first virtual object has the ability to perform a target action.

[0118] The target action includes a corresponding action effect. In the embodiment of the present application, an example will be described in which the target action is realized as a target skill action.

[0119] For example, the action effect corresponding to the target skill action is a special effect of the skill. When the first virtual object releases the target skill, it performs the target skill action, and the target skill action has a corresponding special effect of the skill.

[0120] Step 702: Receive an action execution operation, which is used to control the first virtual object to execute a target action.

[0121] The target motion has corresponding execution speed information.

[0122] Step 703: The action effect of the target action is divided into equal length segments to obtain n candidate effect segments.

[0123] For example, after determining the number of divisions of the candidate effect segments of the action effect, equal-length division is performed on the action effect of the target action based on the determined number of divisions to obtain n candidate effect segments. The equal-length division method can quickly and easily complete the segment division of the action effect and reduce the amount of calculation required for division.

[0124] Optionally, the number of divisions of the candidate effect segments may be preset, for example, if the number of two candidate effect segments is preset, the action effect of the target action is divided into two candidate effect segments of equal length.

[0125] Alternatively, the number of divisions of the candidate effect segments may be determined randomly, and optionally, the number of divisions of the candidate effect segments may be determined within a predetermined number range, for example, if the number of candidate effect segments is randomly determined to be 2 from a number range of 1-4, the action effect of the target action is divided into two candidate effect segments of equal length.

[0126] Alternatively, the number of divisions of the candidate effect segments may be determined based on the initial duration of the motion effect, i.e., the initial duration when the speed of the motion effect is not adjusted is determined, and the number of divisions of the candidate effect segments is determined based on the initial duration. For example, there is a correspondence between the initial duration and the number of divisions. For example, when the initial duration is 1-2 seconds, the corresponding number of divisions is 2, and when the initial duration is 2-3 seconds, the corresponding number of divisions is 3.

[0127] Step 704: Obtain a time parameter corresponding to the target action.

[0128] In some embodiments, the time parameter is a preset parameter corresponding to a target action.

[0129] Step 705: Divide the action effect based on the time parameter to obtain n candidate effect segments.

[0130] For example, by inputting a time parameter for the action effect of the target action, the action effect is divided at the time corresponding to the time parameter to obtain n candidate effect segments, i.e., the number of candidate effect segments corresponds to the number of the predetermined time parameter. For example, the number of candidate effect segments is the number of time parameter plus 1.

[0131] The preset time point parameter can indicate the time point corresponding to the division of the candidate effect segment, for example, by treating the part between two adjacent time points as one candidate effect segment, the division for the action effect can be completed quickly and the efficiency of the division can be improved.

[0132] Step 706: Obtain a screen frame corresponding to the action effect of the target action.

[0133] A screen frame of each frame of the action effect is obtained for subsequent similarity analysis.

[0134] Step 707: Divide the action effect according to the similarity relationship between the screen frames corresponding to the action effect to obtain n candidate effect segments.

[0135] In some embodiments, among the screen frames corresponding to the action effect, the similarity between two adjacent screen frames is obtained, and consecutive screen frames whose similarity satisfies a similarity threshold belong to the same candidate effect segment, thereby obtaining n candidate effect segments.

[0136] By analyzing the similarity, similar screen frames can be determined from among the screen frames of the video effect, and there is a high probability that similar screen frames correspond to the same sub-effect in the action effect. Therefore, when this is used as the basis for dividing candidate effect segments, it is possible to increase the probability that screen frames corresponding to the same sub-effect will belong to one candidate effect segment, thereby improving the accuracy of the division.

[0137] Step 708: In response to the action execution operation, determine an adjustment ratio corresponding to each of the n candidate effect segments based on the execution speed information.

[0138] In some embodiments, determining the adjustment ratios corresponding to the n candidate effect segments respectively includes at least one of determining by sequence relationship, pre-setting, and random determination.

[0139] Step 709: Perform playback speed adjustment on the n candidate effect segments according to the adjustment ratios corresponding to each of the n candidate effect segments to obtain n effect segments.

[0140] In some embodiments, a first playback duration of the i-th candidate effect segment is obtained, the first playback duration is adjusted based on the i-th adjustment ratio to obtain a second playback duration, and the number of screen frames of the i-th candidate effect segment is compressed based on the second playback duration to obtain the i-th effect segment.

[0141] Step 710: The n effect segments are played back sequentially to obtain the action effect display result corresponding to the execution speed information of the target action.

[0142] As an option, after obtaining the n effect segments after adjusting the playback speed, the n effect segments are sequentially played back to provide the action effect when the target action corresponds to the above-mentioned execution speed information.

[0143] In summary, when the action effect display method provided in the embodiments of the present application accelerates and displays the action effect based on the execution speed information, the action effect is divided into segments, and the acceleration process is performed for each segment based on the acceleration conditions corresponding to different effect segments, among which the acceleration proportion of segments that need to be displayed with emphasis is relatively small, and the acceleration proportion of segments with relatively weak effects is relatively large, that is, the parts with relatively weak effects are ignored and the parts with obvious effects are displayed with emphasis, thereby accelerating the display of the action effect and simultaneously focusing on the parts with relatively obvious effects, thereby improving the accuracy and efficiency of the display of the action effect.

[0144] The method provided in this embodiment reduces the screen frame for the i-th candidate effect segment based on the priority of the screen frame in the i-th candidate effect segment, thereby increasing the accuracy rate of screen frame reduction and improving the effectiveness of displaying the effect of the i-th effect segment.

[0145] For illustrative purposes, an example will be described in which the attack speed of a skill is increased and the display speed of the special effect of the skill is also increased at the same time. Figure 8 is a diagram illustrating the attack speed adjustment process provided in one exemplary embodiment of the present application.

[0146] As shown in FIG. 8, in this process, for the special effect of the motion, first, input the time parameter (810), where the time parameter is t1, t2, . . . , t n Then, the special effect of the skill is segmented based on the time parameter (820), and the special effect playback time length corresponding to each special effect segment is T1, T2, ..., T n is.

[0147] Input the influence coefficients corresponding to each special effect segment, i.e., the special effect influence coefficients corresponding to the change in attack speed (830), k1, k2, ..., k n The influence coefficient adjusts the degree to which the attack speed affects the regeneration speed of the special effects of each segment. In order to achieve a small effect on the regeneration speed of the special effects of the previous segment and a large effect on the regeneration speed of the special effects of the later segment, k1 <k2<k3<…<k n becomes.

[0148] The player may increase the hero's (game character's) attack speed by X times by issuing equipment (840) or by other means. In this case, the currently effective attack speed is (1 + X) times the initial attack speed. If the minimum value of X is 0, i.e., there is no attack speed bonus, the hero's attack speed increase is 0. In some embodiments, an upper limit is set for the attack speed bonus; for example, if the maximum value of X is 2, the hero's maximum attack speed is 3 times the initial attack speed.

[0149] Substitute the attack speed increase parameter X into the following formula (850), and the regeneration speed of the i-th segment of the special effect after the increase is V i =1+k i×X, where 1 in the formula is the hero's initial attack speed, meaning that initially, without any bonuses from equipment or skill effects, the hero's attack speed is 1x the initial attack speed. The increased attack speed x is affected by the coefficient k, which can adjust the degree to which special effects from different segments affect attack speed.

[0150] The special effect duration of each segment is the new special effect duration obtained by combining them.

[0151]

number

[0152] 9 is a block diagram showing the configuration of a motion effect display device provided in one exemplary embodiment of the present application. As shown in FIG. 9, the device includes:

[0153] A display module 910 is used to display a first virtual object, the first virtual object having the ability to perform a target action, and the target action includes a corresponding action effect; A receiving module 920: used to receive an action execution operation, the action execution operation is used to control the first virtual object to execute the target action, and the target action has corresponding execution speed information, the execution speed information is used to indicate that the execution of the target action is accelerated by the first virtual object; and Division module 930: Used to divide the action effect of the target action into n effect segments according to the action execution operation, where the effect segments are segments after their playback speeds have been adjusted by an adjustment ratio corresponding to the execution speed information, and the adjustment ratios adopted when adjusting the playback speeds of at least two effect segments are different, n≧2, and n is an integer.

[0154] The display module 910 is further used to sequentially reproduce the n effect segments and obtain the operation effect display result corresponding to the execution speed information of the target operation.

[0155] In one selectable embodiment, the splitting module 930 is further used to split the operation effect of the target operation to obtain n candidate effect segments.

[0156] As shown in FIG. 10, the apparatus further includes the following.

[0157] Decision module 940: used to determine the adjustment ratio corresponding to each of the n candidate effect segments based on the execution speed information according to the operation execution operation; and Adjustment module 950: used to perform playback speed adjustment on the n candidate effect segments based on the adjustment ratio corresponding to each of the n candidate effect segments to obtain the n effect segments.

[0158] In one selectable embodiment, the adjustment module 950 further obtains the i-th adjustment ratio corresponding to the i-th candidate effect segment for the i-th candidate effect segment, where 0 < i ≤ n; and compresses the number of screen frames of the i-th candidate effect segment based on the i-th adjustment ratio to obtain the i-th effect segment.

[0159] In one selectable embodiment, the adjustment module 950 further obtains the first playback time length of the i-th candidate effect segment; adjusts the first playback time length based on the i-th adjustment ratio to obtain the second playback time length; and compresses the number of screen frames of the i-th candidate effect segment based on the second playback time length to obtain the i-th effect segment.

[0160] In one alternative embodiment, the determination module 940 is further used to determine a priority corresponding to a screen frame in the i-th candidate effect segment, and the adjustment module 950 is further used to compress the number of screen frames based on the priority order of the screen frames in the i-th candidate effect segment and the i-th adjustment ratio to obtain the i-th effect segment.

[0161] In one alternative embodiment, the adjustment ratios corresponding to the n effect segments are positively correlated with the order of arrangement of the n effect segments.

[0162] In one alternative embodiment, the segmentation module 930 is further used to perform equal length segmentation on the action effect of the target action to obtain the n candidate effect segments.

[0163] In one alternative embodiment, the segmentation module 930 is further used to obtain a time parameter corresponding to the target action; and to segment the action effect based on the time parameter to obtain the n candidate effect segments.

[0164] In one alternative embodiment, the segmentation module 930 is further used to obtain screen frames corresponding to the action effects of the target action; and segment the action effects based on the similarity relationship between the screen frames corresponding to the action effects to obtain n candidate effect segments.

[0165] In one alternative embodiment, the division module 930 is further used to obtain a similarity between two adjacent screen frames among the screen frames corresponding to the motion effect; and to assign consecutive screen frames whose similarity satisfies a similarity threshold to the same candidate effect segment, thereby obtaining n candidate effect segments.

[0166] In summary, when the action effect display device provided in the embodiment of the present application accelerates and displays the action effect based on the execution speed information, the action effect is divided into segments, and acceleration processing is performed for the segments according to the acceleration conditions corresponding to different effect segments, so that at least two of the n effect segments have different adjustment rates when adjusting the playback speed, whereby the acceleration proportion of the segments that need to be displayed intensively is relatively small and the acceleration proportion of the segments with weaker effects is relatively large, i.e., the weaker effects are ignored and the more obvious effects are displayed. Thus, when the execution of the target action is accelerated by the first virtual object, the displayed action effect is accelerated on the premise that the important parts of the action effect are displayed intensively, and at the same time, the more obvious effects are displayed intensively, thereby improving the accuracy and efficiency of the display of the action effect relative to the target action.

[0167] Although the above-mentioned embodiment of the display device for action effects has been described using the division of each functional module as an example, in actual application, the above-mentioned functions may be assigned to different functional modules according to needs, that is, all or part of the above-mentioned functions may be achieved by dividing the internal configuration of the device into different functional modules. Furthermore, the display device for action effects provided in the above-mentioned embodiment belongs to the same concept as the embodiment of the method for displaying action effects, and the specific implementation process thereof may be referred to the embodiment of the method, and a detailed description thereof will be omitted here.

[0168] 11 is a block diagram illustrating a configuration of a terminal 1100 provided in one exemplary embodiment of the present application. The terminal 1100 may be a smartphone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 player (Moving Picture Experts Group Audio Layer IV), a notebook computer, or a desktop computer. The terminal 1100 may also be referred to by other names such as a user device, a mobile terminal, a laptop terminal, or a desktop terminal.

[0169] The terminal 1100 typically includes a processor 1101 and a memory 1102 .

[0170] The processor 1101 may include one or more processing cores, such as a 4-core processor or an 8-core processor. The processor 1101 may be implemented in the form of at least one hardware component selected from the group consisting of a digital signal processing (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 1101 may include a main processor and a coprocessor. The main processor is a processor for processing data in an active state and is also referred to as a central processing unit (CPU). The coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 1101 is integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing content that needs to be displayed on a display screen. In some embodiments, the processor 1101 further includes an artificial intelligence (AI) processor, which is used to perform computational operations related to machine learning.

[0171] The storage device 1102 may include one or more computer-readable storage media, which may be non-transitory. The storage device 1102 may further include high-speed random access memory and non-volatile memory, such as one or more magnetic disks or flash memory. In some embodiments, the non-transitory computer-readable storage media in the storage device 1102 are used to store computer programs that are executed by the processor 1101 to implement the methods for displaying operational effects provided in the method embodiments of the present application.

[0172] In some embodiments, the terminal 1100 may further optionally include a peripheral interface 1103 and at least one peripheral. The processor 1101, the memory 1102, and the peripheral interface 1103 may be connected via a bus or signal lines. Each peripheral may be connected to the peripheral interface 1103 by a bus, signal lines, or a circuit board. Specifically, the peripheral may include at least one of an RF circuit 1104, a display screen 1105, a camera head assembly 1106, an audio circuit 1107, a positioning assembly 1108, and a power supply 1109.

[0173] The peripheral interface 1103 is used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1101 and the memory 1102. In some embodiments, the processor 1101, the memory 1102, and the peripheral interface 1103 may be integrated on the same chip or circuit board, and in some other embodiments, any one or two of the processor 1101, the memory 1102, and the peripheral interface 1103 may be implemented on a single chip or circuit board, although this embodiment is not limited thereto.

[0174] The RF circuitry 1104 is used to transmit and receive RF (Radio Frequency) signals (also referred to as electromagnetic signals). The RF circuitry 1104 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuitry 1104 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the RF circuitry 1104 may include an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user ID module card, etc. The RF circuitry 1104 can communicate with other terminals via at least one wireless communication protocol. The wireless communication protocol may include, but is not limited to, the Internet, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G, and 5G), a wireless local area network, and / or a Wi-Fi (Wireless Fidelity) network. In some embodiments, the RF circuitry 1104 may further include circuitry related to Near Field Communication (NFC), although this application is not limited thereto.

[0175] The display screen 1105 is used to display a user interface (UI). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 1105 is a touch panel, the display screen 1105 is also capable of collecting touch signals on or above the surface of the display screen 1105. The touch signals can be input to the processor 1101 as control signals and processed. The display screen 1105 is used to provide virtual buttons and / or a virtual keyboard, which are also referred to as soft buttons and / or a soft keyboard. In some embodiments, there is one display screen 1105 and it may be located on the front panel of the terminal 1100. In other embodiments, there are at least two display screens 1105 and each may be located on a different surface of the terminal 1100 or may be designed to be foldable. In other embodiments, the display screen 1105 is a flexible display and may be disposed on a curved or foldable surface of the terminal 1100. Furthermore, the display screen 1105 may be configured as a non-rectangular, irregular shape, i.e., a specially shaped panel. The display screen 1105 may be made of materials such as a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), etc.

[0176] The camera head assembly 1106 is used to capture images or videos. Optionally, the camera head assembly 1106 includes a front camera head and a rear camera head. Typically, the front camera head is used for video calls or selfies, and the rear camera head is used for taking photos or videos. In some embodiments, there are at least two rear camera heads, each of which can be one of a main camera head, a depth-of-field camera head, and a wide-angle camera head. The main camera head and the depth-of-field camera head are combined to realize a background blur function, and the main camera head and the wide-angle camera head are combined to realize a panoramic shooting function and a virtual reality (VR) shooting function. In some embodiments, the camera head assembly 1106 may further include a flash. The flash may be a single color temperature flash or a dual color temperature flash. A dual color temperature flash refers to a combination of a warm light flash and a cool light flash, which can be used to compensate for light under different color temperatures.

[0177] The audio circuit 1107 is used to provide an audio interface between the user and the terminal 1100. The audio circuit 1107 may include a microphone and a speaker. The microphone collects sound waves from the user and the environment, converts the sound waves into electrical signals, and inputs them to the processor 1101 for processing or to the RF circuit 104 for audio communication. For purposes of stereophonic pickup or noise reduction, multiple microphones may be installed at different locations on the terminal 1100. The microphone may also be an array microphone or an omnidirectional microphone. The speaker is used to convert electrical signals from the processor 1101 or the RF circuit 1104 into audio waves. The speaker may be a conventional membrane speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can convert electrical signals not only into audio waves audible to humans but also into audio waves inaudible to humans for purposes such as distance measurement. In some embodiments, the audio circuit 1107 may further include a headphone jack.

[0178] The positioning assembly 1108 is used to determine the current geographical location of the terminal 1100 for navigation or LBS (Location Based Service) purposes, and may be a positioning assembly of the US GPS (Global Positioning System), the Chinese Beidou system, or the Russian Galileo system.

[0179] The power source 1109 is used to power each assembly in the terminal 1100. The power source 1109 may be AC, DC, a disposable battery, or a rechargeable battery. When the power source 1109 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery that is charged via a wired line, and a wireless rechargeable battery is a battery that is charged via a wireless coil. The rechargeable battery may also be used to support fast charging technology.

[0180] In some embodiments, terminal 1100 further includes one or more sensors 1110, including, but not limited to, an acceleration sensor 1111, a gyro sensor 1112, a pressure sensor 1113, a fingerprint sensor 1114, an optical sensor 1115, and a proximity sensor 1116.

[0181] The acceleration sensor 1111 can detect acceleration on three coordinate axes of a coordinate system established by the terminal 1100. For example, the acceleration sensor 1111 can be used to detect components of gravitational acceleration on three coordinate axes. The processor 1101 can control the display screen 1105 to display a user interface in landscape or portrait mode based on the gravitational acceleration signal collected by the acceleration sensor 1111. The acceleration sensor 1111 can also be used for games or to collect user movement data.

[0182] The gyro sensor 1112 can detect the orientation and rotation angle of the device 1100, and in cooperation with the acceleration sensor 1111, can collect the user's 3D movement relative to the device 1100. Based on the data collected by the gyro sensor 1112, the processor 1101 can realize the following functions: motion sensing (e.g., changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.

[0183] The pressure sensor 1113 can be disposed on a side frame of the terminal 1100 and / or below the display screen 1105. When the pressure sensor 1113 is disposed on the side frame of the terminal 1100, it can detect a grip signal from the user to the terminal 1100, and the processor 1113 can recognize left and right hands or perform shortcut operations based on the grip signal. When the pressure sensor 1113 is disposed below the display screen 1105, the processor 1113 can realize control over operable controls on the UI interface based on the user's pressure operation on the display screen 1105. The operable controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.

[0184] The fingerprint sensor 1114 is used to collect a user's fingerprint, and the processor 1101 identifies the user's ID based on the fingerprint collected by the fingerprint sensor 1114, or the fingerprint sensor 1114 identifies the user's ID based on the collected fingerprint. When the processor 1101 identifies the user's ID as a trusted ID, it allows the user to perform related sensitive operations, such as unlocking the screen, displaying encrypted information, downloading software, making payments, changing settings, etc. The fingerprint sensor 1114 may be provided on the front, back, or side of the terminal 1100. If the terminal 1100 is provided with a physical button or a manufacturer's logo, the fingerprint sensor 1114 may be integrated with the physical button or the manufacturer's logo.

[0185] The optical sensor 1115 is used to collect the ambient light intensity.

[0186] The proximity sensor 1116 is also referred to as a distance sensor and is typically provided on the front of the terminal 1100. The proximity sensor 1116 is used to collect the distance between the user and the front of the terminal 1100. In one embodiment, when the proximity sensor 1116 detects that the distance between the user and the front of the terminal 1100 is gradually decreasing, the processor 1101 controls the display screen 1105 to switch from an on-screen state to an off-screen state, and when the proximity sensor 1116 detects that the distance between the user and the front of the terminal 1100 is gradually increasing, the processor 1101 controls the display screen 1105 to switch from an off-screen state to an on-screen state.

[0187] As will be appreciated by those skilled in the art, the configuration shown in FIG. 11 is not limiting of terminal 1100, which may include more or fewer components than those shown, or may combine some components, or may employ a different component layout.

[0188] Optionally, the computer-readable storage medium may include a read-only memory (ROM), a random access memory (RAM), a solid-state drive (SSD), an optical disk, etc. Among them, the RAM may include a resistance random access memory (ReRAM) and a dynamic random access memory (DRAM).

[0189] In addition, the embodiments of the present application further provide a computer program comprising instructions, which, when executed on a computer, causes the computer to perform the methods provided in the above-mentioned embodiments.

[0190] Although the preferred embodiments of the present application have been described above, the present application is not limited to these embodiments, and any modifications to the present application fall within the technical scope of the present application as long as they do not depart from the spirit of the present application.

Claims

1. 1. A method for displaying motion effects performed by an electronic device, comprising: displaying a first virtual object, the first virtual object having the capability of performing a target action, the target action including a corresponding action effect; receiving an action execution operation, the action execution operation being used to control the first virtual object to accelerate and execute the target action, the target action having corresponding execution speed information, the execution speed information being used to indicate that the execution of the target action is accelerated by the first virtual object; A step of dividing the action effect of the target action into n effect segments in response to the action execution operation, the dividing step including: Segmenting the action effect of the target action to obtain n candidate effect segments; determining an adjustment ratio corresponding to each of the n candidate effect segments based on the execution speed information in response to the motion execution operation; For an ith candidate effect segment among the n candidate effect segments, compress the number of screen frames of the ith candidate effect segment based on the order of priority corresponding to the screen frames in the ith candidate effect segment and the ith adjustment ratio corresponding to the ith candidate effect segment to obtain the ith effect segment, thereby adjusting the playback speed of the n candidate effect segments to obtain the n effect segments; wherein adjusting the playback speed of at least two of the n candidate effect segments employs different adjustment ratios, n≧2, and 0<i≦n, where n is an integer; and The method includes a step of sequentially playing back the n effect segments to obtain a display result of the action effect with a playback speed adjusted corresponding to the execution speed information of the target action.

2. 2. The method of claim 1, Compressing the number of screen frames of the i-th candidate effect segment to obtain the i-th effect segment includes: obtaining a first playback duration of the i-th candidate effect segment; adjusting the first playback duration based on the i-th adjustment ratio to obtain a second playback duration; and compressing the number of screen frames of the i-th candidate effect segment based on the second playback duration to obtain the i-th effect segment.

3. 2. The method of claim 1, The method, wherein the adjustment ratios corresponding to the n effect segments are positively correlated with the order of the arrangement of the n effect segments.

4. 4. The method according to any one of claims 1 to 3, The step of dividing the action effect of the target action to obtain n candidate effect segments includes: The method includes performing equal length division on the action effect of the target action to obtain the n candidate effect segments.

5. 4. The method according to any one of claims 1 to 3, The step of dividing the action effect of the target action to obtain n candidate effect segments includes: obtaining a time parameter corresponding to the target motion; and Segmenting the motion effect based on the time point parameter to obtain the n candidate effect segments.

6. 4. The method according to any one of claims 1 to 3, The step of dividing the action effect of the target action to obtain n candidate effect segments includes: obtaining a screen frame corresponding to the motion effect of the target motion; and The method includes: segmenting the motion effect based on a similarity relationship between screen frames corresponding to the motion effect to obtain n candidate effect segments.

7. 7. The method of claim 6, Segmenting the action effects based on similarity relationships between screen frames corresponding to the action effects to obtain n candidate effect segments, Obtaining a similarity between two adjacent screen frames among the screen frames corresponding to the motion effect; and The method includes the step of: associating consecutive screen frames whose similarity satisfies a similarity threshold with the same candidate effect segment to obtain n candidate effect segments.

8. 1. A device for displaying motion effects, comprising: a display module for displaying a first virtual object, the first virtual object having the capability of performing a target action, the target action including a corresponding action effect; a receiving module for receiving an action execution operation, the action execution operation being used to control the first virtual object to accelerate and execute the target action, the target action having corresponding execution speed information, the execution speed information being used to indicate that the execution of the target action is accelerated by the first virtual object; and a division module for dividing the action effect of the target action into n effect segments in response to the action execution operation, the division module being used to divide the action effect of the target action to obtain n candidate effect segments; The apparatus further comprises: a determination module for determining an adjustment ratio corresponding to each of the n candidate effect segments based on the execution speed information in response to the motion execution operation; and For an ith candidate effect segment among the n candidate effect segments, an adjustment module is included, which adjusts the playback speed of the n candidate effect segments by compressing the number of screen frames of the ith candidate effect segment according to a priority order corresponding to the screen frames in the ith candidate effect segment and the ith adjustment ratio to obtain the ith effect segment, and the adjustment ratios adopted when adjusting the playback speed of at least two candidate effect segments among the n candidate effect segments are different, n≧2 and 0<i≦n, where n is an integer; The display module is further used to sequentially play back the n effect segments to obtain a display result of the action effect with a playback speed adjusted corresponding to the execution speed information of the target action.

9. a processor; and a computing device including a memory coupled to the processor, The storage device stores a computer program, A computing device, wherein the processor is configured to execute the computer program to implement the method according to any one of claims 1 to 3.

10. A program for causing a computer to execute the method according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Game animation playing method and device and server

    CN111145317A

  • Animation display method and device, equipment and storage medium

    CN111330267A

  • Animation playing method and device, terminal and storage medium

    CN111494942A

  • Game skill processing method, system and device and electronic equipment

    CN112546616A

  • Action effect display method and device, equipment and medium

    CN113633970A