CN105719330A - Animation curve generation method and device - Google Patents
Animation curve generation method and device Download PDFInfo
- Publication number
- CN105719330A CN105719330A CN201410740719.9A CN201410740719A CN105719330A CN 105719330 A CN105719330 A CN 105719330A CN 201410740719 A CN201410740719 A CN 201410740719A CN 105719330 A CN105719330 A CN 105719330A
- Authority
- CN
- China
- Prior art keywords
- state value
- key frame
- represent
- moment
- normalized
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Processing Or Creating Images (AREA)
Abstract
The invention discloses an animation curve generation method and a device. The animation curve generation method comprises steps of obtaining starting time and termination time of a target animation, a state value of a starting key frame of the target animation and a state value of a termination key frame of the target animation, obtaining a state value of the target animation at each moment during the period from the starting time tothe termination time according to the state values of the starting key frame and the termination key frame, generating an animation curve of the target animation according to the state value of each time, and displaying the animation curve in the display screen. The invention solves the technical problem that the animation curve generation efficiency is low because the complex animations like the two-dimension animation, three-dimension animation, etc, need the design staff to mark frame by frame.
Description
Technical field
The present invention relates to image processing field, in particular to generation method and the device of a kind of animation curve.
Background technology
Along with developing rapidly of animation industry, people to animation like be consequently increased.In the process that tableaux is become moving frame, it is necessary to rely on animation curve to process.In prior art, for simple animation curve, for instance one-dimensional animation curve, it is possible to calculated by linear difference and obtain.
But, for complicated animation curve, for instance two-dimentional, three-dimensional animation curve, then need to lean on designer to mark acquisition frame by frame, therefore, it is thus achieved that two dimension, the Complex Animation curve such as three-dimensional needs to consume and spends the substantial amounts of time, reduces the formation efficiency of animation curve.
For above-mentioned problem, effective solution is not yet proposed at present.
Summary of the invention
Embodiments provide generation method and the device of a kind of animation curve, at least to solve owing to the Complex Animation curve such as two-dimentional, three-dimensional needs to rely on designer to mark the technical problem that the animation curve formation efficiency caused is relatively low frame by frame.
An aspect according to embodiments of the present invention, provide a kind of generation method of animation curve, including: obtain the state value of the starting keyframe of the initial time of target animation and end time, described target animation and the state value terminating key frame of described target animation;State value according to described starting keyframe and the state value of described termination key frame, the state value engraved when obtaining each in described initial time to the scope of described end time of described target animation;According to described each time the state value that engraves generate the animation curve of described target animation;Screen shows described animation curve.
Another aspect according to embodiments of the present invention, additionally provide the generation device of a kind of animation curve, including acquiring unit, the state value terminating key frame of state value and described target animation for obtaining the starting keyframe of the initial time of target animation and end time, described target animation;Computing unit, for the state value according to the state value of described starting keyframe and described termination key frame, the state value engraved when obtaining each in described initial time to the scope of described end time of described target animation;Generate unit, for according to described each time the state value that engraves generate the animation curve of described target animation;Display unit, for showing described animation curve in screen.
In embodiments of the present invention, adopt the mode automatically generating animation curve, by obtaining initial time and the end time of target animation, the state value of the starting keyframe of target animation and the state value terminating key frame of target animation, the state value of the state value according to starting keyframe and termination key frame, the state value engraved when obtaining each in initial time to the scope of end time of target animation, and then the state value engraved during according to each generates the animation curve of target animation, reach to automatically generate the purpose of animation curve, it is achieved thereby that it is low to consume the productivity, the technique effect that production efficiency is high, and then solve due to two dimension, the Complex Animation curves such as three-dimensional need to rely on designer to mark the technical problem that the animation curve formation efficiency caused is relatively low frame by frame.
Accompanying drawing explanation
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, and the schematic description and description of the present invention is used for explaining the present invention, is not intended that inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the application scenarios schematic diagram of the generation method of a kind of optional animation curve according to embodiments of the present invention;
Fig. 2 is the schematic flow sheet of the generation method of a kind of optional animation curve according to embodiments of the present invention;
Fig. 3 is the schematic flow sheet of the generation method of another kind of optional animation curve according to embodiments of the present invention;
Fig. 4 is the schematic diagram of a kind of optional animation curve according to embodiments of the present invention;
Fig. 5 is the schematic diagram of another kind of optional animation curve according to embodiments of the present invention;
Fig. 6 is the schematic diagram of another kind of optional animation curve according to embodiments of the present invention;
Fig. 7 is the schematic diagram of another kind of optional animation curve according to embodiments of the present invention;
Fig. 8 is the schematic diagram of another kind of optional animation curve according to embodiments of the present invention;
Fig. 9 is the schematic diagram of another kind of optional animation curve according to embodiments of the present invention;
Figure 10 is the schematic diagram of another kind of optional animation curve according to embodiments of the present invention;
Figure 11 is the schematic diagram of another kind of optional animation curve according to embodiments of the present invention;
Figure 12 is the schematic diagram of another kind of optional animation curve according to embodiments of the present invention;
Figure 13 is the schematic diagram of another kind of optional animation curve according to embodiments of the present invention;
Figure 14 is the schematic diagram of another kind of optional animation curve according to embodiments of the present invention;
Figure 15 is the schematic diagram of another kind of optional animation curve according to embodiments of the present invention;
Figure 16 is the schematic diagram of another kind of optional animation curve according to embodiments of the present invention;
Figure 17 is the schematic diagram of another kind of optional animation curve according to embodiments of the present invention;
Figure 18 is the schematic diagram of another kind of optional animation curve according to embodiments of the present invention;
Figure 19 is the schematic diagram of another kind of optional animation curve according to embodiments of the present invention;
Figure 20 is a kind of optional " micro-look " client display interface schematic diagram according to embodiments of the present invention;
Figure 21 is another kind of optional " micro-look " client display interface schematic diagram according to embodiments of the present invention;
Figure 22 is the generation apparatus structure schematic diagram of a kind of optional animation curve according to embodiments of the present invention;
Figure 23 is the generation apparatus structure schematic diagram of another kind of optional animation curve according to embodiments of the present invention;
Figure 24 is the generation apparatus structure schematic diagram schematic diagram of another kind of optional animation curve according to embodiments of the present invention.
Detailed description of the invention
In order to make those skilled in the art be more fully understood that the present invention program, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the embodiment of a present invention part, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not making creative work premise, all should belong to the scope of protection of the invention.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, " second " etc. are for distinguishing similar object, without being used for describing specific order or precedence.Should be appreciated that the data of so use can be exchanged in the appropriate case, in order to embodiments of the invention described herein can with except here diagram or describe those except order implement.In addition, term " includes " and " having " and their any deformation, it is intended to cover non-exclusive comprising, such as, contain series of steps or the process of unit, method, system, product or equipment be not necessarily limited to those steps or the unit clearly listed, but can include clearly not listing or for intrinsic other step of these processes, method, product or equipment or unit.
Embodiment 1
According to embodiments of the present invention, it is provided that a kind of generation method of animation curve, in the present embodiment, the generation method of above-mentioned animation curve can apply in the hardware environment of the terminal 102 being provided with animation curve Core Generator as shown in Figure 1.As it is shown in figure 1, terminal 102 can be, but not limited to include one below: mobile phone, panel computer.The animation curve Core Generator of terminal 102 is when generating animation curve, according to the state value terminating key frame of the initial time of target animation and end time, the state value of the starting keyframe of target animation and target animation, the animation curve of target animation can be generated.
According to embodiments of the present invention, it is provided that a kind of generation method of animation curve, as in figure 2 it is shown, the method includes:
S202: obtain the state value of the starting keyframe of the initial time of target animation and end time, target animation and the state value terminating key frame of target animation;
S204: according to the state value of starting keyframe and the state value terminating key frame, the state value engraved when obtaining each in initial time to the scope of end time of target animation;
S206: the state value engraved during according to each generates the animation curve of target animation;
S208: show animation curve in screen.
It should be noted that the animation curve of the embodiment of the present invention can be one-dimensional animation curve, it is also possible to being the complicated animation curve such as two-dimentional, three-dimensional, the embodiment of the present invention is without limitation.
Under above-mentioned environment, the generation method of the animation curve provided according to embodiments of the present invention, in step S202, it is necessary to obtain the state value of the starting keyframe of the initial time of target animation and end time, target animation and the state value terminating key frame of target animation.
In embodiments of the present invention, key frame, refer to the first frame that target animation starts and the last frame that target animation terminates;The initial time of target animation, refers to the moment corresponding to the first frame that target animation starts;The end time of target animation, refers to the moment corresponding to the last frame that target animation terminates;State value, it is possible to for the length of object, width, height and transparency etc., for instance, target animation changes the length of object, width, height and transparency, then it is assumed that the state value of this target animation has 4 kinds, is the length of object respectively, width, highly, transparency;Animation value, refer to a kind of state value v that each frame target animation changes and animation frame time t composition value p (t, v);Animation curve, refers to state value v for vertical coordinate, and the time t of each frame of target animation is abscissa t a series of animation value p (t, curve v) formed generated.
Alternatively, the generation device of animation curve can receive the persistent period of the target animation of designer's input, the persistent period according to this target animation, it is determined that the initial time of target animation and end time.Such as, persistent period of target animation of designer's input is 5s, animation curve generate device can according to this 5s determine the initial time of target animation be 0s, target animation end time be 5s.
Alternatively, the state value of the starting keyframe of target animation and the state value terminating key frame of target animation can be that designer inputs the generation device to animation curve, such as, designer wants to become transparent by the transparency of picture A from opaque, then can input the state value V of the starting keyframe of target animation0It is 1, the state value V terminating key frame of target animation1It is 0.
Under above-mentioned environment, the generation method of the animation curve provided according to embodiments of the present invention, in step S204, it is possible to according to the state value of starting keyframe and the state value terminating key frame, the state value engraved when obtaining each in initial time to the scope of end time of target animation.And then, in step S206, the state value engraved during according to each generates the animation curve of target animation.
In embodiments of the present invention, after obtaining the initial time of target animation and end time, the state value of starting keyframe of target animation and the state value terminating key frame of target animation, it is possible to the state value engraved when obtaining each in initial time to the scope of end time of target animation according to above-mentioned parameters.Such as optional, as it is shown on figure 3, before step S204, also include:
S302: each moment within the scope of initial time to end time is normalized.
Alternatively, the state value of the state value according to starting keyframe and termination key frame, the state value engraved when obtaining each in initial time to the scope of end time of target animation, including: according to each moment after the state value of starting keyframe, the state value terminating key frame and normalized, obtain the state value that target animation engraves when each.
Wherein, normalization is that a kind of dimensionless processes means, makes the absolute value of physical system numerical value become certain relative value's relation, is about to the expression formula having dimension, through conversion, turn to nondimensional expression formula, becomes mark bright.Such as, being 0s in the scope that end time is 5s of target animation at the initial time of target animation, the value after being normalized the 3rd second is 3/5=0.6.
In the implementation that the first is possible, according to each moment after the state value of starting keyframe, the state value terminating key frame and normalized, obtain the state value that target animation engraves when each, including:
By formula V=V0+T×(V1-V0) state value that engraves when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
Such as, the state value V of the starting keyframe of target animation0=1, the state value V terminating key frame of target animation1=0, T is by the moment after each moment within the scope of initial time 0s to end time 5s is normalized, then such as:
As T=0/5=0, V=1+0 × (0-1)=1;
As T=1/5=0.2, V=1+0.2 × (0-1)=0.8;
As T=2/5=0.4, V=1+0.4 × (0-1)=0.6;
As T=3/5=0.6, V=1+0.6 × (0-1)=0.4;
As T=4/5=0.8, V=1+0.8 × (0-1)=0.2;
As T=5/5=1, V=1+1 × (0-1)=0.
By that analogy, the state value engraved when obtaining each, and then the animation curve that the state value generation engraved during according to each is as shown in Figure 4.For target animation, the transparency of picture A between 0s to 5s from opaque at the uniform velocity become transparent.
Wherein, the first possible implementation above-mentioned is linear interpolation algorithm.
In the implementation that the second is possible, according to each moment after the state value of starting keyframe, the state value terminating key frame and normalized, obtain the state value that target animation engraves when each, including:
By formula V=(V1-V0)×T×T+V0The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
Such as, the state value V of the starting keyframe of target animation0=1, the state value V terminating key frame of target animation1=0, T is by the moment after each moment within the scope of initial time 0s to end time 5s is normalized, then such as:
As T=0/5=0, V=(0-1) × 0 × 0+1=1;
As T=1/5=0.2, V=(0-1) × 0.2 × 0.2+1=0.96;
As T=2/5=0.4, V=(0-1) × 0.4 × 0.4+1=0.84;
As T=3/5=0.6, V=(0-1) × 0.6 × 0.6+1=0.64;
As T=4/5=0.8, V=(0-1) × 0.8 × 0.8+1=0.36;
As T=5/5=1, V=(0-1) × 1 × 1+1=0.
By that analogy, the state value engraved when obtaining each, and then the animation curve that the state value generation engraved during according to each is as shown in Figure 5.For target animation, the transparency of picture A becomes transparent from opaque quickening gradually between 0s to 5s.
In the implementation that the third is possible, according to each moment after the state value of starting keyframe, the state value terminating key frame and normalized, obtain the state value that target animation engraves when each, including:
By formula V=-(V1-V0)×T×(T-2)+V0The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
Such as, the state value V of the starting keyframe of target animation0=1, the state value V terminating key frame of target animation1=0, T is by the moment after each moment within the scope of initial time 0s to end time 5s is normalized, then such as:
As T=0/5=0, V=-(0-1) × 0 × (0-2)+1=1;
As T=1/5=0.2, V=-(0-1) × 0.2 × (0.2-2)+1=0.64;
As T=2/5=0.4, V=-(0-1) × 0.4 × (0.4-2)+1=0.36;
As T=3/5=0.6, V=-(0-1) × 0.6 × (0.6-2)+1=0.16;
As T=4/5=0.8, V=-(0-1) × 0.8 × (0.8-2)+1=0.04;
As T=5/5=1, V=-(0-1) × 1 × (1-2)+1=0.
By that analogy, the state value engraved when obtaining each, and then the animation curve that the state value generation engraved during according to each is as shown in Figure 6.For target animation, the transparency of picture A between 0s to 5s from opaque slow down gradually become transparent.
In the 4th kind of possible implementation, according to each moment after the state value of starting keyframe, the state value terminating key frame and normalized, obtain the state value that target animation engraves when each, including:
Pass through formula The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
Such as, the state value V of the starting keyframe of target animation0=1, the state value V terminating key frame of target animation1=0, T is by the moment after each moment within the scope of initial time 0s to end time 5s is normalized, then such as:
As T=0/5=0, V=(0-1)/2 × 2 × 0 × 2 × 0+1=1;
As T=1/5=0.2, V=(0-1)/2 × 2 × 0.2 × 2 × 0.2+1=0.92;
As T=2/5=0.4, V=(0-1)/2 × 2 × 0.4 × 2 × 0.4+1=0.68;
As T=3/5=0.6, V=-(0-1)/2 × [(2 × 0.6-1) × (2 × 0.6-3)-1]+1=0.32;
As T=4/5=0.8, V=-(0-1)/2 × [(2 × 0.8-1) × (2 × 0.8-3)-1]+1=0.08;
As T=5/5=1, V=-(0-1)/2 × [(2 × 1-1) × (2 × 1-3)-1]+1=0.
By that analogy, the state value engraved when obtaining each, and then the animation curve that the state value generation engraved during according to each is as shown in Figure 7.For target animation, the transparency of picture A between 0s to 5s from opaque transparent to becoming slowly more from slow to fast.
Wherein, the implementation that above-mentioned the second is possible to above-mentioned 4th kind of possible implementation is quadratic power interpolation algorithm.
In the 5th kind of possible implementation, according to each moment after the state value of starting keyframe, the state value terminating key frame and normalized, obtain the state value that target animation engraves when each, including:
By formula V=(V1-V0)×T×T×T+V0The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
Such as, the state value V of the starting keyframe of target animation0=1, the state value V terminating key frame of target animation1=0, T is by the moment after each moment within the scope of initial time 0s to end time 5s is normalized, then such as:
As T=0/5=0, V=(0-1) × 0 × 0 × 0+1=1;
As T=1/5=0.2, V=(0-1) × 0.2 × 0.2 × 0.2+1=0.992;
As T=2/5=0.4, V=(0-1) × 0.4 × 0.4 × 0.4+1=0.936;
As T=3/5=0.6, V=(0-1) × 0.6 × 0.6 × 0.6+1=0.784;
As T=4/5=0.8, V=(0-1) × 0.8 × 0.8 × 0.8+1=0.488;
As T=5/5=1, V=(0-1) × 1 × 1 × 1+1=0.
By that analogy, the state value engraved when obtaining each, and then the animation curve that the state value generation engraved during according to each is as shown in Figure 8.For target animation, the transparency of picture A becomes transparent from opaque quickening gradually between 0s to 5s.
In the 6th kind of possible implementation, according to each moment after the state value of starting keyframe, the state value terminating key frame and normalized, obtain the state value that target animation engraves when each, including:
By formula V=(V1-V0)×[(T-1)×(T-1)×(T-1)+1]+V0The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
Such as, the state value V of the starting keyframe of target animation0=1, the state value V terminating key frame of target animation1=0, T is by the moment after each moment within the scope of initial time 0s to end time 5s is normalized, then such as:
As T=0/5=0, V=(0-1) × [(0-1) × (0-1) × (0-1)+1]+1=1;
As T=1/5=0.2, V=(0-1) × [(0.2-1) × (0.2-1) × (0.2-1)+1]+1=0.512;
As T=2/5=0.4, V=(0-1) × [(0.4-1) × (0.4-1) × (0.4-1)+1]+1=0.216;
As T=3/5=0.6, V=(0-1) × [(0.6-1) × (0.6-1) × (0.6-1)+1]+1=0.064;
As T=4/5=0.8, V=(0-1) × [(0.8-1) × (0.8-1) × (0.8-1)+1]+1=0.008;
As T=5/5=1, V=(0-1) × [(1-1) × (1-1) × (1-1)+1]+1=0.
By that analogy, the state value engraved when obtaining each, and then the animation curve that the state value generation engraved during according to each is as shown in Figure 9.For target animation, the transparency of picture A between 0s to 5s from opaque slow down gradually become transparent.
In the 7th kind of possible implementation, according to each moment after the state value of starting keyframe, the state value terminating key frame and normalized, obtain the state value that target animation engraves when each, including:
Pass through formula The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
Such as, the state value V of the starting keyframe of target animation0=1, the state value V terminating key frame of target animation1=0, T is by the moment after each moment within the scope of initial time 0s to end time 5s is normalized, then such as:
As T=0/5=0, V=(0-1)/2 × 2 × 0 × 2 × 0 × 2 × 0+1=1;
As T=1/5=0.2, V=(0-1)/2 × 2 × 0.2 × 2 × 0.2 × 2 × 0.2+1=0.968;
As T=2/5=0.4, V=(0-1)/2 × 2 × 0.4 × 2 × 0.4 × 2 × 0.4+1=0.744;
As T=3/5=0.6, V=(0-1)/2 × [(2 × 0.6-2) × (2 × 0.6-2) × (2 × 0.6-2)+2]+1=0.256;
As T=4/5=0.8, V=(0-1)/2 × [(2 × 0.8-2) × (2 × 0.8-2) × (2 × 0.8-2)+2]+1=0.032;
As T=5/5=1, V=(0-1)/2 × [(2 × 1-2) × (2 × 1-2) × (2 × 1-2)+2]+1=0.
By that analogy, the state value engraved when obtaining each, and then the animation curve that the state value generation engraved during according to each is as shown in Figure 10.For target animation, the transparency of picture A between 0s to 5s from opaque transparent to becoming slowly more from slow to fast.
Wherein, above-mentioned 5th kind of possible implementation to above-mentioned 7th kind of possible implementation is cube interpolation algorithm.
Similar with said method, in the 8th kind of possible implementation, according to each moment after the state value of starting keyframe, the state value terminating key frame and normalized, obtain the state value that target animation engraves when each, including:
By formula V=(V1-V0)×T×T×T×T+V0The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
The state value engraved when obtaining each according to this formula, and then the animation curve that the state value generation engraved during according to each is as shown in figure 11.For target animation, the transparency of picture A becomes transparent from opaque quickening gradually between 0s to 5s.
Similar with said method, in the 9th kind of possible implementation, according to each moment after the state value of starting keyframe, the state value terminating key frame and normalized, obtain the state value that target animation engraves when each, including:
By formula V=-(V0-V1)×[(T-1)×(T-1)×(T-1)×(T-1)-1]+V0The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
The state value engraved when obtaining each according to this formula, and then the animation curve that the state value generation engraved during according to each is as shown in figure 12.For target animation, the transparency of picture A between 0s to 5s from opaque slow down gradually become transparent.
Similar with said method, in the tenth kind of possible implementation, according to each moment after the state value of starting keyframe, the state value terminating key frame and normalized, obtain the state value that target animation engraves when each, including:
Pass through formula The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
The state value engraved when obtaining each according to this formula, and then the state value engraved during according to each generates animation curve as shown in fig. 13 that.For target animation, the transparency of picture A between 0s to 5s from opaque transparent to becoming slowly more from slow to fast.
Similar with said method, in the 11st kind of possible implementation, according to each moment after the state value of starting keyframe, the state value terminating key frame and normalized, obtain the state value that target animation engraves when each, including:
By formula V=-(V1-V0)×cos[T/1×(π/2)]+(V1-V0)+V0The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
The state value engraved when obtaining each according to this formula, and then the animation curve that the state value generation engraved during according to each is as shown in figure 14.For target animation, the transparency of picture A becomes transparent from opaque quickening gradually between 0s to 5s.
Similar with said method, in the 12nd kind of possible implementation, according to each moment after the state value of starting keyframe, the state value terminating key frame and normalized, obtain the state value that target animation engraves when each, including:
By formula V=(V1-V0)×sin[T/1×(π/2)]+V0The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
The state value engraved when obtaining each according to this formula, and then the animation curve that the state value generation engraved during according to each is as shown in figure 15.For target animation, the transparency of picture A between 0s to 5s from opaque slow down gradually become transparent.
Similar with said method, in the 13rd kind of possible implementation, according to each moment after the state value of starting keyframe, the state value terminating key frame and normalized, obtain the state value that target animation engraves when each, including:
By formula V=-(V1-V0)/2×[cos(π×2T/1)-1]+V0The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
The state value engraved when obtaining each according to this formula, and then the animation curve that the state value generation engraved during according to each is as shown in figure 16.For target animation, the transparency of picture A between 0s to 5s from opaque become according to animation curve transparent.
Similar with said method, in the 14th kind of possible implementation, according to each moment after the state value of starting keyframe, the state value terminating key frame and normalized, obtain the state value that target animation engraves when each, including:
By formula V=(V1-V0)×pow[2,10×(T/1-1)]+V0The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
The state value engraved when obtaining each according to this formula, and then the animation curve that the state value generation engraved during according to each is as shown in figure 17.For target animation, the transparency of picture A between 0s to 5s from opaque become according to animation curve transparent.
Similar with said method, in the 15th kind of possible implementation, according to each moment after the state value of starting keyframe, the state value terminating key frame and normalized, obtain the state value that target animation engraves when each, including:
By formula V=(V1-V0)×[pow(2,-10×T/1)+1)]+V0The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
The state value engraved when obtaining each according to this formula, and then the animation curve that the state value generation engraved during according to each is as shown in figure 18.For target animation, the transparency of picture A between 0s to 5s from opaque become according to animation curve transparent.
Similar with said method, in the 16th kind of possible implementation, according to each moment after the state value of starting keyframe, the state value terminating key frame and normalized, obtain the state value that target animation engraves when each, including:
Pass through formula The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
The state value engraved when obtaining each according to this formula, and then the animation curve that the state value generation engraved during according to each is as shown in figure 19.For target animation, the transparency of picture A between 0s to 5s from opaque become according to animation curve transparent.
It should be noted that in above-mentioned various possible implementation, sin (x) refers to the function of definition in C language Math (mathematics) storehouse, being used for asking the sine value of set-point, its prototype is: doublesin (doublex);Cos (x) refers to the function of definition in C language Math storehouse, is used for asking the cosine value of set-point, and its prototype is: doublecos (doublex);(x, y) refers to the function of definition in C language Math storehouse to pow, is used for asking the y power of x, and its prototype is: doublepow (doublex, doubley), and wherein, x, y represents variable.
The generation method of above-mentioned animation curve, it is possible to be applied in the client for making animation effect, this client can use different animation curves, and image, video etc. are processed, and forms specific animation effect.Such as, " micro-depending on " client can be used to make dynamic photograph album, as shown in figure 20, after clicking " dynamic photograph album " button, user can select the photo for making dynamic photograph album, and then jump to the dynamic photograph album display interface with animation effect as shown in figure 21, for " sandy beach " effect, in " sandy beach " effect, every photo all moves with the photo frame in seabeach and moves, so every photo needs an animation changing position, so can adopt the quadratic power interpolation algorithm in the possible implementation of above-mentioned the second, namely first microinching then speed is accelerated gradually, to form required animation effect.Certainly, different scenes can be selected suitable animation curve by designer, and the embodiment of the present invention is without limitation.
Alternatively, after step s 204, method can also include:
S1: the state value engraved during by each stores with json form.
Specifically, the animation curve of the embodiment of the present invention generate device can by each time the state value that engraves be saved as file with json form, its form can be { " value ": [V0, ..., V1], " keytimes ": [T0 ..., T1] }, facilitate designer to be applied directly in target animation.
Under above-mentioned environment, the generation method of the animation curve provided according to embodiments of the present invention, in step S208, it is possible to show animation curve in screen.
In above-described embodiment, all transparencys to change picture A, the method generating animation curve has been carried out exemplary illustration, and for other state value, for instance length, width, height and position etc., all can adopt said method, repeat no more herein.
In embodiments of the present invention, adopt the mode automatically generating animation curve, by obtaining initial time and the end time of target animation, the state value of the starting keyframe of target animation and the state value terminating key frame of target animation, the state value of the state value according to starting keyframe and termination key frame, the state value engraved when obtaining each in initial time to the scope of end time of target animation, and then the state value engraved during according to each generates the animation curve of target animation, reach multiple interpolation algorithm, automatically generate animation curve, designer is facilitated quickly to realize the purpose of Complex Animation, compare thus all marking with all frames of designer in prior art, achieve automatization, consume the productivity low, greatly improve the technique effect of production efficiency, and then solve due to two dimension, the Complex Animation curves such as three-dimensional need to rely on designer to mark the technical problem that the animation curve formation efficiency caused is relatively low frame by frame.
It should be noted that, for aforesaid each embodiment of the method, in order to be briefly described, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not by the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, embodiment described in this description belongs to preferred embodiment, necessary to involved action and the module not necessarily present invention.
Through the above description of the embodiments, those skilled in the art is it can be understood that can add the mode of required general hardware platform by software to the method according to above-described embodiment and realize, hardware can certainly be passed through, but in a lot of situation, the former is embodiment more preferably.Based on such understanding, the part that prior art is contributed by technical scheme substantially in other words can embody with the form of software product, this computer software product is stored in a storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions with so that a station terminal equipment (can be mobile phone, computer, server, or the network equipment etc.) method that performs each embodiment of the present invention.
Embodiment 2
According to embodiments of the present invention, it is provided that the generation device of a kind of animation curve, in the present embodiment, the generation device of above-mentioned animation curve can apply in the hardware environment of the terminal 102 being provided with animation curve Core Generator as shown in Figure 1.As it is shown in figure 1, terminal 102 can be, but not limited to include one below: mobile phone, panel computer.The animation curve Core Generator of terminal 102 is when generating animation curve, according to the state value terminating key frame of the initial time of target animation and end time, the state value of the starting keyframe of target animation and target animation, the animation curve of target animation can be generated.
According to embodiments of the present invention, additionally providing the generation device of the animation curve of a kind of generation method for implementing above-mentioned animation curve, as shown in figure 22, this device includes:
Acquiring unit 2002, the state value terminating key frame of state value and target animation for obtaining the starting keyframe of the initial time of target animation and end time, target animation;
Computing unit 2004, for according to the state value of starting keyframe and the state value terminating key frame, the state value engraved when obtaining each in initial time to the scope of end time of target animation;
Generating unit 2006, the state value for engraving during according to each generates the animation curve of target animation;
Display unit 2008, for showing animation curve in screen.
It should be noted that the animation curve of the embodiment of the present invention can be one-dimensional animation curve, it is also possible to being the complicated animation curve such as two-dimentional, three-dimensional, the embodiment of the present invention is without limitation.
In embodiments of the present invention, key frame, refer to the first frame that target animation starts and the last frame that target animation terminates;The initial time of target animation, refers to the moment corresponding to the first frame that target animation starts;The end time of target animation, refers to the moment corresponding to the last frame that target animation terminates;State value, it is possible to for the length of object, width, height and transparency etc., for instance, target animation changes the length of object, width, height and transparency, then it is assumed that the state value of this target animation has 4 kinds, is the length of object respectively, width, highly, transparency;Animation value, refer to a kind of state value v that each frame target animation changes and animation frame time t composition value p (t, v);Animation curve, refers to state value v for vertical coordinate, and the time t of each frame of target animation is abscissa t a series of animation value p (t, curve v) formed generated.
Alternatively, the generation device of animation curve can receive the persistent period of the target animation of designer's input, the persistent period according to this target animation, it is determined that the initial time of target animation and end time.Such as, persistent period of target animation of designer's input is 5s, animation curve generate device can according to this 5s determine the initial time of target animation be 0s, target animation end time be 5s.
Alternatively, the state value of the starting keyframe of target animation and the state value terminating key frame of target animation can be that designer inputs the generation device to animation curve, such as, designer wants to become transparent by the transparency of picture A from opaque, then can input the state value V of the starting keyframe of target animation0It is 1, the state value V terminating key frame of target animation1It is 0.
In embodiments of the present invention, after obtaining the initial time of target animation and end time, the state value of starting keyframe of target animation and the state value terminating key frame of target animation, it is possible to the state value engraved when obtaining each in initial time to the scope of end time of target animation according to above-mentioned parameters.Such as optional, as shown in figure 23, this device also includes:
Processing unit 2102, for being normalized each moment within the scope of initial time to end time;
Wherein, computing unit 2004 is for performing following steps with the state value realized according to starting keyframe and the state value terminating key frame, the state value engraved when obtaining each in initial time to the scope of end time of target animation: according to each moment after the state value of starting keyframe, the state value terminating key frame and normalized, obtain the state value that target animation engraves when each.
Wherein, normalization is that a kind of dimensionless processes means, makes the absolute value of physical system numerical value become certain relative value's relation, is about to the expression formula having dimension, through conversion, turn to nondimensional expression formula, becomes mark bright.Such as, being 0s in the scope that end time is 5s of target animation at the initial time of target animation, the value after being normalized the 3rd second is 3/5=0.6.
Alternatively, computing unit 2004, for performing following steps with realization according to each moment after the state value of starting keyframe, the state value terminating key frame and normalized, obtains the state value that target animation engraves when each: by formula V=V0+T×(V1-V0) state value that engraves when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
Such as, the state value V of the starting keyframe of target animation0=1, the state value V terminating key frame of target animation1=0, T is by the moment after each moment within the scope of initial time 0s to end time 5s is normalized, then such as:
As T=0/5=0, V=1+0 × (0-1)=1;
As T=1/5=0.2, V=1+0.2 × (0-1)=0.8;
As T=2/5=0.4, V=1+0.4 × (0-1)=0.6;
As T=3/5=0.6, V=1+0.6 × (0-1)=0.4;
As T=4/5=0.8, V=1+0.8 × (0-1)=0.2;
As T=5/5=1, V=1+1 × (0-1)=0.
By that analogy, the state value engraved when obtaining each, and then the animation curve that the state value generation engraved during according to each is as shown in Figure 4.For target animation, the transparency of picture A between 0s to 5s from opaque at the uniform velocity become transparent.
Alternatively, computing unit 2004, for performing following steps with realization according to each moment after the state value of starting keyframe, the state value terminating key frame and normalized, obtains the state value that target animation engraves when each: by formula V=(V1-V0)×T×T+V0The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
Such as, the state value V of the starting keyframe of target animation0=1, the state value V terminating key frame of target animation1=0, T is by the moment after each moment within the scope of initial time 0s to end time 5s is normalized, then such as:
As T=0/5=0, V=(0-1) × 0 × 0+1=1;
As T=1/5=0.2, V=(0-1) × 0.2 × 0.2+1=0.96;
As T=2/5=0.4, V=(0-1) × 0.4 × 0.4+1=0.84;
As T=3/5=0.6, V=(0-1) × 0.6 × 0.6+1=0.64;
As T=4/5=0.8, V=(0-1) × 0.8 × 0.8+1=0.36;
As T=5/5=1, V=(0-1) × 1 × 1+1=0.
By that analogy, the state value engraved when obtaining each, and then the animation curve that the state value generation engraved during according to each is as shown in Figure 5.For target animation, the transparency of picture A becomes transparent from opaque quickening gradually between 0s to 5s.
Alternatively, computing unit 2004, for performing following steps with realization according to each moment after the state value of starting keyframe, the state value terminating key frame and normalized, obtains the state value that target animation engraves when each: by formula V=-(V1-V0)×T×(T-2)+V0The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
Such as, the state value V of the starting keyframe of target animation0=1, the state value V terminating key frame of target animation1=0, T is by the moment after each moment within the scope of initial time 0s to end time 5s is normalized, then such as:
As T=0/5=0, V=-(0-1) × 0 × (0-2)+1=1;
As T=1/5=0.2, V=-(0-1) × 0.2 × (0.2-2)+1=0.64;
As T=2/5=0.4, V=-(0-1) × 0.4 × (0.4-2)+1=0.36;
As T=3/5=0.6, V=-(0-1) × 0.6 × (0.6-2)+1=0.16;
As T=4/5=0.8, V=-(0-1) × 0.8 × (0.8-2)+1=0.04;
As T=5/5=1, V=-(0-1) × 1 × (1-2)+1=0.
By that analogy, the state value engraved when obtaining each, and then the animation curve that the state value generation engraved during according to each is as shown in Figure 6.For target animation, the transparency of picture A between 0s to 5s from opaque slow down gradually become transparent.
Alternatively, computing unit 2004, for performing following steps with realization according to each moment after the state value of starting keyframe, the state value terminating key frame and normalized, obtains the state value that target animation engraves when each: pass through formula The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
Such as, the state value V of the starting keyframe of target animation0=1, the state value V terminating key frame of target animation1=0, T is by the moment after each moment within the scope of initial time 0s to end time 5s is normalized, then such as:
As T=0/5=0, V=(0-1)/2 × 2 × 0 × 2 × 0+1=1;
As T=1/5=0.2, V=(0-1)/2 × 2 × 0.2 × 2 × 0.2+1=0.92;
As T=2/5=0.4, V=(0-1)/2 × 2 × 0.4 × 2 × 0.4+1=0.68;
As T=3/5=0.6, V=-(0-1)/2 × [(2 × 0.6-1) × (2 × 0.6-3)-1]+1=0.32;
As T=4/5=0.8, V=-(0-1)/2 × [(2 × 0.8-1) × (2 × 0.8-3)-1]+1=0.08;
As T=5/5=1, V=-(0-1)/2 × [(2 × 1-1) × (2 × 1-3)-1]+1=0.
By that analogy, the state value engraved when obtaining each, and then the animation curve that the state value generation engraved during according to each is as shown in Figure 7.For target animation, the transparency of picture A between 0s to 5s from opaque transparent to becoming slowly more from slow to fast.
Alternatively, computing unit 2004, for performing following steps with realization according to each moment after the state value of starting keyframe, the state value terminating key frame and normalized, obtains the state value that target animation engraves when each: by formula V=(V1-V0)×T×T×T+V0The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
Such as, the state value V of the starting keyframe of target animation0=1, the state value V terminating key frame of target animation1=0, T is by the moment after each moment within the scope of initial time 0s to end time 5s is normalized, then such as:
As T=0/5=0, V=(0-1) × 0 × 0 × 0+1=1;
As T=1/5=0.2, V=(0-1) × 0.2 × 0.2 × 0.2+1=0.992;
As T=2/5=0.4, V=(0-1) × 0.4 × 0.4 × 0.4+1=0.936;
As T=3/5=0.6, V=(0-1) × 0.6 × 0.6 × 0.6+1=0.784;
As T=4/5=0.8, V=(0-1) × 0.8 × 0.8 × 0.8+1=0.488;
As T=5/5=1, V=(0-1) × 1 × 1 × 1+1=0.
By that analogy, the state value engraved when obtaining each, and then the animation curve that the state value generation engraved during according to each is as shown in Figure 8.For target animation, the transparency of picture A becomes transparent from opaque quickening gradually between 0s to 5s.
Alternatively, computing unit 2004, for performing following steps with realization according to each moment after the state value of starting keyframe, the state value terminating key frame and normalized, obtains the state value that target animation engraves when each: by formula V=(V1-V0)×[(T-1)×(T-1)×(T-1)+1]+V0The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
Such as, the state value V of the starting keyframe of target animation0=1, the state value V terminating key frame of target animation1=0, T is by the moment after each moment within the scope of initial time 0s to end time 5s is normalized, then such as:
As T=0/5=0, V=(0-1) × [(0-1) × (0-1) × (0-1)+1]+1=1;
As T=1/5=0.2, V=(0-1) × [(0.2-1) × (0.2-1) × (0.2-1)+1]+1=0.512;
As T=2/5=0.4, V=(0-1) × [(0.4-1) × (0.4-1) × (0.4-1)+1]+1=0.216;
As T=3/5=0.6, V=(0-1) × [(0.6-1) × (0.6-1) × (0.6-1)+1]+1=0.064;
As T=4/5=0.8, V=(0-1) × [(0.8-1) × (0.8-1) × (0.8-1)+1]+1=0.008;
As T=5/5=1, V=(0-1) × [(1-1) × (1-1) × (1-1)+1]+1=0.
By that analogy, the state value engraved when obtaining each, and then the animation curve that the state value generation engraved during according to each is as shown in Figure 9.For target animation, the transparency of picture A between 0s to 5s from opaque slow down gradually become transparent.
Alternatively, computing unit, for performing following steps with realization according to each moment after the state value of starting keyframe, the state value terminating key frame and normalized, obtains the state value that target animation engraves when each: pass through formula The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
Such as, the state value V of the starting keyframe of target animation0=1, the state value V terminating key frame of target animation1=0, T is by the moment after each moment within the scope of initial time 0s to end time 5s is normalized, then such as:
As T=0/5=0, V=(0-1)/2 × 2 × 0 × 2 × 0 × 2 × 0+1=1;
As T=1/5=0.2, V=(0-1)/2 × 2 × 0.2 × 2 × 0.2 × 2 × 0.2+1=0.968;
As T=2/5=0.4, V=(0-1)/2 × 2 × 0.4 × 2 × 0.4 × 2 × 0.4+1=0.744;
As T=3/5=0.6, V=(0-1)/2 × [(2 × 0.6-2) × (2 × 0.6-2) × (2 × 0.6-2)+2]+1=0.256;
As T=4/5=0.8, V=(0-1)/2 × [(2 × 0.8-2) × (2 × 0.8-2) × (2 × 0.8-2)+2]+1=0.032;
As T=5/5=1, V=(0-1)/2 × [(2 × 1-2) × (2 × 1-2) × (2 × 1-2)+2]+1=0.
By that analogy, the state value engraved when obtaining each, and then the animation curve that the state value generation engraved during according to each is as shown in Figure 10.For target animation, the transparency of picture A between 0s to 5s from opaque transparent to becoming slowly more from slow to fast.
Alternatively, computing unit 2004, for performing following steps with realization according to each moment after the state value of starting keyframe, the state value terminating key frame and normalized, obtains the state value that target animation engraves when each: by formula V=(V1-V0)×T×T×T×T+V0The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
The state value engraved when obtaining each according to this formula, and then the animation curve that the state value generation engraved during according to each is as shown in figure 11.For target animation, the transparency of picture A becomes transparent from opaque quickening gradually between 0s to 5s.
Alternatively, computing unit 2004, for performing following steps with realization according to each moment after the state value of starting keyframe, the state value terminating key frame and normalized, obtains the state value that target animation engraves when each: by formula V=-(V0-V1)×[(T-1)×(T-1)×(T-1)×(T-1)-1]+V0The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
The state value engraved when obtaining each according to this formula, and then the animation curve that the state value generation engraved during according to each is as shown in figure 12.For target animation, the transparency of picture A between 0s to 5s from opaque slow down gradually become transparent.
Alternatively, computing unit, for performing following steps with realization according to each moment after the state value of starting keyframe, the state value terminating key frame and normalized, obtains the state value that target animation engraves when each: pass through formula The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
The state value engraved when obtaining each according to this formula, and then the state value engraved during according to each generates animation curve as shown in fig. 13 that.For target animation, the transparency of picture A between 0s to 5s from opaque transparent to becoming slowly more from slow to fast.
Alternatively, computing unit 2004, for performing following steps with realization according to each moment after the state value of starting keyframe, the state value terminating key frame and normalized, obtains the state value that target animation engraves when each: by formula V=-(V1-V0)×cos[T/1×(π/2)]+(V1-V0)+V0The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
The state value engraved when obtaining each according to this formula, and then the animation curve that the state value generation engraved during according to each is as shown in figure 14.For target animation, the transparency of picture A becomes transparent from opaque quickening gradually between 0s to 5s.
Alternatively, computing unit 2004, for performing following steps with realization according to each moment after the state value of starting keyframe, the state value terminating key frame and normalized, obtains the state value that target animation engraves when each: by formula V=(V1-V0)×sin[T/1×(π/2)]+V0The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
The state value engraved when obtaining each according to this formula, and then the animation curve that the state value generation engraved during according to each is as shown in figure 15.For target animation, the transparency of picture A between 0s to 5s from opaque slow down gradually become transparent.
Alternatively, computing unit 2004, for performing following steps with realization according to each moment after the state value of starting keyframe, the state value terminating key frame and normalized, obtains the state value that target animation engraves when each: by formula V=-(V1-V0)/2×[cos(π×2T/1)-1]+V0The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
The state value engraved when obtaining each according to this formula, and then the animation curve that the state value generation engraved during according to each is as shown in figure 16.For target animation, the transparency of picture A between 0s to 5s from opaque become according to animation curve transparent.
Alternatively, computing unit 2004, for performing following steps with realization according to each moment after the state value of starting keyframe, the state value terminating key frame and normalized, obtains the state value that target animation engraves when each: by formula V=(V1-V0)×pow[2,10×(T/1-1)]+V0The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
The state value engraved when obtaining each according to this formula, and then the animation curve that the state value generation engraved during according to each is as shown in figure 17.For target animation, the transparency of picture A between 0s to 5s from opaque become according to animation curve transparent.
Alternatively, computing unit 2004, for performing following steps with realization according to each moment after the state value of starting keyframe, the state value terminating key frame and normalized, obtains the state value that target animation engraves when each: by formula V=(V1-V0)×[pow(2,-10×T/1)+1)]+V0The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
The state value engraved when obtaining each according to this formula, and then the animation curve that the state value generation engraved during according to each is as shown in figure 18.For target animation, the transparency of picture A between 0s to 5s from opaque become according to animation curve transparent.
Alternatively, computing unit 2004, for performing following steps with realization according to each moment after the state value of starting keyframe, the state value terminating key frame and normalized, obtains the state value that target animation engraves when each: pass through formula The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
The state value engraved when obtaining each according to this formula, and then the animation curve that the state value generation engraved during according to each is as shown in figure 19.For target animation, the transparency of picture A between 0s to 5s from opaque become according to animation curve transparent.
It should be noted that in above-mentioned various possible implementation, sin (x) refers to the function of definition in C language Math (mathematics) storehouse, being used for asking the sine value of set-point, its prototype is: doublesin (doublex);Cos (x) refers to the function of definition in C language Math storehouse, is used for asking the cosine value of set-point, and its prototype is: doublecos (doublex);(x, y) refers to the function of definition in C language Math storehouse to pow, is used for asking the y power of x, and its prototype is: doublepow (doublex, doubley), and wherein, x, y represents variable.
Alternatively, as shown in figure 24, the generation device of the animation curve of the embodiment of the present invention also includes:
Memory element 2202, stores with json form for the state value engraved during by each.
Specifically, the animation curve of the embodiment of the present invention generate device can by each time the state value that engraves be saved as file with json form, its form can be " value ": [V0 ..., V1], " keytimes ": [T0 ..., T1] }, wherein, keytimes represents each moment, the state value that value engraves when representing each, facilitates designer to be applied directly in target animation.
In embodiments of the present invention, adopt the mode automatically generating animation curve, by obtaining initial time and the end time of target animation, the state value of the starting keyframe of target animation and the state value terminating key frame of target animation, the state value of the state value according to starting keyframe and termination key frame, the state value engraved when obtaining each in initial time to the scope of end time of target animation, and then the state value engraved during according to each generates the animation curve of target animation, reach multiple interpolation algorithm, automatically generate animation curve, designer is facilitated quickly to realize the purpose of Complex Animation, compare thus all marking with all frames of designer in prior art, achieve automatization, consume the productivity low, greatly improve the technique effect of production efficiency, and then solve due to two dimension, the Complex Animation curves such as three-dimensional need to rely on designer to mark the technical problem that the animation curve formation efficiency caused is relatively low frame by frame.
Embodiment 3
According to embodiments of the present invention, additionally providing the terminal of a kind of generation method for implementing above-mentioned animation curve, above-mentioned terminal can apply in hardware environment as shown in Figure 1.
As it is shown in figure 1, terminal 102 can be, but not limited to include one below: mobile phone, panel computer.The animation curve Core Generator of terminal 102 is when generating animation curve, according to the state value terminating key frame of the initial time of target animation and end time, the state value of the starting keyframe of target animation and target animation, the animation curve of target animation can be generated.
Alternatively, in the present embodiment, above-mentioned terminal includes:
1) memorizer, is set to the state value of the starting keyframe of the storage initial time of target animation and end time, target animation and the state value terminating key frame of target animation;
2) processor, is set to obtain the state value of the starting keyframe of the initial time of target animation and end time, target animation and the state value terminating key frame of target animation;State value according to starting keyframe and terminate the state value of key frame, the state value engraved when obtaining each in initial time to the scope of end time of target animation;The state value engraved during according to each generates the animation curve of target animation;Screen shows animation curve.
Alternatively, in the present embodiment, above-mentioned memorizer can be also used for other data stored in the determination process in storage above-described embodiment 1.
Alternatively, the concrete example in the present embodiment is referred to the example described in above-described embodiment 1 and embodiment 2, and the present embodiment does not repeat them here.
If the integrated unit in above-described embodiment is using the form realization of SFU software functional unit and as independent production marketing or use, it is possible to be stored in the storage medium that above computer can read.Based on such understanding, part or all or part of of this technical scheme that prior art is contributed by technical scheme substantially in other words can embody with the form of software product, this computer software product is stored in storage medium, including some instructions with so that one or more computer equipment (can be personal computer, server or the network equipment etc.) performs all or part of step of each embodiment method of the present invention.
Embodiment 4
Embodiments of the invention additionally provide a kind of storage medium, and above-mentioned storage medium can apply in hardware environment as shown in Figure 1.
As it is shown in figure 1, terminal 102 can be, but not limited to include one below: mobile phone, panel computer.The animation curve Core Generator of terminal 102 is when generating animation curve, according to the state value terminating key frame of the initial time of target animation and end time, the state value of the starting keyframe of target animation and target animation, the animation curve of target animation can be generated.
Alternatively, in the present embodiment, storage medium is set to the storage program code for performing following steps:
S1, obtains the state value of the starting keyframe of the initial time of target animation and end time, target animation and the state value terminating key frame of target animation;
S2, according to the state value of starting keyframe and the state value terminating key frame, the state value engraved when obtaining each in initial time to the scope of end time of target animation;
S3, the state value engraved during according to each generates the animation curve of target animation;
S4, shows animation curve in screen.
Alternatively, storage medium is also configured to the storage program code for performing following steps:
S1, was normalized each moment within the scope of initial time to end time.
Alternatively, storage medium is also configured to the storage program code for performing following steps:
S1, according to each moment after the state value of starting keyframe, the state value terminating key frame and normalized, obtains the state value that target animation engraves when each.
Alternatively, storage medium is also configured to the storage program code for performing following steps:
S1, by formula V=V0+T×(V1-V0) state value that engraves when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
Alternatively, storage medium is also configured to the storage program code for performing following steps:
S1, by formula V=(V1-V0)×T×T+V0The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
Alternatively, storage medium is also configured to the storage program code for performing following steps:
S1, by formula V=-(V1-V0)×T×(T-2)+V0The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
Alternatively, storage medium is also configured to the storage program code for performing following steps:
S1, passes through formula The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
Alternatively, storage medium is also configured to the storage program code for performing following steps:
S1, by formula V=(V1-V0)×T×T×T+V0The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
Alternatively, storage medium is also configured to the storage program code for performing following steps:
S1, by formula V=(V1-V0)×[(T-1)×(T-1)×(T-1)+1]+V0The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
Alternatively, storage medium is also configured to the storage program code for performing following steps:
S1, passes through formula The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
Alternatively, storage medium is also configured to the storage program code for performing following steps:
S1, by formula V=(V1-V0)×T×T×T×T+V0The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
Alternatively, storage medium is also configured to the storage program code for performing following steps:
S1, by formula V=-(V0-V1)×[(T-1)×(T-1)×(T-1)×(T-1)-1]+V0The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
Alternatively, storage medium is also configured to the storage program code for performing following steps:
S1, passes through formula The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
Alternatively, storage medium is also configured to the storage program code for performing following steps:
S1, by formula V=-(V1-V0)×cos[T/1×(π/2)]+(V1-V0)+V0The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
Alternatively, storage medium is also configured to the storage program code for performing following steps:
S1, by formula V=(V1-V0)×sin[T/1×(π/2)]+V0The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
Alternatively, storage medium is also configured to the storage program code for performing following steps:
S1, by formula V=-(V1-V0)/2×[cos(π×2T/1)-1]+V0The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
Alternatively, storage medium is also configured to the storage program code for performing following steps:
S1, by formula V=(V1-V0)×pow[2,10×(T/1-1)]+V0The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
Alternatively, storage medium is also configured to the storage program code for performing following steps:
S1, by formula V=(V1-V0)×[pow(2,-10×T/1)+1)]+V0The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
Alternatively, storage medium is also configured to the storage program code for performing following steps:
S1, passes through formula The state value engraved when calculating each, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of starting keyframe, V1Represent the state value terminating key frame.
Alternatively, storage medium is also configured to the storage program code for performing following steps:
S1, the state value engraved during by each stores with json form.
Alternatively, in the present embodiment, above-mentioned storage medium can include but not limited to: USB flash disk, read only memory (ROM, Read-OnlyMemory), the various media that can store program code such as random access memory (RAM, RandomAccessMemory), portable hard drive, magnetic disc or CD.
Alternatively, the concrete example in the present embodiment is referred to the example described in above-described embodiment 1 and embodiment 2, and the present embodiment does not repeat them here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
If the integrated unit in above-described embodiment is using the form realization of SFU software functional unit and as independent production marketing or use, it is possible to be stored in the storage medium that above computer can read.Based on such understanding, part or all or part of of this technical scheme that prior art is contributed by technical scheme substantially in other words can embody with the form of software product, this computer software product is stored in storage medium, including some instructions with so that one or more computer equipment (can for personal computer, server or the network equipment etc.) performs all or part of step of method described in each embodiment of the present invention.
In the above embodiment of the present invention, the description of each embodiment is all emphasized particularly on different fields, certain embodiment there is no the part described in detail, it is possible to referring to the associated description of other embodiments.
In several embodiments provided herein, it should be understood that disclosed client, can realize by another way.Wherein, device embodiment described above is merely schematic, the such as division of described unit, it is only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or be desirably integrated into another system, or some features can be ignored, or does not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be through INDIRECT COUPLING or the communication connection of some interfaces, unit or module, it is possible to be electrical or other form.
The described unit illustrated as separating component can be or may not be physically separate, and the parts shown as unit can be or may not be physical location, namely may be located at a place, or can also be distributed on multiple NE.Some or all of unit therein can be selected according to the actual needs to realize the purpose of the present embodiment scheme.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it is also possible to be that unit is individually physically present, it is also possible to two or more unit are integrated in a unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, it would however also be possible to employ the form of SFU software functional unit realizes.
The above is only the preferred embodiment of the present invention; it should be pointed out that, for those skilled in the art, under the premise without departing from the principles of the invention; can also making some improvements and modifications, these improvements and modifications also should be regarded as protection scope of the present invention.
Claims (18)
1. the generation method of an animation curve, it is characterised in that including:
Obtain the state value of the starting keyframe of the initial time of target animation and end time, described target animation and the state value terminating key frame of described target animation;
State value according to described starting keyframe and the state value of described termination key frame, the state value engraved when obtaining each in described initial time to the scope of described end time of described target animation;
According to described each time the state value that engraves generate the animation curve of described target animation;
Screen shows described animation curve.
2. method according to claim 1, it is characterized in that, the state value of the described state value according to described starting keyframe and described termination key frame, before the state value engraved when obtaining each in described initial time to the scope of described end time of described target animation, described method also includes:
Described each moment within the scope of described initial time to described end time is normalized;
Wherein, the state value of the described state value according to described starting keyframe and described termination key frame, the state value engraved when obtaining each in described initial time to the scope of described end time of described target animation, including: according to each moment after the state value of described starting keyframe, the state value of described termination key frame and normalized, obtain described target animation described each time the state value that engraves.
3. method according to claim 2, it is characterized in that, each moment after the described state value according to described starting keyframe, the state value of described termination key frame and normalized, obtain described target animation described each time the state value that engraves, including:
By formula V=V0+T×(V1-V0) calculate described each time the state value that engraves, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of described starting keyframe, V1Represent the state value of described termination key frame.
4. method according to claim 2, it is characterized in that, each moment after the described state value according to described starting keyframe, the state value of described termination key frame and normalized, obtain described target animation described each time the state value that engraves, including:
By formula V=(V1-V0)×T×T+V0Calculate described each time the state value that engraves, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of described starting keyframe, V1Represent the state value of described termination key frame;Or,
By formula V=-(V1-V0)×T×(T-2)+V0Calculate described each time the state value that engraves, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of described starting keyframe, V1Represent the state value of described termination key frame;Or,
Pass through formula Calculate described each time the state value that engraves, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of described starting keyframe, V1Represent the state value of described termination key frame.
5. method according to claim 2, it is characterized in that, each moment after the described state value according to described starting keyframe, the state value of described termination key frame and normalized, obtain described target animation described each time the state value that engraves, including:
By formula V=(V1-V0)×T×T×T+V0Calculate described each time the state value that engraves, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of described starting keyframe, V1Represent the state value of described termination key frame;Or,
By formula V=(V1-V0)×[(T-1)×(T-1)×(T-1)+1]+V0Calculate described each time the state value that engraves, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of described starting keyframe, V1Represent the state value of described termination key frame;Or,
Pass through formula Calculate described each time the state value that engraves, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of described starting keyframe, V1Represent the state value of described termination key frame.
6. method according to claim 2, it is characterized in that, each moment after the described state value according to described starting keyframe, the state value of described termination key frame and normalized, obtain described target animation described each time the state value that engraves, including:
By formula V=(V1-V0)×T×T×T×T+V0Calculate described each time the state value that engraves, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of described starting keyframe, V1Represent the state value of described termination key frame;Or,
By formula V=-(V0-V1)×[(T-1)×(T-1)×(T-1)×(T-1)-1]+V0Calculate described each time the state value that engraves, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of described starting keyframe, V1Represent the state value of described termination key frame;Or,
Pass through formula Calculate described each time the state value that engraves, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of described starting keyframe, V1Represent the state value of described termination key frame.
7. method according to claim 2, it is characterized in that, each moment after the described state value according to described starting keyframe, the state value of described termination key frame and normalized, obtain described target animation described each time the state value that engraves, including:
By formula V=-(V1-V0)×cos[T/1×(π/2)]+(V1-V0)+V0Calculate described each time the state value that engraves, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of described starting keyframe, V1Represent the state value of described termination key frame;Or,
By formula V=(V1-V0)×sin[T/1×(π/2)]+V0Calculate described each time the state value that engraves, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of described starting keyframe, V1Represent the state value of described termination key frame;Or,
By formula V=-(V1-V0)/2×[cos(π×2T/1)-1]+V0Calculate described each time the state value that engraves, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of described starting keyframe, V1Represent the state value of described termination key frame.
8. method according to claim 2, it is characterized in that, each moment after the described state value according to described starting keyframe, the state value of described termination key frame and normalized, obtain described target animation described each time the state value that engraves, including:
By formula V=(V1-V0)×pow[2,10×(T/1-1)]+V0Calculate described each time the state value that engraves, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of described starting keyframe, V1Represent the state value of described termination key frame;Or,
By formula V=(V1-V0)×[pow(2,-10×T/1)+1)]+V0Calculate described each time the state value that engraves, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of described starting keyframe, V1Represent the state value of described termination key frame;Or,
Pass through formula Calculate described each time the state value that engraves, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of described starting keyframe, V1Represent the state value of described termination key frame.
9. method according to any one of claim 1 to 8, it is characterized in that, the state value of the described state value according to described starting keyframe and described termination key frame, after the state value engraved when obtaining each in described initial time to the scope of described end time of described target animation, described method also includes:
By described each time the state value that engraves store with json form.
10. the generation device of an animation curve, it is characterised in that including:
Acquiring unit, the state value terminating key frame of state value and described target animation for obtaining the starting keyframe of the initial time of target animation and end time, described target animation;
Computing unit, for the state value according to the state value of described starting keyframe and described termination key frame, the state value engraved when obtaining each in described initial time to the scope of described end time of described target animation;
Generate unit, for according to described each time the state value that engraves generate the animation curve of described target animation;
Display unit, for showing described animation curve in screen.
11. device according to claim 10, it is characterised in that also include:
Processing unit, for being normalized described each moment within the scope of described initial time to described end time;
Wherein, described computing unit is for performing following steps to realize the state value according to the state value of described starting keyframe and described termination key frame, the state value engraved when obtaining each in described initial time to the scope of described end time of described target animation: according to each moment after the state value of described starting keyframe, the state value of described termination key frame and normalized, obtain described target animation described each time the state value that engraves.
12. device according to claim 11, it is characterized in that, described computing unit for performing following steps to realize each moment after according to the state value of described starting keyframe, the state value of described termination key frame and normalized, obtain described target animation described each time the state value that engraves: by formula V=V0+T×(V1-V0) calculate described each time the state value that engraves, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of described starting keyframe, V1Represent the state value of described termination key frame.
13. device according to claim 11, it is characterised in that
Described computing unit for performing following steps to realize each moment after according to the state value of described starting keyframe, the state value of described termination key frame and normalized, obtain described target animation described each time the state value that engraves: by formula V=(V1-V0)×T×T+V0Calculate described each time the state value that engraves, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of described starting keyframe, V1Represent the state value of described termination key frame;Or,
Described computing unit for performing following steps to realize each moment after according to the state value of described starting keyframe, the state value of described termination key frame and normalized, obtain described target animation described each time the state value that engraves: by formula V=-(V1-V0)×T×(T-2)+V0Calculate described each time the state value that engraves, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of described starting keyframe, V1Represent the state value of described termination key frame;Or,
Described computing unit for performing following steps to realize each moment after according to the state value of described starting keyframe, the state value of described termination key frame and normalized, obtain described target animation described each time the state value that engraves: pass through formula Calculate described each time the state value that engraves, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of described starting keyframe, V1Represent the state value of described termination key frame.
14. device according to claim 11, it is characterised in that
Described computing unit for performing following steps to realize each moment after according to the state value of described starting keyframe, the state value of described termination key frame and normalized, obtain described target animation described each time the state value that engraves: by formula V=(V1-V0)×T×T×T+V0Calculate described each time the state value that engraves, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of described starting keyframe, V1Represent the state value of described termination key frame;Or,
Described computing unit for performing following steps to realize each moment after according to the state value of described starting keyframe, the state value of described termination key frame and normalized, obtain described target animation described each time the state value that engraves: by formula V=(V1-V0)×[(T-1)×(T-1)×(T-1)+1]+V0Calculate described each time the state value that engraves, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of described starting keyframe, V1Represent the state value of described termination key frame;Or,
Described computing unit for performing following steps to realize each moment after according to the state value of described starting keyframe, the state value of described termination key frame and normalized, obtain described target animation described each time the state value that engraves: pass through formula Calculate described each time the state value that engraves, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of described starting keyframe, V1Represent the state value of described termination key frame.
15. device according to claim 11, it is characterised in that
Described computing unit for performing following steps to realize each moment after according to the state value of described starting keyframe, the state value of described termination key frame and normalized, obtain described target animation described each time the state value that engraves: by formula V=(V1-V0)×T×T×T×T+V0Calculate described each time the state value that engraves, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of described starting keyframe, V1Represent the state value of described termination key frame;Or,
Described computing unit for performing following steps to realize each moment after according to the state value of described starting keyframe, the state value of described termination key frame and normalized, obtain described target animation described each time the state value that engraves: by formula V=-(V0-V1)×[(T-1)×(T-1)×(T-1)×(T-1)-1]+V0Calculate described each time the state value that engraves, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of described starting keyframe, V1Represent the state value of described termination key frame;Or,
Described computing unit for performing following steps to realize each moment after according to the state value of described starting keyframe, the state value of described termination key frame and normalized, obtain described target animation described each time the state value that engraves: pass through formula Calculate described each time the state value that engraves, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of described starting keyframe, V1Represent the state value of described termination key frame.
16. device according to claim 11, it is characterised in that
Described computing unit for performing following steps to realize each moment after according to the state value of described starting keyframe, the state value of described termination key frame and normalized, obtain described target animation described each time the state value that engraves: by formula V=-(V1-V0)×cos[T/1×(π/2)]+(V1-V0)+V0Calculate described each time the state value that engraves, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of described starting keyframe, V1Represent the state value of described termination key frame;Or,
Described computing unit for performing following steps to realize each moment after according to the state value of described starting keyframe, the state value of described termination key frame and normalized, obtain described target animation described each time the state value that engraves: by formula V=(V1-V0)×sin[T/1×(π/2)]+V0Calculate described each time the state value that engraves, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of described starting keyframe, V1Represent the state value of described termination key frame;Or,
Described computing unit for performing following steps to realize each moment after according to the state value of described starting keyframe, the state value of described termination key frame and normalized, obtain described target animation described each time the state value that engraves: by formula V=-(V1-V0)/2×[cos(π×2T/1)-1]+V0Calculate described each time the state value that engraves, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of described starting keyframe, V1Represent the state value of described termination key frame.
17. device according to claim 11, it is characterised in that
Described computing unit for performing following steps to realize each moment after according to the state value of described starting keyframe, the state value of described termination key frame and normalized, obtain described target animation described each time the state value that engraves: by formula V=(V1-V0)×pow[2,10×(T/1-1)]+V0Calculate described each time the state value that engraves, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of described starting keyframe, V1Represent the state value of described termination key frame;Or,
Described computing unit for performing following steps to realize each moment after according to the state value of described starting keyframe, the state value of described termination key frame and normalized, obtain described target animation described each time the state value that engraves: by formula V=(V1-V0)×[pow(2,-10×T/1)+1)]+V0Calculate described each time the state value that engraves, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of described starting keyframe, V1Represent the state value of described termination key frame;Or,
Described computing unit for performing following steps to realize each moment after according to the state value of described starting keyframe, the state value of described termination key frame and normalized, obtain described target animation described each time the state value that engraves: pass through formula Calculate described each time the state value that engraves, wherein, V represents the state value on the moment T after normalized, V0Represent the state value of described starting keyframe, V1Represent the state value of described termination key frame.
18. the device according to any one of claim 10 to 17, it is characterised in that also include:
Memory element, for by described each time the state value that engraves store with json form.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410740719.9A CN105719330B (en) | 2014-12-05 | 2014-12-05 | Animation curve generation method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410740719.9A CN105719330B (en) | 2014-12-05 | 2014-12-05 | Animation curve generation method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105719330A true CN105719330A (en) | 2016-06-29 |
CN105719330B CN105719330B (en) | 2020-07-28 |
Family
ID=56144525
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410740719.9A Active CN105719330B (en) | 2014-12-05 | 2014-12-05 | Animation curve generation method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105719330B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111857812A (en) * | 2020-07-29 | 2020-10-30 | 珠海天燕科技有限公司 | Method and device for transferring animation curves in game interface |
CN112634409A (en) * | 2020-12-28 | 2021-04-09 | 稿定(厦门)科技有限公司 | Custom animation curve generation method and device |
CN115131471A (en) * | 2022-08-05 | 2022-09-30 | 北京字跳网络技术有限公司 | Animation generation method, device and equipment based on image and storage medium |
CN116894893A (en) * | 2023-09-11 | 2023-10-17 | 山东捷瑞数字科技股份有限公司 | Nonlinear animation regulation and control method and system based on three-dimensional engine |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7079144B1 (en) * | 1999-02-26 | 2006-07-18 | Sony Corporation | Curve generating device and method, and program recorded medium |
US20060192783A1 (en) * | 2005-01-26 | 2006-08-31 | Pixar | Interactive spacetime constraints: wiggly splines |
CN101441773A (en) * | 2008-11-11 | 2009-05-27 | 宇龙计算机通信科技(深圳)有限公司 | Cartoon implementing method, system and mobile terminal |
CN102169595A (en) * | 2010-02-26 | 2011-08-31 | 新奥特(北京)视频技术有限公司 | Multi-arrowhead path animation implementation method and device |
CN102194245A (en) * | 2010-03-18 | 2011-09-21 | 微软公司 | Stateless animation, such as bounce easing |
CN102376100A (en) * | 2010-08-20 | 2012-03-14 | 北京盛开互动科技有限公司 | Single-photo-based human face animating method |
CN102682458A (en) * | 2011-03-15 | 2012-09-19 | 新奥特(北京)视频技术有限公司 | Synchronous regulating method of multi-stunt multi-parameter of key frame animation curve |
CN102682459A (en) * | 2011-03-15 | 2012-09-19 | 新奥特(北京)视频技术有限公司 | Method for interpolating keyframe animation curve |
CN102902533A (en) * | 2012-09-17 | 2013-01-30 | 乐视网信息技术(北京)股份有限公司 | Frame revealing system and method of generating diagram by combining Java and HTML5 (Hypertxt Markup Language) |
US20130028400A1 (en) * | 2011-07-25 | 2013-01-31 | Pelfunc Incorporated | System and method for electronic communication using a voiceover in combination with user interaction events on a selected background |
CN103824059A (en) * | 2014-02-28 | 2014-05-28 | 东南大学 | Facial expression recognition method based on video image sequence |
CN103838842A (en) * | 2014-02-28 | 2014-06-04 | 北京奇虎科技有限公司 | Method and device for loading new tab page |
CN104091360A (en) * | 2014-07-28 | 2014-10-08 | 周立刚 | Method and device for generating movement data through dynamic cinema |
-
2014
- 2014-12-05 CN CN201410740719.9A patent/CN105719330B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7079144B1 (en) * | 1999-02-26 | 2006-07-18 | Sony Corporation | Curve generating device and method, and program recorded medium |
US20060192783A1 (en) * | 2005-01-26 | 2006-08-31 | Pixar | Interactive spacetime constraints: wiggly splines |
CN101441773A (en) * | 2008-11-11 | 2009-05-27 | 宇龙计算机通信科技(深圳)有限公司 | Cartoon implementing method, system and mobile terminal |
CN102169595A (en) * | 2010-02-26 | 2011-08-31 | 新奥特(北京)视频技术有限公司 | Multi-arrowhead path animation implementation method and device |
CN102194245A (en) * | 2010-03-18 | 2011-09-21 | 微软公司 | Stateless animation, such as bounce easing |
CN102376100A (en) * | 2010-08-20 | 2012-03-14 | 北京盛开互动科技有限公司 | Single-photo-based human face animating method |
CN102682458A (en) * | 2011-03-15 | 2012-09-19 | 新奥特(北京)视频技术有限公司 | Synchronous regulating method of multi-stunt multi-parameter of key frame animation curve |
CN102682459A (en) * | 2011-03-15 | 2012-09-19 | 新奥特(北京)视频技术有限公司 | Method for interpolating keyframe animation curve |
US20130028400A1 (en) * | 2011-07-25 | 2013-01-31 | Pelfunc Incorporated | System and method for electronic communication using a voiceover in combination with user interaction events on a selected background |
CN102902533A (en) * | 2012-09-17 | 2013-01-30 | 乐视网信息技术(北京)股份有限公司 | Frame revealing system and method of generating diagram by combining Java and HTML5 (Hypertxt Markup Language) |
CN103824059A (en) * | 2014-02-28 | 2014-05-28 | 东南大学 | Facial expression recognition method based on video image sequence |
CN103838842A (en) * | 2014-02-28 | 2014-06-04 | 北京奇虎科技有限公司 | Method and device for loading new tab page |
CN104091360A (en) * | 2014-07-28 | 2014-10-08 | 周立刚 | Method and device for generating movement data through dynamic cinema |
Non-Patent Citations (2)
Title |
---|
李丹: "计算机动画中运动生成与控制问题研究", 《中国博士学位论文全文数据库信息科技辑》 * |
王颖志: "浅析关键帧动画曲线的应用", 《电视字幕(特效与动画)》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111857812A (en) * | 2020-07-29 | 2020-10-30 | 珠海天燕科技有限公司 | Method and device for transferring animation curves in game interface |
CN112634409A (en) * | 2020-12-28 | 2021-04-09 | 稿定(厦门)科技有限公司 | Custom animation curve generation method and device |
CN112634409B (en) * | 2020-12-28 | 2022-04-19 | 稿定(厦门)科技有限公司 | Custom animation curve generation method and device |
WO2022142081A1 (en) * | 2020-12-28 | 2022-07-07 | 稿定(厦门)科技有限公司 | Self-defined animation curve generation method and apparatus |
CN115131471A (en) * | 2022-08-05 | 2022-09-30 | 北京字跳网络技术有限公司 | Animation generation method, device and equipment based on image and storage medium |
CN116894893A (en) * | 2023-09-11 | 2023-10-17 | 山东捷瑞数字科技股份有限公司 | Nonlinear animation regulation and control method and system based on three-dimensional engine |
Also Published As
Publication number | Publication date |
---|---|
CN105719330B (en) | 2020-07-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104038705B (en) | Video creating method and device | |
CN110400575A (en) | Interchannel feature extracting method, audio separation method and device calculate equipment | |
CN103051915B (en) | Manufacture method and manufacture device for interactive three-dimensional video key frame | |
Zhu et al. | Neural saliency algorithm guide bi‐directional visual perception style transfer | |
CN107578367B (en) | Method and device for generating stylized image | |
CN105204859A (en) | Animation management method and system | |
CN111047509A (en) | Image special effect processing method and device and terminal | |
US11361189B2 (en) | Image generation method and computing device | |
CN109242934A (en) | A kind of generation method and equipment of animation code | |
CN105719330A (en) | Animation curve generation method and device | |
CN105264604A (en) | Image edits propagation to underlying video sequence via dense motion fields | |
CN106934851B (en) | 3D printing method and system for scanning portrait by mobile phone | |
CN109522532B (en) | Method and device for calculating selection range of line drawing frame | |
CN102479387A (en) | Method for generating multimedia animation and playing multimedia animation and apparatus thereof | |
CN111158840B (en) | Image carousel method and device | |
CN117576578A (en) | Method and device for labeling samples, electronic equipment and storage medium | |
CN104899900A (en) | Method and system for generating multi-panel cartoon image by mobile terminal | |
CN105938500B (en) | The equipment for generating the device and method of caricature content and showing caricature content | |
CN116737133A (en) | Layout generation method, design draft layout generation method and device | |
CN112070852A (en) | Image generation method and system, and data processing method | |
CN105573746A (en) | Control attribute processing method and device | |
CN104572598A (en) | Typesetting method and device for digitally published product | |
CN105354295B (en) | Dynamic display device and method for three-dimensional dynamic plotting point labels | |
CN110020285B (en) | Histogram processing method and device | |
CN114676389B (en) | Motor control method, apparatus, computer device, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |