A special effect display method, device, equipment and storage medium

By displaying the first motion blur image while the special effects object is in motion and capturing the second frame at a set frame rate, and using historical motion blur images to determine the motion blur image of the current frame, motion blur effects can be achieved with only one entity. This solves the problem of high resource allocation pressure in existing technologies, simplifies resource consumption, and maintains the effect.

CN116017020BActive Publication Date: 2026-03-03BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211659276.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-22
Publication Date
2026-03-03
Estimated Expiration
2042-12-22

AI Technical Summary

Technical Problem

The current implementation of motion blur effects requires generating entities for each frame, which puts a heavy burden on device resource allocation and increases the consumption of computing and storage resources.

Method used

By displaying the first motion blur when the special effects object is in motion, and capturing the second motion frame at a set frame rate, the second motion blur is determined using the first motion blur. Only one entity is needed to achieve the motion blur effect, reducing the need to generate an entity for each frame of the historical trajectory.

Benefits of technology

It effectively reduces the resource allocation pressure on the device, simplifies the implementation process of the motion blur effect, and at the same time ensures the effect of the motion blur effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116017020B_ABST
    Figure CN116017020B_ABST
Patent Text Reader

Abstract

The embodiment of the present disclosure provides a special effect display method, device and equipment and storage medium. Its features include: when a special effect object is in a motion state, displaying a first trail picture of the special effect object in a first motion frame, the special effect object being a selected object to which a trail effect is applied; capturing a second motion frame of the special effect object at a set frame rate; determining a second trail picture of the special effect object in the second motion frame through the first trail picture; and displaying the second trail picture. The technical solution of the embodiment of the present disclosure is different from the existing trail effect implementation. The trail picture in the current motion frame is simplified to be determined based on the last frame historical result, and the implementation process of the trail effect only needs one entity, without the need to generate an entity corresponding to each frame. While ensuring the trail effect, the resource allocation pressure of the device is effectively reduced, which is conducive to the implementation of the trail effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] With the development of internet technology, entertainment applications such as live streaming, short videos, and video editing can use special effects to enhance visual effects. Among these effects, motion blur is one such tool, which creates a trailing effect on the object being moved, visually indicating that the object's movement trajectory has not yet faded away.

[0003] The current implementation of motion blur effects requires recording the motion trajectory of the object to which the effect is applied for each frame. In each current frame, an entity must be generated for each frame corresponding to the historical motion trajectory, and then each entity is assigned a different motion blur color based on its motion position. For example, for a moving object to which the effect is applied, when the 8th frame is the current frame, it is necessary to generate 8 entities to represent the objects to which the effect was applied for from the 1st to the 8th frame. Then, the objects to which the effect was applied in the 8 entities are given the display state that they should have in the current frame (the 8th frame) and displayed.

[0004] In the implementation of the above-mentioned motion blur effect, each generated entity needs to occupy a certain amount of computing and storage resources. As the motion time of the object to which the effect is applied increases, the resource occupancy rate of the entities generated by the motion blur effect also gradually increases. For example, recording 20 frames of motion blur requires allocating the resources needed for 20 entities, which greatly increases the resource allocation pressure on the device and is not conducive to the implementation of the motion blur effect. Summary of the Invention

[0005] This disclosure provides a method, apparatus, device, and storage medium for displaying special effects, which effectively reduces the resource allocation pressure on the device and facilitates the realization of motion blur effects.

[0006] In a first aspect, embodiments of this disclosure provide a method for displaying special effects, the method comprising:

[0007] When the special effects object is in motion, the first motion image of the special effects object in the first motion frame is displayed, and the special effects object is the selected object to which the motion effect is applied;

[0008] Capture the second motion frame of the effect object at a set frame rate;

[0009] The second motion frame of the special effects object is determined by the first motion frame;

[0010] The second motion blur image is displayed.

[0011] Secondly, this disclosure also provides a special effects display device, which includes:

[0012] The first display module is used to display the first motion image of the special effect object in the first motion frame when the special effect object is in motion, wherein the special effect object is the selected object to which the motion effect is applied;

[0013] A motion frame capture module is used to capture a second motion frame of the special effects object at a set frame rate;

[0014] The image determination module is used to determine the second motion frame of the special effects object based on the first motion frame;

[0015] The second display module is used to display the second motion blur image.

[0016] Thirdly, embodiments of this disclosure also provide an electronic device, the electronic device comprising:

[0017] One or more processors;

[0018] Storage device for storing one or more programs.

[0019] When the one or more programs are executed by the one or more processors, the one or more processors implement the special effects display method as described in any embodiment of this disclosure.

[0020] Fourthly, embodiments of this disclosure also provide a storage medium containing computer-executable instructions, characterized in that, when executed by a computer processor, the computer-executable instructions are used to perform the special effects display method as described in any embodiment of this disclosure.

[0021] This disclosure provides a method, apparatus, device, and storage medium for displaying special effects. Its features include: displaying a first motion blur image of the special effect object in a first motion frame when the special effect object is in motion, wherein the special effect object is a selected object to which the motion blur effect is applied; capturing a second motion frame of the special effect object at a set frame rate; determining a second motion blur image of the special effect object in the second motion frame based on the first motion blur image; and displaying the second motion blur image. The technical solution of this disclosure, in determining the second motion blur image, uses the historical result of the first motion blur image from the previous frame as a basis. The motion blur image of the special effect object in the current motion frame can be determined through the historical motion blur image. Unlike existing motion blur effect implementations, this simplifies the implementation of the motion blur image in the current motion frame to determination based on the historical result of the previous frame. The implementation process of the motion blur effect only requires one entity, without needing to generate an entity for each frame in the historical trajectory. This solves the technical problem in the prior art where generating an entity for each frame leads to high resource allocation pressure. While ensuring the effect of the motion blur effect, it effectively reduces the resource allocation pressure on the device, which is beneficial for the implementation of motion blur effects. Attached Figure Description

[0022] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.

[0023] Figure 1 A flowchart illustrating a special effects display method provided in an embodiment of this disclosure;

[0024] Figure 2 This is an example image of the motion blur intensity texture map in a certain motion frame in a special effects display method provided in an embodiment of this disclosure;

[0025] Figure 3 A flowchart illustrating another special effects display method provided in this embodiment of the disclosure;

[0026] Figure 4 This is a schematic diagram of the structure of a special effects display device provided in an embodiment of the present disclosure;

[0027] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation

[0028] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.

[0029] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.

[0030] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.

[0031] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.

[0032] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".

[0033] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.

[0034] It is understood that before using the technical solutions disclosed in the various embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.

[0035] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the software or hardware, such as the electronic device, application, server, or storage medium performing the operations of this disclosed technical solution, based on the prompt message.

[0036] As an optional but non-limiting implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0037] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.

[0038] It is understood that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and related provisions.

[0039] Figure 1 This is a schematic flowchart of a special effects display method provided in an embodiment of the present disclosure. The embodiments of the present disclosure are applicable to the situation of realizing the motion blur effect. The method can be executed by a special effects display device, which can be implemented in the form of software and / or hardware. Optionally, it can be implemented by an electronic device, such as a mobile terminal, a PC, or a server.

[0040] like Figure 1 As shown, the method in this embodiment may specifically include:

[0041] S110. When the special effect object is in motion, display the first motion image of the special effect object in the first motion frame, wherein the special effect object is the selected object to which the motion effect is applied.

[0042] It's clear that entertainment applications such as live streaming, short videos, and video editing can use special effects to enhance visual effects. Among these, motion blur is one such effect, which creates a trailing effect on the object being moved, visually indicating that the object's movement has not yet faded away.

[0043] Specifically, the special effects object can be understood as the selected object on which the motion blur effect is applied in the motion blur effect image. For example, if 3D artistic text in a slideshow is displayed with a motion blur effect, then the 3D artistic text can be considered a special effects object. Similarly, if a person in a video display is displayed with a motion blur effect, then the person can be considered a special effects object. It should be noted that in this embodiment, the special effects object is not specifically limited, and can also be understood as not specifically limiting the specific content presented in the motion blur image. As long as a motion blur effect is desired, the content that will create the motion blur effect can be used as the special effects object.

[0044] Before performing the motion blur effect display operation, it may also include: receiving a motion blur effect trigger operation. There can be various triggering methods for the motion blur effect trigger operation. Optionally, receiving the effect trigger operation may include, but is not limited to: receiving an effect trigger operation acting on a preset effect trigger control, wherein the effect trigger control can be a control element set on the display interface, for example, the control element includes at least one of an effect trigger button, an effect trigger selection menu, and an effect trigger slider; or, receiving sound information based on a sound acquisition device for activating the effect; or, receiving an effect activation command for activating the effect, etc.

[0045] In this embodiment, when the special effects object is in motion, the motion trail of the special effects object differs in different motion frames. The motion trajectory of the special effects object is displayed as a motion trail to achieve the motion trail effect. The difference in the motion trail at different motion frames can be reflected in changes in the position of the special effects object, changes in the overall color of the special effects object, and changes in the length of the motion trail. To distinguish the special effects object in motion, in this embodiment, two adjacent motion frames are respectively designated as the first motion frame and the second motion frame. The first motion frame may be the first motion frame or any motion frame in the motion state. The next motion frame after the first motion frame is designated as the second motion frame. The motion trail under the first motion frame is designated as the first motion trail, and the motion trail under the second motion frame is designated as the second motion trail.

[0046] It's important to understand that, unlike existing technologies where a separate entity is generated for each frame corresponding to the historical motion trajectory when creating a motion blur effect, this embodiment only requires generating one entity. The entity is generated when the motion trajectory is the first motion frame, and the effect object is initially rendered to generate an initial motion blur intensity texture map. Specifically, after the motion blur effect is activated, the effect object is rendered, and its attribute display information is baked into a texture map. This texture map may include information such as display transparency, but not color information. Once the first motion frame is generated, subsequent motion blur effects are generated based on the previous motion blur map. This eliminates the need to generate a separate entity for each frame, saving memory resources.

[0047] It is understood that the first motion blur image is determined based on an intensity texture map. In this embodiment, the intensity texture map corresponding to the first motion blur image is denoted as the first intensity texture map. After obtaining the first intensity texture map, color processing is performed on the first intensity texture map to obtain the first motion blur image. Before coloring the first intensity texture map, it is necessary to determine which color to use for coloring. The color can be determined by obtaining a pre-defined correspondence between intensity values ​​and colors. Intensity and color have a one-to-one correspondence. Given the intensity, the color corresponding to that intensity is determined by obtaining the pre-defined correspondence between intensity values ​​and colors. The determined color is then used to color the first intensity texture map to finally obtain the first motion blur image.

[0048] In this embodiment, the generation method of the first intensity texture map for the first motion frame differs depending on whether it is the first motion frame or not. For the first motion frame, the first intensity texture map can be generated by: obtaining the first display attribute information of the effect object after rendering in the first motion frame; and generating an attribute texture map of the effect object based on the first display attribute information, which serves as the first motion frame intensity texture map. For non-first motion frames, the first intensity texture map can be generated by: obtaining the motion frame intensity texture map from the previous motion frame and combining it with a decay factor to determine the first motion frame intensity texture map of the effect object.

[0049] Specifically, when the special effects object is in motion, the display interface shows the first motion frame of the special effects object. If the first motion frame is the very first motion frame, the first motion frame refers to the frame displaying the original image. If the first motion frame is not the very first motion frame, it indicates that the special effects object has moved and produced a motion trajectory, and the content displayed in the first motion frame includes the effect of the special effects object having undergone motion blur processing.

[0050] S120. Capture the second motion frame of the special effects object at a set frame rate.

[0051] In this context, the second motion frame is relative to the first motion frame and can be understood as the frame following the first motion frame. While the specific content displayed in the second motion frame remains unchanged compared to the first motion frame, the position of the content and the motion blur effect have changed. The frame rate is the frequency at which images appear continuously on the display interface, measured in frames. The frame rate can be set based on historical experience data. In this embodiment, since there is only one entity in the special effect implementation, it can also be understood as using only one original image to implement the motion blur effect. To form the motion blur image in the next motion frame, in addition to processing and obtaining the first motion blur image, it is also necessary to capture the second motion frame of the special effect object. Specifically, capturing the second motion frame of the special effect object at a set frame rate allows obtaining information such as the position of the special effect object in the second motion frame. For example, taking 3D artistic text in a video as an example, if the 3D artistic text in the video is displayed with a motion blur effect, then the 3D artistic text can be considered the special effect object. When the special effect object is in motion, the video screen will display the first motion blur image of the special effect object in the first motion frame. To determine the second motion image in the second motion frame, it is necessary to obtain information related to the second motion frame, such as the specific position of the 3D artistic text in the video in the second motion frame.

[0052] S130. Determine the second motion frame of the special effects object based on the first motion frame.

[0053] Understandably, without a motion blur effect, the first image of the effect object in the first motion frame and the second image in the second motion frame only show that the position of the effect object has changed, indicating that the effect object has moved. However, after applying a motion blur effect, the first motion blur image of the effect object in the first motion frame and the second motion blur image in the second motion frame will display corresponding motion blur effects, showing the motion trajectory of the effect object. Unlike existing technologies where each frame corresponds to one entity, in this embodiment, the motion blur image for the next motion frame is generated based on the historical motion blur images and the second motion frame.

[0054] In this embodiment of the disclosure, to facilitate the description of how the motion blur is formed in each motion frame, two adjacent motion frames are respectively referred to as the first motion frame and the second motion frame. The first motion frame and the second motion frame are only used to indicate the temporal order of the motion frames. Similarly, the motion blur under the first motion frame is referred to as the first motion blur, and the motion blur under the second motion frame is referred to as the second motion blur. The first motion blur and the second motion blur are only used to indicate the order in which the motion blur is displayed. In other words, the special effects object will form different motion blurs in different motion frames to provide the user with an effect of displaying the motion trajectory of the special effects object.

[0055] In this embodiment, the effect of the motion blur image is that the original image of the special effects object is displayed at the foreground, while the motion blur image representing the previous trajectory of the special effects object needs to have its display transparency reduced accordingly during display, so that the motion trajectory of the special effects object gradually fades and eventually disappears. In order to achieve the gradual reduction of the display transparency of the image, relevant calculations can be performed based on a predetermined attenuation factor.

[0056] It is understandable that the first motion blur image is determined based on the motion blur intensity texture map. By coloring the motion blur intensity texture map, the first motion blur image of the special effects object in the first motion frame is obtained. Similarly, in this embodiment, the second motion blur image is also determined based on the motion blur intensity texture map. By coloring the motion blur intensity texture map, the second motion blur image of the special effects object in the second motion frame is obtained. To determine the second motion blur image corresponding to the second motion blur image, it can be determined based on the first motion blur intensity texture map, combined with the attenuation factor. Therefore, in this embodiment, when determining the second intensity texture map, it is necessary to first extract the first intensity texture map from the first motion blur image.

[0057] Simultaneously, the attenuation factor corresponding to the second motion frame can be determined. Multiplying the motion intensity value corresponding to each pixel in the first motion intensity texture map by the attenuation factor yields the motion attenuation texture map. Additionally, the motion frame under the second motion frame can be obtained. Based on the motion frame under the second motion frame and the motion attenuation texture map, the second motion image can be determined. One method for determining the second motion image based on the motion frame under the second motion frame and the motion attenuation texture map is to obtain the attribute texture map of the motion frame under the second motion frame, and then perform a bonding process between the attribute texture map and the motion attenuation texture map, using the bonded texture map as the second motion intensity texture map. After obtaining the second motion intensity texture map, the motion image of the effect object under the second motion frame is obtained by coloring the second motion intensity texture map. When coloring the second motion intensity texture map, it is necessary to determine the color corresponding to the intensity value of each pixel in the texture map according to a preset correspondence between intensity values ​​and colors, and then color the corresponding pixels using the determined colors.

[0058] It's important to understand that the intensity of the current frame is determined by the combined effect of historical frames and the attenuation factor. The process of forming the motion blur image provided in this embodiment is an iterative process. That is, in the next iteration, the second motion frame can be used as the first motion frame, and then a new second motion frame is recaptured, and the determination of the second motion blur image is repeated. As the motion frames play, the special effects object moves, requiring continuous determination and display of the current motion blur image under the current motion frame. It can be understood that in this step, the method of generating the motion blur image for the next motion frame is based on the motion blur images of historical frames and the attenuation factor. In other words, unlike existing motion blur effect implementations that generate an entity for each frame, process the entity images, and then perform a pasting process, this embodiment only requires one entity. The motion blur image for the next frame only needs this entity image, the motion blur images of historical frames, and the attenuation factor to be determined, reducing memory resource usage and achieving a better motion blur effect.

[0059] S140, Display the second motion blur image.

[0060] Specifically, after generating the second motion blur image, it is displayed on the display interface. For example, in a slideshow presentation where 3D artistic text is displayed with a motion blur effect, the motion blur effect of the 3D artistic text can be created by determining the motion blur image at each motion frame. Similarly, in a video presentation where a person is displayed with a motion blur effect, determining the motion blur image at each motion frame can create the motion blur effect of the character.

[0061] For example, Figure 2 This is an example image of the motion blur intensity texture map in a certain motion frame, provided in an embodiment of the special effects display method of this disclosure. Figure 2 As shown, the special effects objects are text such as ABC. The topmost text facing the user has the highest intensity, and the intensity of the text in the lower layers gradually decreases, with the intensity decreasing as the layer number decreases. Different intensities can be colored differently for clear distinction. For example, the top layer can be colored white, and as the layers decrease in intensity from top to bottom, they can be colored yellow, red, purple, blue, etc. Furthermore, the same layer may have different colors due to varying intensities. Adjacent layers can also be colored with gradients to provide a striking visual effect. Moreover, as each motion frame is played sequentially, a motion blur effect can be created, producing the visual effect of the special effects object moving along a trajectory.

[0062] This disclosure provides a method for displaying special effects, including: displaying a first motion blur image of the special effect object in a first motion frame when the special effect object is in motion, wherein the special effect object is a selected object to which the motion blur effect is applied; capturing a second motion frame of the special effect object at a set frame rate; determining a second motion blur image of the special effect object in the second motion frame through the first motion blur image; and displaying the second motion blur image. The technical solution of this disclosure uses the historical result of the first motion blur image of the previous frame as a basis for determining the second motion blur image. The motion blur image of the special effect object in the current motion frame can be determined through the historical motion blur image. Unlike existing motion blur effect implementations, this method simplifies the implementation of the motion blur image in the current motion frame to determination based on the historical result of the previous frame. The implementation process of the motion blur effect only requires one entity, and does not require generating an entity for each frame in the historical trajectory. This solves the technical problem in the prior art where generating an entity for each frame during the implementation of motion blur effects leads to high resource allocation pressure. While ensuring the effect of the motion blur effect, it effectively reduces the resource allocation pressure on the device, which is beneficial for the implementation of motion blur effects.

[0063] As an optional embodiment of this disclosure, based on the above embodiment, further optimization is made by, after displaying the second motion frame, using the second motion frame as a new first motion frame and the second motion frame as a new first motion frame, and returning to continue executing the capture operation of the second motion frame.

[0064] The process of forming a motion blur image provided in this embodiment is an iterative process. That is, in the next iteration, the second motion frame can be used as the new first motion frame, and the second motion blur image can be used as the new first motion blur image. Then, a new second motion frame is recaptured, and the determination of the second motion blur image is repeated. As the motion frames play, the special effects object moves, and it is necessary to continuously determine and display the current motion blur image under the current motion frame.

[0065] It is understandable that in this step, the method for generating the motion blur image of the next motion frame is based on the motion blur images of historical frames and the attenuation factor. In other words, unlike existing motion blur effect implementations that generate an entity for each frame, process the entity images, and then stitch them together, this embodiment only requires one entity. The motion blur image of the next frame only needs to be determined by this entity image, the motion blur images of historical frames, and the attenuation factor, which reduces memory resource usage and has a better motion blur effect.

[0066] As an optional embodiment of this disclosure, based on the above embodiments, further optimization is made: when the first motion frame is the first motion frame, the step of determining the first motion blur image includes:

[0067] a1. Obtain the first display attribute information of the special effect object after rendering in the first motion frame.

[0068] In this embodiment of the disclosure, for the first motion frame, it is known what kind of image is to be presented, what the special effects object is, and the corresponding display transparency of the special effects object. That is, there is a prediction of the first motion frame image of the motion blur effect display. Based on this prediction, it is possible to extract what the special effects object is in order to achieve this prediction. After determining the special effects object, it is possible to determine what display attribute information the special effects object should be displayed with.

[0069] The display attribute information can be display brightness, display grayscale, or display transparency. In this embodiment, the preferred display attribute information is display transparency, which is equivalent to intensity. The special effects object is rendered in the first motion frame using pre-determined rendering information. After rendering, the display attribute information of the special effects object in the first motion frame can be obtained. In this step, this display attribute information is recorded as the first display attribute information. For example, a human-computer interaction interface can be provided for relevant technicians to set the first display attribute information on the interface. Once the technician selects the relevant attribute information, the selected attribute information will be used as the display attribute for generating the first motion blur intensity texture map.

[0070] b1. Based on the first display attribute information, generate a first attribute texture map of the special effect object as the first ghosting intensity texture map.

[0071] In this embodiment, if the first motion frame is the first motion frame, an entity is generated to represent the first motion frame. The special effects object in this entity is initially rendered to obtain a ghosting intensity texture map, which in this embodiment is denoted as the first ghosting intensity texture map of the special effects object in the first motion frame. The rendering of the special effects object employs a baking technique, baking the display attribute information of the special effects object into a texture map. For example, the display attribute information may be display transparency. It is understood that the display attributes of the special effects object in the first ghosting intensity texture map of the first motion frame are unattenuated; in other words, the initial ghosting intensity texture map is the original intensity texture map of the special effects object and is not tinted.

[0072] In this embodiment, rendering is performed on the first motion frame, and a special effects object is generated after rendering. Then, the display attribute information of the rendered special effects object is baked using a baking technique to create a texture map, which serves as the motion blur intensity texture map. It can be understood that the baking technique is equivalent to dividing the image containing the special effects object into a grid, and baking is performed on each individual grid to determine the first motion blur intensity texture map.

[0073] In this embodiment of the disclosure, after obtaining the first display information of the special effects object rendered in the first motion frame, baking processing is performed based on the first display attribute information to generate a first attribute texture map of the special effects object, which serves as the first motion shadow intensity texture map. Preferably, the first attribute information is display transparency. It can be understood that the motion shadow intensity texture map corresponding to the first motion frame is the intensity of the original image.

[0074] c1. Perform color processing on the first motion blur intensity texture map to obtain the first motion blur image of the special effect object.

[0075] In this step, after obtaining the first motion blur intensity texture map, the motion blur effect can be seen in the display. However, to make the motion blur effect more visually obvious, it can be colored according to the intensity corresponding to the first motion blur intensity texture map. Specifically, the color data value corresponding to the first motion blur intensity value in the first motion blur intensity texture map can be determined according to the preset correspondence between intensity values ​​and colors. The pixel is colored using this color data value to obtain the first motion blur image of the effect object in the first motion frame.

[0076] The above technical solution refines the steps for generating the first motion blur image in the first moving frame. First, it generates a first motion blur intensity texture map of the special effects object in the first moving frame. Then, it performs color processing on the first motion blur intensity texture map to obtain the first motion blur image of the special effects object. Based on the first motion blur image, the motion blur images of subsequent moving frames can be determined, saving memory resources and reducing costs.

[0077] Figure 3 This is a schematic flowchart of another special effects display method provided by an embodiment of the present disclosure. The embodiment further explains the step of determining the second motion frame of the special effects object in the second motion frame based on the first motion frame, as follows: Figure 3 As shown, the method includes:

[0078] S210. When the special effect object is in motion, display the first motion image of the special effect object in the first motion frame, wherein the special effect object is the selected object to which the motion effect is applied.

[0079] S220. Capture the second motion frame of the special effects object at a set frame rate.

[0080] S230. Extract the first motion blur intensity texture map that constitutes the first motion blur image.

[0081] In this embodiment, the second motion frame can be understood as the frame following the first motion frame, and the second motion frame is relative to the first motion frame. Only one entity is generated in this embodiment; subsequent frames can be generated based on historical frames. The second motion frame can be considered the current motion frame, and the first motion frame can be considered a historical motion frame. To determine the motion blur of the current motion frame, the motion blur intensity texture map of the current motion frame needs to be determined first. Then, the motion blur intensity texture map is colored to obtain the motion blur image under the current motion frame, i.e., the second motion blur image under the second motion frame.

[0082] It is important to understand that the motion blur intensity texture map of the current motion frame needs to be determined based on the motion blur intensity texture maps of historical frames. This step is used to obtain the motion blur intensity texture maps of historical frames and extract the first motion blur intensity texture map that constitutes the first motion blur image.

[0083] S240. Based on the first motion blur intensity texture map and the determined attenuation factor, a second motion blur intensity texture map of the special effects object in the second motion frame is formed.

[0084] The attenuation factor is the attenuation coefficient of the intensity of the current motion frame relative to the historical frames. For example, the attenuation factor can be any value between 0 and 1. Preferably, the attenuation factor is a set constant; or, the attenuation factor is determined based on the duration of motion of the special effects object in motion. If the attenuation factor is set to a set constant, it can be understood that the attenuation degree of each current motion frame relative to the previous historical motion frame is the same. If the attenuation factor is determined based on the duration of motion of the special effects object in motion, for example, as the motion duration gradually increases, the attenuation factor gradually decreases, which can be understood as the attenuation factor gradually decreasing as the motion duration increases, and the attenuation degree becoming smaller and smaller. It can be understood that the length of the motion blur is determined by the attenuation factor. The larger the attenuation factor, the faster the motion blur attenuates and the shorter the motion blur length; the smaller the attenuation factor, the slower the motion blur attenuates and the longer the motion blur length.

[0085] This step is used to form a second motion intensity texture map of the special effects object in the second motion frame based on the first motion intensity texture map and the determined attenuation factor. Specifically, a motion attenuation texture map is obtained based on the first motion intensity texture map and the attenuation factor corresponding to the second motion frame. After obtaining the motion attenuation texture map, to obtain the second motion intensity texture map of the special effects object in the second motion frame, it is also necessary to align the attribute texture map corresponding to the moving image frame in the second motion frame. Aligning the two together determines the second motion intensity texture map. The attribute texture map corresponding to the moving image frame in the second motion frame can be generated based on the second display attribute information of the special effects object after rendering in the second motion frame, thus generating the second attribute texture map of the special effects object.

[0086] Furthermore, based on the first motion blur intensity texture map and the determined attenuation factor, a second motion blur intensity texture map of the special effects object in the second motion frame is formed, including:

[0087] a2. Based on the first motion intensity texture map and the attenuation factor corresponding to the second motion frame, obtain the motion attenuation texture map.

[0088] Specifically, based on the attenuation factor corresponding to the second motion frame, the intensity value of each pixel in the first motion intensity texture map is attenuated to obtain a motion attenuation texture map.

[0089] Furthermore, obtaining the motion blur attenuation texture map based on the first motion blur intensity texture map and the attenuation factor corresponding to the second motion frame includes:

[0090] a21. Obtain the target attenuation factor corresponding to the second motion frame.

[0091] It is known that each motion frame corresponds to a decay factor, which can be a pre-set constant or related to the motion duration of the special effects object. For each motion frame, the decay factor corresponding to that frame can be obtained as a known quantity. Specifically, the decay factor corresponding to the second motion frame is obtained and denoted as the target decay factor.

[0092] a22. Multiply the first motion blur intensity value of each pixel in the first motion blur intensity texture map by the target attenuation factor to obtain the motion blur attenuation texture map.

[0093] The trailing shadow attenuation texture map can be understood as the attenuation portion of the trailing shadow in the second intensity texture map under the second motion frame. The first trailing shadow intensity texture map is composed of individual pixels, each pixel corresponding to a trailing shadow intensity value. The first intensity value of each pixel in the first trailing shadow intensity texture map is multiplied by the target attenuation factor to obtain the intensity value corresponding to each pixel after attenuation, thus forming the trailing shadow attenuation texture map.

[0094] The above technical solution specifies how to obtain a motion attenuation texture map based on the historical motion intensity texture map and the attenuation factor corresponding to the current motion frame, providing a basis for determining the current intensity texture map.

[0095] b2. Obtain the second motion frame of the special effects object in the second motion frame.

[0096] Specifically, the motion frame of the special effects object in the second motion frame is obtained and denoted as the second motion frame.

[0097] c2. Based on the second motion frame and the trailing attenuation texture map, form a second trailing intensity texture map of the special effects object in the second motion frame.

[0098] In this step, based on the obtained second motion frame, a second attribute texture map of the special effects object relative to the set display attributes in the second motion frame is obtained. The second attribute texture map and the ghosting attenuation map are then laminated, and the laminated result is used as the second ghosting intensity texture map. The generation principle of the second attribute texture map is the same as that of the first attribute texture map.

[0099] The above technical solution details how to generate the current motion intensity texture map of the special effects object in the current motion frame based on the historical motion intensity texture map and the attenuation factor, providing a foundation for generating the current motion image in the current motion frame. Unlike existing technologies that require generating an entity for each frame in the historical motion trajectory, this technical solution only requires generating one entity. The motion intensity texture map of the current frame can be determined based on the historical frame's motion intensity texture map and the attenuation factor, reducing memory resource consumption and saving costs.

[0100] Furthermore, the step of forming a second motion intensity texture map of the special effects object in the second motion frame based on the second motion frame and the motion attenuation texture map includes:

[0101] c21. Obtain the second attribute texture map of the special effects object relative to the set display attributes in the second motion frame.

[0102] Specifically, the second display attribute information of the special effects object after rendering in the second motion frame is obtained, and the second attribute value of the display attribute is set in the second display attribute information to generate the second attribute texture map of the special effects object.

[0103] c22. Perform a bonding process on the second attribute texture map and the trailing attenuation texture map.

[0104] Specifically, the second attribute texture map is laminated with the shadow attenuation texture map.

[0105] c23. Use the laminated texture map as the second motion intensity texture map of the special effect object in the second motion frame.

[0106] Specifically, the laminated texture map is used as the second motion image intensity texture map in the second motion frame as the special effects object.

[0107] The above technical solution specifies how to generate the current motion intensity texture map of the special effects object in the current motion frame based on the current motion frame and the motion attenuation texture map. This technical solution only needs to generate one entity, and the motion intensity texture map of the current frame can be determined based on the motion intensity texture map and motion attenuation texture map of the historical frames, which reduces the occupation of memory resources and saves costs.

[0108] S250. Perform color processing on the second motion intensity texture map to obtain the second motion image of the special effect object in the second motion frame.

[0109] Specifically, each pixel in the second motion intensity texture map corresponds to a motion intensity value. The intensity-color correspondence can be preset. Based on the motion intensity value of each pixel and the correspondence, the color corresponding to each pixel can be determined. The second motion intensity texture map is then colored based on the corresponding color to obtain the second motion image under the second motion frame.

[0110] Furthermore, the step of performing color processing on the second motion intensity texture map to obtain the second motion image of the special effects object in the second motion frame includes:

[0111] a3. Obtain the second motion blur intensity value of each pixel in the second motion blur intensity texture map.

[0112] Specifically, each pixel in the second motion blur intensity texture map corresponds to a motion blur intensity value. The motion blur intensity value of each pixel in the second motion blur intensity texture map is obtained and recorded as the second motion blur intensity value.

[0113] b3. Determine the color data value corresponding to the second motion blur intensity value according to the preset correspondence between intensity value and color.

[0114] The system pre-defines the correspondence between intensity values ​​and colors. When an intensity value is known, the corresponding color can be determined by querying the correspondence. For example, assuming intensity values ​​include intensity 1, intensity 2, intensity 3, etc., and colors include color value 1, color value 2, color value 3, etc., the intensity values ​​and colors can be pre-associated and bound. For instance, intensity 1 corresponds to color value 1, intensity 2 corresponds to color value 2, and intensity 3 corresponds to color value 3. If a second motion blur intensity value is determined to be intensity 2, then by querying the pre-defined correspondence, the color value corresponding to the second motion blur intensity value is determined to be color value 2.

[0115] c3. Use the color data value to color the pixel to obtain the second motion image of the special effect object in the second motion frame.

[0116] Specifically, based on the determined color data values, each pixel in the second intensity texture map is colored to obtain the motion blur image of the special effect object in the second motion frame, which is recorded as the second motion blur image.

[0117] This technical solution specifies how to perform color processing on the motion blur intensity texture map to obtain a second motion blur image of the special effects object. Through color processing, the motion blur image has significant visual effects.

[0118] S260, Display the second motion blur image.

[0119] The above technical solution allows for the extraction of historical motion blur intensity texture maps from the motion blur images of the special effects object in historical motion frames when the object is in motion. By combining this with a decay factor, the current motion blur intensity texture map of the special effects object in the current motion frame can be determined. Coloring this current motion blur intensity texture map yields the current motion blur image in the current motion frame. To determine the next motion blur image in the next motion frame, the current motion frame can be used as a historical motion frame, and the current motion blur image can be used as a historical motion blur image to continue determining the next motion blur image. This iterative process is repeated to determine the motion blur image. Using this method, the motion blur effect only requires a single entity, eliminating the need to generate an entity for each frame in the historical motion trajectory. This effectively reduces the resource allocation pressure on the device while maintaining the motion blur effect, thus facilitating its implementation. Furthermore, the use of a decay factor makes the intensity decay of the motion blur intensity texture map more regular, resulting in a gradual color progression after coloring and a better visual presentation.

[0120] Figure 4 This is a schematic diagram of a special effects display device provided in an embodiment of the present disclosure, as shown below. Figure 4 As shown, the device includes: a first display module 310, a motion frame capture module 320, a frame determination module 330, and a second display module 340.

[0121] The first display module 310 is used to display a first motion blur image of the special effect object in a first motion frame when the special effect object is in motion, wherein the special effect object is a selected object to which the motion blur effect is applied; the motion frame capture module 320 is used to capture a second motion frame of the special effect object at a set frame rate; the image determination module 330 is used to determine a second motion blur image of the special effect object in the second motion frame based on the first motion blur image; and the second display module 340 is used to display the second motion blur image.

[0122] The technical solution of this disclosure embodiment displays a first motion blur image of the special effect object in a first motion frame when the special effect object is in motion, wherein the special effect object is a selected object to which the motion blur effect is applied; captures a second motion frame of the special effect object at a set frame rate; determines a second motion blur image of the special effect object in the second motion frame through the first motion blur image; and displays the second motion blur image. In determining the second motion blur image, this disclosure embodiment uses the historical result of the first motion blur image from the previous frame as a basis, and the motion blur image of the special effect object in the current motion frame can be determined through the historical motion blur image. Unlike existing motion blur effect implementations, this simplifies the implementation of the motion blur image in the current motion frame to determination based on the historical result of the previous frame. The implementation process of the motion blur effect only requires one entity, and does not need to generate an entity for each frame. This solves the technical problem in the prior art where the implementation of motion blur effects requires generating an entity for each frame in the historical motion trajectory, leading to high resource allocation pressure. While ensuring the effect of the motion blur effect, it effectively reduces the resource allocation pressure on the device, which is beneficial to the implementation of motion blur effects.

[0123] Optionally, the device also includes an update module, which, after displaying the second ghosting image, is specifically used for:

[0124] The second motion frame is used as the new first motion frame, and the second motion blur image is used as the new first motion blur image. The capture operation of the second motion frame is then resumed.

[0125] Optionally, the device further includes a first motion blur determination module, wherein when the first motion frame is the first motion frame, the first motion blur determination module is specifically used for:

[0126] Obtain the first display attribute information of the special effects object after rendering in the first motion frame;

[0127] Based on the first display attribute information, a first attribute texture map of the special effect object is generated as the first trailing intensity texture map;

[0128] The first motion blur intensity texture map is colored to obtain the first motion blur image of the special effect object.

[0129] Optionally, the image determination module 330 may include:

[0130] The first extraction unit is used to extract the first motion blur intensity texture map that constitutes the first motion blur image;

[0131] The second texture determination unit is used to form a second motion intensity texture map of the special effects object in the second motion frame based on the first motion intensity texture map and the determined attenuation factor.

[0132] The second image generation unit is used to perform coloring processing on the second motion intensity texture map to obtain the second motion image of the special effect object in the second motion frame.

[0133] Optionally, the attenuation factor is a set constant; or, the attenuation factor is determined based on the duration of motion of the special effects object in motion.

[0134] Optional, the second texture determination unit is specifically used for:

[0135] Based on the first motion intensity texture map and the attenuation factor corresponding to the second motion frame, a motion attenuation texture map is obtained;

[0136] Obtain the second motion frame of the special effects object in the second motion frame;

[0137] Based on the second motion frame and the trailing attenuation texture map, a second trailing intensity texture map of the special effects object under the second motion frame is formed.

[0138] Optionally, the second texture determination unit is used to perform the step of obtaining a motion blur attenuation texture map based on the first motion blur intensity texture map and the attenuation factor corresponding to the second motion frame, including:

[0139] Obtain the target attenuation factor corresponding to the second motion frame;

[0140] The first ghost intensity value of each pixel in the first ghost intensity texture map is multiplied by the target attenuation factor to obtain the ghost attenuation texture map.

[0141] Optionally, the second texture determination unit is used to perform the step of forming a second motion intensity texture map of the special effects object in the second motion frame based on the second motion frame and the motion attenuation texture map, including:

[0142] Obtain the second attribute texture map of the special effects object relative to the set display attributes in the second motion frame;

[0143] The second attribute texture map and the shadow attenuation texture map are laminated.

[0144] The laminated texture map is used as the second motion intensity texture map of the special effect object in the second motion frame.

[0145] Optionally, the image determination module 330 is specifically used for:

[0146] Obtain the second motion intensity value of each pixel in the second motion intensity texture map;

[0147] Based on the preset correspondence between intensity values ​​and colors, determine the color data value corresponding to the second trailing intensity value;

[0148] The pixel is colored using the color data value to obtain the second motion image of the special effect object in the second motion frame.

[0149] The special effects display device provided in this disclosure can execute the special effects display method provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects of the execution method.

[0150] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the protection scope of the embodiments of this disclosure.

[0151] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Reference is made below. Figure 5 It illustrates an electronic device suitable for implementing embodiments of the present disclosure (e.g., Figure 5 The diagram below shows the structure of the terminal device or server 400. The terminal device in this embodiment may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), and vehicle terminals (e.g., vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 5 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.

[0152] like Figure 5 As shown, electronic device 400 may include a processing unit (e.g., central processing unit, graphics processor, etc.) 401, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 402 or a program loaded from storage device 408 into random access memory (RAM) 403. RAM 403 also stores various programs and data required for the operation of electronic device 400. Processing unit 401, ROM 402, and RAM 403 are interconnected via bus 404. Edit / output (I / O) interface 405 is also connected to bus 404.

[0153] Typically, the following devices can be connected to I / O interface 405: input devices 404 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 407 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 408 including, for example, magnetic tapes, hard disks, etc.; and communication devices 408. Communication device 408 allows electronic device 400 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 5 An electronic device 400 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.

[0154] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication device 406, or installed from storage device 408, or installed from ROM 402. When the computer program is executed by processing device 401, it performs the functions defined in the methods of embodiments of this disclosure.

[0155] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.

[0156] The electronic device provided in this embodiment and the special effects display method provided in the above embodiments belong to the same inventive concept. Technical details not described in detail in this embodiment can be found in the above embodiments, and this embodiment has the same beneficial effects as the above embodiments.

[0157] This disclosure provides a computer storage medium storing a computer program that, when executed by a processor, implements the special effects display method provided in the above embodiments.

[0158] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.

[0159] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol, such as HTTP (Hypertext Transfer Protocol), and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.

[0160] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.

[0161] The aforementioned computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to: display a first motion blur image of the special effects object in a first motion frame when the special effects object is in motion, wherein the special effects object is a selected object to which the motion blur effect is applied;

[0162] Capture the second motion frame of the effect object at a set frame rate;

[0163] The second motion frame of the special effects object is determined by the first motion frame;

[0164] The second motion blur image is displayed.

[0165] Computer program code for performing the operations of this disclosure can be written in one or more programming languages ​​or a combination thereof, including but not limited to object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0166] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0167] The units described in the embodiments of this disclosure can be implemented in software or in hardware. The name of a unit does not necessarily limit the unit itself; for example, the first acquisition unit can also be described as "a unit that acquires at least two Internet Protocol addresses".

[0168] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.

[0169] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0170] According to one or more embodiments of this disclosure, [Example 1] provides a method for displaying special effects, the method comprising:

[0171] When the special effects object is in motion, the first motion image of the special effects object in the first motion frame is displayed, and the special effects object is the selected object to which the motion effect is applied;

[0172] Capture the second motion frame of the effect object at a set frame rate;

[0173] The second motion frame of the special effects object is determined by the first motion frame;

[0174] The second motion blur image is displayed.

[0175] According to one or more embodiments of this disclosure, [Example 2] provides a method for displaying special effects, the method comprising:

[0176] Optionally, after displaying the second ghosting image, the method further includes:

[0177] The second motion frame is used as the new first motion frame, and the second motion blur image is used as the new first motion blur image. The capture operation of the second motion frame is then resumed.

[0178] According to one or more embodiments of this disclosure, [Example 3] provides a method for displaying special effects, the method comprising:

[0179] Optionally, when the first motion frame is the first motion frame, the steps for determining the first motion blur image include:

[0180] Obtain the first display attribute information of the special effects object after rendering in the first motion frame;

[0181] Based on the first display attribute information, a first attribute texture map of the special effect object is generated as the first trailing intensity texture map;

[0182] The first motion blur intensity texture map is colored to obtain the first motion blur image of the special effect object.

[0183] According to one or more embodiments of this disclosure, [Example 4] provides a method for displaying special effects, the method comprising:

[0184] Optionally, determining the second motion frame of the special effects object in the second motion frame using the first motion frame includes:

[0185] Extract the first motion blur intensity texture map that constitutes the first motion blur image;

[0186] Based on the first motion blur intensity texture map and the determined attenuation factor, a second motion blur intensity texture map of the special effects object is formed in the second motion frame;

[0187] The second motion intensity texture map is colored to obtain the second motion image of the special effect object in the second motion frame.

[0188] According to one or more embodiments of this disclosure, [Example 5] provides a method for displaying special effects, the method comprising:

[0189] Optionally, the attenuation factor is a set constant; or, the attenuation factor is determined based on the duration of motion of the special effects object in motion.

[0190] According to one or more embodiments of this disclosure, [Example Six] provides a method for displaying special effects, the method comprising:

[0191] Optionally, forming a second motion intensity texture map of the special effects object in the second motion frame based on the first motion intensity texture map and the determined attenuation factor includes:

[0192] Based on the first motion intensity texture map and the attenuation factor corresponding to the second motion frame, a motion attenuation texture map is obtained;

[0193] Obtain the second motion frame of the special effects object in the second motion frame;

[0194] Based on the second motion frame and the trailing attenuation texture map, a second trailing intensity texture map of the special effects object under the second motion frame is formed.

[0195] According to one or more embodiments of this disclosure, [Example Seven] provides a method for displaying special effects, the method comprising:

[0196] Optionally, obtaining the motion blur attenuation texture map based on the first motion blur intensity texture map and the attenuation factor corresponding to the second motion frame includes:

[0197] Obtain the target attenuation factor corresponding to the second motion frame;

[0198] The first ghost intensity value of each pixel in the first ghost intensity texture map is multiplied by the target attenuation factor to obtain the ghost attenuation texture map.

[0199] According to one or more embodiments of this disclosure, [Example Eight] provides a method for displaying special effects, the method comprising:

[0200] Optionally, the step of forming a second motion intensity texture map of the special effects object in the second motion frame based on the second motion frame and the motion attenuation texture map includes:

[0201] Obtain the second attribute texture map of the special effects object relative to the set display attributes in the second motion frame;

[0202] The second attribute texture map and the shadow attenuation texture map are laminated.

[0203] The laminated texture map is used as the second motion intensity texture map of the special effect object in the second motion frame.

[0204] According to one or more embodiments of this disclosure, [Example Nine] provides a method for displaying special effects, the method comprising:

[0205] Optionally, the step of coloring the second motion intensity texture map to obtain the second motion image of the special effects object in the second motion frame includes:

[0206] Obtain the second motion intensity value of each pixel in the second motion intensity texture map;

[0207] Based on the preset correspondence between intensity values ​​and colors, determine the color data value corresponding to the second trailing intensity value;

[0208] The pixel is colored using the color data value to obtain the second motion image of the special effect object in the second motion frame.

[0209] According to one or more embodiments of this disclosure, [Example 10] provides a special effects display device, the device comprising:

[0210] The first display module is used to display the first motion image of the special effect object in the first motion frame when the special effect object is in motion, wherein the special effect object is the selected object to which the motion effect is applied;

[0211] A motion frame capture module is used to capture a second motion frame of the special effects object at a set frame rate;

[0212] The image determination module is used to determine the second motion frame of the special effects object based on the first motion frame;

[0213] The second display module is used to display the second motion blur image.

[0214] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.

[0215] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.

[0216] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.

Claims

1. A method for displaying special effects, characterized in that, include: When the special effects object is in motion, the first motion image of the special effects object in the first motion frame is displayed, and the special effects object is the selected object to which the motion effect is applied; Capture the second motion frame of the effect object at a set frame rate; The second motion frame of the special effects object is determined by the first motion frame; Display the second motion blur image; The step of determining the second motion frame of the special effects object in the second motion frame through the first motion frame includes: Extract the first motion blur intensity texture map that constitutes the first motion blur image. The first motion blur intensity texture map is a texture map that is baked from the display attribute information of the special effect object by rendering the special effect object. The first motion blur intensity texture map does not include color information. Based on the first motion blur intensity texture map and the determined attenuation factor, a second motion blur intensity texture map of the special effects object is formed in the second motion frame; The second motion intensity texture map is colored to obtain the second motion image of the special effect object in the second motion frame; The step of performing color processing on the second motion intensity texture map to obtain the second motion image of the special effects object in the second motion frame includes: Obtain the second motion intensity value of each pixel in the second motion intensity texture map; Based on the preset correspondence between intensity values ​​and colors, determine the color data value corresponding to the second trailing intensity value; The pixel is colored using the color data value to obtain the second motion image of the special effect object in the second motion frame.

2. The method according to claim 1, characterized in that, After displaying the second ghosting image, it also includes: The second motion frame is used as the new first motion frame, and the second motion blur image is used as the new first motion blur image. The capture operation of the second motion frame is then resumed.

3. The method according to claim 1, characterized in that, When the first motion frame is the first motion frame, the steps for determining the first motion blur image include: Obtain the first display attribute information of the special effects object after rendering in the first motion frame; Based on the first display attribute information, a first attribute texture map of the special effect object is generated as the first trailing intensity texture map; The first motion blur intensity texture map is colored to obtain the first motion blur image of the special effect object.

4. The method according to claim 1, characterized in that, The attenuation factor is a set value; or, the attenuation factor is determined based on the duration of motion of the special effects object in motion.

5. The method according to claim 1, characterized in that, The step of forming a second motion blur intensity texture map of the special effects object in the second motion frame based on the first motion blur intensity texture map and the determined attenuation factor includes: Based on the first motion intensity texture map and the attenuation factor corresponding to the second motion frame, a motion attenuation texture map is obtained; Obtain the second motion frame of the special effects object in the second motion frame; Based on the second motion frame and the trailing attenuation texture map, a second trailing intensity texture map of the special effects object under the second motion frame is formed.

6. The method according to claim 5, characterized in that, The step of obtaining a motion blur attenuation texture map based on the first motion blur intensity texture map and the attenuation factor corresponding to the second motion frame includes: Obtain the target attenuation factor corresponding to the second motion frame; The first ghost intensity value of each pixel in the first ghost intensity texture map is multiplied by the target attenuation factor to obtain the ghost attenuation texture map.

7. The method according to claim 5, characterized in that, The step of forming a second motion intensity texture map of the special effects object in the second motion frame based on the second motion frame and the motion attenuation texture map includes: Obtain the second attribute texture map of the special effects object relative to the set display attributes in the second motion frame; The second attribute texture map and the shadow attenuation texture map are laminated. The laminated texture map is used as the second motion intensity texture map of the special effect object in the second motion frame.

8. A special effects display device, characterized in that, include: The first display module is used to display the first motion image of the special effect object in the first motion frame when the special effect object is in motion, wherein the special effect object is the selected object to which the motion effect is applied; A motion frame capture module is used to capture a second motion frame of the special effects object at a set frame rate; The image determination module is used to determine the second motion frame of the special effects object based on the first motion frame; The second display module is used to display the second motion blur image; The image determination module includes: The first extraction unit is used to extract a first motion blur intensity texture map that constitutes the first motion blur image. The first motion blur intensity texture map is a texture map that is baked from the display attribute information of the special effect object by rendering the special effect object. The first motion blur intensity texture map does not include color information. The second texture determination unit is used to form a second motion intensity texture map of the special effects object in the second motion frame based on the first motion intensity texture map and the determined attenuation factor. The second image generation unit is used to perform color processing on the second motion intensity texture map to obtain the second motion image of the special effect object in the second motion frame; The second image generation unit is specifically used for: Obtain the second motion intensity value of each pixel in the second motion intensity texture map; Based on the preset correspondence between intensity values ​​and colors, determine the color data value corresponding to the second trailing intensity value; The pixel is colored using the color data value to obtain the second motion image of the special effect object in the second motion frame.

9. An electronic device, characterized in that, include: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1-7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Image acquisition method, ghost attenuation parameter measurement system, image acquisition device, electronic device and computer readable storage medium

    CN110740230A

  • Residual shadow effect implementation method and device, terminal equipment and storage medium

    CN110930478A

  • Video special effect adding method and device, electronic equipment and storage medium

    CN110944230A