CN108320322A - Animation data processing method, device, computer equipment and storage medium - Google Patents

Animation data processing method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN108320322A
CN108320322A CN201810141715.7A CN201810141715A CN108320322A CN 108320322 A CN108320322 A CN 108320322A CN 201810141715 A CN201810141715 A CN 201810141715A CN 108320322 A CN108320322 A CN 108320322A
Authority
CN
China
Prior art keywords
current
key frame
dimension
exercise data
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810141715.7A
Other languages
Chinese (zh)
Other versions
CN108320322B (en
Inventor
梁家斌
凌飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Chengdu Co Ltd
Original Assignee
Tencent Technology Chengdu Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Chengdu Co Ltd filed Critical Tencent Technology Chengdu Co Ltd
Priority to CN201810141715.7A priority Critical patent/CN108320322B/en
Publication of CN108320322A publication Critical patent/CN108320322A/en
Application granted granted Critical
Publication of CN108320322B publication Critical patent/CN108320322B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • G06T13/203D [Three Dimensional] animation
    • G06T13/403D [Three Dimensional] animation of characters, e.g. humans, animals or virtual beings
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/20Analysis of motion
    • G06T7/246Analysis of motion using feature-based methods, e.g. the tracking of corners or segments
    • G06T7/251Analysis of motion using feature-based methods, e.g. the tracking of corners or segments involving models
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10016Video; Image sequence

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The present invention relates to a kind of animation data processing method, device, computer equipment and storage medium, the method includes:Obtain the corresponding original key frame data set of current animation object of pending data processing;Obtain before to adjacent key frame Current Transform dimension the first exercise data, after acquisition to adjacent key frame Current Transform dimension the second exercise data;Current motion data is compared with the first exercise data and the second exercise data respectively;Current motion data is deleted according to current comparing result;The step of obtaining currently pending key frame is returned, until the pending key frame in original key frame data set is disposed, obtains current key frame data acquisition system;Delete current dimension exercise data according to current kinetic type, current dimension exercise data be in current key frame data acquisition system each key frame in the exercise data of Current Transform dimension.The above method reduces degree of the animation exercise data to computer resource.

Description

Animation data processing method, device, computer equipment and storage medium
Technical field
The present invention relates to field of computer technology, more particularly to animation data processing method, device, computer equipment and Storage medium.
Background technology
With the rapid development of computer technology, animation is widely used in many fields, for example, being led in game In domain, usually pass through animated show game charater and action.
Currently, a large amount of cartoon role is used in game, and in order to improve the degree true to nature of animation, each cartoon role Including a large amount of animation datas, therefore need to occupy a large amount of computer when preserving animation data or running corresponding client Resource causes computer equipment speed slow.
Invention content
Based on this, it is necessary to be directed to above-mentioned problem, provide a kind of animation data processing method, device, computer equipment And storage medium, it can be according to transformation dimension by the exercise data of each pending key frame of animation object and front and back adjacent pass Key frame is compared in the exercise data of identical transformation dimension, and pending key frame in the transformation dimension is deleted according to comparing result Exercise data, obtain current key frame data acquisition system, but also current close can be deleted according to the type of sports of transformation dimension In key frame data set each key frame the transformation dimension exercise data, therefore, it is possible to the invalid fortune to delete keys Dynamic data, the degree to computer resource is reduced while retaining animation precision, improves the operation of computer equipment Speed.
A kind of animation data processing method, the method includes:Obtain the current animation object pair of pending data processing The original key frame data set answered, the original key frame data set include fortune of each key frame in Current Transform dimension Dynamic data;Obtain currently pending key frame, forward direction of the acquisition currently pending key frame in the Current Transform dimension Adjacent key frame and backward adjacent key frame;Obtain first movement of the adjacent key frame of the forward direction in the Current Transform dimension Data obtain second exercise data of the adjacent key frame in the Current Transform dimension backward;It obtains and described currently waits locating Key frame is managed in the current motion data of the Current Transform dimension, the current motion data is moved with described first respectively Data and second exercise data are compared, and current comparing result is obtained;According to the current comparing result deletion Current motion data;The step of returning to the acquisition currently pending key frame, until in the original key frame data set Pending key frame be disposed, obtain current key frame data acquisition system;It is corresponding current to obtain the Current Transform dimension Type of sports deletes current dimension exercise data according to the current kinetic type, and the current dimension exercise data is described Exercise data of each key frame in the Current Transform dimension in current key frame data acquisition system.
A kind of animation data processing unit, described device include:Original collection acquisition module, for obtaining pending data The corresponding original key frame data set of current animation object of processing, the original key frame data set includes each key Exercise data of the frame in Current Transform dimension;Frame acquisition module, for obtaining currently pending key frame, acquisition is described currently to be waited for Handle key frame the adjacent key frame of forward direction of the Current Transform dimension and after to adjacent key frame;Motion capture mould Block obtains the backward phase for obtaining the adjacent key frame of the forward direction in the first exercise data of the Current Transform dimension Second exercise data of the adjacent key frame in the Current Transform dimension;Contrast module, for obtaining the currently pending key Frame the Current Transform dimension current motion data, by the current motion data respectively with first exercise data and Second exercise data is compared, and current comparing result is obtained;First removing module, for being tied according to the current comparison Fruit deletes the current motion data;Module is returned to, for the step of returning to the acquisition currently pending key frame, until institute The pending key frame stated in original key frame data set is disposed, and obtains current key frame data acquisition system;Second deletes Module is deleted current for obtaining the corresponding current kinetic type of the Current Transform dimension according to the current kinetic type Dimension exercise data, the current dimension exercise data are that each key frame is worked as described in the current key frame data acquisition system The exercise data of preceding transformation dimension.
In one embodiment, described device further includes first skipping module, for being rotation when the current kinetic type When turning type of sports, skips and obtain the corresponding current kinetic type of the Current Transform dimension, according to the current kinetic type Delete current dimension exercise data.
In one embodiment, the current animation object is skeleton cartoon object, when the current kinetic type is position When shifting movement type and/or rotary motion type, each key frame is in the current change in the original key frame data set The exercise data for changing dimension is relative motion data, and the relative motion data is that the current animation object is worked as relative to described The exercise data that the parent object of preceding animation object is moved.
In one embodiment, described device further includes second skipping module, is used for:Determining the current animation object is It is no in white list;When the current animation object is in the white list, the acquisition Current Transform dimension is skipped Corresponding current kinetic type deletes current dimension exercise data according to the current kinetic type.
In one embodiment, described device further includes:Decimal digits acquisition module, for obtaining the original key frame Decimal digits of each key frame in the exercise data of the Current Transform dimension in data acquisition system;Module is simplified, for working as institute When stating the decimal digits of the exercise data of Current Transform dimension more than decimal digits threshold value, the movement to the Current Transform dimension Data are simplified, the exercise data after being simplified.
In one embodiment, the current comparing result includes consistent or inconsistent, and the contrast module is used for:By institute It states current motion data to be compared with the first movement number, obtains the first comparison result;By the current motion data with The second movement number is compared, and the second comparison result is obtained;When first comparison result is consistent and described second ratio When being consistent to result, judge that the current comparison result is consistent;First removing module is used for:When the current comparison When being as a result consistent, the current motion data is deleted.
A kind of computer equipment, including memory and processor are stored with computer program, the meter in the memory When calculation machine program is executed by the processor so that the processor executes the step of above-mentioned animation data processing method.
A kind of computer readable storage medium is stored with computer program on the computer readable storage medium, described When computer program is executed by processor so that the processor executes the step of above-mentioned animation data processing method.
Above-mentioned animation data processing method, device, computer equipment and storage medium, can be according to transformation dimension by animation pair Exercise data of the exercise data of each pending key frame of elephant with front and back adjacent key frame in identical transformation dimension carries out Comparison, the exercise data of pending key frame in the transformation dimension is deleted according to current comparing result, obtains current key frame number According to set, but also can be according to each key frame in the type of sports deletion current key frame data acquisition system of transformation dimension at this The exercise data of transformation dimension reduces therefore, it is possible to the invalid exercise data that deletes keys while retaining animation precision To the degree of computer resource, the speed of service of computer equipment is improved.
Description of the drawings
Fig. 1 is the applied environment figure of the animation data processing method provided in one embodiment;
Fig. 2 is the flow chart of animation data processing method in one embodiment;
Fig. 3 is the schematic diagram of one embodiment middle skeleton structure;
Fig. 4 A are the schematic diagram of the exercise data of key frame in one embodiment;
Fig. 4 B are the contrast schematic diagram of the animated image obtained using different animation data processing methods in one embodiment;
Fig. 5 is that the corresponding current kinetic type of Current Transform dimension is obtained in one embodiment, according to current kinetic type Delete the flow chart of current dimension exercise data;
Fig. 6 is that the corresponding current kinetic type of Current Transform dimension is obtained in one embodiment, according to current kinetic type Delete the flow chart of current dimension exercise data;
Fig. 7 is the flow chart of animation data processing method in one embodiment;
Fig. 8 is the flow chart of animation data processing method in one embodiment;
Fig. 9 is the structure diagram of animation data processing unit in one embodiment;
Figure 10 is the structure diagram of the second removing module in one embodiment;
Figure 11 is the structure diagram of the second removing module in one embodiment;
Figure 12 is the structure diagram of animation data processing unit in one embodiment;
Figure 13 is the structure diagram of animation data processing unit in one embodiment;
Figure 14 is the structure diagram of animation data processing unit in one embodiment;
Figure 15 is the internal structure block diagram of one embodiment Computer equipment.
Specific implementation mode
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
It is appreciated that term " first " used in this application, " second " etc. can be used to describe herein various elements, But unless stated otherwise, these elements should not be limited by these terms.These terms are only used to by first element and another yuan Part is distinguished.For example, in the case where not departing from scope of the present application, the first exercise data can be known as to the second movement number According to, and similarly, the second exercise data can be known as the first exercise data.
Fig. 1 is the applied environment figure of animation data processing method provided in one embodiment, as shown in Figure 1, answering at this With in environment, including terminal 110 and server 120.When needing to handle animation exercise data, such as need to pass through When the Unity engines of terminal reduce the bone animation data of importing, terminal 110 can from server 120 obtain wait for into The original key frame data set of the current animation object of row data processing, original key frame data set include each key frame In the exercise data of Current Transform dimension, then use animation data processing method provided in an embodiment of the present invention to animation data It is handled, to reduce the data volume of raw animation data.
Unity engines are a professional game engines developed by Unity Technologies companies, are had good Professional platform independence can be handled by Unity engines making of cartoon or to animation data.Terminal 110 can be intelligent hand Machine, tablet computer, laptop and desktop computer etc., however, it is not limited to this.Terminal 110 and computer equipment 120 can communicate connection type by bluetooth, USB (Universal Serial Bus, universal serial bus) or network etc. It is attached, the present invention is not limited herein.Server 120 can be that independent physical server can also be multiple physics clothes The server cluster for device composition of being engaged in can be to provide the basic cloud computing service such as Cloud Server, cloud database, cloud storage and CDN Cloud Server.Furthermore, it is to be understood that animation data method provided in an embodiment of the present invention can also be to execute in the server 's.Original key frame data set can also be to be stored in terminal 110, therefore, when needing to handle animation data, Terminal 110 middle can obtain original key frame data set from being locally stored.
As shown in Fig. 2, in one embodiment it is proposed that a kind of animation data processing method, the present embodiment is mainly with this Method is illustrated applied to the terminal 110 in above-mentioned Fig. 1.It can specifically include following steps:
Step S202 obtains the corresponding original key frame data set of current animation object of pending data processing, former Beginning key frame data set includes exercise data of each key frame in Current Transform dimension.
Specifically, animation can bring cartoon role consecutive variations by continuously playing a series of images to observer Visual effect.Current animation object can be determined according to specific animation.For example, for the personage in animation, current animation pair Hand as that can be animated character.For the tree in animation, animation object can be a branch for tree.Key frame is in animation Picture for embodying cartoon role key operations.The position of key frame can be configured as needed in animation.For example, dynamic The picture of the 1st frame of each second animation, the 5th frame and the 15th frame can be designed according to cartoon scene by drawing designer, then the 1st frame, 5th frame and the 15th frame are key frame, and the corresponding picture of other non-key frames can then utilize computer according to key frame Position, action state and time to obtain the animation data of the non-key frame between key frame into row interpolation.Exercise data can be with Including one or more in displacement movement data, rotary motion data and scaling exercise data.Displacement movement data can be with For indicating that animation object carries out mobile distance with the time.Rotary motion data can be used to indicate that animation object with when Between the angle that is rotated.Scaling exercise data can be used to indicate that times that animation object zooms in or out with the time Number.Transformation dimension is used to indicate the motion transform direction of animation object.There are direction, a transformation dimensions for the movement of animation It can indicate a kind of motion transform direction of type of sports.For example, in displacement movement, if three-dimensional animation, retouched with coordinate system It states, including three directions of motion:X-direction, Y-direction and Z-direction, i.e., three transformation dimensions.And scale in movement, with coordinate system Description, be also included within tri- differences of X, Y and Z change direction on scaling.Exercise data in original key frame data set May include one or more transformation dimensions.It, can be only to one of transformation dimension when there are multiple transformation dimensions Exercise data is handled, i.e., using one of transformation dimension as Current Transform dimension.It can also be to multiple transformation dimensions Exercise data handled.For example, Current Transform dimension can be the X-dimension in displacement movement, can also be displacement movement In X-dimension and scaling movement in Y dimensions.Exercise data may include that specific motion value and key frame are corresponding Movement tendency.Movement tendency can indicate with the curvature of curve movement, curvature can also be further divided into before to curvature and Backward curvature.Curvature refers to rotation rate of the tangent directional angle to arc length of the point of the curve.
In one embodiment, current animation object is skeleton cartoon object, when current kinetic type is displacement movement class When type and/or rotary motion type, exercise data of each key frame in Current Transform dimension in original key frame data set For relative motion data, which is the exercise data that current animation object is moved relative to its parent object. In skeleton cartoon, the cartoon role of skeleton cartoon has a skeleton structure of the bone composition interconnected, in skeleton framework Each bone is animation object, has hierarchical relationship between animation object, the exercise data of the bone of child level is relative to father's layer The exercise data when bone of grade is moved can pass through displacement movement data, rotary motion data and the contracting of control bone It puts exercise data and bone is made to be moved, generate animation.
For example, when cartoon role is animation such as doggie, it is illustrated in figure 3 the skeleton structure of doggie, wherein trunk is First level, head, left arm, right arm, left leg and right leg be the second level, then trunk be head, left arm, right arm, left leg with And father's level of right leg.And it under the second level may include third level.The corresponding displacement movement data of animation object and Rotary motion data are that the data of relative motion are carried out relative to his father's level.For example, the displacement of left arm is (68, -30), Unit is millimeter, and rotation angle is -30 °, indicates left arm on the basis of trunk, and 68 millimeters are translated along X-axis, along Y-axis translation -30 Millimeter, and rotate -30 °.
Step S204 obtains currently pending key frame, obtains currently pending key frame before Current Transform dimension To adjacent key frame and backward adjacent key frame.
Specifically, the adjacent key frame of forward direction refers to previous key of the currently pending key frame in Current Transform dimension Frame, backward adjacent key frame refers to the latter key frame of the currently pending key frame in Current Transform dimension.Original key frame Data acquisition system includes multiple key frames, can be according to the sequence of key frame successively by the key frame in original key frame data set As currently pending key frame.In some embodiments, since first key frame is no preceding to adjacent key frame, and most The latter key frame not after to adjacent key frame, therefore can not using first key frame and the last one key frame as Currently pending key frame.
Step S206, obtain before to adjacent key frame Current Transform dimension the first exercise data, to adjacent after acquisition Second exercise data of the key frame in Current Transform dimension.
Specifically, currently pending key frame, the adjacent key frame of forward direction of currently pending key frame and backward phase are obtained After adjacent key frame, tieed up to adjacent key frame and backward adjacent key frame in Current Transform before the acquisition of original key frame data set The exercise data of degree, using it is preceding to adjacent key frame Current Transform dimension exercise data as the first exercise data, will be backward Adjacent key frame Current Transform dimension exercise data as the second exercise data.
Step S208, obtain currently pending key frame Current Transform dimension current motion data, by current kinetic Data are compared with the first exercise data and the second exercise data respectively, obtain current comparing result.
Specifically, comparison result may include consistent or inconsistent.Whether consistent standard can carry out as needed Setting can also be difference less than certain threshold value is then consistent for example, it may be consistent when identical.For example, In unity game engines, exercise data can generally give tacit consent to reservation to 9 after decimal point, but by demonstration, and exercise data remains into 3 after decimal point, animation precision can reach permissible accuracy.Therefore, after the integer of exercise data and decimal point Preceding 3 decimals it is identical, may determine that be consistent.After obtaining the first exercise data and the second exercise data, by current kinetic number It is compared according to the first exercise data, obtains the first comparing result, current motion data and the second exercise data are carried out pair Than obtaining the second comparing result.It integrates the first comparing result again and the second comparing result obtains current comparing result.At one In embodiment, when the first comparing result is consistent and the second comparing result is consistent, current comparing result is consistent.When When any of one comparing result and the second comparing result or two are inconsistent, current comparing result is to differ It causes.
In one embodiment, before being compared exercise data, after exercise data can be simplified again into Row comparison.For example, retaining 3 after exercise data decimal point data.
Step S210 deletes current motion data according to current comparing result.
Specifically, after obtaining current comparing result, determined whether to delete current motion data according to current comparing result.If Current comparison result is consistent, then deletes current motion data.If current comparison result is inconsistent, retain current kinetic number According to.
For example, as shown in Figure 4 A, indicating that the reproduction time of animation, ordinate indicate displacement movement value, transformation with abscissa Dimension is displacement movement data in the X-axis direction, and a1~a4 is for key frame.By Fig. 4 A it is found that working as currently pending pass When key frame is a2, a2 is adjacent with forward direction, and key frame a1 is inconsistent in the exercise data of Current Transform dimension, a2 and backward adjacent pass Key frame a3 is consistent in the exercise data of Current Transform dimension, therefore the current comparison result of a2 is inconsistent, retains a2 key frames and exists The exercise data of Current Transform dimension.When currently pending key frame is a3, a3 is adjacent with forward direction, and key frame a2 becomes currently The exercise data for changing dimension is consistent, and a3 and backward adjacent key frame a4 are consistent in the exercise data of Current Transform dimension, therefore a3 Current comparison result is consistent, exercise data of the deletion a3 key frames in Current Transform dimension.
Step S212 returns to the step of obtaining currently pending key frame, until being waited in original key frame data set Processing key frame is disposed, and obtains current key frame data acquisition system.
Specifically, may include multiple pending key frames in original key frame data set, if pending key frame is not It is disposed, then returns to the step of obtaining currently pending key frame, the next pending key frame of acquisition, which is used as, currently to be waited locating Key frame is managed, step S204~S210 is repeated.After the pending key frame in original key frame data set is disposed, Obtain current key frame data acquisition system.For example, by taking Fig. 4 A as an example, the key frame of original key frame data set is a1~a4, The key frame a2 and a3 of centre are pending key frame, first with a2 for currently pending key frame, execution step S204~ S210, due to the corresponding current comparing results of a2 be it is inconsistent, then retain a2 Current Transform dimension exercise data.Then again Using a3 as currently pending key frame, step S204~S210 is executed, since the corresponding current comparing results of a3 are consistent.Therefore A3 is deleted in original key frame data set in the exercise data of Current Transform dimension, obtains current key frame data acquisition system.
Step S214 obtains the corresponding current kinetic type of Current Transform dimension, is deleted according to current kinetic type current Dimension exercise data, current dimension exercise data are each key frame in current key frame data acquisition system in Current Transform dimension Exercise data.
Specifically, type of sports may include displacement movement type, rotary motion type and scaling type of sports.It obtains After current key frame data acquisition system, using the corresponding type of sports of Current Transform dimension as current kinetic type, according to current fortune Dynamic type determines whether that each key frame is in the exercise data of Current Transform dimension, i.e. root in deletion current key frame data acquisition system Determine whether to delete current dimension exercise data according to current kinetic type.
In some embodiments, if current key frame data acquisition system Current Transform dimension exercise data include three with And three or more key frames exercise data when, illustrate in Current Transform dimension, exist key frame adjacent with forward direction or after To the exercise data of the different key frame of exercise data of adjacent key frame.It does not delete then each in current key frame data acquisition system Exercise data of a key frame in Current Transform dimension.For example, in Fig. 4 A, movement of the a3 key frames in Current Transform dimension is deleted After data, further includes the exercise data of a1, a2 and a4 totally three key frames in the exercise data of Current Transform dimension, therefore retain A1, a2 and a4 exercise data of totally three key frames in Current Transform dimension.
In one embodiment, include according to the step of current kinetic type deletion current dimension exercise data:When current Dimension exercise data is only that the corresponding current dimension exercise data of first key frame of current animation object and tail key frame correspond to Current dimension exercise data when, then the corresponding current dimension exercise data of first key frame is deleted according to current kinetic type, and/ Or the corresponding current dimension exercise data of tail key frame.
Specifically, when current dimension exercise data only includes the corresponding current dimension exercise data of first key frame and tail closes When the corresponding current dimension exercise data of key frame, i.e., when current dimension data only has first key frame and the last one is crucial When the exercise data of frame, then need to determine whether that deleting the corresponding current dimension of first key frame moves number according to current kinetic type According to and the corresponding current dimension exercise data of tail key frame.For skeleton cartoon, when current kinetic type is rotary motion class When type, the corresponding current dimension exercise data of first key frame and the corresponding current dimension movement number of tail key frame can be retained According to, with according to the rotary motion data of the rotary motion data of first key frame and tail key frame control current animation object into Row rotation.When current kinetic type is displacement movement type, when the corresponding current dimension exercise data of first key frame and tail The corresponding current dimension exercise data of key frame is 0, illustrates current animation object in Current Transform dimension without carrying out phase Relative motion for father's level, therefore the corresponding current dimension exercise data of first key frame and tail key frame pair can be deleted The current dimension exercise data answered.When current kinetic type is scaling type of sports, if the corresponding current dimension of first key frame Exercise data and the corresponding current dimension exercise data of tail key frame are identical, i.e. scaling multiple is identical, then can delete tail The corresponding current dimension exercise data of key frame retains the corresponding current dimension exercise data of first key frame so that animation object It can be zoomed in and out according to the scaling multiple of first key frame.During the present invention is implemented, by taking animated gaming as an example, due in animated gaming Animation data data volume it is very big, therefore after obtaining current key data acquisition system, if current dimension exercise data is only The corresponding current dimension of the corresponding current dimension exercise data of first key frame and tail key frame of current animation object moves number According to when, it is corresponding further can to determine whether to delete first key frame in current key frame data acquisition system according to current kinetic type Current dimension exercise data and/or the corresponding current dimension exercise data of tail key frame, therefore animation data can be further reduced Data volume, committed memory is few when game application being made to run, and improves speed when animated gaming application operation.
Above-mentioned animation data processing method, can be according to transformation dimension by the movement of each pending key frame of animation object Exercise data of the data with front and back adjacent key frame in identical transformation dimension is compared, and being deleted according to current comparing result should The exercise data for converting pending key frame in dimension obtains current key frame data acquisition system, but also can be tieed up according to transformation The type of sports of degree delete each key frame in current key frame data acquisition system the transformation dimension exercise data, therefore, energy Enough delete keys invalid exercise data, and the degree to computer resource is reduced while retaining animation precision, is carried The high speed of service of computer equipment.
For example, as shown in Figure 4 B, the image on the left side is to be obtained using animation data processing method provided in an embodiment of the present invention The image of the animated image schematic diagram arrived, the right is using a kind of animation that animation data processing method obtains in the prior art Image schematic diagram can retain the precision of animation it can be seen from the figure that using method provided in an embodiment of the present invention, and show There is the method for technology, the position of knife in animated image can be caused to shift, the action of personage and the action of former animation are inconsistent.
In one embodiment, animation data processing method can also include:When current kinetic type is rotary motion class It when type, skips and obtains the corresponding current kinetic type of Current Transform dimension, deleting current dimension according to current kinetic type moves The step of data.I.e. when for rotary motion data, after obtaining current key frame data acquisition system, step S214 is not executed.
In one embodiment, animation data processing method can also include:Determine current animation object whether in white name Dan Zhong is skipped when current animation object is in white list and is obtained the corresponding current kinetic type of Current Transform dimension, according to working as Preceding type of sports deletes the step of current dimension exercise data.
Specifically, the animation object in white list can be pre-set, can specifically be set according to actual needs It sets.For example, the animation object in white list may include left upper arm and left leg.If current animation object is in white list, It then skips and obtains the corresponding current kinetic type of Current Transform dimension, current dimension exercise data is deleted according to current kinetic type The step of.I.e. after obtaining current key frame data acquisition system, step S214 is not executed.
In one embodiment, as shown in figure 5, step S214 obtains the corresponding current kinetic class of Current Transform dimension Type can specifically include following steps according to the step of current kinetic type deletion current dimension exercise data:
Step S502, when current kinetic type is displacement movement type, then according to the corresponding current dimension of first key frame Exercise data and the corresponding current dimension exercise data of tail key frame determine the relative displacement state of current animation object.
Specifically, first key frame refers to first key frame, and tail key frame refers to the last one key frame.Work as current kinetic When type is displacement movement type, Current Transform dimension can carry out mobile pair in X-direction, Y direction or Z-direction The dimension answered.Displacement state can be stationary state or motion state.Displacement state may include relative displacement state and Absolute displacement state.Relative displacement state refers to the displacement state relative to father's level.When relative displacement state is opposing stationary Refer to current animation object relative to the animation object of father's level it is static when state, if the animation object of father's level is being transported Dynamic, then current animation object also similarly move with the animation object of father's level, so that current animation object phase Animation object for father's level is static.It can be closed according to the corresponding current dimension exercise data of first key frame and tail The corresponding current dimension exercise data of key frame determines the relative displacement state of current animation object.If first key frame is corresponding current The displacement movement value of dimension exercise data is 0, and the curvature of corresponding displacement curve is 0, the corresponding current dimension of tail key frame The displacement movement value of exercise data is 0, and the curvature of corresponding displacement curve is 0, the relative displacement state of current animation object For stationary state.
Step S504 then deletes the corresponding current dimension movement of first key frame when relative displacement state is stationary state Data and the corresponding current dimension exercise data of tail key frame.
Specifically, when relative displacement state is stationary state, current animation object phase in Current Transform dimension is indicated The animation object of father's level is not moved, therefore, the corresponding current dimension exercise data of first key frame can be deleted, with And the corresponding current dimension exercise data of tail key frame.
In one embodiment, as shown in fig. 6, step S214 obtains the corresponding current kinetic class of Current Transform dimension Type deletes current dimension exercise data according to current kinetic type and can specifically include following steps:
Step S602, when current kinetic type is scaling type of sports, then according to the corresponding current dimension of first key frame Exercise data and the corresponding current dimension exercise data of tail key frame determine the opposite zoom state of current animation object.
Specifically, scaling may include reducing or amplifying.Zoom state includes without scaling or have scaling.Zoom state May include opposite zoom state and absolute zoom state, opposite zoom state refer to current animation object from first key frame to Zoom state of the key frame relative to first key frame between tail key frame, absolute zoom state refer to relative to original current The zoom state of animation object.If for example, the scale value of first key frame is 2, and the curvature of corresponding scaling curve is 0, tail closes The scale value of key frame is 2, and the curvature of corresponding scaling curve is 0, then is no zoom state with respect to zoom state, due to current The relatively primitive current animation object of animation object is exaggerated twice, therefore absolute zoom state is to have zoom state.
Step S604 deletes the corresponding current dimension exercise data of tail key frame when opposite zoom state is without scaling, Retain the corresponding current dimension exercise data of first key frame.
Specifically, when opposite zoom state is without scaling, indicate that current animation object is opposite in Current Transform dimension It is not zoomed in and out in the animation object of first key frame, therefore, the corresponding current dimension exercise data of tail key frame can be deleted, protected Stay the corresponding current dimension exercise data of first key frame.
In one embodiment, as shown in fig. 7, to adjacent key frame in Current Transform dimension before step S206 is obtained The first exercise data, after acquisition to adjacent key frame the second exercise data of Current Transform dimension the step of before also wrap It includes:
Step S702, obtain each key frame in original key frame data set Current Transform dimension exercise data Decimal digits.
Specifically, after obtaining original key frame data set, the decimal digits of the exercise data of Current Transform dimension is obtained. For example, if exercise data is 2.123456789 meters, decimal digits is 9.
Step S704, when the decimal digits of the exercise data of Current Transform dimension is more than decimal digits threshold value, to current The exercise data of transformation dimension is simplified, the exercise data after being simplified.
Specifically, decimal digits threshold value can be configured according to the required precision of animation.For example, by demonstration, marking The required precision of game can be met when if decimal digits being 3 in quasi- unit, therefore, decimal digits threshold value can be 3.Into Can be simplified using the method for rounding up when row is simplified, four houses six can also be used to enter five, even method is taken to carry out essence Letter is not limited herein.The decimal digits of exercise data after simplifying is consistent with decimal digits threshold value.It is appreciated that currently waiting for It can be original that key frame, which is handled, in the current motion data, the first exercise data and the second exercise data of Current Transform dimension The exercise data that the exercise data of key frame data set obtains after being simplified.
Below by taking game movie as an example, animation data processing method provided in an embodiment of the present invention is illustrated, such as Fig. 8 It is shown, specifically include following steps:
Step S802 imports the animation exercise data of game in unity game movie engines.Assuming that game movie data packet 4 key frames are included in displacement, rotation and the exercise data for scaling three kinds of type of sports.Wherein, displacement movement data can wrap Include the exercise data in three transformation dimensions such as X-direction, Y direction and Z-direction.Scaling exercise data may include The exercise data of three transformation dimensions such as X-direction, Y direction and Z-direction.
Step S804 simplifies the animation exercise data of game.It rounds up after retaining exercise data decimal 3, Exercise data after being simplified.
Step S806 obtains currently pending key frame, obtain currently pending key frame the adjacent key frame of forward direction and Backward adjacent key frame.Wherein, when obtaining for the first time, according to crucial frame sequential using second key frame as currently pending pass Key frame, first key frame and third key frame are respectively the adjacent key frame of forward direction of currently pending key frame and backward Adjacent key frame.
Step S808, obtain before to adjacent key frame Current Transform dimension the first exercise data, to adjacent after acquisition Second exercise data of the key frame in Current Transform dimension.Wherein it is possible to by lower each in displacement, rotation and scaling type of sports A direction of motion is respectively handled the data of each Current Transform dimension as Current Transform dimension.With the contracting in Y-axis For putting exercise data of the exercise data as Current Transform dimension, scaling exercise data of first key frame in Y-axis is First exercise data, scaling exercise data of the third key frame in Y-axis are the second exercise data,
Step S810, obtain currently pending key frame Current Transform dimension current motion data, by current kinetic Data are compared with the first exercise data and the second exercise data respectively, obtain current comparing result.I.e. by second key Scaling exercise data of the frame in Y-axis is crucial with scaling exercise data of first key frame in Y-axis and third respectively Scaling exercise data of the frame in Y-axis is compared, it is assumed that scaling exercise data and first of second key frame in Y-axis Scaling exercise data of the key frame in Y-axis is identical, and scaling exercise data of second key frame in Y-axis is crucial with third Scaling exercise data of the frame in Y-axis is identical, therefore comparison result is consistent.
Step S812 deletes current motion data according to current comparing result.Since comparison result is consistent, therefore delete the Scaling exercise data of two key frames in Y-axis, obtains current key frame data acquisition system.
Step S814, judges whether the pending key frame of Current Transform dimension is disposed, if so, entering step S816, if it is not, return to step S806.Due to including two pending key frames:Second key frame and third key frame, Therefore need return to step S806.Using third key frame as currently pending key frame, since second key frame is in Y-axis Scaling exercise data deleted, so when forward direction adjacent key frame of the third key frame in Current Transform dimension be the One key frame, backward adjacent key frame are the 4th key frame.Assuming that scaling exercise data of the third key frame in Y-axis It therefore can be deleted with the scaling exercise data of first key frame and the scaling exercise data all same of the 4th key frame Except the scaling exercise data in Y-axis of third key frame.
Step S816 obtains the corresponding current kinetic type of Current Transform dimension, is deleted according to current kinetic type current Dimension exercise data.For the scaling exercise data of Y direction, current key frame data acquisition system includes first key frame The exercise data of exercise data and the 4th key frame, it is assumed that first key frame Y direction scaling exercise data with 4th key frame is identical in the scaling exercise data of Y direction, therefore, can delete the 4th key frame in Y direction Scale exercise data, scaling exercise data of first key frame of reservation in Y direction.
Although should be understood that various embodiments of the present invention flow chart in each step according to arrow instruction successively It has been shown that, but these steps are not the inevitable sequence indicated according to arrow to be executed successively.Unless expressly state otherwise herein, There is no stringent sequences to limit for the execution of these steps, these steps can execute in other order.Moreover, each embodiment In at least part step may include that either these sub-steps of multiple stages or stage are not necessarily multiple sub-steps Completion is executed in synchronization, but can be executed at different times, the execution in these sub-steps or stage sequence is not yet Necessarily carry out successively, but can either the sub-step of other steps or at least part in stage be in turn with other steps Or it alternately executes.
As shown in figure 9, in one embodiment, providing a kind of animation data processing unit, animation data processing dress Setting can be integrated in above-mentioned terminal 110 or server 120, can specifically include original collection acquisition module 902, frame obtains Module 904, motion capture module 906, contrast module 908, the first removing module 910, return module 912 and second are deleted Except module 914.
Original collection acquisition module 902, the corresponding original pass of current animation object for obtaining pending data processing Key frame data set, original key frame data set include exercise data of each key frame in Current Transform dimension.
Frame acquisition module 904 obtains currently pending key frame in Current Transform for obtaining currently pending key frame The adjacent key frame of forward direction of dimension and backward adjacent key frame.
Motion capture module 906, for moving number the first of Current Transform dimension to adjacent key frame before obtaining According to, after acquisition to adjacent key frame Current Transform dimension the second exercise data.
Contrast module 908 will be worked as obtaining currently pending key frame in the current motion data of Current Transform dimension Preceding exercise data is compared with the first exercise data and the second exercise data respectively, obtains current comparing result.
First removing module 910, for deleting current motion data according to current comparing result.
Module 914 is returned to, for returning to the step of obtaining currently pending key frame, until original key frame data set In pending key frame be disposed, obtain current key frame data acquisition system.
Second removing module 916, for obtaining the corresponding current kinetic type of Current Transform dimension, according to current kinetic class Type deletes current dimension exercise data, and current dimension exercise data is each key frame in current key frame data acquisition system current Convert the exercise data of dimension.
In one embodiment, the second removing module 916 is used for:When current dimension exercise data is only current animation object The corresponding current dimension exercise data of first key frame and when the corresponding current dimension exercise data of tail key frame, then basis Current kinetic type deletes the corresponding current dimension exercise data of first key frame and/or the corresponding current dimension fortune of tail key frame Dynamic data.
In one embodiment, current comparing result includes consistent or inconsistent, and contrast module 908 is used for:It will currently transport Dynamic data are compared with the first movement number, obtain the first comparison result.Current motion data and the second movement number are carried out pair Than obtaining the second comparison result.When the first comparison result is consistent and the second comparison result is consistent, judge that current compare is tied Fruit is consistent.First removing module 910 is used for:When current comparison result is consistent, current motion data is deleted.
In one embodiment, as shown in Figure 10, the second removing module 914 includes:
Displacement state determination unit 1002 is used for when current kinetic type is displacement movement type, then according to first crucial The corresponding current dimension exercise data of frame and the corresponding current dimension exercise data of tail key frame determine current animation object Relative displacement state.
It is corresponding then to delete first key frame when relative displacement state is stationary state for displacement data deleting unit 1004 Current dimension exercise data and the corresponding current dimension exercise data of tail key frame.
In one embodiment, as shown in figure 11, the second removing module 914 includes:
Zoom state determination unit 1102 is used for when current kinetic type is scaling type of sports, then according to first crucial The corresponding current dimension exercise data of frame and the corresponding current dimension exercise data of tail key frame determine current animation object Opposite zoom state.
Scaled data deleting unit 1104, for when opposite zoom state is without scaling, it is corresponding to delete tail key frame Current dimension exercise data retains the corresponding current dimension exercise data of first key frame.
In one embodiment, as shown in figure 12, animation data processing unit further includes first skipping module 1202, is used for It when current kinetic type is rotary motion type, skips and obtains the corresponding current kinetic type of Current Transform dimension, according to working as Preceding type of sports deletes current dimension exercise data.
In one embodiment, current animation object is skeleton cartoon object, when current kinetic type is displacement movement class When type and/or rotary motion type, exercise data of each key frame in Current Transform dimension in original key frame data set For relative motion data, relative motion data is what current animation object was moved relative to the parent object of current animation object Exercise data.
In one embodiment, as shown in figure 13, animation data processing unit further includes second skipping module 1302, is used In:Current animation object is determined whether in white list, when current animation object is in white list, skips acquisition Current Transform The corresponding current kinetic type of dimension deletes current dimension exercise data according to current kinetic type.
In one embodiment, as shown in figure 14, animation data processing unit further includes:
Decimal digits acquisition module 1402, for obtaining in original key frame data set key frame in Current Transform dimension Exercise data decimal digits.
Module 1404 is simplified, the decimal digits for the exercise data when Current Transform dimension is more than decimal digits threshold value When, the exercise data of Current Transform dimension is simplified, the exercise data after being simplified.
Figure 15 shows the internal structure chart of one embodiment Computer equipment.The computer equipment can be specifically figure Terminal 110 in 1 or server 120.By taking terminal as an example, as shown in figure 15, which includes being connected by system bus Processor, memory, network interface, input unit and the display screen connect.Wherein, memory include non-volatile memory medium and Built-in storage.The non-volatile memory medium of the computer equipment is stored with operating system, can also be stored with computer program, should When computer program is executed by processor, processor may make to realize animation data processing method.It can also be stored up in the built-in storage There is computer program, when which is executed by processor, processor may make to execute animation data processing method.Meter The display screen for calculating machine equipment can be liquid crystal display or electric ink display screen, and the input unit of computer equipment can be The touch layer covered on display screen, can also be the button being arranged on computer equipment shell, trace ball or Trackpad, can be with It is external keyboard, Trackpad or mouse etc..
It will be understood by those skilled in the art that structure shown in Figure 15, only with the relevant part of application scheme The block diagram of structure, does not constitute the restriction for the computer equipment being applied thereon to application scheme, and specific computer is set Standby may include either combining certain components than more or fewer components as shown in the figure or being arranged with different components.
In one embodiment, animation data processing unit provided by the present application can be implemented as a kind of computer program Form, computer program can be run on computer equipment as shown in figure 15.Group can be stored in the memory of computer equipment At each program module of the animation data processing unit, for example, original collection acquisition module 902 shown in Fig. 9, frame obtain mould Block 904, contrast module 908, the first removing module 910, returns to the deletion of module 914 and second at motion capture module 906 Module 916.It is each that the computer program that each program module is constituted so that processor executes the application described in this specification Step in the animation data processing method of embodiment.
For example, computer equipment shown in figure 15 can be by original in animation data processing unit as shown in Figure 9 Set acquisition module 902 obtains the corresponding original key frame data set of current animation object of pending data processing, former Beginning key frame data set includes exercise data of each key frame in Current Transform dimension.It is obtained by frame acquisition module 904 Currently pending key frame, obtain currently pending key frame the adjacent key frame of forward direction of Current Transform dimension and after to adjacent Key frame.By motion capture module 906 obtain before to adjacent key frame Current Transform dimension the first exercise data, After acquisition to adjacent key frame Current Transform dimension the second exercise data;It is obtained by contrast module 908 currently pending Key frame moves current motion data in the current motion data of Current Transform dimension with the first exercise data and second respectively Data are compared, and current comparing result is obtained;Current kinetic is deleted according to current comparing result by the first removing module 910 Data;The step of obtaining currently pending key frame is returned to by returning to module 914, until in original key frame data set Pending key frame is disposed, and obtains current key frame data acquisition system;Current Transform dimension is obtained by the second removing module 916 Corresponding current kinetic type is spent, current dimension exercise data is deleted according to current kinetic type, current dimension exercise data is Exercise data of each key frame in Current Transform dimension in current key frame data acquisition system.
In one embodiment it is proposed that a kind of computer equipment, computer equipment include memory, processor and storage On a memory and the computer program that can run on a processor, processor realize following steps when executing computer program: Obtain the corresponding original key frame data set of current animation object of pending data processing, original key frame data set packet Include each key frame Current Transform dimension exercise data;Currently pending key frame is obtained, currently pending key is obtained Frame Current Transform dimension the adjacent key frame of forward direction and after to adjacent key frame;To adjacent key frame in Current Transform before obtaining First exercise data of dimension, after acquisition to adjacent key frame Current Transform dimension the second exercise data;Acquisition currently waits for Handle key frame Current Transform dimension current motion data, by current motion data respectively with the first exercise data and second Exercise data is compared, and current comparing result is obtained;Current motion data is deleted according to current comparing result;It returns to obtain and work as The step of preceding pending key frame, obtains current until the pending key frame in original key frame data set is disposed Key frame data set;The corresponding current kinetic type of Current Transform dimension is obtained, leading dimension is deleted according to current kinetic type Spend exercise data, current dimension exercise data be current key frame data acquisition system in each key frame Current Transform dimension fortune Dynamic data.
In one embodiment, the corresponding current kinetic type of acquisition Current Transform dimension performed by processor, according to Current kinetic type delete current dimension exercise data the step of include:When current dimension exercise data is only current animation object The corresponding current dimension exercise data of first key frame and when the corresponding current dimension exercise data of tail key frame, then basis Current kinetic type deletes the corresponding current dimension exercise data of first key frame and/or the corresponding current dimension fortune of tail key frame Dynamic data.
In one embodiment, performed by processor when current dimension exercise data is only that the first of current animation object is closed When the corresponding current dimension exercise data of key frame and the corresponding current dimension exercise data of tail key frame, then according to current fortune Dynamic type deletes the corresponding current dimension exercise data of first key frame and/or the corresponding current dimension exercise data of tail key frame The step of include:When current kinetic type is displacement movement type, then number is moved according to the corresponding current dimension of first key frame According to and the corresponding current dimension exercise data of tail key frame determine the relative displacement state of current animation object;When opposite position When shifting state is stationary state, then deletes the corresponding current dimension exercise data of first key frame and tail key frame is corresponding works as Preceding dimension exercise data.
In one embodiment, performed by processor when current dimension exercise data is only that the first of current animation object is closed When the corresponding current dimension exercise data of key frame and the corresponding current dimension exercise data of tail key frame, then according to current fortune Dynamic type deletes the corresponding current dimension exercise data of first key frame and/or the corresponding current dimension exercise data of tail key frame The step of include:When current kinetic type is scaling type of sports, then number is moved according to the corresponding current dimension of first key frame According to and the corresponding current dimension exercise data of tail key frame determine the opposite zoom state of current animation object;When opposite contracting When putting state as without scaling, the corresponding current dimension exercise data of tail key frame is deleted, retains the corresponding leading dimension of first key frame Spend exercise data.
In one embodiment, following steps are also executed when processor executes computer program:When current kinetic type is It when rotary motion type, skips and obtains the corresponding current kinetic type of Current Transform dimension, worked as according to the deletion of current kinetic type The step of preceding dimension exercise data.
In one embodiment, current animation object is skeleton cartoon object, when current kinetic type is displacement movement class When type and/or rotary motion type, exercise data of each key frame in Current Transform dimension in original key frame data set For relative motion data, relative motion data is what current animation object was moved relative to the parent object of current animation object Exercise data.
In one embodiment, following steps are also executed when processor executes computer program:Determine current animation object Whether in white list;When current animation object is in white list, skips and obtain the corresponding current kinetic of Current Transform dimension Type, according to current kinetic type delete current dimension exercise data the step of.
In one embodiment, it is transported to adjacent key frame the first of Current Transform dimension before the acquisition performed by processor Dynamic data, after acquisition to adjacent key frame the second exercise data of Current Transform dimension the step of before further include:It obtains former Decimal digits of the key frame in the exercise data of Current Transform dimension in beginning key frame data set;When the fortune of Current Transform dimension When the decimal digits of dynamic data is more than decimal digits threshold value, the exercise data of Current Transform dimension is simplified, is simplified Exercise data afterwards.
In one embodiment, the current comparing result performed by processor includes consistent or inconsistent, by current kinetic The step of data are compared with the first exercise data and the second exercise data respectively, obtain current comparing result include:It will work as Preceding exercise data is compared with the first movement number, obtains the first comparison result;By current motion data and second movement number into Row comparison, obtains the second comparison result;When the first comparison result is consistent and the second comparison result is consistent, current ratio is judged It is consistent to result;The step of current comparing result of basis performed by processor deletes current motion data include:When current When comparison result is consistent, current motion data is deleted.
In one embodiment, a kind of computer readable storage medium is provided, is stored on computer readable storage medium Computer program, when computer program is executed by processor so that processor executes following steps:Obtain pending data processing The corresponding original key frame data set of current animation object, original key frame data set includes each key frame current Convert the exercise data of dimension;Currently pending key frame is obtained, obtains currently pending key frame in Current Transform dimension The adjacent key frame of forward direction and backward adjacent key frame;Before obtaining number is moved the first of Current Transform dimension to adjacent key frame According to, after acquisition to adjacent key frame Current Transform dimension the second exercise data;Currently pending key frame is obtained current The current motion data for converting dimension, current motion data is carried out with the first exercise data and the second exercise data respectively pair Than obtaining current comparing result;Current motion data is deleted according to current comparing result;It returns and obtains currently pending key frame The step of, until the pending key frame in original key frame data set is disposed, obtain current key frame data acquisition system; The corresponding current kinetic type of Current Transform dimension is obtained, current dimension exercise data is deleted according to current kinetic type, currently Dimension exercise data be current key frame data acquisition system in each key frame Current Transform dimension exercise data.
In one embodiment, the corresponding current kinetic type of acquisition Current Transform dimension performed by processor, according to Current kinetic type deletes current dimension exercise data, and current dimension exercise data is each pass in current key frame data acquisition system Key frame includes in the step of exercise data of Current Transform dimension:When current dimension exercise data is only the head of current animation object When the corresponding current dimension exercise data of key frame and the corresponding current dimension exercise data of tail key frame, then according to current Type of sports deletes the corresponding current dimension exercise data of first key frame and/or the corresponding current dimension of tail key frame moves number According to.
In one embodiment, performed by processor when current dimension exercise data is only that the first of current animation object is closed When the corresponding current dimension exercise data of key frame and the corresponding current dimension exercise data of tail key frame, then according to current kinetic Type deletes the corresponding current dimension exercise data of first key frame and/or the corresponding current dimension exercise data of tail key frame Step includes:When current kinetic type is displacement movement type, then according to the corresponding current dimension exercise data of first key frame, And the corresponding current dimension exercise data of tail key frame determines the relative displacement state of current animation object;When relative displacement shape When state is stationary state, then the corresponding current dimension exercise data of first key frame and the corresponding leading dimension of tail key frame are deleted Spend exercise data.
In one embodiment, performed by processor when current dimension exercise data is only that the first of current animation object is closed When the corresponding current dimension exercise data of key frame and the corresponding current dimension exercise data of tail key frame, then according to current fortune Dynamic type deletes the corresponding current dimension exercise data of first key frame and/or the corresponding current dimension exercise data of tail key frame The step of include:When current kinetic type is scaling type of sports, then number is moved according to the corresponding current dimension of first key frame According to and the corresponding current dimension exercise data of tail key frame determine the opposite zoom state of current animation object;When opposite contracting When putting state as without scaling, the corresponding current dimension exercise data of tail key frame is deleted, retains the corresponding leading dimension of first key frame Spend exercise data.
In one embodiment, following steps are also executed when processor executes computer program:When current kinetic type is It when rotary motion type, skips and obtains the corresponding current kinetic type of Current Transform dimension, worked as according to the deletion of current kinetic type Preceding dimension exercise data, current dimension exercise data are each key frame in current key frame data acquisition system in Current Transform dimension Exercise data the step of.
In one embodiment, current animation object is skeleton cartoon object, when current kinetic type is displacement movement class When type and/or rotary motion type, exercise data of each key frame in Current Transform dimension in original key frame data set For relative motion data, relative motion data is what current animation object was moved relative to the parent object of current animation object Exercise data.
In one embodiment, following steps are also executed when processor executes computer program:Determine current animation object Whether in white list;When current animation object is in white list, skips and obtain the corresponding current kinetic of Current Transform dimension Type, according to current kinetic type delete current dimension exercise data the step of.
In one embodiment, it is transported to adjacent key frame the first of Current Transform dimension before the acquisition performed by processor Dynamic data, after acquisition to adjacent key frame the second exercise data of Current Transform dimension the step of before further include:It obtains former Decimal digits of the key frame in the exercise data of Current Transform dimension in beginning key frame data set;When the fortune of Current Transform dimension When the decimal digits of dynamic data is more than decimal digits threshold value, the exercise data of Current Transform dimension is simplified, is simplified Exercise data afterwards.
In one embodiment, the current comparing result performed by processor includes consistent or inconsistent, by current kinetic The step of data are compared with the first exercise data and the second exercise data respectively, obtain current comparing result include:It will work as Preceding exercise data is compared with the first movement number, obtains the first comparison result;By current motion data and second movement number into Row comparison, obtains the second comparison result;When the first comparison result is consistent and the second comparison result is consistent, current ratio is judged It is consistent to result;The step of current comparing result of basis performed by processor deletes current motion data include:When current When comparison result is consistent, current motion data is deleted.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with Instruct relevant hardware to complete by computer program, program can be stored in a non-volatile computer storage can be read In medium, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, provided herein each Any reference to memory, storage, database or other media used in embodiment, may each comprise it is non-volatile and/ Or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) directly RAM (RDRAM), straight Connect memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above example can be combined arbitrarily, to keep description succinct, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield is all considered to be the range of this specification record.
Several embodiments of the invention above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously Cannot the limitation to the scope of the claims of the present invention therefore be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention Protect range.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (15)

1. a kind of animation data processing method, the method includes:
Obtain the corresponding original key frame data set of current animation object of pending data processing, the original crucial frame number Include exercise data of each key frame in Current Transform dimension according to set;
Currently pending key frame is obtained, it is adjacent in the forward direction of the Current Transform dimension to obtain the currently pending key frame Key frame and backward adjacent key frame;
The adjacent key frame of the forward direction is obtained in the first exercise data of the Current Transform dimension, obtains the backward adjacent pass Second exercise data of the key frame in the Current Transform dimension;
Obtain the currently pending key frame the Current Transform dimension current motion data, by the current kinetic number According to being compared respectively with first exercise data and second exercise data, current comparing result is obtained;
The current motion data is deleted according to the current comparing result;
The step of returning to the acquisition currently pending key frame, until the pending pass in the original key frame data set Key frame is disposed, and obtains current key frame data acquisition system;
The corresponding current kinetic type of the Current Transform dimension is obtained, current dimension is deleted according to the current kinetic type and is transported Dynamic data, the current dimension exercise data are each key frame in the current key frame data acquisition system in the Current Transform The exercise data of dimension.
2. according to the method described in claim 1, it is characterized in that, described delete current dimension according to the current kinetic type The step of exercise data includes:
When the corresponding current dimension of first key frame that the current dimension exercise data is only the current animation object moves number According to and when the corresponding current dimension exercise data of tail key frame, then deleted according to the current kinetic type described first crucial The corresponding current dimension exercise data of frame and/or the corresponding current dimension exercise data of the tail key frame.
3. according to the method described in claim 2, it is characterized in that, described when the current dimension exercise data is only described works as The corresponding current dimension exercise data of first key frame and the corresponding current dimension exercise data of tail key frame of preceding animation object When, then the first corresponding current dimension exercise data of key frame is deleted according to the current kinetic type and/or the tail closes The step of key frame corresponding current dimension exercise data includes:
When the current kinetic type is displacement movement type, then number is moved according to the corresponding current dimension of the head key frames According to and the corresponding current dimension exercise data of the tail key frame determine the relative displacement state of the current animation object;
When the relative displacement state is stationary state, then the corresponding current dimension exercise data of the first key frame is deleted, And the corresponding current dimension exercise data of the tail key frame.
4. according to the method described in claim 2, it is characterized in that, described when the current dimension exercise data is only described works as The corresponding current dimension exercise data of first key frame and the corresponding current dimension exercise data of tail key frame of preceding animation object When, then the first corresponding current dimension exercise data of key frame is deleted according to the current kinetic type and/or the tail closes The step of key frame corresponding current dimension exercise data includes:
When the current kinetic type is scaling type of sports, then number is moved according to the corresponding current dimension of the head key frames According to and the corresponding current dimension exercise data of the tail key frame determine the opposite zoom state of the current animation object;
When the opposite zoom state is without scaling, the corresponding current dimension exercise data of the tail key frame is deleted, is retained The corresponding current dimension exercise data of the head key frames.
5. according to the method described in claim 1, it is characterized in that, the method further includes:
When the current kinetic type is rotary motion type, skips and obtain the corresponding current kinetic of the Current Transform dimension Type, according to the current kinetic type delete current dimension exercise data the step of.
6. according to Claims 1 to 4 any one of them method, which is characterized in that the current animation object is skeleton cartoon Object, when the current kinetic type is displacement movement type and/or rotary motion type, the original key frame data collection Each key frame is relative motion data in the exercise data of the Current Transform dimension in conjunction, and the relative motion data is institute State the exercise data that current animation object is moved relative to the parent object of the current animation object.
7. according to Claims 1 to 4 any one of them method, which is characterized in that the method further includes:
Determine the current animation object whether in white list;
When the current animation object is in the white list, it is corresponding current to skip the acquisition Current Transform dimension Type of sports, according to the current kinetic type delete current dimension exercise data the step of.
8. according to the method described in claim 1, it is characterized in that, the adjacent key frame of the forward direction that obtains is described current The first exercise data of dimension is converted, second exercise data of the adjacent key frame in the Current Transform dimension backward is obtained The step of before further include:
Obtain the decimal of exercise data of each key frame in the Current Transform dimension in the original key frame data set Digit;
When the decimal digits of the exercise data of the Current Transform dimension is more than decimal digits threshold value, the Current Transform is tieed up The exercise data of degree is simplified, the exercise data after being simplified.
9. according to the method described in claim 1, it is characterized in that, the current comparing result includes consistent or inconsistent, institute It states and compares the current motion data with first exercise data and second exercise data respectively, obtain current The step of comparing result includes:
The current motion data and the first movement number are compared, the first comparison result is obtained;
The current motion data and the second movement number are compared, the second comparison result is obtained;
When it is consistent that first comparison result, which is consistent and described second comparison result, judge that the current comparison result is Unanimously;
It is described to include according to the step of current comparing result deletion current motion data:
When the current comparison result is consistent, the current motion data is deleted.
10. a kind of animation data processing unit, described device include:
Original collection acquisition module, the corresponding original key frame data of current animation object for obtaining pending data processing Set, the original key frame data set includes exercise data of each key frame in Current Transform dimension;
Frame acquisition module obtains the currently pending key frame in the current change for obtaining currently pending key frame Change the adjacent key frame of forward direction of dimension and backward adjacent key frame;
Motion capture module moves number for obtaining the adjacent key frame of the forward direction the first of the Current Transform dimension According to second exercise data of the acquisition backward adjacent key frame in the Current Transform dimension;
Contrast module is incited somebody to action for obtaining the currently pending key frame in the current motion data of the Current Transform dimension The current motion data is compared with first exercise data and second exercise data respectively, is currently compared As a result;
First removing module, for deleting the current motion data according to the current comparing result;
Module is returned to, for the step of returning to the acquisition currently pending key frame, until the original key frame data collection Pending key frame in conjunction is disposed, and obtains current key frame data acquisition system;
Second removing module, for obtaining the corresponding current kinetic type of the Current Transform dimension, according to the current kinetic Type deletes current dimension exercise data, and the current dimension exercise data is each pass in the current key frame data acquisition system Exercise data of the key frame in the Current Transform dimension.
11. device according to claim 10, which is characterized in that second removing module is used for:
When the corresponding current dimension of first key frame that the current dimension exercise data is only the current animation object moves number According to and when the corresponding current dimension exercise data of tail key frame, then deleted according to the current kinetic type described first crucial The corresponding current dimension exercise data of frame and/or the corresponding current dimension exercise data of the tail key frame.
12. according to the devices described in claim 11, which is characterized in that second removing module includes:
Displacement state determination unit is used for when the current kinetic type is displacement movement type, then according to described first crucial The corresponding current dimension exercise data of frame and the corresponding current dimension exercise data of the tail key frame determine described current dynamic Draw the relative displacement state of object;
It is corresponding then to delete the first key frame when the relative displacement state is stationary state for displacement data deleting unit Current dimension exercise data and the corresponding current dimension exercise data of the tail key frame.
13. according to the devices described in claim 11, which is characterized in that second removing module includes:
Zoom state determination unit is used for when the current kinetic type is scaling type of sports, then according to described first crucial The corresponding current dimension exercise data of frame and the corresponding current dimension exercise data of the tail key frame determine described current dynamic Draw the opposite zoom state of object;
Scaled data deleting unit, for when the opposite zoom state is without scaling, it is corresponding to delete the tail key frame Current dimension exercise data retains the corresponding current dimension exercise data of the first key frame.
14. a kind of computer equipment, which is characterized in that including memory and processor, computer is stored in the memory Program, when the computer program is executed by the processor so that the processor perform claim requires any one of 1 to 9 Described in claim the step of animation data processing method.
15. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program, when the computer program is executed by processor so that the processor perform claim requires any one of 1 to 9 right It is required that the step of animation data processing method.
CN201810141715.7A 2018-02-11 2018-02-11 Animation data processing method, animation data processing device, computer equipment and storage medium Active CN108320322B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810141715.7A CN108320322B (en) 2018-02-11 2018-02-11 Animation data processing method, animation data processing device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810141715.7A CN108320322B (en) 2018-02-11 2018-02-11 Animation data processing method, animation data processing device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108320322A true CN108320322A (en) 2018-07-24
CN108320322B CN108320322B (en) 2021-06-08

Family

ID=62902910

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810141715.7A Active CN108320322B (en) 2018-02-11 2018-02-11 Animation data processing method, animation data processing device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108320322B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109544664A (en) * 2018-11-21 2019-03-29 北京像素软件科技股份有限公司 Animation data processing method, device, electronic equipment and readable storage medium storing program for executing
CN109725948A (en) * 2018-12-11 2019-05-07 麒麟合盛网络技术股份有限公司 A kind of configuration method and device of animation resource
CN111589145A (en) * 2020-04-22 2020-08-28 腾讯科技(深圳)有限公司 Virtual article display method, device, terminal and storage medium
CN112354186A (en) * 2020-11-10 2021-02-12 网易(杭州)网络有限公司 Game animation model control method, device, electronic equipment and storage medium
CN113392163A (en) * 2020-03-12 2021-09-14 广东博智林机器人有限公司 Data processing method, action simulation method, device, equipment and medium
CN114866802A (en) * 2022-04-14 2022-08-05 青岛海尔科技有限公司 Video stream transmission method and device, storage medium and electronic device

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1369862A (en) * 2001-02-15 2002-09-18 英业达股份有限公司 Method and system for creating animation
WO2014006786A1 (en) * 2012-07-03 2014-01-09 国立大学法人大阪大学 Characteristic value extraction device and characteristic value extraction method
CN103927776A (en) * 2014-03-28 2014-07-16 浙江中南卡通股份有限公司 Animation curve optimization method
CN104881869A (en) * 2015-05-15 2015-09-02 浙江大学 Real time panorama tracing and splicing method for mobile platform
CN106097296A (en) * 2015-05-01 2016-11-09 佳能株式会社 Video generation device and image generating method
CN106504267A (en) * 2016-10-19 2017-03-15 东南大学 A kind of motion of virtual human data critical frame abstracting method
US9734615B1 (en) * 2013-03-14 2017-08-15 Lucasfilm Entertainment Company Ltd. Adaptive temporal sampling
US20170280129A1 (en) * 2016-03-25 2017-09-28 Intel Corporation Multi-modal real-time camera localization and environment mapping
CN107430773A (en) * 2015-03-20 2017-12-01 高通股份有限公司 Strengthen the system and method for the depth map retrieval of mobile object using active detection technology
CN107610212A (en) * 2017-07-25 2018-01-19 深圳大学 Scene reconstruction method, device, computer equipment and computer-readable storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1369862A (en) * 2001-02-15 2002-09-18 英业达股份有限公司 Method and system for creating animation
WO2014006786A1 (en) * 2012-07-03 2014-01-09 国立大学法人大阪大学 Characteristic value extraction device and characteristic value extraction method
US9734615B1 (en) * 2013-03-14 2017-08-15 Lucasfilm Entertainment Company Ltd. Adaptive temporal sampling
CN103927776A (en) * 2014-03-28 2014-07-16 浙江中南卡通股份有限公司 Animation curve optimization method
CN107430773A (en) * 2015-03-20 2017-12-01 高通股份有限公司 Strengthen the system and method for the depth map retrieval of mobile object using active detection technology
CN106097296A (en) * 2015-05-01 2016-11-09 佳能株式会社 Video generation device and image generating method
CN104881869A (en) * 2015-05-15 2015-09-02 浙江大学 Real time panorama tracing and splicing method for mobile platform
US20170280129A1 (en) * 2016-03-25 2017-09-28 Intel Corporation Multi-modal real-time camera localization and environment mapping
CN106504267A (en) * 2016-10-19 2017-03-15 东南大学 A kind of motion of virtual human data critical frame abstracting method
CN107610212A (en) * 2017-07-25 2018-01-19 深圳大学 Scene reconstruction method, device, computer equipment and computer-readable storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
C. LONG 等: "A C3D-Based Convolutional Neural Network for Frame Dropping Detection in a Single Video Shot", 《2017 IEEE CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION WORKSHOPS (CVPRW)》 *
蔡美玲 等: "预选策略和重建误差优化的运动捕获数据关键帧提取", 《计算机辅助设计与图形学学报》 *
路海涛 等: "三维运动控制技术的研究与实现", 《现代防御技术》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109544664A (en) * 2018-11-21 2019-03-29 北京像素软件科技股份有限公司 Animation data processing method, device, electronic equipment and readable storage medium storing program for executing
CN109725948A (en) * 2018-12-11 2019-05-07 麒麟合盛网络技术股份有限公司 A kind of configuration method and device of animation resource
CN109725948B (en) * 2018-12-11 2021-09-21 麒麟合盛网络技术股份有限公司 Animation resource configuration method and device
CN113392163A (en) * 2020-03-12 2021-09-14 广东博智林机器人有限公司 Data processing method, action simulation method, device, equipment and medium
CN113392163B (en) * 2020-03-12 2024-02-06 广东博智林机器人有限公司 Data processing method, action simulation method, device, equipment and medium
CN111589145A (en) * 2020-04-22 2020-08-28 腾讯科技(深圳)有限公司 Virtual article display method, device, terminal and storage medium
CN112354186A (en) * 2020-11-10 2021-02-12 网易(杭州)网络有限公司 Game animation model control method, device, electronic equipment and storage medium
CN112354186B (en) * 2020-11-10 2024-07-16 网易(杭州)网络有限公司 Game animation model control method, device, electronic equipment and storage medium
CN114866802A (en) * 2022-04-14 2022-08-05 青岛海尔科技有限公司 Video stream transmission method and device, storage medium and electronic device
CN114866802B (en) * 2022-04-14 2024-04-19 青岛海尔科技有限公司 Video stream sending method and device, storage medium and electronic device

Also Published As

Publication number Publication date
CN108320322B (en) 2021-06-08

Similar Documents

Publication Publication Date Title
CN108320322A (en) Animation data processing method, device, computer equipment and storage medium
Sengupta et al. Sfsnet: Learning shape, reflectance and illuminance of facesin the wild'
Ouyang et al. Anderson acceleration for nonconvex ADMM based on Douglas‐Rachford splitting
CN106468984A (en) A kind of method of item associations picture rapid preview and device
US8767020B1 (en) Content representation sharing across applications
CN107766703B (en) Watermark adding processing method and device and client
CN107885645A (en) Calculate method, apparatus and electronic equipment that the first screen of the page renders duration
CN106919326A (en) A kind of image searching method and device
CN110895823B (en) Texture obtaining method, device, equipment and medium for three-dimensional model
Zhang et al. A fully convolutional anchor-free object detector
Sun et al. PatchRD: detail-preserving shape completion by Learning patch retrieval and Deformation
CN104346174B (en) A kind of description of online polar plot modeling process and replay method
CN107193815B (en) Page code processing method, device and equipment
JP3369734B2 (en) Three-dimensional computer-aided design apparatus and method
CN111768331A (en) Optimization method and device
CN112529984B (en) Method, device, electronic equipment and storage medium for drawing polygon
Zhang et al. A hardware-oriented histogram of oriented gradients algorithm and its VLSI implementation
Xu et al. Video region annotation with sparse bounding boxes
Slack et al. PRISAD: A partitioned rendering infrastructure for scalable accordion drawing (extended version)
CN105701858A (en) Map processing method and device based on alpha fusion
Amintoosi et al. Video enhancement through image registration based on structural similarity
CN116994002B (en) Image feature extraction method, device, equipment and storage medium
CN110059660A (en) Mobile terminal platform 3D face registration method and device
Parihar et al. Video summarization using fully convolutional residual dense network
Yu et al. Image deformation based on contour using moving integral least squares

Legal Events

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