CN104142820A - Animation production method, device and system - Google Patents

Animation production method, device and system Download PDF

Info

Publication number
CN104142820A
CN104142820A CN201410049103.7A CN201410049103A CN104142820A CN 104142820 A CN104142820 A CN 104142820A CN 201410049103 A CN201410049103 A CN 201410049103A CN 104142820 A CN104142820 A CN 104142820A
Authority
CN
China
Prior art keywords
node
action
tree construction
action node
processing
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.)
Granted
Application number
CN201410049103.7A
Other languages
Chinese (zh)
Other versions
CN104142820B (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410049103.7A priority Critical patent/CN104142820B/en
Publication of CN104142820A publication Critical patent/CN104142820A/en
Application granted granted Critical
Publication of CN104142820B publication Critical patent/CN104142820B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

Embodiments of the invention disclose an animation production method, device and system. According to the embodiments, a tree structure of an animation required to be produced is acquired and comprises multiple action nodes; and the action nodes required to be processed at present are ensured according to the tree structure, assemblies and actions required to be executed by the assemblies are selected for the action nodes required to be processed at present, corresponding action commands are called from an action set according to determined actions, then, the assemblies are triggered to execute the action commands, the processed action nodes are obtained, the step that the action nodes required to be processed are determined is returned and executed until all the action nodes in the tree structure are processed, finally, all the processed action nodes are assembled according to the tree structure, a production result can be obtained, and the animation required to be produced is obtained. According to the scheme, the animation production is simple, the production efficiency is high, the modification is convenient, the expansibility is better, and an output data file is smaller.

Description

A kind of animation method, device and system
Technical field
The present invention relates to field of computer technology, be specifically related to a kind of animation method, device and system.
Background technology
In current animation process, generally all can make in the mode of time shaft frame, so-called time shaft frame, is similar to the standard of Flash(interactive polar plot and Web animation) time shaft.Wherein, a frame is a picture, and time shaft is mainly used in tissue and control the number of plies and the frame number that substance film is play within a certain period of time, and can simply understand time shaft is to determine that the instrument of sequencing and place level appears in picture.That is to say, in the prior art, in the time making animation, need to make a lot of frames, wherein may there is animation between various benefits, not only need the adjustment standard that takes long to, and, need if follow-up to change, make screw external diffusion campaign into such as spheroid spiral to inwardly polymerization campaign, or spheroid changes another kind of object into, that must carry out large repairs and change this set of animation, even needs each frame to modify and debugging etc.
In the research and practice process to prior art, the present inventor's discovery, the scheme of existing making animation is too loaded down with trivial details and complicated, and not only make efficiency is low, amendment is inconvenient and extendability is not strong, and the data file of output is also larger.
Summary of the invention
The embodiment of the present invention provides a kind of animation method, device and system, and not only realization is simple, make efficiency is high, amendment is convenient and extendability is better, and the data file of output is also less.
A kind of animation method, comprising:
Obtain the tree construction that needs the animation of making, described tree construction comprises multiple action nodes;
Determine current need action node to be processed according to described tree construction, and be the action that described current need action node to be processed selects assembly and described assembly to carry out;
From set of actions, call corresponding action command according to definite action;
Touch and make described assembly carry out described action command, obtain processing rear action node, and return and carry out the step of determining current need action node to be processed, until the everything node processing in described tree construction is complete;
The node that moves after to all processing according to described tree construction is assembled, and obtains making result.
A kind of cartoon making device, comprises acquiring unit, determining unit, call unit, performance element and module units;
Acquiring unit, for obtaining the tree construction that needs the animation of making, described tree construction comprises multiple action nodes;
Determining unit for determine current need action node to be processed according to described tree construction, and is the action that described current need action node to be processed selects assembly and described assembly to carry out;
Call unit, for calling corresponding action command according to definite action from set of actions;
Performance element, makes described assembly carry out described action command for touching, and obtains processing rear action node, and triggers determining unit and carry out the operation of determining current need action node to be processed, until the everything node processing in described tree construction is complete;
Module units, assembles for move node after to all processing according to described tree construction, obtains making result.
A kind of computer system, comprises any cartoon making device that the embodiment of the present invention provides.
The embodiment of the present invention adopts obtains the tree construction that needs the animation of making, and this tree construction comprises multiple action nodes, determine current need action node to be processed according to this tree construction, and the action that needs the action node of processing to select assembly and this assembly to carry out for this is current, from set of actions, call corresponding action command according to definite action, then touch and make this assembly carry out these action commands, obtain processing rear action node, and return and carry out the step of determining current need action node to be processed, until the everything node processing in this tree construction is complete, the node that finally moves after to all processing according to this tree construction is assembled, just can obtain making result, obtain the animation of required making.Due in this scheme, the action that securing component and this assembly need to be carried out neatly, and touch this assembly is carried out according to the action command of this action invocation, to obtain the corresponding rear action node of processing, and then move node according to tree construction after to each action node corresponding processing and assemble, thereby complete the making to animation, and without as prior art, make frame by frame according to time shaft, greatly reduce manufacture difficulty, and improve make efficiency, and, due in this scheme, mainly that to move node be unit, therefore, with respect to existing taking frame for unit, also be convenient to subsequent modification and expansion, and, data volume is also less.That is to say, this scheme not only realizes simply, make efficiency is high, and amendment is convenient and extendability is better, and with regard to making equal animation, with respect to prior art, the data file of this programme output is also less.
Brief description of the drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those skilled in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 a is the process flow diagram that the embodiment of the present invention provides animation method;
The schematic diagram of the 1st of the animation of required making the layer in Fig. 1 b embodiment of the present invention;
The schematic diagram of the 2nd of the animation of required making the layer in Fig. 1 c embodiment of the present invention;
The schematic diagram of the 3rd of the animation of required making the layer in Fig. 1 d embodiment of the present invention;
The schematic diagram of the 4th of the animation of required making the layer in Fig. 1 e embodiment of the present invention;
The schematic diagram of the 5th of the animation of required making the layer in Fig. 1 f embodiment of the present invention;
The schematic diagram of the 6th of the animation of required making the layer in Fig. 1 g embodiment of the present invention;
The schematic diagram of the 7th of the animation of required making the layer in Fig. 1 h embodiment of the present invention;
The schematic diagram of the 8th of the animation of required making the layer in Fig. 1 i embodiment of the present invention;
The schematic diagram of the tree construction of the animation of required making in Fig. 1 j embodiment of the present invention;
The schematic diagram of the animation of required making in Fig. 1 k embodiment of the present invention;
Fig. 2 a is the structured flowchart that the embodiment of the present invention provides cartoon making device;
Fig. 2 b is another process flow diagram that the embodiment of the present invention provides animation method;
Fig. 3 is the structural representation that the embodiment of the present invention provides cartoon making device;
Fig. 4 is the structural representation that the embodiment of the present invention provides terminal.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those skilled in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of animation method, device and system.Below be elaborated respectively.
Embodiment mono-,
The present embodiment will be described from the angle of animation producing device, and this cartoon making device specifically can be integrated in terminal, and this terminal specifically can comprise smart mobile phone, panel computer, pocket computer on knee and desk-top computer etc.
A kind of animation method, comprising: obtain the tree construction of the animation of needs making, wherein, this tree construction comprises multiple action nodes; Determine current need action node to be processed according to this tree construction, and the action that needs the action node of processing to select assembly and described assembly to carry out for this is current; From set of actions, call corresponding action command according to definite action; Touch and make this assembly carry out this action command, obtain processing rear action node, and return and carry out the step of determining current need action node to be processed, until the everything node processing in this tree construction is complete; The node that moves after to all processing according to this tree construction is assembled, and obtains making result, obtains needing the animation made, for convenience, in embodiments of the present invention, will be called " frame animation " with the animation that adopts traditional time frame scheme to be made." frame animation " is a kind of special elemental motion, and the embodiment of the present invention is for the traditional time frame animation of compatibility, and they are packaged into a kind of elemental motion of free attribute.
As shown in Figure 1a, a kind of animation method, idiographic flow can be as follows:
101, obtain the tree construction that needs the animation of making, wherein, this tree construction comprises multiple action nodes.
For example, specifically can reference sequences effect frame sectional drawing, the animation that needs are made carries out layering according to element hierarchy relation, such as, can an element as a level, etc., in addition, can also record the feature of each element, such as which action has occurred from appearance to disappearance, and the start time of each action and end time, etc., like this, the relation between these levels just can form a tree construction.
Such as, as shown in Fig. 1 b to Fig. 1 i, if need to make an animation about the generation of " washing marrow pellet ", can be divided into 8 levels according to its component, as follows:
The 1st layer: the red totem of six flickers, occur at the 2nd frame, start thin outly at the 100th frame, substantially disappear at the 114th frame, can be referring to Fig. 1 b.
The 2nd layer: runner A, slowly occur at the 2nd frame, the brightest at the 11st frame, start to turn counterclockwise 120 degree at the 22nd frame, start at the 100th frame thin out, the 114th frame disappear, can be referring to Fig. 1 c.
The 3rd layer: runner B, substantially identical with the 2nd layer, different runner B are for turning clockwise 120 degree, be that runner B slowly occurs at the 2nd frame, the brightest at the 11st frame, start to turn clockwise 120 degree at the 22nd frame, start at the 100th frame thin out, the 114th frame disappear, can be referring to Fig. 1 d.
The 4th layer: 3 cards, occur at the 2nd frame, the 4th frame and the 5th frame respectively, 3 blue beads, occur at the 1st frame, the 3rd frame and the 5th frame respectively, these 6 cards start to diminish at the 7th frame, disappear at the 19th frame, can be referring to Fig. 1 e.
The 5th layer: 6 " frame animations " that fireball is assembled, occur at the 6th frame, play and disappear, can be referring to Fig. 1 f.
The 6th layer: the circular motion of 6 balls, occur at the 29th frame, turn clockwise 720 degree, slowly thin out at the 78th frame, disappear at the 80th frame, can be referring to Fig. 1 g.
The 7th layer: wash red " frame animation " generating of marrow, occur at the 80th frame, play and disappear, can be referring to Fig. 1 h.
The 8th layer: final generate wash marrow pellet, occur at the 115th frame, can be referring to Fig. 1 i.
According to above-mentioned hierarchical relational, just can obtain a tree construction about the animation of the generation of " washing marrow pellet ", for example, if will be somebody's turn to do animation about the generation of " washing marrow pellet " as action node 0, using the 1st layer as action node 1, using the 2nd layer as action node 2, using the 3rd layer as action node 3, using the 4th layer as action node 4, using the 5th layer as action node 5, using the 6th layer as action node 6, using the 7th layer as action node 7, using the 8th layer as action node 8, can obtain the tree construction as shown in Fig. 1 j.
In addition, after obtaining the tree construction that needs the animation of making, can also modify to described tree construction, such as, to the action node in tree construction copy, shear, paste, move, deletion, interpolation, node rename and/or nodal community editor etc.
102, determine current need action node to be processed according to this tree construction getting, and the action that needs the action node of processing to select assembly and this assembly to carry out for this is current, then perform step 103.
Wherein, assembly refers to the object that need to perform an action, and action can comprise elemental motion and composite move; Elemental motion refers to action basis, atom, can comprise immediately manifest, disappear immediately, move, convergent-divergent, rotate, fade in, gradually to, fade out, flicker and/or delay etc., composite move is mainly combined by multiple actions (elemental motion or composite move), also referred to as " process ", can comprise played in order, play and/or repeat etc. simultaneously, composite move can also nested composite move.Wherein, each action can also comprise action attributes, such as comprise action start carry out time, move lasting time and/or the time of release, etc.
For example, taking animation about the generation of " washing marrow pellet " of above-mentioned making as example, if determine, current need action node to be processed is " action node 1 ", can determine that assembly is " the red totems of six flickers ", action is " manifesting immediately " and " gradually arriving ", be specially at the 2nd frame and occur, start thin outly at the 100th frame, substantially disappear at the 114th frame.
Again for example, if determine, current need action node to be processed is " action node 2 ", can determine that assembly is " runner A ", action is " fading in ", " rotation " and " fading out ", be specially at the 2nd frame and slowly occur, the brightest at the 11st frame, start to turn counterclockwise 120 degree at the 22nd frame, start thin out at the 100th frame, disappear at the 114th frame, etc., by that analogy, other action node similarly, is no longer enumerated at this.
It should be noted that, if in step 101, tree construction is revised, now need to determine current need action node to be processed according to amended tree construction, do not repeat them here.
103, from set of actions, call corresponding action command according to definite action.
For example, if in step 102, determine that action is " manifesting immediately ", " gradually arriving ", calls the order of " manifesting immediately " and the order of " gradually arriving ".
104, touch and make this assembly carry out these action commands, obtain processing rear action node, and return and carry out the step of determining current need action node to be processed, return to execution step 102, until the everything node processing in this tree construction is complete, such as, can judge that whether the everything node in this tree construction is all disposed, and if so, performs step 105, if not, return to execution step 102.
For example, taking current need action node to be processed as " action node 1 " is as example, now can touch and make " the red totems of six flickers " carry out respectively the order of " manifesting immediately " and the order of " gradually arriving ", be specially at the 2nd frame and occur, start thin out at the 100th frame, substantially disappear at the 114th frame, after being finished, just can process another action node, return and carry out the step of determining current need action node to be processed, such as inciting somebody to action " action node 2 " as new " current need action node to be processed ", etc., by that analogy, until by complete the everything node processing in this structure tree.
It should be noted that, for convenience, after processing, action node is generally " performer " in embodiments of the present invention, and it is a kind of special composite move, and inside comprises an assembly and an own action.Wherein, this own action can be elemental motion, can be also composite move, and therefore performer can include an assembly and a performer.Realized performer's nest relation.Expansion that can be convenient.
105, move node after to all processing according to this tree construction and assemble, obtain making result.
For example, specifically can will after this processing, move node as layer, and successively each layer be combined according to the indicated hierarchical relationship of this tree construction, obtain making result.
Such as, taking animation about the generation of " washing marrow pellet " of above-mentioned making as example, now can adopt the hierarchical relationship as shown in step 101 successively each layer to be combined, obtain making result, obtain the animation about the generation of " washing marrow pellet ", for example, referring to Fig. 1 k.
It should be noted that, if tree structure is revised, and the node that now needs to move after to all processing according to amended tree construction is assembled, and obtains making result.
Optionally, except after obtaining the tree construction that needs the animation of making, outside can modifying to tree construction, after obtaining making result, also can be by tree construction be modified, realize and make the further object of amendment to making result, in step " node that moves after to all processing according to this tree construction is assembled; obtain making result ", afterwards, this animation method can also comprise:
This tree construction is modified, according to amended tree construction, described making result is modified.Wherein, this to the amendment of tree construction can comprise to the action node in tree construction copy, shear, paste, move, deletion, interpolation, node rename and/or nodal community editor etc.
Wherein, according to amended tree construction, described making result is modified and specifically can be comprised:
Determine the action node of changing according to this amended tree construction;
If the action node of this change is the action node that the new action node adding or nodal community are updated, the action of selecting assembly and this assembly to carry out for the action node of this change, from set of actions, call corresponding action command according to definite action, touching makes this assembly carry out described action command, obtain moving after processing that the action node of this change is corresponding node, add in this making result according to this amended tree construction and move node after the processing that the action node of this change is corresponding;
If the action node of this change is the action node copying, obtain and move node after the corresponding processing of action node being replicated, as being moved node after processing corresponding to the action node of this change, add in this making result according to this amended tree construction and move node after the processing that the action node of this change is corresponding;
If the action node of this change is the action node after moving, obtain and move node after the corresponding processing of action node being moved, as moving node after processing corresponding to the action node of this change, add in this making result according to this amended tree construction and move node after the processing that the action node of this change is corresponding;
If the action node of this change is action node or deleted action node or the action node being removed being sheared, in this making result, delete according to this amended tree construction that this corresponding processing of action node being sheared moves that node is moved in node or the deleted corresponding processing of action node afterwards afterwards or the corresponding processing of action node that is removed after move node;
If the action node of this change is by the action node of rename, this amended tree construction is modified to this nodename by the action node of rename in this making result.
As from the foregoing, the present embodiment adopts and obtains the tree construction that needs the animation of making, and this tree construction comprises multiple action nodes, determine current need action node to be processed according to this tree construction, and the action that needs the action node of processing to select assembly and this assembly to carry out for this is current, from set of actions, call corresponding action command according to definite action, then touch and make this assembly carry out these action commands, obtain processing rear action node, and return and carry out the step of determining current need action node to be processed, until the everything node processing in this tree construction is complete, the node that finally moves after to all processing according to this tree construction is assembled, just can obtain making result, obtain the animation of required making.Due in this scheme, the action that securing component and this assembly need to be carried out neatly, and touch this assembly is carried out according to the action command of this action invocation, to obtain the corresponding rear action node of processing, and then move node according to tree construction after to each action node corresponding processing and assemble, thereby complete the making to animation, and without as prior art, make frame by frame according to time shaft, greatly reduce manufacture difficulty, and improve make efficiency, and, due in this scheme, mainly that to move node be unit, therefore, with respect to existing taking frame for unit, also be convenient to subsequent modification and expansion, and, data volume is also less.That is to say, this scheme not only realizes simply, make efficiency is high, and amendment is convenient and extendability is better, and with regard to making equal animation, with respect to prior art, the data file of this programme output is also less.
Embodiment bis-,
According to the described method of embodiment mono-, below will be described in further detail for example.
As shown in Figure 2 a, this cartoon making device can comprise data acquisition and animation assembler, wherein, data acquisition can comprise set of actions module, assembly set module and performer's collection modules etc., animation assembler can comprise interface module and control module, this interface module comprises action invocation interface and component call interface etc., specifically can be as follows:
(1) data acquisition;
1, set of actions module;
This set of actions module comprises the corresponding action command of exercises, and this action can be to comprise elemental motion and composite move; Elemental motion refers to action basis, atom, can comprise immediately manifest, disappear immediately, move, convergent-divergent, rotate, fade in, fade out, gradually arrive, flicker and/or delay etc., composite move is mainly combined by multiple actions (elemental motion or composite move), also referred to as " process ", can comprise played in order, play and/or repeat etc. simultaneously, composite move can also nested composite move.Wherein, each action can also comprise action attributes, such as comprise action start carry out time, move lasting time and/or the time of release, etc.
For example, in this set of actions module, can comprise: the order of the order of the order of the order of " manifesting immediately ", the order of " disappearing immediately ", " movement ", the order of " convergent-divergent ", " convergent-divergent ", the order of " fading in ", " fading out ", the order of " gradually arriving ", the order of " flicker ", the order of " delay ", the order of " played in order ", order and/or the order of " repetition " etc. of " simultaneously playing ", these orders can be called for action analytics engine.
The action command of preserving in this set of actions module can arrange according to the demand of practical application, does not repeat them here.
2, assembly set module;
This assembly set module comprises various assemblies, comprises the model of the object that various needs perform an action, such as spheroid, square, portrait and/or runner etc.
The assembly of preserving in this assembly set module can arrange according to the demand of practical application, does not repeat them here.
3, performer's collection modules;
Performer, i.e. the embodiment of the present invention said " action node after processing ", it is a kind of special composite move, inside comprises an assembly and an own action.Wherein, this own action can be elemental motion, can be also composite move, and therefore performer can include an assembly and a performer.Realized performer's nest relation.Expansion that can be convenient.This performer's collection modules is mainly used in preserving each action node corresponding " action node after processing ".
(2) animation assembler;
1, control module;
This control module, be mainly used in obtaining the tree construction that needs the animation of making, determine current need action node to be processed according to this tree construction getting, need the action node of processing to select assembly for this is current, and Control Component calling interface needs the action node of processing to call required assembly for this is current from assembly set module, and the action that need to carry out of this assembly of component selection for selecting, and control action calling interface calls corresponding action command from action collection modules, and touch make this assembly carry out these action commands, obtain processing rear action node, action node after processing is kept in performer's collection modules, after everything node processing in tree construction, call from performer's collection modules according to this tree construction and move node after corresponding processing, and assemble processing rear action node, obtain and export making result.
2, component call interface;
This component call interface, is mainly used under the control of control module, from assembly set module, needs the action node of processing to call required assembly for this is current, etc.
3, action invocation interface;
This action invocation interface, is mainly used under the control of control module, from action collection modules, calls corresponding action command, etc.
Cartoon making device based on above-mentioned, below describes the concrete execution flow process to this cartoon making device.
As shown in Figure 2 b, a kind of animation method, idiographic flow can be as follows:
201, the control module of cartoon making device is obtained the tree construction that needs the animation of making, and wherein, this tree construction comprises multiple action nodes.
Wherein, this tree construction can be set up according to demand by user, is then received the tree construction of user's input by control module.
For example, taking make an animation about the generation of " washing marrow pellet " (i) as example, wherein, be divided into 8 levels according to its component referring to Fig. 1 b to Fig. 1, as follows:
The 1st layer: the red totem of six flickers, occur at the 2nd frame, start thin outly at the 100th frame, substantially disappear at the 114th frame.
The 2nd layer: runner A, slowly occur at the 2nd frame, the brightest at the 11st frame, start to turn counterclockwise 120 degree at the 22nd frame, start at the 100th frame thin out, the 114th frame disappear.
The 3rd layer: runner B, basic identical with the 2nd layer, different runner B are for turning clockwise 120 degree, runner B slowly occurs at the 2nd frame, the brightest at the 11st frame, starts to turn clockwise 120 degree at the 22nd frame, start at the 100th frame thin out, in the 114th frame disappearance.
The 4th layer: 3 cards, occur at the 2nd frame, the 4th frame and the 5th frame respectively, 3 blue beads, occur at the 1st frame, the 3rd frame and the 5th frame respectively, these 6 cards start to diminish at the 7th frame, disappear at the 19th frame.
The 5th layer: 6 " frame animations " that fireball is assembled, occur at the 6th frame, play and disappear.
The 6th layer: the circular motion of 6 balls, occur at the 29th frame, turn clockwise 720 degree, slowly thin out at the 78th frame, disappear at the 80th frame.
The 7th layer: wash red " frame animation " generating of marrow, occur at the 80th frame, play and disappear.
The 8th layer: final generate wash marrow pellet, occur at the 115th frame.
According to above-mentioned hierarchical relational, just can obtain a tree construction about the animation of the generation of " washing marrow pellet ", for example, if will be somebody's turn to do animation about the generation of " washing marrow pellet " as action node 0, using the 1st layer as action node 1, using the 2nd layer as action node 2, using the 3rd layer as action node 3, using the 4th layer as action node 4, using the 5th layer as action node 5, using the 6th layer as action node 6, using the 7th layer as action node 7, using the 8th layer as action node 8, can obtain the tree construction as shown in Fig. 1 j.
In addition, after obtaining the tree construction that needs the animation of making, can also modify to described tree construction, such as, to the action node in tree construction copy, shear, paste, move, deletion, interpolation, node rename and/or nodal community editor etc.
202, the control module of cartoon making device is determined current need action node to be processed according to this tree construction getting.
For example, control module can be obtained the action node in tree construction automatically successively, using as current need action node to be processed, also can receive the action node of being specified by user from tree construction, using as current need action node to be processed.
It should be noted that, if in step 201, tree construction is revised, now need to determine current need action node to be processed according to amended tree construction, do not repeat them here.
203, the control module of cartoon making device is that this current action node of processing that needs is selected assembly, and Control Component calling interface needs the action node of processing to call required assembly for this is current from assembly set module, and the action that need to carry out of this assembly of component selection for selecting, and control action calling interface calls corresponding action command from action collection modules.
Wherein, assembly refers to the object that need to perform an action, and action can comprise elemental motion and composite move; Elemental motion refers to action basis, atom, can comprise immediately manifest, disappear immediately, move, convergent-divergent, rotate, fade in, fade out, gradually arrive, flicker and/or delay etc., composite move is mainly combined by multiple actions (elemental motion or composite move), also referred to as " process ", can comprise played in order, play and/or repeat etc. simultaneously, composite move can also nested composite move.Wherein, each action can also comprise action attributes, such as comprise action start carry out time, move lasting time and/or the time of release, etc.
For example, taking animation about the generation of " washing marrow pellet " of above-mentioned making as example, if determine, current need action node to be processed is " action node 1 ", can determine that assembly is " the red totems of six flickers ", action is " manifesting immediately " and " gradually arriving ", be specially at the 2nd frame and occur, start thin outly at the 100th frame, substantially disappear at the 114th frame.
Again for example, if determine, current need action node to be processed is " action node 2 ", can determine that assembly is " runner A ", action is " fading in ", " rotation " and " fading out ", be specially at the 2nd frame and slowly occur, the brightest at the 11st frame, start to turn counterclockwise 120 degree at the 22nd frame, start thin out at the 100th frame, disappear at the 114th frame, etc., by that analogy, other action node similarly, is no longer enumerated at this.
204, the control module of cartoon making device is touched and is made this assembly carry out these action commands, obtain processing rear action node, and return and carry out the step of determining current need action node to be processed, return to execution step 202, until the everything node processing in this tree construction is complete.
For example, taking current need action node to be processed as " action node 1 " is as example, now can touch and make " the red totems of six flickers " carry out respectively the order of " manifesting immediately " and the order of " gradually arriving ", be specially at the 2nd frame and occur, start thin out at the 100th frame, substantially disappear at the 114th frame, after being finished, just can process another action node, return and carry out the step of determining current need action node to be processed, such as inciting somebody to action " action node 2 " as new " current need action node to be processed ", etc., by that analogy, until by complete the everything node processing in this structure tree.
It should be noted that, after obtaining processing, move after node, after can also browsing in advance each that obtained and processing, whether the animation effect of action node, meet demand to check, if do not met, can modify.
205, the control module of cartoon making device is called from performer's collection modules according to this tree construction and is moved node after corresponding processing, and assembles processing rear action node, obtains and export making result.
For example, this control module specifically can will be moved node as layer after this processing, and successively each layer is combined according to the indicated hierarchical relationship of this tree construction, obtains making result.
Such as, taking animation about the generation of " washing marrow pellet " of above-mentioned making as example, now can adopt the hierarchical relationship as shown in step 201 successively each layer to be combined, obtain making result, obtain the animation about the generation of " washing marrow pellet ".
As from the foregoing, the present embodiment adopts and obtains the tree construction that needs the animation of making, and this tree construction comprises multiple action nodes, determine current need action node to be processed according to this tree construction, and the action that needs the action node of processing to select assembly and this assembly to carry out for this is current, from set of actions, call corresponding action command according to definite action, then touch and make this assembly carry out these action commands, obtain processing rear action node, and return and carry out the step of determining current need action node to be processed, until the everything node processing in this tree construction is complete, the node that finally moves after to all processing according to this tree construction is assembled, just can obtain making result, obtain the animation of required making.Due in this scheme, the action that securing component and this assembly need to be carried out neatly, and touch this assembly is carried out according to the action command of this action invocation, to obtain the corresponding rear action node of processing, and then move node according to tree construction after to each action node corresponding processing and assemble, thereby complete the making to animation, and without as prior art, make frame by frame according to time shaft, greatly reduce manufacture difficulty, and improve make efficiency, and, due in this scheme, mainly that to move node be unit, therefore, with respect to existing taking frame for unit, also be convenient to subsequent modification and expansion, and, data volume is also less.That is to say, this scheme not only realizes simply, make efficiency is high, and amendment is convenient and extendability is better, and with regard to making equal animation, with respect to prior art, the data file of this programme output is also less.
Embodiment tri-,
On the basis of embodiment bis-, optionally, except after obtaining the tree construction that needs the animation of making, outside can modifying to tree construction, after obtaining making result, also can be by tree construction be modified, realize and make the further object of amendment to making result, in step " node that moves after to all processing according to this tree construction is assembled, and obtains making result ", afterwards, this animation method can also comprise:
The control module of cartoon making device is modified to this tree construction, according to amended tree construction, described making result is modified.
For example, this control module specifically can receive the amendment order about tree construction of user's input, then according to this amendment order, this tree construction is modified, and according to amended tree construction, described making result is modified.
Wherein, this can comprise the amendment of tree construction: to the action node in tree construction copy, shear, paste, move, deletion, interpolation, node rename and/or nodal community editor etc.
Wherein, the difference of tree construction alter mode, they are also different on making the impact of result, below will be to how according to amended tree construction, described making result to be modified and to be elaborated, as follows:
Determine the action node of changing according to this amended tree construction;
If the action node of this change is the action node that the new action node adding or nodal community are updated, the action of selecting assembly and this assembly to carry out for the action node of this change, from set of actions, call corresponding action command according to definite action, touching makes this assembly carry out this action command, obtain moving after processing that the action node of this change is corresponding node, add in this making result according to this amended tree construction and move node after the processing that the action node of this change is corresponding; That is to say, if the action node of this change is the action node that the new action node adding or nodal community are updated, show to add new element, therefore, the action node of this change is processed as new action node.
If the action node of this change is the action node copying, obtain and move node after the corresponding processing of action node being replicated, as being moved node after processing corresponding to the action node of this change, add in this making result according to this amended tree construction and move node after the processing that the action node of this change is corresponding; That is to say, if the action node of this change is the action node copying, show that this element is identical with certain element, therefore, the node that moves after their processing is also identical, so in order to improve treatment effeciency, the node that the corresponding processing of action node being replicated can be moved afterwards directly moves node after the corresponding processing of action node of this change.
If the action node of this change is the action node after moving, obtain and move node after the corresponding processing of action node being moved, as moving node after processing corresponding to the action node of this change, add in this making result according to this amended tree construction and move node after the processing that the action node of this change is corresponding; That is to say, if the action node of this change is the action node after moving, show for whole animation, do not add new element, and only the position of certain element is wherein adjusted, therefore, in order to improve treatment effeciency, now also without the action node of this change is processed as new action node, after corresponding processing, move node in situ time but directly continued to use this action node having moved.
If the action node of this change is action node or deleted action node or the action node being removed being sheared, in this making result, delete according to this amended tree construction that this corresponding processing of action node being sheared moves that node is moved in node or the deleted corresponding processing of action node afterwards afterwards or the corresponding processing of action node that is removed after move node; That is to say, because the action node of this change is action node or deleted action node or the action node being removed being sheared, therefore, the element that shows to be positioned at original position is deleted, therefore, directly deletes.
If the action node of this change is by the action node of rename, this amended tree construction is modified to this nodename by the action node of rename in this making result.
As from the foregoing, the present embodiment, except can realizing the beneficial effect as described in embodiment bis-, further, can also be revised action node (element) wherein flexibly and easily, has greatly improved extendability and treatment effeciency.
Embodiment tetra-,
In order to implement better above method, the embodiment of the present invention also provides a kind of cartoon making device, and as shown in Figure 3, this cartoon making device comprises acquiring unit 301, determining unit 302, call unit 303, performance element 304 and module units 305.
Acquiring unit 301, for obtaining the tree construction that needs the animation of making, wherein, this tree construction comprises multiple action nodes.
For example, specifically can reference sequences effect frame sectional drawing, the animation that needs are made carries out layering according to element hierarchy relation, such as, can an element as a level, etc., in addition, can also record the feature of each element, such as which action has occurred from appearance to disappearance, and the start time of each action and end time, etc., like this, the relation between these levels just can form a tree construction.Such as, can, referring to the example shown in Fig. 1 b to Fig. 1 i, refer to embodiment above, do not repeat them here.
Determining unit 302, for determine current need action node to be processed according to this tree construction, and the action that needs the action node of processing to select assembly and this assembly to carry out for this is current;
Wherein, assembly refers to the object that need to perform an action, and action can comprise elemental motion and composite move; Elemental motion refers to action basis, atom, can comprise immediately manifest, disappear immediately, move, convergent-divergent, rotate, fade in, fade out, gradually arrive, flicker and/or delay etc., composite move is mainly combined by multiple actions (elemental motion or composite move), also referred to as " process ", can comprise played in order, play and/or repeat etc. simultaneously, composite move can also nested composite move.Wherein, each action can also comprise action attributes, such as comprise action start carry out time, move lasting time and/or the time of release, etc.
Call unit 303, for calling corresponding action command according to definite action from set of actions.
Performance element 304, makes this assembly carry out these action commands for touching, and obtains processing rear action node, and triggers determining unit and carry out the operation of determining current need action node to be processed, until the everything node processing in this tree construction is complete;
Module units 305, assembles for move node after to all processing according to this tree construction, obtains making result.For example, specifically can be as follows:
Module units 305, specifically can be for moving node as layer after this processing, and successively each layer is combined according to the indicated hierarchical relationship of this tree construction, obtains making result.
Optionally, in addition, after obtaining the tree construction that needs the animation of making, can also modify to described tree construction,, such as, to the action node in tree construction copy, shear, paste, move, deletion, interpolation, node rename and/or nodal community editor etc.This cartoon making device can also comprise amendment unit;
Amendment unit, for after obtaining the tree construction that needs the animation of making, this tree construction is modified, wherein, amendment can comprise to the action node in tree construction copy, shear, paste, move, deletion, interpolation, node rename and/or nodal community editor etc.
Now, determining unit 302, specifically can be for determining current need action node to be processed according to amended tree construction;
Module units 305, specifically can assemble for move node after to all processing according to amended tree construction, obtains making result.
Optionally, except after obtaining the tree construction that needs the animation of making, outside can modifying to tree construction, after obtaining making result, also can be by tree construction be modified, realize and make the further object of amendment to making result, that is:
Amendment unit, can also be used for, after obtaining making result, this tree construction being modified, and according to amended tree construction, described making result is modified.Wherein, the amendment of structure tree being carried out can comprise to the action node in tree construction copy, shear, paste, move, deletion, interpolation, node rename and/or nodal community editor.
For example, this amendment unit, specifically can be for carrying out following operation:
Determine the action node of changing according to this amended tree construction;
If the action node of this change is the action node that the new action node adding or nodal community are updated, the action of selecting assembly and this assembly to carry out for the action node of this change, from set of actions, call corresponding action command according to definite action, touching makes this assembly carry out described action command, obtain moving after processing that the action node of this change is corresponding node, add in this making result according to this amended tree construction and move node after the processing that the action node of this change is corresponding;
If the action node of this change is the action node copying, obtain and move node after the corresponding processing of action node being replicated, as being moved node after processing corresponding to the action node of this change, add in this making result according to this amended tree construction and move node after the processing that the action node of this change is corresponding;
If the action node of this change is the action node after moving, obtain and move node after the corresponding processing of action node being moved, as moving node after processing corresponding to the action node of this change, add in this making result according to this amended tree construction and move node after the processing that the action node of this change is corresponding;
If the action node of this change is action node or deleted action node or the action node being removed being sheared, in this making result, delete according to this amended tree construction that this corresponding processing of action node being sheared moves that node is moved in node or the deleted corresponding processing of action node afterwards afterwards or the corresponding processing of action node that is removed after move node;
If the action node of this change is by the action node of rename, this amended tree construction is modified to this nodename by the action node of rename in this making result.
When specific implementation, above unit can be used as independently entity and realizes, and also can carry out combination in any, realizes as same or several entities, and the concrete enforcement of above unit can be referring to embodiment above.
This cartoon making device specifically can be integrated in terminal, and this terminal specifically can comprise smart mobile phone, panel computer, pocket computer on knee and desk-top computer etc.
As from the foregoing, the acquiring unit 301 of the cartoon making device of the present embodiment can obtain the tree construction that needs the animation of making, this tree construction comprises multiple action nodes, determine current need action node to be processed by determining unit 302 according to this tree construction, and the action that needs the action node of processing to select assembly and this assembly to carry out for this is current, then from set of actions, call corresponding action command by call unit 303 according to definite action, and touch and make this assembly carry out these action commands by performance element 304, obtain processing rear action node, and return and carry out the step of determining current need action node to be processed, until the everything node processing in this tree construction is complete, the node that finally moved after to all processing according to this tree construction by module units 305 is assembled, just can obtain making result, obtain the animation of required making.Due in this scheme, the action that securing component and this assembly need to be carried out neatly, and touch this assembly is carried out according to the action command of this action invocation, to obtain the corresponding rear action node of processing, and then move node according to tree construction after to each action node corresponding processing and assemble, thereby complete the making to animation, and without as prior art, make frame by frame according to time shaft, greatly reduce manufacture difficulty, and improve make efficiency, and, due in this scheme, mainly that to move node be unit, therefore, with respect to existing taking frame for unit, also be convenient to subsequent modification and expansion, and, data volume is also less.That is to say, this scheme not only realizes simply, make efficiency is high, and amendment is convenient and extendability is better, and with regard to making equal animation, with respect to prior art, the data file of this programme output is also less.
Embodiment five,
Accordingly, the embodiment of the present invention also provides a kind of computer system, comprises any cartoon making device that the embodiment of the present invention provides, specifically can be referring to embodiment tetra-, for example, specifically can be as follows:
Cartoon making device, for obtaining the tree construction that needs the animation of making, wherein, this tree construction comprises multiple action nodes; Determine current need action node to be processed according to this tree construction, and the action that needs the action node of processing to select assembly and this assembly to carry out for this is current; From set of actions, call corresponding action command according to definite action; Touch and make this assembly carry out this action command, obtain processing rear action node, and return and carry out the step of determining current need action node to be processed, until the everything node processing in this tree construction is complete; The node that moves after to all processing according to this tree construction is assembled, and obtains making result.
For example, cartoon making device, specifically can will move node as layer after this processing, and successively each layer is combined according to the indicated hierarchical relationship of this tree construction, obtains making result.
In addition, after obtaining the tree construction that needs the animation of making, can also modify to tree construction, that is:,
Cartoon making device, can also be used for described tree construction to modify, wherein, this to the amendment of tree construction can comprise to the action node in tree construction copy, shear, paste, move, deletion, interpolation, node rename and/or nodal community editor etc.Then determine current need action node to be processed according to this amended tree construction, and the action that needs the action node of processing to select assembly and this assembly to carry out for this is current; From set of actions, call corresponding action command according to definite action; Touching makes this assembly carry out this action command, obtain processing rear action node, and return and carry out the step of determining current need action node to be processed, until the everything node processing in this amended tree construction is complete, the node that moves after to all processing according to amended tree construction is assembled, and obtains making result.
In addition, except after obtaining the tree construction that needs the animation of making, outside can modifying to tree construction, after obtaining making result, also can be by tree construction be modified, realize and make the further object of amendment to making result, that is:
Cartoon making device, can also be used for, after obtaining making result, this tree construction being modified, and according to amended tree construction, described making result is modified.For example specifically can be as follows:
Determine the action node of changing according to this amended tree construction;
If the action node of this change is the action node that the new action node adding or nodal community are updated, the action of selecting assembly and this assembly to carry out for the action node of this change, from set of actions, call corresponding action command according to definite action, touching makes this assembly carry out described action command, obtain moving after processing that the action node of this change is corresponding node, add in this making result according to this amended tree construction and move node after the processing that the action node of this change is corresponding;
If the action node of this change is the action node copying, obtain and move node after the corresponding processing of action node being replicated, as being moved node after processing corresponding to the action node of this change, add in this making result according to this amended tree construction and move node after the processing that the action node of this change is corresponding;
If the action node of this change is the action node after moving, obtain and move node after the corresponding processing of action node being moved, as moving node after processing corresponding to the action node of this change, add in this making result according to this amended tree construction and move node after the processing that the action node of this change is corresponding;
If the action node of this change is action node or deleted action node or the action node being removed being sheared, in this making result, delete according to this amended tree construction that this corresponding processing of action node being sheared moves that node is moved in node or the deleted corresponding processing of action node afterwards afterwards or the corresponding processing of action node that is removed after move node;
If the action node of this change is by the action node of rename, this amended tree construction is modified to this nodename by the action node of rename in this making result.
The concrete enforcement of this cartoon making device can, referring to embodiment above, not repeat them here.
In addition, this computer system can also comprise other equipment, does not repeat them here.
Because this computer system can comprise any cartoon making device that the embodiment of the present invention provides, therefore can realize the same beneficial effect of cartoon making device that the embodiment of the present invention provides, refer to embodiment above, do not repeat them here.
Embodiment six,
Accordingly, the embodiment of the present invention also provides a kind of terminal, any cartoon making device can the integrated embodiment of the present invention providing, as shown in Figure 4, this terminal can comprise radio frequency (RF, Radio Frequency) circuit 401, include the storer 402 of one or more computer-readable recording mediums, input block 403, display unit 404, sensor 405, voicefrequency circuit 406, Wireless Fidelity (WiFi, Wireless Fidelity) module 407, include one or one processor 408 of processing above core, and the parts such as power supply 409.It will be understood by those skilled in the art that the not restriction of structure paired terminal of the terminal structure shown in Fig. 4, can comprise the parts more more or less than diagram, or combine some parts, or different parts are arranged.Wherein:
RF circuit 401 can be used for receiving and sending messages or communication process in, the reception of signal and transmission, especially, after the downlink information of base station is received, transfer to more than one or one processor 408 to process; In addition, send to base station by relating to up data.Conventionally, RF circuit 401 includes but not limited to antenna, at least one amplifier, tuner, one or more oscillator, subscriber identity module (SIM, Subscriber Identity Module) card, transceiver, coupling mechanism, low noise amplifier (LNA, Low Noise Amplifier), diplexer etc.In addition, RF circuit 401 can also be by radio communication and network and other devices communicatings.Described radio communication can be used arbitrary communication standard or agreement, include but not limited to global system for mobile communications (GSM, Global System of Mobile communication), general packet radio service (GPRS, General Packet Radio Service), CDMA (CDMA, Code Division Multiple Access), Wideband Code Division Multiple Access (WCDMA) (WCDMA, Wideband Code Division Multiple Access), Long Term Evolution (LTE, Long Term Evolution), Email, Short Message Service (SMS, Short Messaging Service) etc.
Storer 402 can be used for storing software program and module, and processor 408 is stored in software program and the module of storer 402 by operation, thereby carries out various function application and data processing.Storer 402 can mainly comprise storage program district and storage data field, wherein, and the application program (such as sound-playing function, image player function etc.) that storage program district can storage operation system, at least one function is required etc.; The data (such as voice data, phone directory etc.) that create according to the use of terminal etc. can be stored in storage data field.In addition, storer 402 can comprise high-speed random access memory, can also comprise nonvolatile memory, for example at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, storer 402 can also comprise Memory Controller, so that processor 408 and the access of input block 403 to storer 402 to be provided.
Input block 403 can be used for receiving numeral or the character information of input, and generation is inputted with user arranges and function control is relevant keyboard, mouse, control lever, optics or trace ball signal.Particularly, in a specific embodiment, input block 403 can comprise touch-sensitive surface and other input equipments.Touch-sensitive surface, also referred to as touch display screen or Trackpad, can collect user or near touch operation (use any applicable objects such as finger, stylus or annex such as user on touch-sensitive surface or in the operation of touch-sensitive near surface) thereon, and drive corresponding coupling arrangement according to predefined formula.Optionally, touch-sensitive surface can comprise touch detecting apparatus and two parts of touch controller.Wherein, touch detecting apparatus detects user's touch orientation, and detects the signal that touch operation brings, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, then gives processor 408, and the order that energy receiving processor 408 is sent is also carried out.In addition, can adopt the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave to realize touch-sensitive surface.Except touch-sensitive surface, input block 403 can also comprise other input equipments.Particularly, other input equipments can include but not limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, control lever etc.
Display unit 404 can be used for showing the information inputted by user or the various graphical user interface of the information that offers user and terminal, and these graphical user interface can be made up of figure, text, icon, video and its combination in any.Display unit 404 can comprise display panel, optional, can adopt the form such as liquid crystal display (LCD, Liquid Crystal Display), Organic Light Emitting Diode (OLED, Organic Light-Emitting Diode) to configure display panel.Further, touch-sensitive surface can cover display panel, when touch-sensitive surface detect thereon or near touch operation after, send processor 408 to determine the type of touch event, on display panel, provide corresponding vision output with preprocessor 408 according to the type of touch event.Although in Fig. 4, touch-sensitive surface and display panel be as two independently parts realize input and input function, in certain embodiments, can be by integrated and realize input and output function to touch-sensitive surface and display panel.
Terminal also can comprise at least one sensor 405, such as optical sensor, motion sensor and other sensors.Particularly, optical sensor can comprise ambient light sensor and proximity transducer, and wherein, ambient light sensor can regulate according to the light and shade of ambient light the brightness of display panel, and proximity transducer can, in the time that fast mobile terminal arrives in one's ear, cut out display panel and/or backlight.As the one of motion sensor; Gravity accelerometer can detect the size of the acceleration that (is generally three axles) in all directions; when static, can detect size and the direction of gravity, can be used for identifying application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as passometer, knock) of mobile phone attitude etc.; As for also other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor of terminal, do not repeat them here.
Voicefrequency circuit 406, loudspeaker, microphone can provide the audio interface between user and terminal.Voicefrequency circuit 406 can, by the electric signal after the voice data conversion receiving, be transferred to loudspeaker, is converted to voice signal output by loudspeaker; On the other hand, the voice signal of collection is converted to electric signal by microphone, after being received by voicefrequency circuit 406, be converted to voice data, after again voice data output processor 408 being processed, through RF circuit 401 to send to such as another terminal, or export voice data to storer 402 so as further process.Voicefrequency circuit 406 also may comprise earphone jack, so that communicating by letter of peripheral hardware earphone and terminal to be provided.
WiFi belongs to short range wireless transmission technology, terminal by WiFi module 407 can help that user sends and receive e-mail, browsing page and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 4 shows WiFi module 407, be understandable that, it does not belong to must forming of terminal, completely can be as required in the essential scope that does not change invention and omit.
Processor 408 is control centers of terminal, utilize the various piece of various interface and the whole mobile phone of connection, by moving or carry out the software program and/or the module that are stored in storer 402, and call the data that are stored in storer 402, carry out various functions and the deal with data of terminal, thereby mobile phone is carried out to integral monitoring.Optionally, processor 408 can comprise one or more processing cores; Preferably, processor 408 can integrated application processor and modem processor, and wherein, application processor is mainly processed operating system, user interface and application program etc., and modem processor is mainly processed radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in processor 408.
Terminal also comprises that the power supply 409(powering to all parts is such as battery), preferred, power supply can be connected with processor 408 logics by power-supply management system, thereby realizes the functions such as management charging, electric discharge and power managed by power-supply management system.Power supply 409 can also comprise the random component such as one or more direct current or AC power, recharging system, power failure detection circuit, power supply changeover device or inverter, power supply status indicator.
Although not shown, terminal can also comprise camera, bluetooth module etc., does not repeat them here.Specifically in the present embodiment, processor 408 in terminal can be according to following instruction, the executable file corresponding process of one or more application program is loaded in storer 402, and moved the application program being stored in storer 402 by processor 408, thus realize various functions:
Although not shown, terminal can also comprise camera, bluetooth module etc., does not repeat them here.Specifically in the present embodiment, the display unit of terminal is touch-screen display, terminal also includes storer, and one or more than one program, one of them or more than one program are stored in storer, and are configured to carry out described more than one or one routine package containing for carrying out the instruction of following operation by more than one or one processor:
Obtain the tree construction that needs the animation of making, wherein, this tree construction comprises multiple action nodes; Determine current need action node to be processed according to this tree construction, and the action that needs the action node of processing to select assembly and this assembly to carry out for this is current; From set of actions, call corresponding action command according to definite action; Touch and make this assembly carry out this action command, obtain processing rear action node, and return and carry out the step of determining current need action node to be processed, until the everything node processing in this tree construction is complete; The node that moves after to all processing according to this tree construction is assembled, and obtains making result.
Wherein, step " node that moves after to all processing according to this tree construction is assembled, and obtains making result " is specifically as follows:
To after this processing, move node as layer, and successively each layer is combined according to the indicated hierarchical relationship of this tree construction, obtain making result.
In addition, after obtaining the tree construction that needs the animation of making, can also modify to tree construction, can also carry out the instruction of following operation:
Described tree construction is modified, wherein, this to the amendment of tree construction can comprise to the action node in tree construction copy, shear, paste, move, deletion, interpolation, node rename and/or nodal community editor etc.
Now, step " is determined current need action node to be processed according to this tree construction " and is specially: determine current need action node to be processed according to amended tree construction.
Step " node that moves after to all processing according to this tree construction is assembled, and obtains making result " is specially: the node that moves after to all processing according to amended tree construction is assembled, and obtains making result.
Optionally, except after obtaining the tree construction that needs the animation of making, outside can modifying to tree construction, after obtaining making result, also can be by tree construction be modified, realize and make the further object of amendment to making result, can also carry out following operational order:
This tree construction is modified, according to amended tree construction, described making result is modified.Wherein, this to the amendment of tree construction can comprise to the action node in tree construction copy, shear, paste, move, deletion, interpolation, node rename and/or nodal community editor etc.
Wherein, according to amended tree construction, described making result is modified and specifically can be comprised:
Determine the action node of changing according to this amended tree construction;
If the action node of this change is the action node that the new action node adding or nodal community are updated, the action of selecting assembly and this assembly to carry out for the action node of this change, from set of actions, call corresponding action command according to definite action, touching makes this assembly carry out described action command, obtain moving after processing that the action node of this change is corresponding node, add in this making result according to this amended tree construction and move node after the processing that the action node of this change is corresponding;
If the action node of this change is the action node copying, obtain and move node after the corresponding processing of action node being replicated, as being moved node after processing corresponding to the action node of this change, add in this making result according to this amended tree construction and move node after the processing that the action node of this change is corresponding;
If the action node of this change is the action node after moving, obtain and move node after the corresponding processing of action node being moved, as moving node after processing corresponding to the action node of this change, add in this making result according to this amended tree construction and move node after the processing that the action node of this change is corresponding;
If the action node of this change is action node or deleted action node or the action node being removed being sheared, in this making result, delete according to this amended tree construction that this corresponding processing of action node being sheared moves that node is moved in node or the deleted corresponding processing of action node afterwards afterwards or the corresponding processing of action node that is removed after move node;
If the action node of this change is by the action node of rename, this amended tree construction is modified to this nodename by the action node of rename in this making result.
The concrete enforcement of above various piece can, referring to embodiment above, not repeat them here.
As from the foregoing, the terminal of the present embodiment adopts obtains the tree construction that needs the animation of making, and this tree construction comprises multiple action nodes, determine current need action node to be processed according to this tree construction, and the action that needs the action node of processing to select assembly and this assembly to carry out for this is current, from set of actions, call corresponding action command according to definite action, then touch and make this assembly carry out these action commands, obtain processing rear action node, and return and carry out the step of determining current need action node to be processed, until the everything node processing in this tree construction is complete, the node that finally moves after to all processing according to this tree construction is assembled, just can obtain making result, obtain the animation of required making.Due in this scheme, the action that securing component and this assembly need to be carried out neatly, and touch this assembly is carried out according to the action command of this action invocation, to obtain the corresponding rear action node of processing, and then move node according to tree construction after to each action node corresponding processing and assemble, thereby complete the making to animation, and without as prior art, make frame by frame according to time shaft, greatly reduce manufacture difficulty, and improve make efficiency, and, due in this scheme, mainly that to move node be unit, therefore, with respect to existing taking frame for unit, also be convenient to subsequent modification and expansion, and, data volume is also less.That is to say, this scheme not only realizes simply, make efficiency is high, and amendment is convenient and extendability is better, and with regard to making equal animation, with respect to prior art, the data file of this programme output is also less.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of above-described embodiment is can carry out the hardware that instruction is relevant by program to complete, this program can be stored in a computer-readable recording medium, storage medium can comprise: ROM (read-only memory) (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc.
A kind of animation method, device and the system that above the embodiment of the present invention are provided are described in detail, applied specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment is just for helping to understand method of the present invention and core concept thereof; , for those skilled in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention meanwhile.

Claims (12)

1. an animation method, is characterized in that, comprising:
Obtain the tree construction that needs the animation of making, described tree construction comprises multiple action nodes;
Determine current need action node to be processed according to described tree construction, and be the action that described current need action node to be processed selects assembly and described assembly to carry out;
From set of actions, call corresponding action command according to definite action;
Touch and make described assembly carry out described action command, obtain processing rear action node, and return and carry out the step of determining current need action node to be processed, until the everything node processing in described tree construction is complete;
The node that moves after to all processing according to described tree construction is assembled, and obtains making result.
2. method according to claim 1, is characterized in that, the described node that moves after to all processing according to described tree construction is assembled, and obtains making result, comprising:
To after described processing, move node as layer, and successively each layer is combined according to the indicated hierarchical relationship of described tree construction, obtain making result.
3. method according to claim 1, is characterized in that, described in obtain the tree construction of animation that needs to make after, also comprise:
Described tree construction is modified, described amendment comprise to the action node in tree construction copy, shear, paste, move, deletion, interpolation, node rename and/or nodal community editor;
Describedly determine that according to described tree construction current need action node to be processed comprises: determine current need action node to be processed according to amended tree construction;
The described node that moves after to all processing according to described tree construction is assembled, and obtains making result and comprises: the node that moves after to all processing according to amended tree construction is assembled, and obtains making result.
4. according to the method described in claims 1 to 3 any one, it is characterized in that, the described node that moves after to all processing according to described tree construction is assembled, and after obtaining making result, also comprises:
Described tree construction is modified, described amendment comprise to the action node in tree construction copy, shear, paste, move, deletion, interpolation, node rename and/or nodal community editor;
According to amended tree construction, described making result is modified.
5. method according to claim 4, is characterized in that, describedly according to amended tree construction, described making result is modified, and comprising:
Determine the action node of changing according to described amended tree construction;
If the action node of described change is the action node that the new action node adding or nodal community are updated, the action of selecting assembly and described assembly to carry out for the action node of described change, from set of actions, call corresponding action command according to definite action, touching makes described assembly carry out described action command, obtain moving after processing that the action node of described change is corresponding node, add in described making result according to described amended tree construction and move node after the processing that the action node of described change is corresponding;
If the action node of described change is the action node copying, obtain and move node after the corresponding processing of action node being replicated, as being moved node after processing corresponding to the action node of described change, add in described making result according to described amended tree construction and move node after the processing that the action node of described change is corresponding;
If the action node of described change is the action node after moving, obtain and move node after the corresponding processing of action node being moved, as moving node after processing corresponding to the action node of described change, add in described making result according to described amended tree construction and move node after the processing that the action node of described change is corresponding;
If the action node of described change is action node or deleted action node or the action node being removed being sheared, the corresponding processing of action node being sheared described in deleting in described making result according to described amended tree construction move afterwards that node is moved in node or the deleted corresponding processing of action node afterwards or the corresponding processing of action node that is removed after move node;
If the action node of described change is by the action node of rename, described amended tree construction is modified to the described nodename by the action node of rename in described making result.
6. according to the method described in claims 1 to 3 any one, it is characterized in that,
Described action comprises elemental motion and composite move;
Described elemental motion comprises immediately and manifesting, disappears immediately, moves, convergent-divergent, rotate, fade in, fade out, gradually arrive, glimmer and/or postpone;
Described composite move comprises played in order, plays and/or repeat simultaneously.
7. a cartoon making device, is characterized in that, comprising:
Acquiring unit, for obtaining the tree construction that needs the animation of making, described tree construction comprises multiple action nodes;
Determining unit for determine current need action node to be processed according to described tree construction, and is the action that described current need action node to be processed selects assembly and described assembly to carry out;
Call unit, for calling corresponding action command according to definite action from set of actions;
Performance element, makes described assembly carry out described action command for touching, and obtains processing rear action node, and triggers determining unit and carry out the operation of determining current need action node to be processed, until the everything node processing in described tree construction is complete;
Module units, assembles for move node after to all processing according to described tree construction, obtains making result.
8. cartoon making device according to claim 7, is characterized in that,
Described module units, specifically for moving node as layer after described processing, and combines each layer successively according to the indicated hierarchical relationship of described tree construction, obtains making result.
9. cartoon making device according to claim 7, is characterized in that, also comprises amendment unit;
Amendment unit, for after obtaining the tree construction that needs the animation of making, described tree construction is modified, described amendment comprise to the action node in tree construction copy, shear, paste, move, deletion, interpolation, node rename and/or nodal community editor;
Described determining unit, specifically for determining current need action node to be processed according to amended tree construction;
Described module units, assembles specifically for move node after to all processing according to amended tree construction, obtains making result.
10. according to the cartoon making device described in claim 7 to 9 any one, it is characterized in that,
Described amendment unit, also for after obtaining making result, described tree construction is modified, described amendment comprise to the action node in tree construction copy, shear, paste, move, deletion, interpolation, node rename and/or nodal community editor, according to amended tree construction, described making result is modified.
11. cartoon making devices according to claim 10, is characterized in that, described amendment unit, specifically for:
Determine the action node of changing according to described amended tree construction;
If the action node of described change is the action node that the new action node adding or nodal community are updated, the action of selecting assembly and described assembly to carry out for the action node of described change, from set of actions, call corresponding action command according to definite action, touching makes described assembly carry out described action command, obtain moving after processing that the action node of described change is corresponding node, add in described making result according to described amended tree construction and move node after the processing that the action node of described change is corresponding;
If the action node of described change is the action node copying, obtain and move node after the corresponding processing of action node being replicated, as being moved node after processing corresponding to the action node of described change, add in described making result according to described amended tree construction and move node after the processing that the action node of described change is corresponding;
If the action node of described change is the action node after moving, obtain and move node after the corresponding processing of action node being moved, as moving node after processing corresponding to the action node of described change, add in described making result according to described amended tree construction and move node after the processing that the action node of described change is corresponding;
If the action node of described change is action node or deleted action node or the action node being removed being sheared, the corresponding processing of action node being sheared described in deleting in described making result according to described amended tree construction move afterwards that node is moved in node or the deleted corresponding processing of action node afterwards or the corresponding processing of action node that is removed after move node;
If the action node of described change is by the action node of rename, described amended tree construction is modified to the described nodename by the action node of rename in described making result.
12. 1 kinds of computer systems, is characterized in that, comprise any cartoon making device described in claim 7 to 11.
CN201410049103.7A 2014-02-12 2014-02-12 A kind of animation method, device and system Active CN104142820B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410049103.7A CN104142820B (en) 2014-02-12 2014-02-12 A kind of animation method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410049103.7A CN104142820B (en) 2014-02-12 2014-02-12 A kind of animation method, device and system

Publications (2)

Publication Number Publication Date
CN104142820A true CN104142820A (en) 2014-11-12
CN104142820B CN104142820B (en) 2016-03-16

Family

ID=51852004

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410049103.7A Active CN104142820B (en) 2014-02-12 2014-02-12 A kind of animation method, device and system

Country Status (1)

Country Link
CN (1) CN104142820B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105118079A (en) * 2015-09-17 2015-12-02 网易(杭州)网络有限公司 Method and device for stretching displacement of animation, and motion control method and device
CN106775692A (en) * 2016-12-06 2017-05-31 腾讯科技(深圳)有限公司 A kind of component edits method and electronic equipment
CN106887030A (en) * 2016-06-17 2017-06-23 阿里巴巴集团控股有限公司 A kind of animation producing method and device
CN108038160A (en) * 2017-12-06 2018-05-15 央视动画有限公司 Dynamic animation store method, dynamic animation call method and device
CN108109189A (en) * 2017-12-05 2018-06-01 北京像素软件科技股份有限公司 Act sharing method and device
CN109318225A (en) * 2017-08-01 2019-02-12 中达电子零组件(吴江)有限公司 For controlling the method, apparatus and system of robot palletizer

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101980154A (en) * 2010-11-02 2011-02-23 深圳市融创天下科技发展有限公司 Method and system for creating and drawing interface control tree and mobile terminal
CN103345534A (en) * 2013-07-26 2013-10-09 浙江中控技术股份有限公司 Dynamic graph processing method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101980154A (en) * 2010-11-02 2011-02-23 深圳市融创天下科技发展有限公司 Method and system for creating and drawing interface control tree and mobile terminal
CN103345534A (en) * 2013-07-26 2013-10-09 浙江中控技术股份有限公司 Dynamic graph processing method and device

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105118079A (en) * 2015-09-17 2015-12-02 网易(杭州)网络有限公司 Method and device for stretching displacement of animation, and motion control method and device
CN105118079B (en) * 2015-09-17 2018-08-07 网易(杭州)网络有限公司 Animation displacement drawing process, device and motion control method, device
CN106887030A (en) * 2016-06-17 2017-06-23 阿里巴巴集团控股有限公司 A kind of animation producing method and device
CN106887030B (en) * 2016-06-17 2020-03-06 阿里巴巴集团控股有限公司 Animation generation method and device
US10679399B2 (en) 2016-06-17 2020-06-09 Alibaba Group Holding Limited Animation generation method and apparatus
CN106775692A (en) * 2016-12-06 2017-05-31 腾讯科技(深圳)有限公司 A kind of component edits method and electronic equipment
CN106775692B (en) * 2016-12-06 2020-06-05 腾讯科技(深圳)有限公司 Component editing method and electronic equipment
CN109318225A (en) * 2017-08-01 2019-02-12 中达电子零组件(吴江)有限公司 For controlling the method, apparatus and system of robot palletizer
CN108109189A (en) * 2017-12-05 2018-06-01 北京像素软件科技股份有限公司 Act sharing method and device
CN108038160A (en) * 2017-12-06 2018-05-15 央视动画有限公司 Dynamic animation store method, dynamic animation call method and device
CN108038160B (en) * 2017-12-06 2019-03-08 央视动画有限公司 Dynamic animation store method, dynamic animation call method and device

Also Published As

Publication number Publication date
CN104142820B (en) 2016-03-16

Similar Documents

Publication Publication Date Title
CN104142820B (en) A kind of animation method, device and system
CN104243671B (en) Volume adjusting method, device and electronic equipment
CN104967790B (en) Method, photo taking, device and mobile terminal
CN103488403A (en) Switching method and device for interface layout and mobile terminal
CN103309562A (en) Desktop display method, desktop display device and mobile terminal
CN104036536B (en) The generation method and device of a kind of stop-motion animation
CN106131394A (en) A kind of method and device taken pictures
CN103941982A (en) Method for sharing interface processing and terminal
CN103559731B (en) Method and terminal for displaying lyrics under screen locking state
CN103327189A (en) Method and device for uploading, browsing and deleting pictures
CN104598476A (en) Message aggregation display method and information display method and relevant device
CN104298558A (en) Information processing method and device
CN105022616A (en) Method and device for generating web page
CN106331502A (en) Terminal and its filter photographing method and device
CN105183296A (en) Interactive interface display method and device
CN103631580B (en) Method and device for generating theme icon
CN106484518A (en) A kind of display methods, device and terminal for opening application more
CN103473092A (en) Method and device for processing downloaded applications and terminal equipment
CN105094809A (en) Combined picture layout modification method and device and terminal equipment
CN103390034A (en) Image display method, device, terminal and server
CN103744592A (en) Information processing method and terminal
CN107766139B (en) Application management method and device
CN106406924A (en) Application startup and exiting image control method and apparatus, and mobile terminal
CN104166646B (en) A kind of method and apparatus for inputting uniform resource locator
CN104157007A (en) Video processing method and apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant