CN104142820B - A kind of animation method, device and system - Google Patents

A kind of animation method, device and system Download PDF

Info

Publication number
CN104142820B
CN104142820B CN201410049103.7A CN201410049103A CN104142820B CN 104142820 B CN104142820 B CN 104142820B CN 201410049103 A CN201410049103 A CN 201410049103A CN 104142820 B CN104142820 B CN 104142820B
Authority
CN
China
Prior art keywords
action
action node
node
tree construction
assembly
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.)
Active
Application number
CN201410049103.7A
Other languages
Chinese (zh)
Other versions
CN104142820A (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

The embodiment of the invention discloses a kind of animation method, device and system.The embodiment of the present invention adopts the tree construction obtaining and need the animation made, and this tree construction comprises multiple action node, current need action node to be processed is determined according to this tree construction, and be that this current action sensor selection problem assembly of process and this assembly of needing needs the action performed, from set of actions, corresponding action command is called according to the action determined, then touching makes this assembly perform these action commands, obtain processing rear action node, and return the step performing and determine current need action node to be processed, until the everything node processing in this tree construction is complete, finally according to this tree construction, action node after all process is assembled, just can obtain making result, namely the required animation made is obtained.The program not only realizes simply, make efficiency is high, and amendment is convenient and extendability is better, and the data file exported is also less.

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, be 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 play within a certain period of time of substance film and frame number, and simply can understand time shaft is determine that the instrument of sequencing and place level appears in picture.That is, in the prior art, when making animation, need to make a lot of frame, wherein may there is animation between various benefit, not only need the adjustment standard that takes long to, and, need if follow-up to change, such as spheroid spiral inwardly polymerization motion and make screw external diffusion campaign into, or spheroid changes another kind of object into, that must carry out large repairs to this set of animation and change, and even needs to modify to each frame and debugging etc.
To in the research and practice process of prior art, the present inventor finds, 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 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, not only realize simply, make efficiency is high, amendment is convenient and extendability better, and the data file exported is also less.
A kind of animation method, comprising:
Obtain the tree construction needing the animation made, described tree construction comprises multiple action node;
Determine current need action node to be processed according to described tree construction, and be the action that described current need action to be processed sensor selection problem assembly and described assembly need to perform;
From set of actions, corresponding action command is called according to the action determined;
Touching makes described assembly perform described action command, obtains processing rear action node, and returns the step performing and determine current need action node to be processed, until the everything node processing in described tree construction is complete;
According to described tree construction, action node after all process is assembled, obtain 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 needing the animation made, described tree construction comprises multiple action node;
Determining unit for determining current need action node to be processed according to described tree construction, and is the action that described current need action to be processed sensor selection problem assembly and described assembly need to perform;
Call unit, for calling corresponding action command according to the action determined from set of actions;
Performance element, making described assembly perform described action command for touching, obtaining processing rear action node, and triggers the operation that current need action node to be processed is determined in determining unit execution, until the everything node processing in described tree construction is complete;
Module units, for assembling action node after all process according to described tree construction, obtains making result.
A kind of computer system, comprises any one cartoon making device that the embodiment of the present invention provides.
The embodiment of the present invention adopts the tree construction obtaining and need the animation made, and this tree construction comprises multiple action node, current need action node to be processed is determined according to this tree construction, and be that this current action sensor selection problem assembly of process and this assembly of needing needs the action performed, from set of actions, corresponding action command is called according to the action determined, then touching makes this assembly perform these action commands, obtain processing rear action node, and return the step performing and determine current need action node to be processed, until the everything node processing in this tree construction is complete, finally according to this tree construction, action node after all process is assembled, just can obtain making result, namely the required animation made is obtained.Due in this scenario, securing component and this assembly can need the action of execution neatly, and touch and make this assembly perform according to the action command of this action invocation, to obtain the rear action node of corresponding process, and then according to tree construction, action node after the process corresponding to each action node is assembled, thus the making completed animation, and without the need to such as prior art, make frame by frame according to time shaft, greatly reduce manufacture difficulty, and improve make efficiency, and, due in this scenario, mainly in units of action node, therefore, relative to existing in units of frame for, also subsequent modification and expansion is convenient to, and, data volume is also less.That is, the program not only realizes simply, make efficiency is high, and amendment is convenient and extendability better, and just makes with regard to equal animation, and relative to prior art, the data file that this programme exports is also less.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those skilled in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 a is the process flow diagram that the embodiment of the present invention provides animation method;
The schematic diagram of the 1st layer of the required animation made in Fig. 1 b embodiment of the present invention;
The schematic diagram of the 2nd layer of the required animation made in Fig. 1 c embodiment of the present invention;
The schematic diagram of the 3rd layer of the required animation made in Fig. 1 d embodiment of the present invention;
The schematic diagram of the 4th layer of the required animation made in Fig. 1 e embodiment of the present invention;
The schematic diagram of the 5th layer of the required animation made in Fig. 1 f embodiment of the present invention;
The schematic diagram of the 6th layer of the required animation made in Fig. 1 g embodiment of the present invention;
The schematic diagram of the 7th layer of the required animation made in Fig. 1 h embodiment of the present invention;
The schematic diagram of the 8th layer of the required animation made in Fig. 1 i embodiment of the present invention;
The schematic diagram of the tree construction of the required animation made in Fig. 1 j embodiment of the present invention;
The schematic diagram of the required animation made 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, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those skilled in the art, not making the every other embodiment obtained 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 described in detail respectively.
Embodiment one,
Angle from animation producing device is described by the present embodiment, and this cartoon making device specifically can be in the terminal integrated, 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: the tree construction obtaining the animation that needs make, and wherein, this tree construction comprises multiple action node; Determine current need action node to be processed according to this tree construction, and be that this current action sensor selection problem assembly of process and described assembly of needing needs the action performed; From set of actions, corresponding action command is called according to the action determined; Touching makes this assembly perform this action command, obtains processing rear action node, and returns the step performing and determine current need action node to be processed, until the everything node processing in this tree construction is complete; According to this tree construction, action node after all process is assembled, obtain making result, namely obtain the animation needing to make, for convenience, in embodiments of the present invention, be called with the animation adopting Conventional temporal frame scheme to be made " frame animation "." frame animation " is a kind of special elemental motion, and the embodiment of the present invention, in order to compatible Conventional temporal frame animation, is packaged into them 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 needing the animation made, wherein, this tree construction comprises multiple action node.
Such as, specifically can reference sequences effect frame sectional drawing, carry out layering to needing the animation made according to element hierarchy relation, such as, can an element as a level, etc., in addition, the feature of each element can also be recorded, such as there occurs which action 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 making one about the animation of the generation of " washing marrow pellet ", then can be divided into 8 levels according to its component, as follows:
The red totem of the 1st layer: six flickers, occurs at the 2nd frame, starts thin out, substantially disappear at the 114th frame at the 100th frame, can see Fig. 1 b.
2nd layer: runner A, slowly occur at the 2nd frame, the brightest at the 11st frame, start to turn 120 degree counterclockwise at the 22nd frame, start thin out at the 100th frame, disappear at the 114th frame, can see Fig. 1 c.
3rd layer: runner B, basic identical with the 2nd layer, different runner B be clockwise turn 120 degree, namely runner B slowly occurs at the 2nd frame, the brightest at the 11st frame, starts to turn 120 degree clockwise at the 22nd frame, start thin out at the 100th frame, disappear at the 114th frame, can see Fig. 1 d.
4th layer: 3 cards, occur, 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 respectively, disappear at the 19th frame at the 2nd frame, the 4th frame and the 5th frame, can see Fig. 1 e.
" frame animation " that 5th layer: 6 fireballs are assembled, occurs at the 6th frame, plays and namely disappear, can see Fig. 1 f.
6th layer: the circular motion of 6 balls, occur at the 29th frame, turn 720 degree clockwise, slowly thin out at the 78th frame, disappear at the 80th frame, can see Fig. 1 g.
7th layer: wash " frame animation " that marrow pellet generates, occur at the 80th frame, play and namely disappear, can see Fig. 1 h.
8th layer: what finally generate washes marrow pellet, occur at the 115th frame, can see Fig. 1 i.
According to above-mentioned hierarchical relational, just a tree construction about the animation of the generation of " washing marrow pellet " can be obtained, such as, if the animation that will be somebody's turn to do about the generation of " washing marrow pellet " is 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, then can obtain tree construction as shown in fig. ij.
In addition, after obtaining the tree construction needing the animation made, can also modify to described tree construction, such as, the action node in tree construction be copied, shears, paste, move, delete, add, node rename and/or nodal community editor etc.
102, the tree construction got according to this determines current need action node to be processed, and is that this current action sensor selection problem assembly of process and this assembly of needing needs the action performed, and then performs step 103.
Wherein, assembly refers to the object needing to perform an action, and action then can comprise elemental motion and composite move; Elemental motion refers to action that is basic, atom, can comprise and manifest immediately, disappear immediately, move, convergent-divergent, rotate, fade in, gradually arrive, fade out, glimmer and/or delay etc., composite move combines primarily of multiple action (elemental motion or composite move), also referred to as " process ", can comprise played in order, play and/or repeat simultaneously, composite move can also nested composite move.Wherein, each action can also comprise action attributes, such as comprises the time of the time starting to perform of action, time that action continues and/or release, etc.
Such as, for the animation of above-mentioned making one about the generation of " washing marrow pellet ", if determine, current need action node to be processed is for " action node 1 ", then can determine that assembly is " the red totems of six flickers ", action is " manifesting immediately " and " gradually arriving ", be specially and occur at the 2nd frame, start thin out at the 100th frame, substantially disappear at the 114th frame.
Again such as, if determine, current need action node to be processed is for " action node 2 ", then can determine that assembly is " runner A ", action is " fading in ", " rotation " and " fading out ", be specially and slowly occur at the 2nd frame, the brightest at the 11st frame, start to turn 120 degree counterclockwise at the 22nd frame, start thin out at the 100th frame, disappear at the 114th frame, etc., by that analogy, other action node is similar, no longer enumerates at this.
It should be noted that, if in a step 101, tree construction is revised, then 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, corresponding action command is called according to the action determined.
Such as, if in a step 102, determine that action is " manifesting immediately ", " gradually arriving ", then call the order of " manifesting immediately " and the order of " gradually arriving ".
104, touch make this assembly perform these action commands, obtain processing rear action node, and return the step performing and determine current need action node to be processed, namely return and perform step 102, until the everything node processing in this tree construction is complete, such as, can judge whether the everything node in this tree construction is all disposed, if so, then perform step 105, if not, then execution step 102 is returned.
Such as, be " action node 1 " for current need action node to be processed, then now can touch and make " the red totems of six flickers " perform the order of " manifesting immediately " and the order of " gradually arriving " respectively, be specially and occur at the 2nd frame, start thin out at the 100th frame, substantially disappear at the 114th frame, after being finished, just another action node can be processed, namely the step performing and determine current need action node to be processed is returned, such as by " action node 2 " as new " current need action node to be processed ", etc., by that analogy, until by complete for the everything node processing in this structure tree.
It should be noted that, for convenience, after process, 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, also can be composite move, and therefore performer can include an assembly and a performer.Namely the nest relation of performer is achieved.Expansion that can be convenient.
105, according to this tree construction, action node after all process is assembled, obtain making result.
Such as, specifically using action node after this process as layer, and successively each layer can be combined according to the hierarchical relationship indicated by this tree construction, obtain making result.
Such as, for the animation of above-mentioned making one about the generation of " washing marrow pellet ", then the hierarchical relationship as shown in step 101 now can be adopted to be combined by each layer successively, obtain making result, namely the animation of the generation about " washing marrow pellet " is obtained, such as, see Fig. 1 k.
It should be noted that, if tree structure is revised, then now need to assemble action node after all process according to amended tree construction, obtains making result.
Optionally, except after obtaining the tree construction needing the animation made, outside can modifying to tree construction, after obtaining making result, also can by modifying to tree construction, realize the object to making result and do amendment further, namely step " according to this tree construction to all process after action node assemble; obtain making result " after, this animation method can also comprise:
This tree construction is modified, according to amended tree construction, described making result is modified.Wherein, this can comprise the amendment of tree construction the action node in tree construction copied, shear, paste, move, delete, add, node rename and/or nodal community editor etc.
Wherein, according to amended tree construction described making result modified and specifically can comprise:
The action node changed is determined according to this amended tree construction;
If the action node of this change is that the new action node that adds or nodal community are by the action node updated, be then the action sensor selection problem assembly of this change and the action of this assembly needs execution, from set of actions, corresponding action command is called according to the action determined, touching makes this assembly perform described action command, obtain action node after process corresponding to the action node of this change, in this making result, add action node after process corresponding to the action node of this change according to this amended tree construction;
If the action node of this change is the action node copied, then obtain action node after the process corresponding to action node be replicated, as action node after the process that the action node by this change is corresponding, in this making result, add action node after process corresponding to the action node of this change according to this amended tree construction;
If the action node of this change is the action node after moving, then obtain action node after the process corresponding to action node be moved, as action node after the process that the action node of this change is corresponding, in this making result, add action node after process corresponding to the action node of this change according to this amended tree construction;
If the action node of this change is the action node or deleted action node that are sheared or the action node be removed, then action node after action node or the process corresponding to action node that is removed after action node or the process corresponding to deleted action node after deleting corresponding to this action node be sheared process according to this amended tree construction in this making result;
If the action node of this change is by the action node of rename, then this amended tree construction is modified by the nodename of the action node of rename to this in this making result.
As from the foregoing, the present embodiment adopts the tree construction obtaining and need the animation made, and this tree construction comprises multiple action node, current need action node to be processed is determined according to this tree construction, and be that this current action sensor selection problem assembly of process and this assembly of needing needs the action performed, from set of actions, corresponding action command is called according to the action determined, then touching makes this assembly perform these action commands, obtain processing rear action node, and return the step performing and determine current need action node to be processed, until the everything node processing in this tree construction is complete, finally according to this tree construction, action node after all process is assembled, just can obtain making result, namely the required animation made is obtained.Due in this scenario, securing component and this assembly can need the action of execution neatly, and touch and make this assembly perform according to the action command of this action invocation, to obtain the rear action node of corresponding process, and then according to tree construction, action node after the process corresponding to each action node is assembled, thus the making completed animation, and without the need to such as prior art, make frame by frame according to time shaft, greatly reduce manufacture difficulty, and improve make efficiency, and, due in this scenario, mainly in units of action node, therefore, relative to existing in units of frame for, also subsequent modification and expansion is convenient to, and, data volume is also less.That is, the program not only realizes simply, make efficiency is high, and amendment is convenient and extendability better, and just makes with regard to equal animation, and relative to prior art, the data file that this programme exports is also less.
Embodiment two,
According to the method described by embodiment one, below citing is described in further detail.
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 then 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 action command corresponding to various action, and this action can be comprise elemental motion and composite move; Elemental motion refers to action that is basic, atom, can comprise and manifest immediately, disappear immediately, move, convergent-divergent, rotate, fade in, fade out, gradually arrive, glimmer and/or delay etc., composite move combines primarily of multiple action (elemental motion or composite move), also referred to as " process ", can comprise played in order, play and/or repeat simultaneously, composite move can also nested composite move.Wherein, each action can also comprise action attributes, such as comprises the time of the time starting to perform of action, time that action continues and/or release, etc.
Such as, can comprise in this set of actions module: the order of the order of the order of the order of the order of the order of " manifesting immediately ", " disappearing immediately ", the order of " movement ", " convergent-divergent ", the order of " convergent-divergent ", " fading in ", the order of " fading out ", " gradually arrive ", the order of " flicker ", " delay ", the order of " played in order ", the order of " simultaneously broadcasting " and/or the order etc. of " repetition ", these orders can supply action analytics engine call.
The action command preserved in this set of actions module can be arranged according to the demand of practical application, does not repeat them here.
2, assembly set module;
This assembly set module comprises various assembly, namely comprises the model of the object that various needs perform an action, such as spheroid, square, portrait and/or runner etc.
The assembly preserved in this assembly set module can be arranged according to the demand of practical application, does not repeat them here.
3, performer's collection modules;
Performer, the i.e. embodiment of the present invention said " after process action node ", 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, also can be composite move, and therefore performer can include an assembly and a performer.Namely the nest relation of performer is achieved.Expansion that can be convenient.This performer's collection modules is mainly used in " after process the action node " preserved corresponding to each action node.
(2) animation assembler;
1, control module;
This control module, be mainly used in obtaining the tree construction needing the animation made, current need action node to be processed is determined according to this tree construction got, the action sensor selection problem assembly of process is needed for this is current, and Control Component calling interface needs the action node of process to call required assembly for this is current from assembly set module, and be the action that this assembly of component selection selected needs to perform, and control action calling interface calls corresponding action command from action collection modules, and touch make this assembly perform these action commands, obtain processing rear action node, action node after process is kept in performer's collection modules, after everything node processing in tree construction, from performer's collection modules, the rear action node of corresponding process is called according to this tree construction, and action node after process is assembled, 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, need the action node of process to call required assembly for this is current, etc.
3, action invocation interface;
This action invocation interface, is mainly used in, under the control of control module, from action collection modules, calling corresponding action command, etc.
Based on above-mentioned cartoon making device, be described to the concrete execution flow process of this cartoon making device below.
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 obtains the tree construction needing the animation made, and wherein, this tree construction comprises multiple action node.
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.
Such as, for make an animation about the generation of " washing marrow pellet " (see Fig. 1 b to Fig. 1 i), wherein, be divided into 8 levels according to its component, as follows:
The red totem of the 1st layer: six flickers, occurs at the 2nd frame, starts thin out, substantially disappear at the 114th frame at the 100th frame.
2nd layer: runner A, slowly occur at the 2nd frame, the brightest at the 11st frame, start to turn 120 degree counterclockwise at the 22nd frame, start thin out at the 100th frame, disappear at the 114th frame.
3rd layer: runner B, basic identical with the 2nd layer, different runner B turns 120 degree clockwise, and namely runner B slowly occurs at the 2nd frame, the brightest at the 11st frame, starts clockwise turn 120 degree, start thin out at the 100th frame at the 22nd frame, in the 114th frame disappearance.
4th layer: 3 cards, occur, 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 respectively, disappear at the 19th frame at the 2nd frame, the 4th frame and the 5th frame.
" frame animation " that 5th layer: 6 fireballs are assembled, occurs at the 6th frame, plays and namely disappear.
6th layer: the circular motion of 6 balls, occur at the 29th frame, turn 720 degree clockwise, slowly thin out at the 78th frame, disappear at the 80th frame.
7th layer: wash " frame animation " that marrow pellet generates, occur at the 80th frame, play and namely disappear.
8th layer: what finally generate washes marrow pellet, occur at the 115th frame.
According to above-mentioned hierarchical relational, just a tree construction about the animation of the generation of " washing marrow pellet " can be obtained, such as, if the animation that will be somebody's turn to do about the generation of " washing marrow pellet " is 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, then can obtain tree construction as shown in fig. ij.
In addition, after obtaining the tree construction needing the animation made, can also modify to described tree construction, such as, the action node in tree construction be copied, shears, paste, move, delete, add, node rename and/or nodal community editor etc.
202, the control module of cartoon making device determines current need action node to be processed according to the tree construction that this gets.
Such as, control module can obtain 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 from tree construction by user, using as current need action node to be processed.
It should be noted that, if in step 201, tree construction is revised, then 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 this current action sensor selection problem assembly needing process, and Control Component calling interface needs the action node of process to call required assembly for this is current from assembly set module, and be the action that this assembly of component selection selected needs to perform, and control action calling interface calls corresponding action command from action collection modules.
Wherein, assembly refers to the object needing to perform an action, and action then can comprise elemental motion and composite move; Elemental motion refers to action that is basic, atom, can comprise and manifest immediately, disappear immediately, move, convergent-divergent, rotate, fade in, fade out, gradually arrive, glimmer and/or delay etc., composite move combines primarily of multiple action (elemental motion or composite move), also referred to as " process ", can comprise played in order, play and/or repeat simultaneously, composite move can also nested composite move.Wherein, each action can also comprise action attributes, such as comprises the time of the time starting to perform of action, time that action continues and/or release, etc.
Such as, for the animation of above-mentioned making one about the generation of " washing marrow pellet ", if determine, current need action node to be processed is for " action node 1 ", then can determine that assembly is " the red totems of six flickers ", action is " manifesting immediately " and " gradually arriving ", be specially and occur at the 2nd frame, start thin out at the 100th frame, substantially disappear at the 114th frame.
Again such as, if determine, current need action node to be processed is for " action node 2 ", then can determine that assembly is " runner A ", action is " fading in ", " rotation " and " fading out ", be specially and slowly occur at the 2nd frame, the brightest at the 11st frame, start to turn 120 degree counterclockwise at the 22nd frame, start thin out at the 100th frame, disappear at the 114th frame, etc., by that analogy, other action node is similar, no longer enumerates at this.
204, the control module of cartoon making device is touched and is made this assembly perform these action commands, obtain processing rear action node, and return the step performing and determine current need action node to be processed, namely return and perform step 202, until the everything node processing in this tree construction is complete.
Such as, be " action node 1 " for current need action node to be processed, then now can touch and make " the red totems of six flickers " perform the order of " manifesting immediately " and the order of " gradually arriving " respectively, be specially and occur at the 2nd frame, start thin out at the 100th frame, substantially disappear at the 114th frame, after being finished, just another action node can be processed, namely the step performing and determine current need action node to be processed is returned, such as by " action node 2 " as new " current need action node to be processed ", etc., by that analogy, until by complete for the everything node processing in this structure tree.
It should be noted that, after obtaining processing after action node, the animation effect of action node after each process obtained can also be browsed in advance, whether meet demand to check, if do not met, then can modify.
205, the control module of cartoon making device calls the rear action node of corresponding process according to this tree construction from performer's collection modules, and assembles action node after process, obtains and export making result.
Such as, this control module specifically using action node after this process as layer, and can combine each layer according to the hierarchical relationship indicated by this tree construction successively, obtains making result.
Such as, for the animation of above-mentioned making one about the generation of " washing marrow pellet ", then hierarchical relationship as shown by step 201 now can be adopted to be combined by each layer successively, obtain making result, namely obtain the animation of the generation about " washing marrow pellet ".
As from the foregoing, the present embodiment adopts the tree construction obtaining and need the animation made, and this tree construction comprises multiple action node, current need action node to be processed is determined according to this tree construction, and be that this current action sensor selection problem assembly of process and this assembly of needing needs the action performed, from set of actions, corresponding action command is called according to the action determined, then touching makes this assembly perform these action commands, obtain processing rear action node, and return the step performing and determine current need action node to be processed, until the everything node processing in this tree construction is complete, finally according to this tree construction, action node after all process is assembled, just can obtain making result, namely the required animation made is obtained.Due in this scenario, securing component and this assembly can need the action of execution neatly, and touch and make this assembly perform according to the action command of this action invocation, to obtain the rear action node of corresponding process, and then according to tree construction, action node after the process corresponding to each action node is assembled, thus the making completed animation, and without the need to such as prior art, make frame by frame according to time shaft, greatly reduce manufacture difficulty, and improve make efficiency, and, due in this scenario, mainly in units of action node, therefore, relative to existing in units of frame for, also subsequent modification and expansion is convenient to, and, data volume is also less.That is, the program not only realizes simply, make efficiency is high, and amendment is convenient and extendability better, and just makes with regard to equal animation, and relative to prior art, the data file that this programme exports is also less.
Embodiment three,
On the basis of embodiment two, optionally, except after obtaining the tree construction needing the animation made, outside can modifying to tree construction, after obtaining making result, also can by modifying to tree construction, realize making the further object revised to making result, namely step " according to this tree construction to all process after action node assemble, obtain make result " after, this animation method can also comprise:
The control module of cartoon making device is modified to this tree construction, modifies to described making result according to amended tree construction.
Such as, this control module specifically can receive the amendment order about tree construction of user's input, then modifies to this tree construction according to this amendment order, and modifies to described making result according to amended tree construction.
Wherein, this can comprise the amendment of tree construction: copy the action node in tree construction, shear, paste, move, delete, add, 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, and below to how will to modify to described making result according to amended tree construction is described in detail, as follows:
The action node changed is determined according to this amended tree construction;
If the action node of this change is that the new action node that adds or nodal community are by the action node updated, be then the action sensor selection problem assembly of this change and the action of this assembly needs execution, from set of actions, corresponding action command is called according to the action determined, touching makes this assembly perform this action command, obtain action node after process corresponding to the action node of this change, in this making result, add action node after process corresponding to the action node of this change according to this amended tree construction; That is, if the action node of this change be the new action node that adds or nodal community by the action node updated, then show to need to add new element, therefore, the action node of this change processed as new action node.
If the action node of this change is the action node copied, then obtain action node after the process corresponding to action node be replicated, as action node after the process that the action node by this change is corresponding, in this making result, add action node after process corresponding to the action node of this change according to this amended tree construction; That is, if the action node of this change is the action node copied, then show that this element is identical with certain element, therefore, after their process, action node is also identical, so, in order to improve treatment effeciency, can using action node after the process corresponding to the action node that is replicated directly as this change action node corresponding to process after action node.
If the action node of this change is the action node after moving, then obtain action node after the process corresponding to action node be moved, as action node after the process that the action node of this change is corresponding, in this making result, add action node after process corresponding to the action node of this change according to this amended tree construction; That is, if the action node of this change is the action node after moving, then 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 need to the action node of this change is processed as new action node, but directly continued to use this action node moved in situ time corresponding process after action node.
If the action node of this change is the action node or deleted action node that are sheared or the action node be removed, then action node after action node or the process corresponding to action node that is removed after action node or the process corresponding to deleted action node after deleting corresponding to this action node be sheared process according to this amended tree construction in this making result; That is, the action node due to this change is the action node or deleted action node that are sheared or the action node be removed, and therefore, shows that the element being positioned at original position is deleted, therefore, directly deletes.
If the action node of this change is by the action node of rename, then this amended tree construction is modified by the nodename of the action node of rename to this in this making result.
As from the foregoing, the present embodiment, except can realizing the beneficial effect as described in embodiment two, further, can also be revised action node (element) wherein flexibly and easily, substantially increase extendability and treatment effeciency.
Embodiment four,
In order to implement above method better, 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 needing the animation made, wherein, this tree construction comprises multiple action node.
Such as, specifically can reference sequences effect frame sectional drawing, carry out layering to needing the animation made according to element hierarchy relation, such as, can an element as a level, etc., in addition, the feature of each element can also be recorded, such as there occurs which action 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, see the example shown in Fig. 1 b to Fig. 1 i, embodiment above can be referred to, do not repeat them here.
Determining unit 302 for determining current need action node to be processed according to this tree construction, and is that this current action sensor selection problem assembly of process and this assembly of needing needs the action performed;
Wherein, assembly refers to the object needing to perform an action, and action then can comprise elemental motion and composite move; Elemental motion refers to action that is basic, atom, can comprise and manifest immediately, disappear immediately, move, convergent-divergent, rotate, fade in, fade out, gradually arrive, glimmer and/or delay etc., composite move combines primarily of multiple action (elemental motion or composite move), also referred to as " process ", can comprise played in order, play and/or repeat simultaneously, composite move can also nested composite move.Wherein, each action can also comprise action attributes, such as comprises the time of the time starting to perform of action, time that action continues and/or release, etc.
Call unit 303, for calling corresponding action command according to the action determined from set of actions.
Performance element 304, making this assembly perform these action commands for touching, obtaining processing rear action node, and triggers the operation that current need action node to be processed is determined in determining unit execution, until the everything node processing in this tree construction is complete;
Module units 305, for assembling action node after all process according to this tree construction, obtains making result.Such as, specifically can be as follows:
Module units 305, specifically may be used for using action node after this process as layer, and combines each layer successively according to the hierarchical relationship indicated by this tree construction, obtains making result.
Optionally, in addition, after obtaining the tree construction needing the animation made, can also modify to described tree construction, such as, the action node in tree construction copied, shear, paste, move, delete, add, node rename and/or nodal community editor etc.Namely this cartoon making device can also comprise amendment unit;
Amendment unit, for after obtaining the tree construction needing the animation made, this tree construction is modified, wherein, amendment can comprise the action node in tree construction copied, shear, paste, move, delete, add, node rename and/or nodal community editor etc.
Then now, determining unit 302, specifically may be used for determining current need action node to be processed according to amended tree construction;
Module units 305, specifically may be used for assembling action node after all process according to amended tree construction, obtains making result.
Optionally, except after obtaining the tree construction needing the animation made, outside can modifying to tree construction, after obtaining making result, also by modifying to tree construction, object making result being done to amendment further can be realized, that is:
Amendment unit, can also be used for, after obtaining making result, modifying, modify according to amended tree construction to described making result to this tree construction.Wherein, amendment structure tree carried out can comprise the action node in tree construction copied, shear, paste, move, delete, add, node rename and/or nodal community editor.
Such as, this amendment unit, specifically may be used for performing following operation:
The action node changed is determined according to this amended tree construction;
If the action node of this change is that the new action node that adds or nodal community are by the action node updated, be then the action sensor selection problem assembly of this change and the action of this assembly needs execution, from set of actions, corresponding action command is called according to the action determined, touching makes this assembly perform described action command, obtain action node after process corresponding to the action node of this change, in this making result, add action node after process corresponding to the action node of this change according to this amended tree construction;
If the action node of this change is the action node copied, then obtain action node after the process corresponding to action node be replicated, as action node after the process that the action node by this change is corresponding, in this making result, add action node after process corresponding to the action node of this change according to this amended tree construction;
If the action node of this change is the action node after moving, then obtain action node after the process corresponding to action node be moved, as action node after the process that the action node of this change is corresponding, in this making result, add action node after process corresponding to the action node of this change according to this amended tree construction;
If the action node of this change is the action node or deleted action node that are sheared or the action node be removed, then action node after action node or the process corresponding to action node that is removed after action node or the process corresponding to deleted action node after deleting corresponding to this action node be sheared process according to this amended tree construction in this making result;
If the action node of this change is by the action node of rename, then this amended tree construction is modified by the nodename of the action node of rename to this in this making result.
During specific implementation, above unit can realize as independently entity, and also can carry out combination in any, realize as same or several entities, the concrete enforcement of above unit can see embodiment above.
This cartoon making device specifically can be in the terminal integrated, 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 needing the animation made, this tree construction comprises multiple action node, current need action node to be processed is determined according to this tree construction by determining unit 302, and be that this current action sensor selection problem assembly of process and this assembly of needing needs the action performed, then from set of actions, corresponding action command is called by call unit 303 according to the action determined, and make this assembly perform these action commands by performance element 304 is tactile, obtain processing rear action node, and return the step performing and determine current need action node to be processed, until the everything node processing in this tree construction is complete, finally action node after all process is assembled according to this tree construction by module units 305, just can obtain making result, namely the required animation made is obtained.Due in this scenario, securing component and this assembly can need the action of execution neatly, and touch and make this assembly perform according to the action command of this action invocation, to obtain the rear action node of corresponding process, and then according to tree construction, action node after the process corresponding to each action node is assembled, thus the making completed animation, and without the need to such as prior art, make frame by frame according to time shaft, greatly reduce manufacture difficulty, and improve make efficiency, and, due in this scenario, mainly in units of action node, therefore, relative to existing in units of frame for, also subsequent modification and expansion is convenient to, and, data volume is also less.That is, the program not only realizes simply, make efficiency is high, and amendment is convenient and extendability better, and just makes with regard to equal animation, and relative to prior art, the data file that this programme exports is also less.
Embodiment five,
Accordingly, the embodiment of the present invention also provides a kind of computer system, comprises any one cartoon making device that the embodiment of the present invention provides, specifically can see embodiment four, such as, and specifically can be as follows:
Cartoon making device, for obtaining the tree construction needing the animation made, wherein, this tree construction comprises multiple action node; Determine current need action node to be processed according to this tree construction, and be that this current action sensor selection problem assembly of process and this assembly of needing needs the action performed; From set of actions, corresponding action command is called according to the action determined; Touching makes this assembly perform this action command, obtains processing rear action node, and returns the step performing and determine current need action node to be processed, until the everything node processing in this tree construction is complete; According to this tree construction, action node after all process is assembled, obtain making result.
Such as, cartoon making device, specifically using action node after this process as layer, and can combine each layer according to the hierarchical relationship indicated by this tree construction successively, obtains making result.
In addition, after obtaining the tree construction needing the animation made, can also modify to tree construction, that is:
Cartoon making device, can also be used for modifying to described tree construction, wherein, this can comprise the amendment of tree construction the action node in tree construction copied, shear, paste, move, delete, add, node rename and/or nodal community editor etc.Then determine current need action node to be processed according to this amended tree construction, and be that this current action sensor selection problem assembly of process and this assembly of needing needs the action performed; From set of actions, corresponding action command is called according to the action determined; Touching makes this assembly perform this action command, obtain processing rear action node, and return the step performing and determine current need action node to be processed, until the everything node processing in this amended tree construction is complete, according to amended tree construction, action node after all process is assembled, obtain making result.
In addition, except after obtaining the tree construction needing the animation made, outside can modifying to tree construction, after obtaining making result, also by modifying to tree construction, object making result being done to amendment further can be realized, that is:
Cartoon making device, can also be used for, after obtaining making result, modifying, modify according to amended tree construction to described making result to this tree construction.Such as specifically can be as follows:
The action node changed is determined according to this amended tree construction;
If the action node of this change is that the new action node that adds or nodal community are by the action node updated, be then the action sensor selection problem assembly of this change and the action of this assembly needs execution, from set of actions, corresponding action command is called according to the action determined, touching makes this assembly perform described action command, obtain action node after process corresponding to the action node of this change, in this making result, add action node after process corresponding to the action node of this change according to this amended tree construction;
If the action node of this change is the action node copied, then obtain action node after the process corresponding to action node be replicated, as action node after the process that the action node by this change is corresponding, in this making result, add action node after process corresponding to the action node of this change according to this amended tree construction;
If the action node of this change is the action node after moving, then obtain action node after the process corresponding to action node be moved, as action node after the process that the action node of this change is corresponding, in this making result, add action node after process corresponding to the action node of this change according to this amended tree construction;
If the action node of this change is the action node or deleted action node that are sheared or the action node be removed, then action node after action node or the process corresponding to action node that is removed after action node or the process corresponding to deleted action node after deleting corresponding to this action node be sheared process according to this amended tree construction in this making result;
If the action node of this change is by the action node of rename, then this amended tree construction is modified by the nodename of the action node of rename to this in this making result.
The concrete enforcement of this cartoon making device see embodiment above, can 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 one cartoon making device that the embodiment of the present invention provides, therefore can realize the beneficial effect that cartoon making device that the embodiment of the present invention provides is same, refer to preceding embodiment, do not repeat them here.
Embodiment six,
Accordingly, the embodiment of the present invention also provides a kind of terminal, can any one cartoon making device of providing of the integrated embodiment of the present invention, as shown in Figure 4, this terminal can comprise radio frequency (RF, RadioFrequency) circuit 401, the storer 402 including one or more computer-readable recording mediums, input block 403, display unit 404, sensor 405, voicefrequency circuit 406, Wireless Fidelity (WiFi, WirelessFidelity) module 407, include the parts such as processor 408 and power supply 409 that more than or processes core.It will be understood by those skilled in the art that the restriction of the not structure paired terminal of the terminal structure shown in Fig. 4, the parts more more or less than diagram can be comprised, or combine some parts, or different parts are arranged.Wherein:
RF circuit 401 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, especially, after being received by the downlink information of base station, transfer to more than one or one processor 408 to process; In addition, base station is sent to by relating to up data.Usually, RF circuit 401 includes but not limited to antenna, at least one amplifier, tuner, one or more oscillator, subscriber identity module (SIM, SubscriberIdentityModule) card, transceiver, coupling mechanism, low noise amplifier (LNA, LowNoiseAmplifier), diplexer etc.In addition, RF circuit 401 can also by radio communication and network and other devices communicatings.Described radio communication can use arbitrary communication standard or agreement, include but not limited to global system for mobile communications (GSM, GlobalSystemofMobilecommunication), general packet radio service (GPRS, GeneralPacketRadioService), CDMA (CDMA, CodeDivisionMultipleAccess), Wideband Code Division Multiple Access (WCDMA) (WCDMA, WidebandCodeDivisionMultipleAccess), Long Term Evolution (LTE, LongTermEvolution), Email, Short Message Service (SMS, ShortMessagingService) 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 running, thus performs the application of various function and data processing.Storer 402 mainly can comprise storage program district and store data field, and wherein, storage program district can store operating system, application program (such as sound-playing function, image player function etc.) etc. needed at least one function; Store data field and can store the data (such as voice data, phone directory etc.) etc. created according to the use of terminal.In addition, storer 402 can comprise high-speed random access memory, can also comprise nonvolatile memory, such as at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, storer 402 can also comprise Memory Controller, to provide the access of processor 408 and input block 403 pairs of storeies 402.
Input block 403 can be used for the numeral or the character information that receive input, and produces and to arrange with user and function controls relevant keyboard, mouse, control lever, optics or trace ball signal and inputs.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, user can be collected or neighbouring touch operation (such as user uses any applicable object or the operations of annex on Touch sensitive surface or near Touch sensitive surface such as finger, stylus) thereon, and drive corresponding coupling arrangement according to the formula preset.Optionally, Touch sensitive surface can comprise touch detecting apparatus and touch controller two parts.Wherein, touch detecting apparatus detects the touch orientation of user, 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 also is performed.In addition, the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be adopted 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 the various graphical user interface showing information or the information being supplied to user and the terminal inputted by user, 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, optionally, the form such as liquid crystal display (LCD, LiquidCrystalDisplay), Organic Light Emitting Diode (OLED, OrganicLight-EmittingDiode) can be adopted to configure display panel.Further, Touch sensitive surface can cover display panel, when Touch sensitive surface detects thereon or after neighbouring touch operation, sends processor 408 to determine the type of touch event, provide corresponding vision to export with preprocessor 408 on a display panel according to the type of touch event.Although in the diagram, Touch sensitive surface and display panel be as two independently parts realize inputting and input function, in certain embodiments, can by Touch sensitive surface and display panel integrated and realize input and output function.
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 the light and shade of environmentally light can regulate the brightness of display panel, and proximity transducer at fast mobile terminal to time in one's ear, can cut out display panel and/or backlight.As the one of motion sensor; Gravity accelerometer can detect the size of all directions (are generally three axles) acceleration; size and the direction of gravity can be detected time static, can be used for identifying the application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of mobile phone attitude, Vibration identification correlation function (such as passometer, knock) etc.; As for terminal also other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, do not repeat them here.
Voicefrequency circuit 406, loudspeaker, microphone can provide the audio interface between user and terminal.Voicefrequency circuit 406 can by receive voice data conversion after electric signal, be transferred to loudspeaker, by loudspeaker be converted to voice signal export; On the other hand, the voice signal of collection is converted to electric signal by microphone, voice data is converted to after being received by voicefrequency circuit 406, 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 to process further.Voicefrequency circuit 406 also may comprise earphone jack, to provide the communication of peripheral hardware earphone and terminal.
WiFi belongs to short range wireless transmission technology, and terminal can help user to send and receive e-mail by WiFi module 407, browse webpage and access streaming video etc., and its broadband internet wireless for user provides is accessed.Although Fig. 4 shows WiFi module 407, be understandable that, it does not belong to must forming of terminal, can omit in the scope of essence not changing invention as required completely.
Processor 408 is control centers of terminal, utilize the various piece of various interface and the whole mobile phone of connection, software program in storer 402 and/or module is stored in by running or performing, and call the data be stored in storer 402, perform various function and the process data of terminal, thus integral monitoring is carried out to mobile phone.Optionally, processor 408 can comprise one or more process core; Preferably, processor 408 accessible site application processor and modem processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in processor 408.
Terminal also comprises the power supply 409(such as battery of powering to all parts), preferably, power supply can be connected with processor 408 logic by power-supply management system, thus realizes the functions such as management charging, electric discharge and power managed by power-supply management system.Power supply 409 can also comprise one or more direct current or AC power, recharging system, power failure detection circuit, power supply changeover device or the random component such as 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 according to following instruction, executable file corresponding for the process of one or more application program is loaded in storer 402, and the application program be stored in storer 402 is run by processor 408, thus realize various function:
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 perform described more than one or one routine package containing the instruction for carrying out following operation by more than one or one processor:
Obtain the tree construction needing the animation made, wherein, this tree construction comprises multiple action node; Determine current need action node to be processed according to this tree construction, and be that this current action sensor selection problem assembly of process and this assembly of needing needs the action performed; From set of actions, corresponding action command is called according to the action determined; Touching makes this assembly perform this action command, obtains processing rear action node, and returns the step performing and determine current need action node to be processed, until the everything node processing in this tree construction is complete; According to this tree construction, action node after all process is assembled, obtain making result.
Wherein, step " is assembled action node after all process according to this tree construction, is obtained making result " and is specifically as follows:
Using action node after this process as layer, and successively each layer is combined according to the hierarchical relationship indicated by this tree construction, obtain making result.
In addition, after obtaining the tree construction needing the animation made, can also modify to tree construction, namely can also perform the instruction of following operation:
Described tree construction is modified, wherein, this can comprise the amendment of tree construction the action node in tree construction copied, shear, paste, move, delete, add, node rename and/or nodal community editor etc.
Then now, step " is determined current need action to be processed node according to this tree construction " and is specially: determine current need action node to be processed according to amended tree construction.
Step " is assembled action node after all process according to this tree construction, is obtained making result " and is specially: assemble action node after all process according to amended tree construction, obtain making result.
Optionally, except after obtaining the tree construction needing the animation made, outside can modifying to tree construction, after obtaining making result, also by modifying to tree construction, can realizing making the further object revised to making result, namely can also perform following operational order:
This tree construction is modified, according to amended tree construction, described making result is modified.Wherein, this can comprise the amendment of tree construction the action node in tree construction copied, shear, paste, move, delete, add, node rename and/or nodal community editor etc.
Wherein, according to amended tree construction described making result modified and specifically can comprise:
The action node changed is determined according to this amended tree construction;
If the action node of this change is that the new action node that adds or nodal community are by the action node updated, be then the action sensor selection problem assembly of this change and the action of this assembly needs execution, from set of actions, corresponding action command is called according to the action determined, touching makes this assembly perform described action command, obtain action node after process corresponding to the action node of this change, in this making result, add action node after process corresponding to the action node of this change according to this amended tree construction;
If the action node of this change is the action node copied, then obtain action node after the process corresponding to action node be replicated, as action node after the process that the action node by this change is corresponding, in this making result, add action node after process corresponding to the action node of this change according to this amended tree construction;
If the action node of this change is the action node after moving, then obtain action node after the process corresponding to action node be moved, as action node after the process that the action node of this change is corresponding, in this making result, add action node after process corresponding to the action node of this change according to this amended tree construction;
If the action node of this change is the action node or deleted action node that are sheared or the action node be removed, then action node after action node or the process corresponding to action node that is removed after action node or the process corresponding to deleted action node after deleting corresponding to this action node be sheared process according to this amended tree construction in this making result;
If the action node of this change is by the action node of rename, then this amended tree construction is modified by the nodename of the action node of rename to this in this making result.
The concrete enforcement of above various piece see embodiment above, can not repeat them here.
As from the foregoing, the terminal of the present embodiment adopts the tree construction obtaining and need the animation made, and this tree construction comprises multiple action node, current need action node to be processed is determined according to this tree construction, and be that this current action sensor selection problem assembly of process and this assembly of needing needs the action performed, from set of actions, corresponding action command is called according to the action determined, then touching makes this assembly perform these action commands, obtain processing rear action node, and return the step performing and determine current need action node to be processed, until the everything node processing in this tree construction is complete, finally according to this tree construction, action node after all process is assembled, just can obtain making result, namely the required animation made is obtained.Due in this scenario, securing component and this assembly can need the action of execution neatly, and touch and make this assembly perform according to the action command of this action invocation, to obtain the rear action node of corresponding process, and then according to tree construction, action node after the process corresponding to each action node is assembled, thus the making completed animation, and without the need to such as prior art, make frame by frame according to time shaft, greatly reduce manufacture difficulty, and improve make efficiency, and, due in this scenario, mainly in units of action node, therefore, relative to existing in units of frame for, also subsequent modification and expansion is convenient to, and, data volume is also less.That is, the program not only realizes simply, make efficiency is high, and amendment is convenient and extendability better, and just makes with regard to equal animation, and relative to prior art, the data file that this programme exports is also less.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is that the hardware that can carry out instruction relevant by program has come, this program can be stored in a computer-readable recording medium, storage medium can comprise: ROM (read-only memory) (ROM, ReadOnlyMemory), random access memory (RAM, RandomAccessMemory), disk or CD etc.
Above a kind of animation method, device and system that the embodiment of the present invention provides are described in detail, apply specific case herein to set forth principle of the present invention and embodiment, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, 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.

Claims (10)

1. an animation method, is characterized in that, comprising:
Obtain the tree construction needing the animation made, described tree construction comprises multiple action node;
Determine current need action node to be processed according to described tree construction, and be the action that described current need action to be processed sensor selection problem assembly and described assembly need to perform;
Need the action performed from set of actions, call corresponding action command according to described assembly;
Touching makes described assembly perform described action command, obtains processing rear action node, and returns the step performing and determine current need action node to be processed, until the everything node processing in described tree construction is complete;
According to described tree construction, action node after all process is assembled, obtain making result;
Describedly according to described tree construction, action node after all process to be assembled, obtains making result, comprising:
Using action node after described process as layer, and successively each layer is combined according to the hierarchical relationship indicated by described tree construction, obtain making result.
2. method according to claim 1, is characterized in that, described acquisition also comprises after needing the tree construction of the animation made:
Described tree construction is modified, described amendment comprise the action node in tree construction copied, shear, paste, move, delete, add, node rename and/or nodal community editor;
Describedly determine that current need action to be processed node comprises according to described tree construction: determine current need action node to be processed according to amended tree construction;
Describedly according to described tree construction, action node after all process to be assembled, obtain making result and comprise: according to amended tree construction, action node after all process is assembled, obtain making result.
3. method according to claim 1 and 2, is characterized in that, describedly assembles action node after all process according to described tree construction, after obtaining making result, also comprises:
Described tree construction is modified, described amendment comprise the action node in tree construction copied, shear, paste, move, delete, add, node rename and/or nodal community editor;
According to amended tree construction, described making result is modified.
4. method according to claim 3, is characterized in that, describedly modifies to described making result according to amended tree construction, comprising:
The action node changed is determined according to described amended tree construction;
If the action node of described change is that the new action node that adds or nodal community are by the action node updated, be then the action sensor selection problem assembly of described change and the action of described assembly needs execution, from set of actions, corresponding action command is called according to the action determined, touching makes described assembly perform described action command, obtain action node after process corresponding to the action node of described change, in described making result, add action node after process corresponding to the action node of described change according to described amended tree construction;
If the action node of described change is the action node copied, then obtain action node after the process corresponding to action node be replicated, as action node after the process that the action node by described change is corresponding, in described making result, add action node after process corresponding to the action node of described change according to described amended tree construction;
If the action node of described change is the action node after moving, then obtain action node after the process corresponding to action node be moved, as action node after the process that the action node of described change is corresponding, in described making result, add action node after process corresponding to the action node of described change according to described amended tree construction;
If the action node of described change is the action node or deleted action node that are sheared or the action node be removed, then action node after action node or the process corresponding to action node that is removed after action node or the process corresponding to deleted action node after the process corresponding to action node be sheared described in deleting in described making result according to described amended tree construction;
If the action node of described change is by the action node of rename, then described amended tree construction is modified to the described nodename by the action node of rename in described making result.
5. method according to claim 1 and 2, is characterized in that,
Described action comprises elemental motion and composite move;
Described elemental motion comprises and manifests immediately, disappears immediately, moves, convergent-divergent, rotates, fades in, fades out, gradually arrives, glimmers and/or postpone;
Described composite move comprises played in order, plays and/or repeat simultaneously.
6. a cartoon making device, is characterized in that, comprising:
Acquiring unit, for obtaining the tree construction needing the animation made, described tree construction comprises multiple action node;
Determining unit for determining current need action node to be processed according to described tree construction, and is the action that described current need action to be processed sensor selection problem assembly and described assembly need to perform;
Call unit, for needing the action performed to call corresponding action command from set of actions according to described assembly;
Performance element, making described assembly perform described action command for touching, obtaining processing rear action node, and triggers the operation that current need action node to be processed is determined in determining unit execution, until the everything node processing in described tree construction is complete;
Module units, for assembling action node after all process according to described tree construction, obtains making result;
Described module units, specifically for using action node after described process as layer, and successively each layer to be combined according to the hierarchical relationship indicated by described tree construction, obtains making result.
7. cartoon making device according to claim 6, is characterized in that, also comprises amendment unit;
Amendment unit, for after obtaining the tree construction needing the animation made, described tree construction is modified, described amendment comprise the action node in tree construction copied, shear, paste, move, delete, add, 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, specifically for assembling action node after all process according to amended tree construction, obtains making result.
8. cartoon making device according to claim 7, is characterized in that,
Described amendment unit, also for after obtaining making result, described tree construction is modified, described amendment comprise the action node in tree construction copied, shear, paste, move, delete, add, node rename and/or nodal community editor, according to amended tree construction, described making result is modified.
9. cartoon making device according to claim 8, is characterized in that, described amendment unit, specifically for:
The action node changed is determined according to described amended tree construction;
If the action node of described change is that the new action node that adds or nodal community are by the action node updated, be then the action sensor selection problem assembly of described change and the action of described assembly needs execution, from set of actions, corresponding action command is called according to the action determined, touching makes described assembly perform described action command, obtain action node after process corresponding to the action node of described change, in described making result, add action node after process corresponding to the action node of described change according to described amended tree construction;
If the action node of described change is the action node copied, then obtain action node after the process corresponding to action node be replicated, as action node after the process that the action node by described change is corresponding, in described making result, add action node after process corresponding to the action node of described change according to described amended tree construction;
If the action node of described change is the action node after moving, then obtain action node after the process corresponding to action node be moved, as action node after the process that the action node of described change is corresponding, in described making result, add action node after process corresponding to the action node of described change according to described amended tree construction;
If the action node of described change is the action node or deleted action node that are sheared or the action node be removed, then action node after action node or the process corresponding to action node that is removed after action node or the process corresponding to deleted action node after the process corresponding to action node be sheared described in deleting in described making result according to described amended tree construction;
If the action node of described change is by the action node of rename, then described amended tree construction is modified to the described nodename by the action node of rename in described making result.
10. a computer system, is characterized in that, comprises any one the cartoon making device described in claim 6 to 9.
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 CN104142820A (en) 2014-11-12
CN104142820B true 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)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105118079B (en) * 2015-09-17 2018-08-07 网易(杭州)网络有限公司 Animation displacement drawing process, device and motion control method, device
CN106887030B (en) 2016-06-17 2020-03-06 阿里巴巴集团控股有限公司 Animation generation method and device
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
CN108038160B (en) * 2017-12-06 2019-03-08 央视动画有限公司 Dynamic animation store method, dynamic animation call method and device

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

Also Published As

Publication number Publication date
CN104142820A (en) 2014-11-12

Similar Documents

Publication Publication Date Title
CN104142820B (en) A kind of animation method, device and system
CN105630298A (en) Folder management method and equipment
CN103488403A (en) Switching method and device for interface layout and mobile terminal
CN104978115A (en) Content display method and device
CN103530115B (en) Application program display method and device and terminal equipment
CN104298436A (en) Quick reply operation method and terminal
CN104598476A (en) Message aggregation display method and information display method and relevant device
CN104298558A (en) Information processing method and device
CN103309562A (en) Desktop display method, desktop display device and mobile terminal
CN103559731B (en) Method and terminal for displaying lyrics under screen locking state
CN104571787A (en) Message display method and communication terminal
CN105183296A (en) Interactive interface display method and device
CN103473092A (en) Method and device for processing downloaded applications and terminal equipment
CN105022616A (en) Method and device for generating web page
CN104281394A (en) Method and device for intelligently selecting words
CN103390034A (en) Image display method, device, terminal and server
CN105094809A (en) Combined picture layout modification method and device and terminal equipment
CN104252341A (en) Method and device for resurfacing application program and client side device of application program
CN104375886A (en) Information processing method and device and electronic device
CN104869465A (en) Video playing control method and device
CN104820541A (en) Method and device for reference content show
CN103068016B (en) The method of mobile terminal and reduction power consumption thereof
CN106406924A (en) Application startup and exiting image control method and apparatus, and mobile terminal
CN104881844A (en) Picture combination method and device and terminal equipment
CN103488392A (en) Editing method and device used for editable content of touch screen, and terminal

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