A game special effect video processing method, device, equipment and medium

CN116036583BActive Publication Date: 2026-09-15NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211574580.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-08
Publication Date
2026-09-15
Estimated Expiration
2042-12-08

AI Technical Summary

Technical Problem

[0004]本申请提供了一种游戏特效视频处理方法、装置、设备及介质,用以解决现有技术中的游戏特效视频的制作效率较低、动画特效流动性较差的问题,具体的,本申请提供的技术方案如下:

Benefits of technology

[0018] This application utilizes the first position information of the virtual skill props of the controlled virtual character in the first special effects video and the second position information of the attacked part of the target virtual character in the second special effects video to dynamically determine the rotation and scaling values ​​of the connecting lines in the third special effects video. Based on the rotation and scaling values ​​of the connecting lines, the first, second, and third special effects videos are composited. This allows for the efficient production of game special effects videos that follow the movement of the virtual skill props of the controlled virtual character and the attacked part of the target virtual character, while ensuring that the virtual skill props of the controlled virtual character and the attacked part of the target virtual character do not detach from each other at the two ends of the connecting lines. This improves the production efficiency of game special effects videos and the fluidity of the animation effects when the virtual characters interact in the game special effects videos.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116036583B_ABST
    Figure CN116036583B_ABST
Patent Text Reader

Abstract

The application discloses a game special effect video processing method and device, equipment and medium, which are applied to the technical field of games and are used to solve the problems of low production efficiency and poor animation special effect flow of game videos in the prior art. Specifically, first position information of a virtual skill prop of a controlled virtual character in a first special effect video and second position information of an attacked part of a target virtual character in a second special effect video are acquired; a rotation value and a scaling value of a connecting line in a third special effect video are determined based on the first position information and the second position information; and the first special effect video, the second special effect video and the third special effect video are synthesized based on the rotation value and the scaling value of the connecting line, so that efficient production of the game special effect video following the movement of two points can be realized while ensuring that the connecting line does not fall off at both ends, and thus the production efficiency and the animation special effect flow of the game special effect video can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of game technology, and in particular to a method, apparatus, device and medium for processing game special effects videos. Background Technology

[0002] In game promotional videos, game effect pre-research videos, and other game special effects videos, it is often necessary to connect the virtual skills and items of the controlled virtual character with the attacked parts of the target virtual character. This is done by continuously playing the animation effects of skill release through the connection between the virtual skills and items of the controlled virtual character and the attacked parts of the target virtual character, thereby ensuring the fluidity of the animation effects when the virtual characters interact in the game video.

[0003] However, the production efficiency of game special effects videos is currently low. Moreover, the target virtual character in game special effects videos is usually moving, and the virtual skill items of the controlled virtual character also move with the controlled virtual character. This may cause the two ends of the connection line to detach from the virtual skill items of the controlled virtual character and the attacked parts of the target virtual character, resulting in poor fluidity of the animation effects when the virtual characters interact in the final game special effects video. Summary of the Invention

[0004] This application provides a method, apparatus, device, and medium for processing game special effects videos, to solve the problems of low production efficiency and poor animation fluidity in existing game special effects videos. Specifically, the technical solution provided by this application is as follows:

[0005] On the one hand, this application provides a method for processing game special effects videos, including:

[0006] Obtain the first location information of the virtual skill items of the controlled virtual character in the first special effects video; wherein, the first special effects video is the special effects video of the controlled virtual character releasing virtual skills with the virtual skill items;

[0007] Obtain the second location information of the attacked part of the target virtual character in the second special effects video; wherein, the second special effects video is a special effects video in which the attacked part of the target virtual character is attacked by virtual skills;

[0008] Based on the first and second position information, the rotation and scaling values ​​of the connecting line between the virtual skill props of the controlled virtual character and the attacked part of the target virtual character in the third special effects video are determined; wherein, the third special effects video is a special effects video of the release trajectory of the virtual skill represented by the connecting line;

[0009] The target game video is obtained by compositing the first, second, and third special effects videos based on the rotation and scaling values ​​of the connecting lines.

[0010] On the other hand, this application provides a game special effects video processing apparatus, including:

[0011] The first acquisition unit is used to acquire the first position information of the virtual skill props of the controlled virtual character in the first special effects video; wherein, the first special effects video is a special effects video in which the virtual skill props of the controlled virtual character release virtual skills;

[0012] The second acquisition unit is used to acquire the second location information of the attacked part of the target virtual character in the second special effects video; wherein, the second special effects video is a special effects video in which the attacked part of the target virtual character is attacked by a virtual skill.

[0013] The numerical determination unit is used to determine the rotation and scaling values ​​of the connecting line between the virtual skill prop of the controlled virtual character and the attacked part of the target virtual character in the third special effects video based on the first position information and the second position information; wherein, the third special effects video is a special effects video of the release trajectory of the virtual skill represented by the connecting line;

[0014] The video compositing unit is used to composite the first special effects video, the second special effects video, and the third special effects video based on the rotation and scaling values ​​of the connecting lines to obtain the target game video.

[0015] On the other hand, this application provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above-described game special effects video processing method.

[0016] On the other hand, this application also provides a computer-readable storage medium storing computer instructions, which, when executed by a processor, implement the above-described game special effects video processing method.

[0017] The beneficial effects of this application are as follows:

[0018] This application utilizes the first position information of the virtual skill props of the controlled virtual character in the first special effects video and the second position information of the attacked part of the target virtual character in the second special effects video to dynamically determine the rotation and scaling values ​​of the connecting lines in the third special effects video. Based on the rotation and scaling values ​​of the connecting lines, the first, second, and third special effects videos are composited. This allows for the efficient production of game special effects videos that follow the movement of the virtual skill props of the controlled virtual character and the attacked part of the target virtual character, while ensuring that the virtual skill props of the controlled virtual character and the attacked part of the target virtual character do not detach from each other at the two ends of the connecting lines. This improves the production efficiency of game special effects videos and the fluidity of the animation effects when the virtual characters interact in the game special effects videos.

[0019] Other features and advantages of this application will be set forth in the following description, and will be apparent in part from the description, or may be learned by practicing the application. The objectives and other advantages of this application may be realized and obtained by means of the structures particularly pointed out in the written description, claims, and drawings. Attached Figure Description

[0020] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments of this application and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0021] Figure 1 This is a schematic diagram outlining the special effects processing method in the embodiments of this application;

[0022] Figure 2 This is a schematic diagram illustrating the specific process of the special effects processing method in the embodiments of this application;

[0023] Figure 3 This is a functional structure diagram of the special effects processing device in the embodiments of this application;

[0024] Figure 4 This is a schematic diagram of the hardware structure of the electronic device in the embodiments of this application. Detailed Implementation

[0025] To make the objectives, technical solutions, and beneficial effects of this application clearer, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0026] To facilitate a better understanding of this application by those skilled in the art, the technical terms used in this application will be briefly introduced below.

[0027] Game effects video refers to a game video containing game footage. For example, a game effects video can be, but is not limited to, a game promotional video or a game pre-research video. In this application, the game effects video can be a composite of a first effects video in which a controlled virtual character releases a virtual skill using a virtual skill item, a second effects video in which the attacked part of the target virtual character is attacked by the virtual skill, and a third effects video in which the trajectory of the release of the virtual skill is represented by the connecting line between the controlled virtual character's virtual skill item and the attacked part of the target virtual character.

[0028] Virtual skill items refer to virtual weapons, virtual controls, etc., used by controlled virtual characters in game special effects videos to unleash virtual skills.

[0029] The attacked part refers to the part of the target virtual character in the game's special effects video that is attacked by virtual skills. In this application, the attacked part can be a pre-set part of the target virtual character, such as the head or waist of the target virtual character.

[0030] A connecting line is a line segment in a game special effects video that represents the trajectory of a virtual skill release. In this application, one end of the connecting line is connected to the virtual skill item of the controlled virtual character, and the other end is connected to the attacked part of the target virtual character.

[0031] It should be noted that the terms "first," "second," etc., used in this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that the embodiments described herein can be implemented in a sequence other than that illustrated or described herein.

[0032] After introducing the technical terms used in this application, the application scenarios and design concepts of the embodiments of this application will be briefly described below.

[0033] In the production of game special effects videos, such as game promotional videos or game pre-research videos, in order to ensure that the connecting lines in the third special effects video can continuously connect the virtual skill items of the controlled virtual character in the first special effects video and the attacked part of the target virtual character in the second special effects video, it is usually necessary to set the anchor point of the connecting line in the third special effects video to right alignment, bind the position of the connecting line in the third special effects video to the attacked part of the target virtual character in the second special effects video, and adjust the rotation and scaling values ​​of the connecting line in the third special effects video frame by frame. This is very time-consuming. Moreover, when the position of the target virtual character in the game special effects video needs to be adjusted or changed, it is also necessary to manually adjust the rotation and scaling values ​​of the connecting line in the third special effects video frame by frame again, which is quite cumbersome.

[0034] To this end, this application utilizes the first position information of the virtual skill props of the controlled virtual character in the first special effects video and the second position information of the attacked part of the target virtual character in the second special effects video to dynamically determine the rotation and scaling values ​​of the connecting lines in the third special effects video. Based on the rotation and scaling values ​​of the connecting lines, the first, second, and third special effects videos are synthesized. This allows for the efficient production of game special effects videos that follow the movement of the virtual skill props of the controlled virtual character and the attacked part of the target virtual character, while ensuring that the virtual skill props of the controlled virtual character and the attacked part of the target virtual character do not detach from each other at the two ends of the connecting lines. This improves the production efficiency of game special effects videos and the fluidity of the animation effects when the virtual characters interact in the game special effects videos.

[0035] After introducing the application scenarios and design concepts of the embodiments of this application, the technical solutions provided by the embodiments of this application will be described in detail below.

[0036] This application provides a method for processing game special effects videos, which can be applied to electronic devices such as laptops and desktop computers. See also... Figure 1 As shown, the general flow of the game special effects video processing method provided in this application embodiment is as follows:

[0037] Step 101: Obtain the first location information of the virtual skill props of the controlled virtual character in the first special effects video; wherein, the first special effects video is the special effects video of the virtual skill props of the controlled virtual character releasing virtual skills.

[0038] In practical applications, when an electronic device acquires the first position information of the virtual skill props of the controlled virtual character in the first special effects video, it can determine the first position information of the virtual skill props of the controlled virtual character in each first special effects video frame image contained in the first special effects video based on the set position information of the virtual skill props of the controlled virtual character.

[0039] In a specific implementation, in one embodiment, the location of the controlled virtual character in the first special effects video may remain unchanged. In this case, the electronic device can use the set position information of the virtual skill props of the controlled virtual character as the first position information of the virtual skill props of the controlled virtual character in each first special effects video frame image contained in the first special effects video.

[0040] In another embodiment, the location of the controlled virtual character in the first special effects video may change. In this case, the electronic device can use the set position information of the virtual skill props of the controlled virtual character as the first position information of the virtual skill props of the controlled virtual character in the first first special effects video frame image included in the first special effects video. For each first special effects video frame image included in the first special effects video except for the first first special effects video frame image, when it is determined that the location of the controlled virtual character in the first special effects video frame image has changed relative to the location of the controlled virtual character in the previous first special effects video frame image, the location of the controlled virtual character in the previous first special effects video frame image is adjusted based on the change in the location of the controlled virtual character to obtain the first position information of the virtual skill props of the controlled virtual character in the first special effects video frame image.

[0041] Step 102: Obtain the second location information of the attacked part of the target virtual character in the second special effects video; wherein, the second special effects video is a special effects video in which the attacked part of the target virtual character is attacked by virtual skills.

[0042] In practical applications, when an electronic device obtains the second location information of the attacked part of the target virtual character in the second special effects video, it can obtain the second location information of the attacked part of the target virtual character in each second special effects video frame image contained in the second special effects video by performing target tracking on the attacked part of the target virtual character in each second special effects video frame image contained in the second special effects video.

[0043] Step 103: Based on the first position information and the second position information, determine the rotation and scaling values ​​of the connecting line between the virtual skill prop of the controlled virtual character and the attacked part of the target virtual character in the third special effects video; wherein, the third special effects video is a special effects video of the release trajectory of the virtual skill represented by the connecting line.

[0044] In practical applications, when electronic devices determine the rotation and scaling values ​​of the connecting line between the virtual skill items of the controlled virtual character and the attacked part of the target virtual character in the third special effects video based on the first and second position information, they can use, but are not limited to, the following methods:

[0045] First, for a first special effects video frame image in a first special effects video and a second special effects video frame image in a second special effects video with the same frame identifier, the electronic device can determine the difference in horizontal coordinate between the first horizontal coordinate contained in the first position information of the virtual skill prop of the controlled virtual character in the first special effects video frame image and the second horizontal coordinate contained in the second position information of the attacked part of the target virtual character in the second special effects video frame image, and the difference in vertical coordinate between the first vertical coordinate contained in the first position information of the virtual skill prop of the controlled virtual character in the first special effects video frame image and the second vertical coordinate contained in the second position information of the attacked part of the target virtual character in the second special effects video frame image.

[0046] Then, the electronic device can determine the rotation value from the first position information to the second position information based on the difference in the horizontal coordinate, the difference in the vertical coordinate, a first set value, a second set value, and a third set value. Specifically, the electronic device can perform an arctangent operation on the ratio of the difference in the horizontal coordinate to the difference in the vertical coordinate to obtain the rotation radians, convert the rotation radians into angles to obtain the rotation angle, multiply the ratio of the absolute values ​​of the two horizontal coordinate differences by the first set value, multiply by the second set value to obtain the adjustment value, and subtract the third set value from the sum of the rotation angle and the adjustment value to obtain the rotation value.

[0047] Secondly, the electronic device can determine the horizontal coordinate scaling value from the first position information to the second position information based on the horizontal coordinate difference, the vertical coordinate difference, the target video width, and a fourth preset value. Specifically, the electronic device can square the absolute value of the horizontal coordinate difference to obtain a first squared value and square the absolute value of the vertical coordinate difference to obtain a second squared value. The square root of the sum of the first and second squared values ​​is then divided by the target video width and then by the fourth preset value to obtain the horizontal coordinate scaling value from the first position information to the second position information.

[0048] Next, the electronic device can determine the vertical coordinate scaling value from the first position information to the second position information based on the horizontal coordinate difference, the target video width, and the fifth preset value. Specifically, the electronic device can divide the horizontal coordinate difference by the target video width and then divide by the fifth preset value to obtain the initial vertical coordinate scaling value, and perform a clamping operation on the initial vertical coordinate scaling value based on a preset clamping range to obtain the vertical coordinate scaling value from the first position information to the second position information; wherein, the preset clamping range is used to clamp the thickness of the connecting line within a preset visible range.

[0049] Finally, the electronic device can determine the horizontal and vertical scaling values ​​as scaling values ​​from the first position information to the second position information.

[0050] Step 104: Based on the rotation and scaling values ​​of the connecting lines, composite the first special effects video, the second special effects video, and the third special effects video to obtain the target game video.

[0051] In practice, the electronic device can stack the first, second, and third special effects videos based on the rotation and scaling values ​​of the connecting lines. The first special effects video is on the top layer of the first layer, the third special effects video is in the middle layer of the second layer, and the second special effects video is on the bottom layer of the third layer. This can prevent the target virtual character from covering up the virtual skill items of the controlled virtual character and making them invisible.

[0052] In this embodiment, by utilizing the first position information of the virtual skill props of the controlled virtual character in the first special effects video and the second position information of the attacked part of the target virtual character in the second special effects video, the rotation and scaling values ​​of the connecting lines in the third special effects video are dynamically determined. Based on the rotation and scaling values ​​of the connecting lines, the first, second, and third special effects videos are synthesized. This ensures that the virtual skill props of the controlled virtual character and the attacked part of the target virtual character, which are connected at both ends of the connecting lines, do not fall off. It also enables the efficient production of game special effects videos that follow the movement of the virtual skill props of the controlled virtual character and the attacked part of the target virtual character. This improves the production efficiency of game special effects videos and the fluidity of the animation effects when the virtual characters interact in the game special effects videos.

[0053] Next, the game special effects video processing method provided in the embodiments of this application will be described in further detail. Please refer to [link / reference]. Figure 2 As shown in the embodiments of this application, the specific process of the game special effects video processing method is as follows:

[0054] Step 201: The electronic device acquires the first special effects video, the second special effects video, and the third special effects video created by special effects video compositing software (such as AE software).

[0055] The first special effects video is a special effects video of the controlled virtual character releasing virtual skills using virtual skill props; the second special effects video is a special effects video of the target virtual character's attacked parts being attacked by the virtual skills; and the third special effects video is a special effects video of the trajectory of the release of virtual skills represented by the connecting line between the controlled virtual character's virtual skill props and the attacked parts of the target virtual character.

[0056] Step 202: The electronic device calls the target tracking function of the special effects video compositing software (such as the Mocha tracking function of AE software) to track the tracking position information P1 of the attacked part of the target virtual character in each second special effects video frame image contained in the second special effects video.

[0057] Step 203: The electronic device acquires the set position information of the virtual skill props of the controlled virtual character in the first special effects video set in the special effects video compositing software, and determines the coordinate position information P2 of the virtual skill props of the controlled virtual character in each first special effects video frame image contained in the first special effects video.

[0058] Step 204: The electronic device sets the anchor point of the second special effects video to the right endpoint and binds the position of the second special effects video to the coordinate position information P2 of the virtual skill props of the controlled virtual character in each frame image of the first special effects video contained in the first special effects video.

[0059] Step 205: For the first special effects video frame image in the first special effects video and the second special effects video frame image in the second special effects video with the same frame identifier (e.g., timestamp), the electronic device calculates the difference between the horizontal coordinate of the coordinate position information P2 of the virtual skill prop of the controlled virtual character in the first special effects video frame image and the horizontal coordinate of the tracking position information P1 of the attacked part of the target virtual character in the second special effects video frame image, and the difference between the vertical coordinate of the coordinate position information P2 of the virtual skill prop of the controlled virtual character in the first special effects video frame image and the vertical coordinate of the tracking position information P1 of the attacked part of the target virtual character in the second special effects video frame image, and continues to execute steps 206 and 207.

[0060] Step 206: The electronic device performs arctangent calculation on the ratio of the difference between the horizontal coordinates and the difference between the vertical coordinates to obtain the rotation radians. After converting the rotation radians into angles to obtain the rotation angle, the ratio of the absolute values ​​of the difference between the horizontal coordinates is multiplied by a first set value and then by a second set value to obtain an adjustment value. The sum of the rotation angle and the adjustment value is subtracted from the third set value to obtain the rotation value. That is, the rotation value is calculated using the following formula (1):

[0061] A 旋转值 =F1(F2(P) 2X -P 1X / P 2Y -P 1Y ))+(-1*(P 2X -P 1X / / P 2Y -P 1Y / )*90-90

[0062] ...Formula (1)

[0063] Among them, A 旋转值 F1 represents the rotation value, F2 represents the angle transformation function, and P represents the arctangent operation function. 2X The horizontal coordinate of P2 represents the coordinate position information of the virtual skill item of the controlled virtual character in the first special effects video frame image. 1X The horizontal coordinate of P1 in the tracking position information of the attacked part of the target virtual character in the second special effects video frame image, P 2Y The vertical coordinate of P2 represents the coordinate position information of the virtual skill item of the controlled virtual character in the first special effects video frame image. 1Y The vertical coordinate in P1, which represents the tracking position information of the attacked part of the target virtual character in the second special effects video frame image, can be set to -1 for the first setting, 90 for the second setting, and 90 for the third setting.

[0064] Step 207: The electronic device squares the absolute value of the difference in the horizontal coordinate to obtain the first squared value and squares the absolute value of the difference in the vertical coordinate to obtain the second squared value, and then continues to execute step 208.

[0065] Step 208: The electronic device divides the square root of the sum of the first square value and the second square value by the target video width and then by the fourth set value to obtain the horizontal coordinate scaling value from the coordinate position information P2 of the virtual skill prop of the controlled virtual character in the first special effects video frame image to the tracking position information of the attacked part of the target virtual character in the second special effects video frame image. That is, the horizontal coordinate scaling value is calculated using the following formula (2):

[0066]

[0067] Among them, X 缩放值 Represents the scaling value of the horizontal axis, / P 2X -P 1X / 2 Representing the first squared value, / P 2Y -P 1Y / 2 The second squared value is represented by 'a', which represents the target video width, and P is represented by 'p'. 2X The horizontal coordinate of P2 represents the coordinate position information of the virtual skill item of the controlled virtual character in the first special effects video frame image. 1X The horizontal coordinate of P1 in the tracking position information of the attacked part of the target virtual character in the second special effects video frame image, P 2Y The vertical coordinate of P2 represents the coordinate position information of the virtual skill item of the controlled virtual character in the first special effects video frame image. 1Y The vertical coordinate in P1 represents the tracking position information of the attacked part of the target virtual character in the second special effects video frame image. The fourth setting value can be set to 100.

[0068] Step 209: The electronic device divides the difference in the horizontal coordinate by the target video width and then by the fifth preset value to obtain the initial vertical coordinate scaling value. Based on the preset clamping range and the initial vertical coordinate scaling value, it determines the vertical coordinate scaling value from the first position information to the second position information. The preset clamping range is used to clamp the thickness of the connecting line within a preset visible range, that is, the vertical coordinate scaling value is calculated using the following formula (3):

[0069]

[0070] Among them, Y 缩放值 P represents the scaling value of the ordinate. 2X The horizontal coordinate of P2 represents the coordinate position information of the virtual skill item of the controlled virtual character in the first special effects video frame image. 1X The horizontal coordinate in P1 represents the tracking position information of the attacked part of the target virtual character in the second special effects video frame image, a represents the target video width, F3 represents clamping the initial vertical coordinate scaling value within a set clamping range (e.g., clamping within the range of 50 to 100), and the fifth setting value can be set to 100.

[0071] It is worth mentioning that, in the embodiments of this application, steps 206, 207-208, and 209 can be executed sequentially or simultaneously. Figure 2 Taking simultaneous execution as an example only.

[0072] Step 210: The electronic device overlays and synthesizes the first special effects video, the second special effects video, and the third special effects video based on the rotation value, horizontal coordinate scaling value, and vertical coordinate scaling value of the connecting line to obtain the target game video; wherein, the first special effects video is at the top layer of the first layer, the third special effects video is in the middle layer of the second layer, and the second special effects video is at the bottom layer of the third layer.

[0073] Based on the above embodiments, this application also provides a special effects processing device, see below. Figure 3 As shown, the game special effects video processing device 300 provided in this application embodiment includes at least:

[0074] The first acquisition unit 301 is used to acquire the first position information of the virtual skill props of the controlled virtual character in the first special effects video; wherein, the first special effects video is a special effects video in which the virtual skill props of the controlled virtual character release virtual skills;

[0075] The second acquisition unit 302 is used to acquire the second position information of the attacked part of the target virtual character in the second special effects video; wherein, the second special effects video is a special effects video in which the attacked part of the target virtual character is attacked by a virtual skill.

[0076] The numerical determination unit 303 is used to determine the rotation and scaling values ​​of the connecting line between the virtual skill prop of the controlled virtual character and the attacked part of the target virtual character in the third special effects video based on the first position information and the second position information; wherein, the third special effects video is a special effects video of the release trajectory of the virtual skill represented by the connecting line;

[0077] The video compositing unit 304 is used to composite the first special effects video, the second special effects video, and the third special effects video based on the rotation and scaling values ​​of the connecting lines to obtain the target game video.

[0078] In one possible implementation, when acquiring the first location information of the virtual skill items of the controlled virtual character in the first special effects video, the first acquisition unit 301 is specifically used for:

[0079] Based on the location information of the virtual skill items of the controlled virtual character, the first location information of the virtual skill items of the controlled virtual character in each first special effects video frame image contained in the first special effects video is determined.

[0080] In one possible implementation, when acquiring the second location information of the attacked part of the target virtual character in the second special effects video, the second acquisition unit 302 is specifically used for:

[0081] Target tracking is performed on the attacked parts of the target virtual character in each of the second special effects video frames contained in the second special effects video to obtain the second position information of the attacked parts of the target virtual character in each of the second special effects video frames contained in the second special effects video.

[0082] In one possible implementation, when determining the rotation and scaling values ​​of the connecting line between the virtual skill items of the controlled virtual character and the attacked part of the target virtual character in the third special effects video based on the first and second position information, the numerical determination unit 303 is specifically used for:

[0083] For a first special effects video frame image in a first special effects video with the same frame identifier and a second special effects video frame image in a second special effects video, determine the difference in horizontal coordinates between the first horizontal coordinate of the first position information of the virtual skill prop of the controlled virtual character in the first special effects video frame image and the second horizontal coordinate of the second position information of the attacked part of the target virtual character in the second special effects video frame image, and the difference in vertical coordinates between the first vertical coordinate of the first position information of the virtual skill prop of the controlled virtual character in the first special effects video frame image and the second vertical coordinate of the second position information of the attacked part of the target virtual character in the second special effects video frame image.

[0084] Based on the difference in the horizontal coordinate, the difference in the vertical coordinate, the first set value, the second set value, and the third set value, the rotation value from the first position information to the second position information is determined;

[0085] Based on the difference in the horizontal coordinate, the difference in the vertical coordinate, the target video width, and the fourth set value, determine the horizontal coordinate scaling value from the first position information to the second position information; based on the difference in the horizontal coordinate, the target video width, and the fifth set value, determine the vertical coordinate scaling value from the first position information to the second position information; and set the horizontal coordinate scaling value and the vertical coordinate scaling value as the scaling value from the first position information to the second position information.

[0086] In one possible implementation, when determining the rotation value from the first position information to the second position information based on the difference in the horizontal coordinate, the difference in the vertical coordinate, a first set value, a second set value, and a third set value, the value determination unit 303 is specifically used for:

[0087] The rotation radians are obtained by performing an arctangent operation on the ratio of the difference between the horizontal and vertical coordinates, and then the rotation radians are converted into angles to obtain the rotation angle.

[0088] The adjustment value is obtained by multiplying the ratio of the difference in the horizontal coordinates to the absolute value of the difference in the horizontal coordinates by the first set value, and then by the second set value.

[0089] The rotation value is obtained by subtracting the third setting value from the sum of the rotation angle and the adjustment value.

[0090] In one possible implementation, when determining the horizontal coordinate scaling value from the first position information to the second position information based on the horizontal coordinate difference, the vertical coordinate difference, the target video width, and a fourth preset value, the value determination unit 303 is specifically used for:

[0091] The first squared value is obtained by squaring the absolute value of the difference in the horizontal coordinates, and the second squared value is obtained by squaring the absolute value of the difference in the vertical coordinates.

[0092] Divide the square root of the sum of the first and second squared values ​​by the target video width, and then divide by the fourth set value to obtain the horizontal coordinate scaling value from the first position information to the second position information.

[0093] In one possible implementation, when determining the vertical coordinate scaling value from the first position information to the second position information based on the horizontal coordinate difference, the target video width, and the fifth preset value, the value determination unit 303 is specifically used for:

[0094] Divide the difference in the horizontal coordinate by the target video width, and then divide by the fifth set value to obtain the initial scaling value of the vertical coordinate.

[0095] Based on the set clamping range and the initial ordinate scaling value, the ordinate scaling value from the first position information to the second position information is determined; wherein, the set clamping range is used to clamp the thickness of the connecting line within a preset visible range.

[0096] It should be noted that the principle of the game special effects video processing device 300 provided in this application embodiment to solve the technical problem is similar to the game special effects video processing method provided in this application embodiment. Therefore, the implementation of the game special effects video processing device 300 provided in this application embodiment can refer to the implementation of the game special effects video processing method provided in this application embodiment, and the repeated parts will not be described again.

[0097] After introducing the game special effects video processing method and apparatus provided in the embodiments of this application, the electronic device provided in the embodiments of this application will be briefly introduced next.

[0098] See Figure 4 As shown, the electronic device 400 provided in this application embodiment includes at least a processor 401, a memory 402, and a computer program stored in the memory 402 and executable on the processor 401. When the processor 401 executes the computer program, it implements the game special effects video processing method provided in this application embodiment. For example, when the processor 401 executes the computer program, it implements the following steps:

[0099] Obtain the first location information of the virtual skill items of the controlled virtual character in the first special effects video; wherein, the first special effects video is the special effects video of the controlled virtual character releasing virtual skills with the virtual skill items;

[0100] Obtain the second location information of the attacked part of the target virtual character in the second special effects video; wherein, the second special effects video is a special effects video in which the attacked part of the target virtual character is attacked by virtual skills;

[0101] Based on the first and second position information, the rotation and scaling values ​​of the connecting line between the virtual skill props of the controlled virtual character and the attacked part of the target virtual character in the third special effects video are determined; wherein, the third special effects video is a special effects video of the release trajectory of the virtual skill represented by the connecting line;

[0102] The target game video is obtained by compositing the first, second, and third special effects videos based on the rotation and scaling values ​​of the connecting lines.

[0103] Optionally, when obtaining the first location information of the virtual skill items of the controlled virtual character in the first special effects video, the processor 401 specifically executes the following steps:

[0104] Based on the location information of the virtual skill items of the controlled virtual character, the first location information of the virtual skill items of the controlled virtual character in each first special effects video frame image contained in the first special effects video is determined.

[0105] Optionally, when obtaining the second location information of the attacked part of the target virtual character in the second special effects video, the processor 401 specifically performs the following steps:

[0106] Target tracking is performed on the attacked parts of the target virtual character in each of the second special effects video frames contained in the second special effects video to obtain the second position information of the attacked parts of the target virtual character in each of the second special effects video frames contained in the second special effects video.

[0107] Optionally, when determining the rotation and scaling values ​​of the connecting line between the virtual skill items of the controlled virtual character and the attacked part of the target virtual character in the third special effects video based on the first and second position information, the processor 401 specifically executes the following steps:

[0108] For a first special effects video frame image in a first special effects video with the same frame identifier and a second special effects video frame image in a second special effects video, determine the difference in horizontal coordinates between the first horizontal coordinate of the first position information of the virtual skill prop of the controlled virtual character in the first special effects video frame image and the second horizontal coordinate of the second position information of the attacked part of the target virtual character in the second special effects video frame image, and the difference in vertical coordinates between the first vertical coordinate of the first position information of the virtual skill prop of the controlled virtual character in the first special effects video frame image and the second vertical coordinate of the second position information of the attacked part of the target virtual character in the second special effects video frame image.

[0109] Based on the difference in the horizontal coordinate, the difference in the vertical coordinate, the first set value, the second set value, and the third set value, the rotation value from the first position information to the second position information is determined;

[0110] Based on the difference in the horizontal coordinate, the difference in the vertical coordinate, the target video width, and the fourth set value, determine the horizontal coordinate scaling value from the first position information to the second position information; based on the difference in the horizontal coordinate, the target video width, and the fifth set value, determine the vertical coordinate scaling value from the first position information to the second position information; and set the horizontal coordinate scaling value and the vertical coordinate scaling value as the scaling value from the first position information to the second position information.

[0111] Optionally, when determining the rotation value from the first position information to the second position information based on the difference in the horizontal coordinate, the difference in the vertical coordinate, the first set value, the second set value, and the third set value, the processor 401 specifically executes the following steps:

[0112] The rotation radians are obtained by performing an arctangent operation on the ratio of the difference between the horizontal and vertical coordinates, and then the rotation radians are converted into angles to obtain the rotation angle.

[0113] The adjustment value is obtained by multiplying the ratio of the difference in the horizontal coordinates to the absolute value of the difference in the horizontal coordinates by the first set value, and then by the second set value.

[0114] The rotation value is obtained by subtracting the third setting value from the sum of the rotation angle and the adjustment value.

[0115] Optionally, when determining the horizontal coordinate scaling value from the first position information to the second position information based on the horizontal coordinate difference, the vertical coordinate difference, the target video width, and the fourth preset value, the processor 401 specifically performs the following steps:

[0116] The first squared value is obtained by squaring the absolute value of the difference in the horizontal coordinates, and the second squared value is obtained by squaring the absolute value of the difference in the vertical coordinates.

[0117] Divide the square root of the sum of the first and second squared values ​​by the target video width, and then divide by the fourth set value to obtain the horizontal coordinate scaling value from the first position information to the second position information.

[0118] Optionally, when determining the vertical coordinate scaling value from the first position information to the second position information based on the horizontal coordinate difference, the target video width, and the fifth preset value, the processor 401 specifically performs the following steps:

[0119] Divide the difference in the horizontal coordinate by the target video width, and then divide by the fifth set value to obtain the initial scaling value of the vertical coordinate.

[0120] Based on the set clamping range and the initial ordinate scaling value, the ordinate scaling value from the first position information to the second position information is determined; wherein, the set clamping range is used to clamp the thickness of the connecting line within a preset visible range.

[0121] This application embodiment utilizes the first position information of the virtual skill props of the controlled virtual character in the first special effects video and the second position information of the attacked part of the target virtual character in the second special effects video to dynamically determine the rotation and scaling values ​​of the connecting lines in the third special effects video. Based on the rotation and scaling values ​​of the connecting lines, the first, second, and third special effects videos are synthesized. This can ensure that the virtual skill props of the controlled virtual character and the attacked part of the target virtual character, which are connected at both ends of the connecting lines, do not fall off, while achieving efficient production of game special effects videos that follow the movement of the virtual skill props of the controlled virtual character and the attacked part of the target virtual character. This can improve the production efficiency of game special effects videos and the fluidity of animation effects when virtual characters interact in game special effects videos.

[0122] The electronic device 400 provided in this application embodiment may further include a bus 403 connecting different devices (including processor 401 and memory 402). The bus 403 represents one or more types of bus structures, including memory bus, peripheral bus, local area bus, etc.

[0123] The memory 402 may include a readable medium in the form of volatile memory, such as random access memory (RAM) 4021 and / or cache memory 4022, and may further include read-only memory (ROM) 4023.

[0124] The memory 402 may also include a program tool 4025 having a set (at least one) of program modules 4024, including but not limited to: an operating subsystem, one or more application programs, other program modules, and program data, each or some combination of these examples may include an implementation of a network environment.

[0125] Electronic device 400 can also communicate with one or more external devices 404 (e.g., keyboard, remote control, etc.), and with one or more devices that enable a user to interact with electronic device 400 (e.g., mobile phone, computer, etc.), and / or with any device that enables electronic device 400 to communicate with one or more other electronic devices 400 (e.g., router, modem, etc.). This communication can be performed through input / output (I / O) interface 405. Furthermore, electronic device 400 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) through network adapter 406. Figure 4 As shown, network adapter 406 communicates with other modules of electronic device 400 via bus 403. It should be understood that, although... Figure 4 As not shown, other hardware and / or software modules may be used in conjunction with electronic device 400, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, Redundant Arrays of Independent Disks (RAID) subsystems, tape drives, and data backup storage subsystems.

[0126] It should be noted that, Figure 4 The electronic device 400 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.

[0127] The computer-readable storage medium provided in the embodiments of this application is described below. The computer-readable storage medium provided in the embodiments of this application stores computer instructions, which, when executed by a processor, implement the game special effects video processing method provided in the embodiments of this application. Specifically, the computer instructions can be built into or installed in the processor, so that the processor can implement the game special effects video processing method provided in the embodiments of this application by executing the built-in or installed computer instructions. For example, processor 401 implements the following steps by executing the computer instructions:

[0128] Obtain the first location information of the virtual skill items of the controlled virtual character in the first special effects video; wherein, the first special effects video is the special effects video of the controlled virtual character releasing virtual skills with the virtual skill items;

[0129] Obtain the second location information of the attacked part of the target virtual character in the second special effects video; wherein, the second special effects video is a special effects video in which the attacked part of the target virtual character is attacked by virtual skills;

[0130] Based on the first and second position information, the rotation and scaling values ​​of the connecting line between the virtual skill props of the controlled virtual character and the attacked part of the target virtual character in the third special effects video are determined; wherein, the third special effects video is a special effects video of the release trajectory of the virtual skill represented by the connecting line;

[0131] The target game video is obtained by compositing the first, second, and third special effects videos based on the rotation and scaling values ​​of the connecting lines.

[0132] Optionally, when obtaining the first location information of the virtual skill items of the controlled virtual character in the first special effects video, the processor 401 specifically executes the following steps:

[0133] Based on the location information of the virtual skill items of the controlled virtual character, the first location information of the virtual skill items of the controlled virtual character in each first special effects video frame image contained in the first special effects video is determined.

[0134] Optionally, when obtaining the second location information of the attacked part of the target virtual character in the second special effects video, the processor 401 specifically performs the following steps:

[0135] Target tracking is performed on the attacked parts of the target virtual character in each of the second special effects video frames contained in the second special effects video to obtain the second position information of the attacked parts of the target virtual character in each of the second special effects video frames contained in the second special effects video.

[0136] Optionally, when determining the rotation and scaling values ​​of the connecting line between the virtual skill items of the controlled virtual character and the attacked part of the target virtual character in the third special effects video based on the first and second position information, the processor 401 specifically executes the following steps:

[0137] For a first special effects video frame image in a first special effects video with the same frame identifier and a second special effects video frame image in a second special effects video, determine the difference in horizontal coordinates between the first horizontal coordinate of the first position information of the virtual skill prop of the controlled virtual character in the first special effects video frame image and the second horizontal coordinate of the second position information of the attacked part of the target virtual character in the second special effects video frame image, and the difference in vertical coordinates between the first vertical coordinate of the first position information of the virtual skill prop of the controlled virtual character in the first special effects video frame image and the second vertical coordinate of the second position information of the attacked part of the target virtual character in the second special effects video frame image.

[0138] Based on the difference in the horizontal coordinate, the difference in the vertical coordinate, the first set value, the second set value, and the third set value, the rotation value from the first position information to the second position information is determined;

[0139] Based on the difference in the horizontal coordinate, the difference in the vertical coordinate, the target video width, and the fourth set value, determine the horizontal coordinate scaling value from the first position information to the second position information; based on the difference in the horizontal coordinate, the target video width, and the fifth set value, determine the vertical coordinate scaling value from the first position information to the second position information; and set the horizontal coordinate scaling value and the vertical coordinate scaling value as the scaling value from the first position information to the second position information.

[0140] Optionally, when determining the rotation value from the first position information to the second position information based on the difference in the horizontal coordinate, the difference in the vertical coordinate, the first set value, the second set value, and the third set value, the processor 401 specifically executes the following steps:

[0141] The rotation radians are obtained by performing an arctangent operation on the ratio of the difference between the horizontal and vertical coordinates, and then the rotation radians are converted into angles to obtain the rotation angle.

[0142] The adjustment value is obtained by multiplying the ratio of the difference in the horizontal coordinates to the absolute value of the difference in the horizontal coordinates by the first set value, and then by the second set value.

[0143] The rotation value is obtained by subtracting the third setting value from the sum of the rotation angle and the adjustment value.

[0144] Optionally, when determining the horizontal coordinate scaling value from the first position information to the second position information based on the horizontal coordinate difference, the vertical coordinate difference, the target video width, and the fourth preset value, the processor 401 specifically performs the following steps:

[0145] The first squared value is obtained by squaring the absolute value of the difference in the horizontal coordinates, and the second squared value is obtained by squaring the absolute value of the difference in the vertical coordinates.

[0146] Divide the square root of the sum of the first and second squared values ​​by the target video width, and then divide by the fourth set value to obtain the horizontal coordinate scaling value from the first position information to the second position information.

[0147] Optionally, when determining the vertical coordinate scaling value from the first position information to the second position information based on the horizontal coordinate difference, the target video width, and the fifth preset value, the processor 401 specifically performs the following steps:

[0148] Divide the difference in the horizontal coordinate by the target video width, and then divide by the fifth set value to obtain the initial scaling value of the vertical coordinate.

[0149] Based on the set clamping range and the initial ordinate scaling value, the ordinate scaling value from the first position information to the second position information is determined; wherein, the set clamping range is used to clamp the thickness of the connecting line within a preset visible range.

[0150] This application embodiment utilizes the first position information of the virtual skill props of the controlled virtual character in the first special effects video and the second position information of the attacked part of the target virtual character in the second special effects video to dynamically determine the rotation and scaling values ​​of the connecting lines in the third special effects video. Based on the rotation and scaling values ​​of the connecting lines, the first, second, and third special effects videos are synthesized. This can ensure that the virtual skill props of the controlled virtual character and the attacked part of the target virtual character, which are connected at both ends of the connecting lines, do not fall off, while achieving efficient production of game special effects videos that follow the movement of the virtual skill props of the controlled virtual character and the attacked part of the target virtual character. This can improve the production efficiency of game special effects videos and the fluidity of animation effects when virtual characters interact in game special effects videos.

[0151] Furthermore, the game special effects video processing method provided in this application embodiment can also be implemented as a computer program product, which includes program code. The program code implements the game special effects video processing method provided in this application embodiment when it runs on a processor.

[0152] The computer program product provided in this application embodiment can be any combination of one or more readable storage media, wherein the readable storage media can be, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or any combination thereof. Specifically, more specific examples of readable storage media (a non-exhaustive list) include: electrical connections with one or more wires, portable disks, hard disks, RAM, ROM, erasable programmable read-only memory (EPROM), optical fibers, portable compact disc read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0153] The computer program product provided in this application embodiment can be a CD-ROM and include program code, and can also run on electronic devices such as computing devices and user terminals. However, the computer program product provided in this application embodiment is not limited to this. In this application embodiment, the readable storage medium can be any tangible medium that contains or stores program code, which can be used by or in conjunction with an instruction execution system, device, or apparatus.

[0154] It should be noted that although several units or sub-units of the device have been mentioned in the detailed description above, this division is merely exemplary and not mandatory. In fact, according to embodiments of this application, the features and functions of two or more units described above can be embodied in one unit. Conversely, the features and functions of one unit described above can be further divided and embodied by multiple units.

[0155] Furthermore, although the operations of the method of this application are described in a specific order in the accompanying drawings, this does not require or imply that these operations must be performed in that specific order, or that all the operations shown must be performed to achieve the desired result. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step, and / or one step may be broken down into multiple steps.

[0156] Although preferred embodiments of this application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of this application.

[0157] Obviously, those skilled in the art can make various modifications and variations to the embodiments of this application without departing from the spirit and scope of the embodiments of this application. Therefore, if these modifications and variations to the embodiments of this application fall within the scope of the claims of this application and their equivalents, this application also intends to include these modifications and variations.

Claims

1. A method for processing game special effects videos, characterized in that, include: Obtain the first location information of the virtual skill props of the controlled virtual character in the first special effects video; wherein, the first special effects video is a special effects video in which the virtual skill props of the controlled virtual character release virtual skills; Obtain second location information of the attacked part of the target virtual character in the second special effects video; wherein, the second special effects video is a special effects video in which the attacked part of the target virtual character is attacked by the virtual skill; Based on the first location information and the second location information, the rotation and scaling values ​​of the connecting line between the virtual skill prop of the controlled virtual character and the attacked part of the target virtual character in the third special effects video are determined; wherein, the third special effects video is a special effects video of the release trajectory of the virtual skill represented by the connecting line; Based on the rotation and scaling values ​​of the connecting lines, the first special effects video, the second special effects video, and the third special effects video are composited to obtain the target game video; during the compositing process, based on the rotation and scaling values ​​of the connecting lines, the first special effects video, the second special effects video, and the third special effects video are stacked; wherein, the first special effects video is on the top layer of the first layer, the third special effects video is on the middle layer of the second layer, and the second special effects video is on the bottom layer of the third layer; Based on the first location information and the second location information, the rotation and scaling values ​​of the connecting line between the virtual skill items of the controlled virtual character and the attacked part of the target virtual character in the third special effects video are determined, including: For the first special effects video frame image in the first special effects video and the second special effects video frame image in the second special effects video with the same frame identifier, determine the difference in the horizontal coordinate between the first horizontal coordinate contained in the first position information of the virtual skill prop of the controlled virtual character in the first special effects video frame image and the second horizontal coordinate contained in the second position information of the attacked part of the target virtual character in the second special effects video frame image, and the difference in the vertical coordinate between the first vertical coordinate contained in the first position information of the virtual skill prop of the controlled virtual character in the first special effects video frame image and the second vertical coordinate contained in the second position information of the attacked part of the target virtual character in the second special effects video frame image; Based on the difference in the horizontal coordinate, the difference in the vertical coordinate, the first set value, the second set value, and the third set value, a rotation value from the first position information to the second position information is determined; Based on the horizontal coordinate difference, the vertical coordinate difference, the target video width, and a fourth preset value, a horizontal coordinate scaling value is determined from the first location information to the second location information; based on the horizontal coordinate difference, the target video width, and a fifth preset value, a vertical coordinate scaling value is determined from the first location information to the second location information; the horizontal coordinate scaling value and the vertical coordinate scaling value are determined as the scaling value from the first location information to the second location information.

2. The game special effects video processing method as described in claim 1, characterized in that, Obtain the first location information of the virtual skill items of the controlled virtual character in the first special effects video, including: Based on the location information of the virtual skill items of the controlled virtual character, the first location information of the virtual skill items of the controlled virtual character in each first special effects video frame image included in the first special effects video is determined.

3. The game special effects video processing method as described in claim 1, characterized in that, Obtain the second location information of the attacked part of the target virtual character in the second special effects video, including: Target tracking is performed on the attacked parts of the target virtual character in each of the second special effects video frames contained in the second special effects video to obtain the second position information of the attacked parts of the target virtual character in each of the second special effects video frames contained in the second special effects video.

4. The game special effects video processing method as described in claim 1, characterized in that, Based on the difference in the horizontal coordinate, the difference in the vertical coordinate, a first preset value, a second preset value, and a third preset value, a rotation value is determined from the first position information to the second position information, including: The rotation radians are obtained by performing an arctangent operation on the ratio of the difference between the horizontal coordinates and the difference between the vertical coordinates, and the rotation radians are then converted into angles to obtain the rotation angles. The adjustment value is obtained by multiplying the ratio of the difference in the horizontal coordinate to the absolute value of the difference in the horizontal coordinate by the first set value, and then by multiplying the ratio by the second set value. The rotation value is obtained by subtracting the third set value from the sum of the rotation angle and the adjustment value.

5. The game special effects video processing method as described in claim 1, characterized in that, Based on the horizontal coordinate difference, the vertical coordinate difference, the target video width, and the fourth preset value, the horizontal coordinate scaling value from the first location information to the second location information is determined, including: The absolute value of the difference in the horizontal coordinates is squared to obtain a first squared value, and the absolute value of the difference in the vertical coordinates is squared to obtain a second squared value; The square root of the sum of the first squared value and the second squared value is divided by the target video width, and then divided by the fourth set value to obtain the horizontal coordinate scaling value from the first position information to the second position information.

6. The game special effects video processing method as described in claim 1, characterized in that, Based on the horizontal coordinate difference, the target video width, and the fifth preset value, the vertical coordinate scaling value from the first position information to the second position information is determined, including: Divide the difference in the horizontal coordinate by the target video width, and then divide by the fifth set value to obtain the initial scaling value in the vertical coordinate; Based on the set clamping range and the initial ordinate scaling value, the ordinate scaling value from the first position information to the second position information is determined; wherein, the set clamping range is used to clamp the thickness of the connecting line within a preset visible range.

7. A video processing device for game special effects, characterized in that, include: The first acquisition unit is used to acquire the first location information of the virtual skill props of the controlled virtual character in the first special effects video; wherein, the first special effects video is a special effects video in which the virtual skill props of the controlled virtual character release virtual skills; The second acquisition unit is used to acquire the second location information of the attacked part of the target virtual character in the second special effects video; wherein, the second special effects video is a special effects video in which the attacked part of the target virtual character is attacked by the virtual skill; A numerical determination unit is used to determine, based on the first position information and the second position information, the rotation and scaling values ​​of the connecting line between the virtual skill prop of the controlled virtual character and the attacked part of the target virtual character in the third special effects video; wherein, the third special effects video is a special effects video of the release trajectory of the virtual skill represented by the connecting line; A video compositing unit is used to composite the first special effects video, the second special effects video, and the third special effects video based on the rotation and scaling values ​​of the connecting lines to obtain a target game video. During the compositing process, the first special effects video, the second special effects video, and the third special effects video are stacked based on the rotation and scaling values ​​of the connecting lines; wherein, the first special effects video is on the top layer of the first layer, the third special effects video is on the middle layer of the second layer, and the second special effects video is on the bottom layer of the third layer. The numerical determination unit is specifically used to determine, based on the first position information and the second position information, the rotation and scaling values ​​of the connecting line between the virtual skill items of the controlled virtual character and the attacked part of the target virtual character in the third special effects video, including: For the first special effects video frame image in the first special effects video and the second special effects video frame image in the second special effects video with the same frame identifier, determine the difference in the horizontal coordinate between the first horizontal coordinate contained in the first position information of the virtual skill prop of the controlled virtual character in the first special effects video frame image and the second horizontal coordinate contained in the second position information of the attacked part of the target virtual character in the second special effects video frame image, and the difference in the vertical coordinate between the first vertical coordinate contained in the first position information of the virtual skill prop of the controlled virtual character in the first special effects video frame image and the second vertical coordinate contained in the second position information of the attacked part of the target virtual character in the second special effects video frame image; Based on the difference in the horizontal coordinate, the difference in the vertical coordinate, the first set value, the second set value, and the third set value, a rotation value from the first position information to the second position information is determined; Based on the horizontal coordinate difference, the vertical coordinate difference, the target video width, and a fourth preset value, a horizontal coordinate scaling value is determined from the first location information to the second location information; based on the horizontal coordinate difference, the target video width, and a fifth preset value, a vertical coordinate scaling value is determined from the first location information to the second location information; the horizontal coordinate scaling value and the vertical coordinate scaling value are determined as the scaling value from the first location information to the second location information.

8. An electronic device, characterized in that, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the game effects video processing method as described in any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, implement the game special effects video processing method as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Image composing method and three-dimensional game device

    JP1997081780A