CN113778427A - Special effect manufacturing method and device - Google Patents

Special effect manufacturing method and device Download PDF

Info

Publication number
CN113778427A
CN113778427A CN202010516086.9A CN202010516086A CN113778427A CN 113778427 A CN113778427 A CN 113778427A CN 202010516086 A CN202010516086 A CN 202010516086A CN 113778427 A CN113778427 A CN 113778427A
Authority
CN
China
Prior art keywords
special effect
effect elements
tree data
data structure
elements
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010516086.9A
Other languages
Chinese (zh)
Inventor
刘高
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202010516086.9A priority Critical patent/CN113778427A/en
Publication of CN113778427A publication Critical patent/CN113778427A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The disclosure discloses a special effect manufacturing method, a special effect manufacturing device, electronic equipment and a computer readable storage medium. The method comprises the following steps: generating a tree data structure based on special effect elements configured according to the hierarchical relationship in the special effect making interface; the nodes corresponding to the special effect elements in the tree data structure form a tree structure according to the hierarchical relationship, wherein the same special effect elements have the same identification; and correspondingly storing the special effect data of the special effect elements and the identifications of the special effect elements in a database. According to the embodiment of the disclosure, the special effect data of the special effect element and the identifier of the special effect element are correspondingly stored in the database, so that not only can the local storage space be saved, but also when the node is copied or moved, the corresponding special effect data does not need to be copied or moved, and the expansion is convenient.

Description

Special effect manufacturing method and device
Technical Field
The present disclosure relates to the field of image special effect processing technologies, and in particular, to a special effect manufacturing method, an apparatus, and a computer-readable storage medium.
Background
Along with the development of intelligent terminal technology, intelligent terminal's function is also more and more diversified. For example, users can use a camera in the terminal to take images (e.g., photos or videos), which has become a new mode of entertainment for people. However, a simple photographed image has not been able to satisfy the user's demand. Therefore, how to make special effects on the shot images to obtain more interesting images becomes a focus of attention.
In general, a user can configure the added special effect elements in a hierarchical tree relationship in the special effect making interface. Based on this, in the prior art, the special effect data corresponding to the special effect elements are stored according to the corresponding tree data structure, that is, the special effect data of the special effect elements are stored in the nodes corresponding to the special effect elements in the tree data structure, but on one hand, when a user adds more special effect elements or adds a combination of special effect elements, some special effect elements are often repeated, and the nodes corresponding to the repeated special effect elements on the tree data structure store repeated special effect data, so that the storage occupies more storage space; on the other hand, when the user copies or moves the special effect elements in the hierarchical relationship of the tree, it is necessary to copy or move the special effect data corresponding to the special effect elements to the corresponding nodes in the tree data structure, which is obviously complicated, and it is inconvenient to expand because the special effect elements are added in the tree data structure and the corresponding special effect data are required to be added to the corresponding nodes.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
The technical problem to be solved by the present disclosure is to provide a special effect making method, so as to at least partially solve the technical problems that the storage of the prior art including some repeated special effect data occupies a large storage space, and when a node is copied or moved, the corresponding special effect data needs to be copied or moved, which is inconvenient to expand. In addition, a special effect making device, a special effect making hardware device, a computer readable storage medium and a special effect making terminal are also provided.
In order to achieve the above object, according to one aspect of the present disclosure, the following technical solutions are provided:
a special effect making method comprises the following steps:
generating a tree data structure based on special effect elements configured according to the hierarchical relationship in the special effect making interface; the nodes corresponding to the special effect elements in the tree data structure form a tree structure according to the hierarchical relationship, wherein the same special effect elements have the same identification;
and correspondingly storing the special effect data of the special effect elements and the identifications of the special effect elements in a database.
In order to achieve the above object, according to one aspect of the present disclosure, the following technical solutions are provided:
a special effects making apparatus comprising:
the tree data structure generating module is used for generating a tree data structure based on special effect elements configured according to the hierarchical relationship in the special effect making interface; the nodes corresponding to the special effect elements in the tree data structure form a tree structure according to the hierarchical relationship, wherein the same special effect elements have the same identification;
and the special effect data storage module is used for correspondingly storing the special effect data of the special effect elements and the identifications of the special effect elements into a database.
In order to achieve the above object, according to one aspect of the present disclosure, the following technical solutions are provided:
an electronic device, comprising:
a memory for storing non-transitory computer readable instructions; and
a processor, configured to execute the computer readable instructions, so that the processor, when executing the computer readable instructions, implements any one of the special effects making methods described above.
In order to achieve the above object, according to one aspect of the present disclosure, the following technical solutions are provided:
a computer readable storage medium storing non-transitory computer readable instructions which, when executed by a computer, cause the computer to perform any of the special effects making methods described above.
In order to achieve the above object, according to still another aspect of the present disclosure, the following technical solutions are also provided:
a special effect manufacturing terminal comprises any one of the special effect manufacturing devices.
The tree data structure is generated based on the special effect elements configured according to the hierarchical relationship in the special effect making interface; the nodes corresponding to the special effect elements in the tree data structure are stored with the identifiers of the special effect elements, the nodes corresponding to the special effect elements in the tree data structure form a tree structure according to the hierarchical relationship, the same special effect elements have the same identifiers, and the special effect data of the special effect elements and the identifiers of the special effect elements are correspondingly stored in a database, so that not only can the local storage space be saved, but also the corresponding special effect data do not need to be copied or moved when the nodes are copied or moved, and the expansion is convenient.
The foregoing is a summary of the present disclosure, and for the purposes of promoting a clear understanding of the technical means of the present disclosure, the present disclosure may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
FIG. 1 is a schematic flow diagram of a method for producing special effects according to one embodiment of the present disclosure;
FIG. 2 is a schematic flow diagram of a special effects production apparatus according to one embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, or in parallel. Furthermore, method embodiments may include additional steps or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, 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". Relevant definitions for other terms will be given in the following description.
Example one
In order to solve the technical problems that a plurality of pieces of repeated special effect data are included in the prior art, so that a large amount of storage space is occupied when the pieces of repeated special effect data are stored, and the corresponding special effect data need to be copied or moved when a node is copied or moved, and the extension is inconvenient, the embodiment of the disclosure provides a special effect manufacturing method. As shown in fig. 1, the special effect making method mainly includes the following steps S11 to S12.
Step S11: generating a tree data structure based on special effect elements configured according to the hierarchical relationship in the special effect making interface; the nodes corresponding to the special effect elements in the tree data structure are stored with the identifiers of the special effect elements, and the nodes corresponding to the special effect elements in the tree data structure form a tree structure according to the hierarchical relationship, wherein the same special effect elements have the same identifiers.
The special effect making interface comprises a special effect adding button, and a user can add special effect elements and special effect materials by clicking the special effect adding button, wherein the special effect elements comprise a sticker special effect, a makeup special effect, a filter special effect and the like. When a plurality of special effect elements are added by a user or special effect elements are combined, a tree data structure can be generated according to the hierarchical relationship between the special effect elements and special effect materials for facilitating subsequent operation.
The tree data structure is composed of at least one node, which is a special effect node that may be named the name of an added special effect element or the name of a combination of special effect elements, such as makeup, sticker, filter, or special effects group 1. Each node is composed of zero or more child nodes, the child nodes are identifications of special effect elements related to the special effect elements, and the identifications of the special effect elements can be composed of characters, numbers, underlines and combinations thereof and are used for identifying added special effect data. The special effect data may be special effect materials. The identification of multiple special effect elements may correspond to the same special effect data.
Step S12: and correspondingly storing the special effect data of the special effect elements and the identifications of the special effect elements in a database.
Specifically, when the identifiers of a plurality of special effect elements correspond to the same special effect data, only one piece of special effect data is stored in the database, and the corresponding relationship between the special effect data and the identifiers of the plurality of special effect elements is established. The database may be a database in the server or a database in the terminal.
Wherein all special effect data are stored under the same directory.
The tree data structure is generated based on special effect elements configured according to the hierarchical relationship in a special effect making interface; the nodes corresponding to the special effect elements in the tree data structure are stored with identifications of the special effect elements, the nodes corresponding to the special effect elements in the tree data structure form a tree structure according to the hierarchical relationship, the same special effect elements have the same identifications, the special effect data of the special effect elements and the identifications of the special effect elements are correspondingly stored in a database, so that not only can local storage space be saved, but also when the nodes are copied or moved, the corresponding special effect data do not need to be copied or moved, when the special effect elements are added in the tree data structure, the corresponding special effect elements only need to be added to the corresponding nodes, the special effect data do not need to be added, and the expansion is more convenient.
In an optional embodiment, the method further comprises:
step S13: and generating change information of the nodes in the tree data structure in response to the change operation of the special effect elements in the special effect making interface.
The change operation may be deleting a special effect element, adding a special effect element, copying a special effect element, moving a special effect element, or renaming a special effect element. Correspondingly, the change information may be deleting a node corresponding to the special effect element, adding a node corresponding to the special effect element, copying a node corresponding to the special effect element, moving a node corresponding to the special effect element, or renaming a node corresponding to the special effect element.
Step S14: and changing the identification of the special effect element corresponding to the node according to the change information.
For example, when the change information is a delete node, the identifier of the special effect element corresponding to the corresponding node is deleted. And when the change information is the addition of the node, adding the corresponding node and adding the identifier of the corresponding special effect element. And when the change information is the copy node, copying the identifier of the special effect element corresponding to the node, and adding the identifier of the special effect element corresponding to the copied node under another node. And when the change information is the mobile node, moving the identifier of the special effect element corresponding to the node to another node. And when the change information is the renamed node, renaming the mark of the special effect element corresponding to the node. Moreover, because the special effect data is stored in the database, when the node is changed, only the identification of the special effect element corresponding to the node needs to be changed, and the special effect data in the database is not influenced.
In an optional embodiment, the method further comprises:
step S15: and responding to a special effect export operation to acquire the tree data structure.
After the user makes the special effect, the special effect data can be exported so as to be transplanted to other terminal equipment or application software for playing. At export, a copy of the tree data structure may be replicated.
Step S16: and merging and de-duplicating the identifiers of the special effect elements in the tree data structure to obtain tree data.
Specifically, the copied tree data structure may be optimized and analyzed, that is, the tree data structure may be simplified, for example, the same or similar special effect data may be merged to obtain the simplified tree data, so that the storage space may be saved.
Step S17: and packaging the tree data and the special effect data in the database into a special effect data packet.
In addition, the copied tree data structures can be packed together into a special effect data packet.
In an optional embodiment, step S16 specifically includes: determining a display order of special effect elements involved in the tree data structure; and combining the identifications of the special effect elements of the special effect data which are continuous in display sequence and of the same type to generate tree data.
And rendering effects corresponding to the special effect elements of the same type of special effect data under the condition of non-combination are the same as the rendering effects corresponding to the special effect elements under the condition of combination. The same type of special effect data comprises similar or same type of special effect data, namely after the special effect elements of the similar or same type of special effect data are combined, normal rendering is not influenced.
In an alternative embodiment, all special effect data may be stored under the same directory for fast lookup. Specifically, all special effect data may be stored in the same directory locally, or remotely stored in the same directory in the cloud or in another terminal device.
It will be appreciated by those skilled in the art that obvious modifications (for example, a superposition of the modes listed) or equivalent substitutions may be made on the basis of the various embodiments described above.
Although the steps in the embodiment of the special effect manufacturing method are described in the above sequence, it should be clear to those skilled in the art that the steps in the embodiment of the present disclosure are not necessarily performed in the above sequence, and may also be performed in other sequences such as reverse sequence, parallel sequence, cross sequence, and the like, and further, on the basis of the above steps, those skilled in the art may add other steps, and these obvious modifications or equivalents should also be included in the protection scope of the present disclosure, and are not described herein again.
For convenience of description, only the relevant parts of the embodiments of the present disclosure are shown, and details of the specific techniques are not disclosed, please refer to the embodiments of the method of the present disclosure.
Example two
In order to solve the technical problems that a plurality of pieces of repeated special effect data are included in the prior art, so that a large amount of storage space is occupied when the pieces of repeated special effect data are stored, and the corresponding special effect data need to be copied or moved when a node is copied or moved, so that expansion is inconvenient, an embodiment of the present disclosure provides a special effect making device. The apparatus may perform the steps in the embodiment of the special effect manufacturing method described in the first embodiment. As shown in fig. 2, the apparatus mainly includes: a tree data structure generating module 21 and a special effect data storage module 22; wherein the content of the first and second substances,
the tree data structure generating module 21 is configured to generate a tree data structure based on the special effect elements configured according to the hierarchical relationship in the special effect making interface; the nodes corresponding to the special effect elements in the tree data structure form a tree structure according to the hierarchical relationship, wherein the same special effect elements have the same identification;
the special effect data storage module 22 is configured to store the special effect data of the special effect element in the database in correspondence with the identifier of the special effect element.
Further, the apparatus further comprises: a data change module 23; wherein the content of the first and second substances,
the data change module 23 is configured to generate change information of a node in the tree data structure in response to a change operation of a special effect element in the special effect creation interface; and changing the identification of the special effect element corresponding to the node according to the change information.
Further, the apparatus further comprises: a special effect export module 24, a tree data generation module 25 and a packing module 26; wherein the content of the first and second substances,
the special effect derivation module 24 is configured to respond to a special effect derivation operation to obtain the tree data structure;
the tree data generating module 25 is configured to merge and deduplicate the identifiers of the special effect elements in the tree data structure to obtain tree data;
the packing module 26 is configured to pack the tree data and the special effect data in the database into a special effect data packet.
Further, the tree data generating module 25 is specifically configured to: determining a display order of special effect elements involved in the tree data structure; and combining the identifications of the special effect elements of the special effect data which are continuous in display sequence and of the same type to generate tree data.
Further, the rendering effect corresponding to the special effect element of the same kind of special effect data under the condition of non-combination is the same as the rendering effect corresponding to the special effect element under the condition of combination.
Further, all the special effect data are stored in the same directory.
For detailed descriptions of the working principle, the technical effect of implementation, and the like of the embodiment of the special effect making apparatus, reference may be made to the description related to the embodiment of the special effect making method, and further description is omitted here.
EXAMPLE III
Referring now to FIG. 3, a block diagram of an electronic device 300 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 3, the electronic device 300 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 301 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)302 or a program loaded from a storage means 308 into a Random Access Memory (RAM) 303. In the RAM 303, various programs and data necessary for the operation of the electronic apparatus 300 are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
Generally, the following devices may be connected to the I/O interface 305: input devices 306 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 307 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage devices 308 including, for example, magnetic tape, hard disk, etc.; and a communication device 309. The communication means 309 may allow the electronic device 300 to communicate wirelessly or by wire with other devices to exchange data. While fig. 3 illustrates an electronic device 300 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present 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 method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 309, or installed from the storage means 308, or installed from the ROM 302. The computer program, when executed by the processing device 301, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium of the present disclosure can be a computer readable signal medium or a computer readable storage medium or any superposition of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable superposition of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable superposition of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable superposition of the above.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: generating a tree data structure based on special effect elements configured according to the hierarchical relationship in the special effect making interface; the nodes corresponding to the special effect elements in the tree data structure form a tree structure according to the hierarchical relationship, wherein the same special effect elements have the same identification; and correspondingly storing the special effect data of the special effect elements and the identifications of the special effect elements in a database.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable superposition of the foregoing.
According to one or more embodiments of the present disclosure, there is provided a special effect manufacturing method including:
generating a tree data structure based on special effect elements configured according to the hierarchical relationship in the special effect making interface; the nodes corresponding to the special effect elements in the tree data structure form a tree structure according to the hierarchical relationship, wherein the same special effect elements have the same identification;
and correspondingly storing the special effect data of the special effect elements and the identifications of the special effect elements in a database.
Further, the method further comprises:
responding to the change operation of the special effect elements in the special effect making interface, and generating change information of the nodes in the tree data structure;
and changing the identification of the special effect element corresponding to the node according to the change information.
Further, the method further comprises:
responding to a special effect export operation, and acquiring the tree data structure;
merging and de-duplicating the identifiers of the special effect elements in the tree data structure to obtain tree data;
and packaging the tree data and the special effect data in the database into a special effect data packet.
Further, the merging and deduplication the identifiers of the special effect elements in the tree data structure to obtain tree data includes:
determining a display order of special effect elements involved in the tree data structure;
and combining the identifications of the special effect elements of the similar special effect data with continuous display sequence to generate tree data.
Further, the rendering effect corresponding to the special effect element of the same kind of special effect data under the condition of non-combination is the same as the rendering effect corresponding to the special effect element under the condition of combination.
Further, all the special effect data are stored in the same directory.
According to one or more embodiments of the present disclosure, there is provided a special effect making apparatus including:
the tree data structure generating module is used for generating a tree data structure based on special effect elements configured according to the hierarchical relationship in the special effect making interface; the nodes corresponding to the special effect elements in the tree data structure form a tree structure according to the hierarchical relationship, wherein the same special effect elements have the same identification;
and the special effect data storage module is used for correspondingly storing the special effect data of the special effect elements and the identifications of the special effect elements into a database.
Further, the apparatus further comprises:
the data change module is used for responding to change operation of special effect elements in the special effect making interface and generating change information of nodes in the tree data structure; and changing the identification of the special effect element corresponding to the node according to the change information.
Further, the apparatus further comprises:
a special effect derivation module, configured to obtain the tree data structure in response to a special effect derivation operation;
the tree data generation module is used for merging and de-duplicating the identifiers of the special effect elements in the tree data structure to obtain tree data;
and the packing module is used for packing the tree data and the special effect data in the database into a special effect data packet.
Further, the tree data generating module is specifically configured to: determining a display order of special effect elements involved in the tree data structure; and combining the identifications of the special effect elements of the similar special effect data with continuous display sequence to generate tree data.
Further, the rendering effect corresponding to the special effect element of the same kind of special effect data under the condition of non-combination is the same as the rendering effect corresponding to the special effect element under the condition of combination.
Further, all the special effect data are stored in the same directory.
According to one or more embodiments of the present disclosure, there is provided an electronic device including:
a memory for storing non-transitory computer readable instructions; and
and the processor is used for executing the computer readable instructions, so that the processor can realize the special effect making method when executing.
According to one or more embodiments of the present disclosure, there is provided a computer-readable storage medium storing non-transitory computer-readable instructions which, when executed by a computer, cause the computer to perform the above-described special effects making method.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular arrangement of features above described which are stacked together, and that other arrangements in which features of the above described type or their equivalents are stacked together as desired without departing from the spirit of the disclosure are also encompassed. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (9)

1. A special effect manufacturing method is characterized by comprising the following steps:
generating a tree data structure based on special effect elements configured according to the hierarchical relationship in the special effect making interface; the nodes corresponding to the special effect elements in the tree data structure form a tree structure according to the hierarchical relationship, wherein the same special effect elements have the same identification;
and correspondingly storing the special effect data of the special effect elements and the identifications of the special effect elements in a database.
2. The method of claim 1, further comprising:
responding to the change operation of the special effect elements in the special effect making interface, and generating change information of the nodes in the tree data structure;
and changing the identification of the special effect element corresponding to the node according to the change information.
3. The method of claim 1, further comprising:
responding to a special effect export operation, and acquiring the tree data structure;
merging and de-duplicating the identifiers of the special effect elements in the tree data structure to obtain tree data;
and packaging the tree data and the special effect data in the database into a special effect data packet.
4. The method of claim 3, wherein the merging and de-duplicating the identification of the special effects element in the tree data structure to obtain tree data comprises:
determining a display order of special effect elements involved in the tree data structure;
and combining the identifications of the special effect elements of the similar special effect data with continuous display sequence to generate tree data.
5. The method of claim 4, wherein the rendering effect of the special effect elements of the homogeneous special effect data corresponding to the non-merged case is the same as the rendering effect corresponding to the merged case.
6. Method according to any of claims 1-5, characterized in that all special effects data are stored under the same directory.
7. A special effect producing apparatus, comprising:
the tree data structure generating module is used for generating a tree data structure based on special effect elements configured according to the hierarchical relationship in the special effect making interface; the nodes corresponding to the special effect elements in the tree data structure form a tree structure according to the hierarchical relationship, wherein the same special effect elements have the same identification;
and the special effect data storage module is used for correspondingly storing the special effect data of the special effect elements and the identifications of the special effect elements into a database.
8. An electronic device, comprising:
a memory for storing non-transitory computer readable instructions; and
a processor for executing the computer readable instructions such that the processor when executing performs the method of special effects production according to any one of claims 1-6.
9. A computer-readable storage medium storing non-transitory computer-readable instructions which, when executed by a computer, cause the computer to perform the special effects production method of any one of claims 1-6.
CN202010516086.9A 2020-06-09 2020-06-09 Special effect manufacturing method and device Pending CN113778427A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010516086.9A CN113778427A (en) 2020-06-09 2020-06-09 Special effect manufacturing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010516086.9A CN113778427A (en) 2020-06-09 2020-06-09 Special effect manufacturing method and device

Publications (1)

Publication Number Publication Date
CN113778427A true CN113778427A (en) 2021-12-10

Family

ID=78834250

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010516086.9A Pending CN113778427A (en) 2020-06-09 2020-06-09 Special effect manufacturing method and device

Country Status (1)

Country Link
CN (1) CN113778427A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104050232A (en) * 2013-03-15 2014-09-17 梦工厂动画公司 Arbitrary hierarchical tagging of computer-generated animation assets
CN110221822A (en) * 2019-05-29 2019-09-10 北京字节跳动网络技术有限公司 Merging method, device, electronic equipment and the computer readable storage medium of special efficacy
CN110443871A (en) * 2019-07-22 2019-11-12 北京达佳互联信息技术有限公司 Animation synthesizing method, device, electronic equipment and storage medium
CN110659393A (en) * 2019-09-12 2020-01-07 河南九商科技有限公司 Method and system for generating xml code

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104050232A (en) * 2013-03-15 2014-09-17 梦工厂动画公司 Arbitrary hierarchical tagging of computer-generated animation assets
CN110221822A (en) * 2019-05-29 2019-09-10 北京字节跳动网络技术有限公司 Merging method, device, electronic equipment and the computer readable storage medium of special efficacy
CN110443871A (en) * 2019-07-22 2019-11-12 北京达佳互联信息技术有限公司 Animation synthesizing method, device, electronic equipment and storage medium
CN110659393A (en) * 2019-09-12 2020-01-07 河南九商科技有限公司 Method and system for generating xml code

Similar Documents

Publication Publication Date Title
CN111629252B (en) Video processing method and device, electronic equipment and computer readable storage medium
US11856152B2 (en) Video special effect configuration file generation method and apparatus, and video rendering method and apparatus
CN111857720B (en) User interface state information generation method and device, electronic equipment and medium
CN112487331A (en) Page generation method and device, storage medium and electronic equipment
CN115113861A (en) Flow processing method, device and equipment
WO2021227953A1 (en) Image special effect configuration method, image recognition method, apparatuses, and electronic device
CN110704050B (en) Module initializing method and device, electronic equipment and computer readable storage medium
WO2023056841A1 (en) Data service method and apparatus, and related product
CN111241137A (en) Data processing method and device, electronic equipment and storage medium
CN113778427A (en) Special effect manufacturing method and device
CN113797554B (en) Game engine resource processing method and device, storage medium and electronic equipment
CN112000667B (en) Method, apparatus, server and medium for retrieving tree data
CN111753238A (en) Data mapping method and device and electronic equipment
CN111488495A (en) Information processing method and device
CN111240657A (en) Method and device for generating SDK and electronic equipment
CN112131181A (en) Storage path display method and device and electronic equipment
CN113535282B (en) Special effect data processing method and device
CN112445820A (en) Data conversion method and device
CN112579218A (en) User interface display method and device, computer readable medium and electronic equipment
CN111984645B (en) Data processing method, device, medium and electronic equipment
CN116483808B (en) Data migration method, device, electronic equipment and computer readable medium
CN113515329B (en) Special effect attribute setting method and device
CN113920220A (en) Image editing backspacing method and device
WO2023098609A1 (en) Method and apparatus for generating image special effect package, device, and storage medium
CN112650722B (en) File processing method and device based on android application program, electronic equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination