Material dissolving special effect generation method and device, electronic equipment and storage medium
By merging material groups, performing copying and frame overlay operations, a material dissolving effect is generated, solving the problems of poor visual effects and high replication difficulty, and achieving rich visual effects and efficient replication.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- NETEASE (HANGZHOU) NETWORK CO LTD
- Filing Date
- 2023-09-06
- Publication Date
- 2026-07-24
Smart Images

Figure CN117065334B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of image processing technology, and in particular to a method, apparatus, electronic device, and storage medium for generating material dissolving effects. Background Technology
[0002] Currently, games typically add special effects to assets to achieve richer visual effects. Except for specific cyclical effects, most effects involve a process of appearing and disappearing. However, conventional methods for achieving effect disappearance usually involve erasing or cloaking, resulting in poor visual effects. While related technologies offer more visually appealing methods for effect disappearance, the overall implementation process is complex, making it difficult to apply the same disappearance effect to another effect, leading to low efficiency. Summary of the Invention
[0003] In view of this, the purpose of the present invention is to provide a method, apparatus, electronic device and storage medium for generating material dissolving effects, which can significantly enrich the visual effects of material dissolving effects and effectively reduce the difficulty of replicating material dissolving effects, thereby effectively improving the efficiency of replicating material dissolving effects.
[0004] In a first aspect, embodiments of the present invention provide a method for generating material dissolving effects, comprising:
[0005] Obtain the materials to be processed and merge them into a material group;
[0006] Based on the pre-established initial dissolving effect mask and the material group, a first composite group with edge dissolving effect is determined;
[0007] A copy operation is performed on the first composite group to obtain a second composite group, and a frame overlay operation is performed on the first composite group and the second composite group to obtain a target composite group;
[0008] Based on the target compositing group, a pixel appearance group, a color outlining group, and a transition effect group are determined respectively; wherein, the pixel appearance group is used to describe the basic texture effect of the dissolving effect, the color outlining group is used to describe the three-dimensional effect and / or color light effect, and the transition effect group is used to describe the target texture effect of the dissolving effect.
[0009] The pixel appearance group, the color outline group, and the transition effect group are superimposed to obtain the material dissolving effect corresponding to the material.
[0010] Secondly, embodiments of the present invention also provide an apparatus for generating material dissolving effects, comprising:
[0011] The texture acquisition module is used to acquire the materials to be processed and merge the materials into a material group;
[0012] The compositing group determination module is used to determine a first compositing group with edge dissolving effect based on a pre-established initial dissolving effect mask and the material group;
[0013] The frame misalignment module is used to perform a copy operation on the first composite group to obtain a second composite group, and to perform a frame misalignment overlay operation on the first composite group and the second composite group to obtain a target composite group;
[0014] The effect determination module is used to determine the pixel appearance group, color outlining group, and transition effect group based on the target compositing group; wherein, the pixel appearance group is used to describe the basic texture effect of the dissolving effect, the color outlining group is used to describe the three-dimensional effect and / or color light effect, and the transition effect group is used to describe the target texture effect of the dissolving effect.
[0015] The dissolving effect generation module is used to overlay the pixel appearance group, the color outline group, and the connection effect group to obtain the material dissolving effect corresponding to the material.
[0016] Thirdly, embodiments of the present invention also provide an electronic device, including a processor and a memory, the memory storing computer-executable instructions executable by the processor, the processor executing the computer-executable instructions to implement the method described in any of the first aspects.
[0017] Fourthly, embodiments of the present invention also provide a computer-readable storage medium storing computer-executable instructions, which, when invoked and executed by a processor, cause the processor to implement the method described in any of the first aspects.
[0018] The method, apparatus, electronic device, and storage medium for generating material dissolving effects provided in this invention first acquire the material to be processed and merge the material into a material group. Then, based on a pre-established initial dissolving effect mask and the material group, a first composite group with edge dissolving effect is determined. A copy operation is performed on the first composite group to obtain a second composite group, and a frame overlay operation is performed on the first and second composite groups. Based on the target composite group obtained from the frame overlay operation, a pixel appearance group, a color outlining group, and a transition effect group are determined respectively. The pixel appearance group describes the basic texture effect of the dissolving effect, the color outlining group describes the three-dimensional effect and / or color light effect, and the transition effect group describes the target texture effect of the connecting dissolving effect. Finally, the pixel appearance group, color outlining group, and transition effect group are overlaid to obtain the material dissolving effect corresponding to the material. This method can significantly enrich the visual effect of material dissolving effects, and by replacing the material, the material dissolving effect can be applied to another material, thereby effectively reducing the difficulty of replicating material dissolving effects and thus effectively improving the efficiency of replicating material dissolving effects.
[0019] Other features and advantages of the invention will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention are realized and obtained in accordance with the structures particularly pointed out in the description, claims and drawings.
[0020] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0021] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0022] Figure 1 A flowchart illustrating a method for generating material dissolving effects according to an embodiment of the present invention;
[0023] Figure 2 A schematic diagram of a material provided for an embodiment of the present invention;
[0024] Figure 3 A schematic diagram of a solid layer provided in an embodiment of the present invention;
[0025] Figure 4 A schematic diagram of a target mosaic mask provided in an embodiment of the present invention;
[0026] Figure 5 This is a schematic diagram of a first synthetic group provided in an embodiment of the present invention;
[0027] Figure 6 This is a schematic diagram of a target second synthetic group provided in an embodiment of the present invention;
[0028] Figure 7 This is a schematic diagram of a target pixel occurrence group provided in an embodiment of the present invention;
[0029] Figure 8 A schematic diagram illustrating a stereoscopic effect provided in an embodiment of the present invention;
[0030] Figure 9 This is a schematic diagram of a color and light sensing effect provided in an embodiment of the present invention;
[0031] Figure 10 This is a schematic diagram of a transition effect group provided in an embodiment of the present invention;
[0032] Figure 11 A mosaic effect diagram provided for an embodiment of the present invention;
[0033] Figure 12 This is a schematic diagram of the structure of a device for generating material dissolution effects according to an embodiment of the present invention;
[0034] Figure 13 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0035] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0036] Currently, conventional methods for achieving disappearance effects typically involve erasing or cloaking, resulting in poor visual effects. Related technologies offer more visually appealing methods for achieving disappearance effects. However, due to the numerous layers in After Effects, with many nested layers within each layer and multiple keyframes within each layer, controlling the model's disappearance requires setting multiple keyframes, leading to high complexity and difficulty in applying the same disappearance effect to another effect, resulting in low efficiency.
[0037] Based on this, the present invention provides a visual effect that can significantly enrich the material dissolving effect, and effectively reduces the difficulty of replicating the material dissolving effect, thereby effectively improving the efficiency of replicating the material dissolving effect.
[0038] To facilitate understanding of this embodiment, a method for generating material dissolution effects disclosed in this invention will first be described in detail. (See [link to relevant documentation]). Figure 1 The diagram shows a method for generating a material dissolving effect, which mainly includes the following steps S102 to S110:
[0039] Step S102: Obtain the materials to be processed and merge the materials into a material group.
[0040] In one implementation, the material to be processed can be imported and packaged into a composite group, which is also the material group, to facilitate the subsequent replacement of new materials so that the dissolving effect can be applied to the new materials.
[0041] Step S104: Based on the pre-established initial dissolve effect mask and material group, determine the first composite group with edge dissolve effect.
[0042] The initial dissolving effect mask can be an initial mosaic mask, and the edge dissolving effect is also known as the mosaic block edge effect. In one implementation, the material group and the initial mosaic mask are masked to give the material shape a mosaic block edge effect, and then they are combined into a composite group, which is the first composite group.
[0043] Step S106: Perform a copy operation on the first composite group to obtain the second composite group, and perform a frame overlay operation on the first composite group and the second composite group to obtain the target composite group.
[0044] In one implementation, a second composite group is obtained by copying the first composite group, and then an edge tightening effect and a solid color effect are added to the second composite group to obtain a target second composite group. Then, frame overlay is performed on the first composite group and the target second composite group.
[0045] Step S108: Based on the target compositing group, determine the pixel appearance group, color outlining group, and transition effect group respectively. The pixel appearance group describes the basic texture effect of the dissolving effect, the color outlining group describes the three-dimensional effect and / or color lighting effect, and the transition effect group describes the target texture effect of the dissolving effect. The dissolving effect is also known as the mosaic effect.
[0046] In one implementation, the first composite group is outlined by the target second composite group to obtain a pixel appearance group with a basic texture effect of mosaic pixels; corresponding commands are added to the basic texture effect to enhance its three-dimensional effect and / or color light effect to obtain the desired color outline group; finally, the color outline group is demasked using the material group to obtain the target texture effect with connected mosaic pixels.
[0047] Step S110: Overlay the pixel appearance group, color outline group, and transition effect group to obtain the material dissolve effect corresponding to the material.
[0048] In one implementation, the above-mentioned basic texture effect, three-dimensional effect, color and light effect and target texture effect are superimposed to make the above-mentioned material disappear through mosaic effect.
[0049] The method for generating material dissolving effects provided in this invention can significantly enrich the visual effects of material dissolving effects. Moreover, by replacing the material, the material dissolving effect can be applied to another material, thereby effectively reducing the difficulty of replicating material dissolving effects and thus effectively improving the efficiency of replicating material dissolving effects.
[0050] To facilitate understanding of the method for generating the above-mentioned material dissolving effect, this embodiment of the invention provides a specific implementation method for generating the material dissolving effect.
[0051] For step S102 mentioned above, materials can be imported into After Effects software, such as... Figure 2 The image shows a schematic diagram of a material, which is then grouped together to obtain a material group.
[0052] Regarding the aforementioned step S104, this embodiment of the invention provides an implementation method for determining a first composite group with a dissolving edge effect based on a pre-established initial dissolving effect mask and material group, as shown in steps a to b below:
[0053] Step a: In response to the mask animation command, jagged edge command, and dissolve effect command for the pre-established initial dissolve effect mask, generate the target dissolve effect mask. The initial dissolve effect mask is the initial mosaic mask, and the target dissolve effect mask is the target mosaic mask.
[0054] In one implementation, a solid layer is first created, such as... Figure 3 The diagram shows a solid layer, named the initial mosaic mask. The effect of the mask is then created based on the initial mosaic mask, and a jagged edge effect and mosaic command are added to the initial mosaic mask to obtain the result shown below. Figure 4 The target mosaic mask shown, in which, Figure 4This is a schematic diagram of a target mosaic mask.
[0055] In one example, a mask animation can be created using keyframes with the pen tool, which will then demonstrate the effect of the mask appearing. Furthermore, the speed at which the mask appears can be controlled during the creation of the mask appearance effect.
[0056] In one example, a jagged edge effect can be added in the effects console of After Effects software.
[0057] In one example, you can use the Mosaic command in the Effects console of After Effects software. The Mosaic command is used to control the size of the mosaic effect.
[0058] Step b involves applying an alpha mask to the material group and the target dissolving effect mask to obtain the first composite group with an edge dissolving effect. The edge dissolving effect is also known as a mosaic-like edge effect.
[0059] In one implementation, an alpha mask can be applied to the target mosaic mask of the material group to obtain, for example... Figure 5 The first composite group shown has a mosaic-like edge effect, in which... Figure 5 This is a schematic diagram of a first synthetic group.
[0060] Regarding the aforementioned step S106, this embodiment of the invention provides an implementation method for performing a copy operation on the first composite group to obtain a second composite group, and performing a frame overlay operation on the first composite group and the second composite group, as shown in (1) to (3) below:
[0061] (1) Perform a copy operation on the first composite group to obtain a second composite group. The first composite group is also the initial pixel occurrence group.
[0062] In one implementation, the target mosaic mask and the material group are combined into a composite group, named the initial pixel appearance group, and the initial pixel appearance group is copied to obtain a second composite group.
[0063] (2) Respond to the edge tightening command and fill command for the second composite group to obtain the target second composite group; wherein, the edge tightening command is used to control the maximum and minimum indentation edges of the edge tightening effect, and the fill command is used to add a solid color effect to the second composite group.
[0064] In one implementation, an edge tightening command is added to the copied second composite group to control the maximum and minimum values of the indentation edge size for the edge tightening effect. Additionally, a fill command is added to the copied second composite group to give it a solid color effect, thus achieving the effect of the boundary between the two layers, such as... Figure 6 As shown, where, Figure 6This is a schematic diagram of a second composite group of targets.
[0065] (3) Perform frame overlay operation on the first composite group and the target second composite group.
[0066] In one implementation, the first composite group and the target second composite group can be frame-shifted by changing the timing of playback of the first composite group and the target second composite group.
[0067] Regarding the aforementioned step S108, this embodiment of the invention provides an implementation method for determining the pixel appearance group, color outline group, and transition effect group based on the target compositing group, including the following steps 1 to 3:
[0068] Step 1: Apply an outline mask to the second composite group after the frame overlay operation to obtain a pixel group with basic texture effects.
[0069] In one implementation, an Alpha contour mask is applied to the second group of targets after the frame overlay operation to obtain, as shown below. Figure 7 The target pixel group shown has a basic texture effect, in which... Figure 7 This is a schematic diagram of a target pixel occurrence group.
[0070] Step 2: Based on the first composite group and the pixel appearance group, determine the color outlining group that has a three-dimensional effect and / or a color light effect. See steps 2.1 to 2.3 below for details:
[0071] Step 2.1: Combine the first composite group with the pixel appearance into a third composite group.
[0072] In one implementation, the first composite group and the second composite group after the outline mask are combined into a single composite group, and this composite group is named the initial color outline group, which is also the third composite group.
[0073] Step 2.2: Add CC glass and displacement map to the third composite group to give it a three-dimensional effect; and add colored light to the third composite group to give it a color and light effect.
[0074] In one implementation, CC glass and displacement maps can be added to the third composite group in the Effects console of After Effects software to control texture effects and give the third composite group a certain sense of three-dimensionality, such as... Figure 8 The diagram illustrates a stereoscopic effect. In one implementation, colored light can be added to the third composite group in the Effects console of After Effects software. Specifically, the Glow command is added to give the third composite group a certain colored light effect, such as... Figure 9The diagram shows a color light effect. Furthermore, the intensity of the color light can be controlled to create a rich variety of color light effects.
[0075] Step 2.3: Use the third composite group, which has a three-dimensional effect and a color light effect, as the color outlining group.
[0076] Step 3: Based on the material group and the color outline group, determine the transition effect group with the target texture effect.
[0077] In practical implementation, an alpha mask can be applied to both the material group and the color outline group to create a seamless effect group with the target texture. In real-world applications, by applying an alpha mask to both the material group and the color outline group, the desired result can be achieved. Figure 10 The image shows a transition effect group with a mosaic-like transition effect, in which... Figure 10 This is a schematic diagram of a transitional special effects group.
[0078] Regarding the aforementioned step S110, this embodiment of the invention provides an implementation method that superimposes the pixel appearance group, the color outline group, and the transition effect group to obtain the material dissolving effect corresponding to the material. The color outline group, the transition effect group, and the pixel appearance group can be superimposed to obtain the effect shown above. Figure 11 The image shown shows a material dissolving effect, which is a mosaic effect. Figure 11 This is a schematic diagram of a mosaic effect, which is used to control the dissolution of materials.
[0079] In summary, the method for generating material dissolving effects provided in this embodiment of the invention utilizes After Effects to create a pixelated, futuristic dissolving template effect similar to a 3D material sphere. This solves the problem of simply making things appear and disappear, adding interest and visual appeal. It can also perfectly replicate and apply effects, or be improved by adding new plugin commands to create new effects. Specifically, the materials are first grouped into a composite for easy replacement later. Then, a mosaic mask is created using a solid layer. The material and the mosaic mask are then masked to give the material a mosaic block edge effect. This is then grouped into another composite and duplicated. The two are staggered, and the duplicate is used to outline the other, resulting in a basic texture effect of mosaic pixels. Commands are then added to this effect to add rich variations in color and light, creating a textured effect. The material layer is then demasked to give the material a mosaic pixel-processed texture effect. Finally, these effects are superimposed to obtain the final effect. The pixelated tech-style template provided in this embodiment of the invention adds fun and makes the special effects look more interesting and outstanding. Moreover, the effect can be applied to any place simply by replacing the material, so it is easy to replicate and greatly reduces the difficulty and time-consuming process of restoring the effect.
[0080] This invention enhances the visual appeal of the appearance and disappearance effects of materials. Furthermore, the resulting template allows for the recreation of the original pixelated, futuristic dissolving effect simply by replacing the underlying material and altering other materials. This significantly reduces time and effort in replicating the effect, improving efficiency and simplifying production. Moreover, it offers strong controllability; the range, texture size, light intensity, and appearance / disappearance speed are all controllable. New commands can also be added to create different effects.
[0081] Based on the foregoing embodiments, this invention provides a device for generating material dissolving effects, see [link to previous embodiment]. Figure 12 The diagram shows a structural schematic of a device for generating material dissolving effects. The device mainly includes the following parts:
[0082] The texture acquisition module 1202 is used to acquire the materials to be processed and merge the materials into a material group;
[0083] The compositing group determination module 1204 is used to determine the first compositing group with edge dissolving effect based on the pre-established initial dissolving effect mask and material group;
[0084] The frame misalignment module 1206 is used to perform a copy operation on the first composite group to obtain a second composite group, and to perform a frame misalignment overlay operation on the first composite group and the second composite group to obtain a target composite group.
[0085] The effect determination module 1208 is used to determine the pixel appearance group, color outlining group and transition effect group based on the target compositing group; wherein, the pixel appearance group is used to describe the basic texture effect of the dissolving effect, the color outlining group is used to describe the three-dimensional effect and / or color light effect, and the transition effect group describes the target texture effect of the dissolving effect.
[0086] The dissolve effect generation module 1210 is used to overlay the pixel appearance group, color outline group and connection effect group to obtain the material dissolve effect corresponding to the material.
[0087] The material dissolving effect generation device provided in this embodiment of the invention can significantly enrich the visual effect of material dissolving effects. Moreover, by replacing the material, the material dissolving effect can be applied to another material, thereby effectively reducing the difficulty of replicating material dissolving effects and thus effectively improving the efficiency of replicating material dissolving effects.
[0088] In one embodiment, the synthesis group determination module 1204 is further configured to:
[0089] In response to mask animation commands, jagged edge commands, and dissolve effect commands for a pre-built initial dissolve effect mask, generate a target dissolve effect mask;
[0090] Apply an alpha mask to the material group and the target dissolve effect mask to obtain the first composite group with edge dissolve effect.
[0091] In one implementation, the frame error module 1206 is further configured to:
[0092] Responding to the edge tightening command and fill command for the second composite group, the target second composite group is obtained; wherein, the edge tightening command is used to control the maximum and minimum indentation edges of the edge tightening effect, and the fill command is used to add a solid color effect to the second composite group;
[0093] Perform a frame overlay operation between the first composite group and the target second composite group.
[0094] In one implementation, the effect determination module 1208 is further configured to:
[0095] An outline mask is applied to the second composite group after the frame overlay operation to obtain a pixel appearance group with basic texture effects;
[0096] Based on the first composite group and the pixel appearance group, determine the color outline group that has a three-dimensional effect and / or color light effect;
[0097] Based on the material group and the color outline group, determine the transition effect group with the target texture effect.
[0098] In one implementation, the effect determination module 1208 is further configured to:
[0099] The first composite group is combined with the pixel appearance to form the third composite group;
[0100] CC glass and displacement map are added to the third composite group to give it a three-dimensional effect; and colored light is added to the third composite group to give it a color and light effect.
[0101] The third composite group, which has a three-dimensional effect and a color light effect, will be used as the color outlining group.
[0102] In one implementation, the effect determination module 1208 is further configured to:
[0103] Apply an alpha mask to the material group and the color outline group to obtain a seamless effect group with the target texture.
[0104] In one implementation, the material dissolving effect is a mosaic effect.
[0105] The device provided in this embodiment of the invention has the same implementation principle and technical effect as the aforementioned method embodiment. For the sake of brevity, any parts not mentioned in the device embodiment can be referred to the corresponding content in the aforementioned method embodiment.
[0106] This invention provides an electronic device, specifically, the electronic device includes a processor and a storage device; the storage device stores a computer program, which is executed by the processor when it runs:
[0107] A method for generating material dissolving effects, comprising:
[0108] Obtain the materials to be processed and merge them into a material group;
[0109] Based on the pre-established initial dissolving effect mask and the material group, a first composite group with edge dissolving effect is determined;
[0110] A copy operation is performed on the first composite group to obtain a second composite group, and a frame overlay operation is performed on the first composite group and the second composite group to obtain a target composite group;
[0111] Based on the target compositing group, a pixel appearance group, a color outlining group, and a transition effect group are determined respectively; wherein, the pixel appearance group is used to describe the basic texture effect of the dissolving effect, the color outlining group is used to describe the three-dimensional effect and / or color light effect, and the transition effect group is used to describe the target texture effect of the dissolving effect.
[0112] The pixel appearance group, the color outline group, and the transition effect group are superimposed to obtain the material dissolving effect corresponding to the material.
[0113] In one implementation, based on a pre-established initial dissolving effect mask and the material group, a first composite group with a dissolving edge effect is determined, including:
[0114] In response to mask animation commands, jagged edge commands, and dissolve effect commands for a pre-built initial dissolve effect mask, generate a target dissolve effect mask;
[0115] An alpha mask is applied to the material group and the target dissolving effect mask to obtain a first composite group with an edge dissolving effect.
[0116] In one implementation, performing a frame overlay operation on the first composite group and the second composite group includes:
[0117] Responding to the edge tightening command and fill command for the second composite group, the target second composite group is obtained; wherein, the edge tightening command is used to control the maximum and minimum indentation edges of the edge tightening effect, and the fill command is used to add a solid color effect to the second composite group;
[0118] Perform a frame overlay operation between the first composite group and the target second composite group.
[0119] In one implementation, based on the second composite group after the frame overlay operation, a pixel appearance group, a color outlining group, and a transition effect group are determined, including:
[0120] An outline mask is applied to the second composite group after the frame overlay operation to obtain a pixel appearance group with the basic texture effect.
[0121] Based on the first synthesis group and the pixel appearance group, a color outline group with the stereoscopic effect and / or the color light effect is determined.
[0122] Based on the material group and the color outline group, a transition effect group with the target texture effect is determined.
[0123] In one implementation, based on the first composite group and the pixel appearance group, determining a color outline group having the stereoscopic effect and / or the color light effect includes:
[0124] The first composite group is combined with the pixel appearance to form a third composite group;
[0125] CC glass and displacement map are added to the third composite group to give the third composite group the stereoscopic effect; and colored light is added to the third composite group to give the third composite group the color light effect.
[0126] The third composite group, which possesses the aforementioned three-dimensional effect and color light effect, is used as the color outlining group.
[0127] In one implementation, based on the material group and the color outlining group, a transition effect group with the target texture effect is determined, including:
[0128] An alpha mask is applied to the material group and the color outline group to obtain a transition effect group with the target texture effect.
[0129] In one embodiment, the material dissolving effect is a mosaic effect.
[0130] The electronic device provided in this invention can significantly enrich the visual effects of material dissolving effects. Moreover, by replacing the material, the material dissolving effect can be applied to another material, thereby effectively reducing the difficulty of replicating material dissolving effects and thus effectively improving the efficiency of replicating material dissolving effects.
[0131] Figure 13 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. The electronic device 100 includes: a processor 130, a memory 131, a bus 132 and a communication interface 133. The processor 130, the communication interface 133 and the memory 131 are connected through the bus 132. The processor 130 is used to execute executable modules, such as computer programs, stored in the memory 131.
[0132] The memory 131 may include high-speed random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface 133 (which can be wired or wireless), such as the Internet, wide area network, local area network, metropolitan area network, etc.
[0133] Bus 132 can be an ISA bus, PCI bus, or EISA bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 13 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.
[0134] The memory 131 is used to store programs. After receiving an execution instruction, the processor 130 executes the program. The method executed by the device for defining the flow process disclosed in any of the foregoing embodiments of the present invention can be applied to the processor 130 or implemented by the processor 130.
[0135] Processor 130 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of processor 130 or by instructions in software form. Processor 130 may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this invention. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this invention can be directly manifested as execution by a hardware decoding processor, or execution by a combination of hardware and software modules in the decoding processor. The software module can reside in a mature storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory 131, and processor 130 reads the information from memory 131 and, in conjunction with its hardware, completes the steps of the above method.
[0136] The computer program product of the readable storage medium provided in the embodiments of the present invention includes a computer-readable storage medium storing program code, wherein the program code includes instructions that can be executed:
[0137] A method for generating material dissolving effects, comprising:
[0138] Obtain the materials to be processed and merge them into a material group;
[0139] Based on the pre-established initial dissolving effect mask and the material group, a first composite group with edge dissolving effect is determined;
[0140] A copy operation is performed on the first composite group to obtain a second composite group, and a frame overlay operation is performed on the first composite group and the second composite group to obtain a target composite group;
[0141] Based on the target compositing group, a pixel appearance group, a color outlining group, and a transition effect group are determined respectively; wherein, the pixel appearance group is used to describe the basic texture effect of the dissolving effect, the color outlining group is used to describe the three-dimensional effect and / or color light effect, and the transition effect group is used to describe the target texture effect of the dissolving effect.
[0142] The pixel appearance group, the color outline group, and the transition effect group are superimposed to obtain the material dissolving effect corresponding to the material.
[0143] In one implementation, based on a pre-established initial dissolving effect mask and the material group, a first composite group with a dissolving edge effect is determined, including:
[0144] In response to mask animation commands, jagged edge commands, and dissolve effect commands for a pre-built initial dissolve effect mask, generate a target dissolve effect mask;
[0145] An alpha mask is applied to the material group and the target dissolving effect mask to obtain a first composite group with an edge dissolving effect.
[0146] In one implementation, performing a frame overlay operation on the first composite group and the second composite group includes:
[0147] Responding to the edge tightening command and fill command for the second composite group, the target second composite group is obtained; wherein, the edge tightening command is used to control the maximum and minimum indentation edges of the edge tightening effect, and the fill command is used to add a solid color effect to the second composite group;
[0148] Perform a frame overlay operation between the first composite group and the target second composite group.
[0149] In one implementation, based on the second composite group after the frame overlay operation, a pixel appearance group, a color outlining group, and a transition effect group are determined, including:
[0150] An outline mask is applied to the second composite group after the frame overlay operation to obtain a pixel appearance group with the basic texture effect.
[0151] Based on the first synthesis group and the pixel appearance group, a color outline group with the stereoscopic effect and / or the color light effect is determined.
[0152] Based on the material group and the color outline group, a transition effect group with the target texture effect is determined.
[0153] In one implementation, based on the first composite group and the pixel appearance group, determining a color outline group having the stereoscopic effect and / or the color light effect includes:
[0154] The first composite group is combined with the pixel appearance to form a third composite group;
[0155] CC glass and displacement map are added to the third composite group to give the third composite group the stereoscopic effect; and colored light is added to the third composite group to give the third composite group the color light effect.
[0156] The third composite group, which possesses the aforementioned three-dimensional effect and color light effect, is used as the color outlining group.
[0157] In one implementation, based on the material group and the color outlining group, a transition effect group with the target texture effect is determined, including:
[0158] An alpha mask is applied to the material group and the color outline group to obtain a transition effect group with the target texture effect.
[0159] In one embodiment, the material dissolving effect is a mosaic effect.
[0160] The readable storage medium provided in this embodiment of the invention can significantly enrich the visual effects of material dissolving effects. Moreover, by replacing the material, the dissolving effect of one material can be applied to another material, thereby effectively reducing the difficulty of replicating material dissolving effects and thus effectively improving the efficiency of replicating material dissolving effects.
[0161] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0162] Finally, it should be noted that the above-described embodiments are merely specific implementations of the present invention, used to illustrate the technical solutions of the present invention, and not to limit it. The scope of protection of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present invention, or make equivalent substitutions for some of the technical features; and these modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A method for generating material dissolving effects, characterized in that, include: Obtain the materials to be processed and merge them into a material group; Based on the pre-established initial dissolving effect mask and the material group, a first composite group with edge dissolving effect is determined; A copy operation is performed on the first composite group to obtain a second composite group, and a frame overlay operation is performed on the first composite group and the second composite group to obtain a target composite group; Based on the target compositing group, a pixel appearance group, a color outlining group, and a transition effect group are determined respectively; wherein, the pixel appearance group is used to describe the basic texture effect of the dissolving effect, the color outlining group is used to describe the three-dimensional effect and / or color light effect, and the transition effect group is used to describe the target texture effect of the dissolving effect. The pixel appearance group, the color outline group, and the transition effect group are superimposed to obtain the material dissolving effect corresponding to the material.
2. The method for generating material dissolving effects according to claim 1, characterized in that, Based on the pre-established initial dissolving effect mask and the aforementioned material group, a first composite group with a dissolving edge effect is determined, including: In response to mask animation commands, jagged edge commands, and dissolve effect commands for a pre-built initial dissolve effect mask, generate a target dissolve effect mask; An alpha mask is applied to the material group and the target dissolving effect mask to obtain a first composite group with an edge dissolving effect.
3. The method for generating material dissolving effects according to claim 1, characterized in that, Perform frame overlay operation on the first composite group and the second composite group, including: Responding to the edge tightening command and fill command for the second composite group, the target second composite group is obtained; wherein, the edge tightening command is used to control the maximum and minimum indentation edges of the edge tightening effect, and the fill command is used to add a solid color effect to the second composite group; Perform a frame overlay operation between the first composite group and the target second composite group.
4. The method for generating material dissolving effects according to claim 1, characterized in that, Based on the target compositing group, pixel appearance group, color outlining group, and transition effect group are determined respectively, including: An outline mask is applied to the second composite group after the frame overlay operation to obtain a pixel appearance group with the basic texture effect. Based on the first synthesis group and the pixel appearance group, a color outline group with the stereoscopic effect and / or the color light effect is determined. Based on the material group and the color outline group, a transition effect group with the target texture effect is determined.
5. The method for generating material dissolving effects according to claim 4, characterized in that, Based on the first synthesis group and the pixel appearance group, a color outline group with the stereoscopic effect and / or the color light effect is determined, including: The first composite group is combined with the pixel appearance to form a third composite group; CC glass and displacement map are added to the third composite group to give the third composite group the stereoscopic effect; and colored light is added to the third composite group to give the third composite group the color light effect. The third composite group, which possesses the aforementioned three-dimensional effect and color light effect, is used as the color outlining group.
6. The method for generating material dissolving effects according to claim 4, characterized in that, Based on the material group and the color outlining group, a transition effect group with the target texture effect is determined, including: An alpha mask is applied to the material group and the color outline group to obtain a transition effect group with the target texture effect.
7. The method for generating material dissolving effects according to any one of claims 1-6, characterized in that, The material dissolving effect is a mosaic effect.
8. A device for generating material dissolving effects, characterized in that, include: The texture acquisition module is used to acquire the materials to be processed and merge the materials into a material group; The compositing group determination module is used to determine a first compositing group with edge dissolving effect based on a pre-established initial dissolving effect mask and the material group; The frame misalignment module is used to perform a copy operation on the first composite group to obtain a second composite group, and to perform a frame misalignment overlay operation on the first composite group and the second composite group to obtain a target composite group; The effect determination module is used to determine the pixel appearance group, color outlining group, and transition effect group based on the target compositing group; wherein, the pixel appearance group is used to describe the basic texture effect of the dissolving effect, the color outlining group is used to describe the three-dimensional effect and / or color light effect, and the transition effect group is used to describe the target texture effect of the dissolving effect. The dissolving effect generation module is used to overlay the pixel appearance group, the color outline group, and the connection effect group to obtain the material dissolving effect corresponding to the material.
9. An electronic device, characterized in that, The method includes a processor and a memory, the memory storing computer-executable instructions executable by the processor, the processor executing the computer-executable instructions to implement the method of any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions that, when invoked and executed by a processor, cause the processor to perform the method according to any one of claims 1 to 7.