CN108109189A - Act sharing method and device - Google Patents
Act sharing method and device Download PDFInfo
- Publication number
- CN108109189A CN108109189A CN201711268497.5A CN201711268497A CN108109189A CN 108109189 A CN108109189 A CN 108109189A CN 201711268497 A CN201711268497 A CN 201711268497A CN 108109189 A CN108109189 A CN 108109189A
- Authority
- CN
- China
- Prior art keywords
- control point
- action
- default
- data
- target object
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T13/00—Animation
- G06T13/20—3D [Three Dimensional] animation
- G06T13/40—3D [Three Dimensional] animation of characters, e.g. humans, animals or virtual beings
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2213/00—Indexing scheme for animation
- G06T2213/12—Rule based animation
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Processing Or Creating Images (AREA)
Abstract
The present invention provides a kind of action sharing method and device, is related to Computer Animated Graph field.Scheme provided by the invention presets the initial position data at each control point of object by obtaining;According to the initial position data, the control point of target object and the control point of the default object are associated;For each control point of the target object, according to the offset vector at default object control point when making the deliberate action, the position of the target object Control point is adjusted, the target object is made to make the deliberate action.This programme stores action data when default object makes deliberate action by electronic equipment, the action data include the default object in action process each control point compared with initial bit offset vector, so that target object can realize the deliberate action of default object, help to simplify the operating procedure for making skeleton cartoon, reduce the consumption to system resource.
Description
Technical field
The present invention relates to Computer Animated Graph field, in particular to a kind of action sharing method and device.
Background technology
With the fast development of computer technology, skeleton cartoon becomes a kind of animation more popular in model animation.
Skeleton cartoon comes the personage in simulated scenario or the action of animal usually using a series of control point (bone), dynamic to be formed
It draws.Specifically, for example, each position of bone in each frame in bone described in animation file, when rendering, leads to
The conversion for crossing control point drives the fixed-point motion for being bundled in current bone, and the role in game or animal is made to generate corresponding move
Make, this technology is largely used in 3d gaming making, three-dimensional animation production etc..In the prior art, in order to ensure role
The diversity of action, each role are required for having a set of animation data, even two similar roles, similar action
Two animation datas are needed, cause cost of manufacture high, it is big to system resources consumption.
The content of the invention
In order to overcome above-mentioned deficiency of the prior art, the present invention provides a kind of action sharing method and device so that mesh
Mark object can complete the deliberate action of default object, to simplify the operating procedure for making animation, and then solve the above problems.
To achieve these goals, the technical solution that present pre-ferred embodiments are provided is as follows:
Present pre-ferred embodiments provide a kind of action sharing method, applied to electronic equipment, the electronic equipment storage
Action data when having the default object to make deliberate action, it is each in action process that the action data includes the default object
Control point compared with initial bit offset vector;The described method includes:
Obtain the initial position data at each control point of default object;
According to the initial position data, the control point of target object and the control point of the default object are closed
Connection;
For each control point of the target object, control when making the deliberate action according to the default object
The offset vector of point is made, adjusts the position of the target object Control point, makes the target object described default dynamic
Make.
Optionally, before the step of initial position data at above-mentioned acquisition default each control point of object, the method
It further includes:
It obtains for the first time and records the initial position data at the control point of the default object;
Each control point of the default object is adjusted, so that each control point is moved according to deliberate action strategy,
And form the action data of the default object;
For each control point of the default object, record the default object and making every frame picture of deliberate action
The position offset vector at Shi Suoshu control points control point corresponding with the initial position, and by control all in every frame picture
Point position offset vector as the default object the frame picture offset data.
Optionally, above-mentioned electronic equipment and motion sensor means communicate to connect, the motion sensor means include with it is described
Control point associated motion sensor one by one;Each control point of the adjustment default object, so that each control point is pressed
The step of being moved according to deliberate action strategy, including:
The exercise data sent with the associated motion sensor in the control point is received, wherein, the exercise data is by institute
It states motion sensor relative motion occurs and generates, the exercise data includes the motion trace data of the motion sensor;
The control point is adjusted according to the movement locus, so that the control point is corresponding with the motion trace data
Track is moved.
Optionally, the position of the above-mentioned adjustment target object Control point, makes the target object described pre-
If the step of action, including:
The bodily form ratio value of the target object and the default object is calculated according to default computation rule;
The offset vector is zoomed in and out according to the ratio value, to obtain new offset vector;
The control point of the target object is adjusted, so that the control point is moved according to the new offset vector.
Optionally, above-mentioned action data includes time series corresponding with every frame picture of the action data, the tune
The position of the whole target object Control point, the step of target object is made to make the deliberate action, including:
According to the offset vector, the location information for the position that the control point is moved in advance is calculated;
According to the time series, the position at the control point is adjusted to position corresponding with the location information.
Optionally, above-mentioned action data includes time series corresponding with every frame picture of the action data, the tune
The position of the whole target object Control point, the step of target object is made to make the deliberate action, including:
According to the offset vector, the location information for the position that the control point is moved in advance is calculated;
The time series is zoomed in and out according to pre-set zoom multiple, to obtain new time series;
According to the new time series, the position at the control point is adjusted to position corresponding with the location information
It puts.
Optionally, above-mentioned action data is associated with the default identification code for characterizing the default object type;The acquisition institute
Before the step of stating the initial position data at each control point of default object, the method further includes:
The target identification code of the target object is obtained, the target identification code table levies the type of the target object;
Judge whether the target identification code and the default identification code are identical, if the target identification code is preset with described
The identical initial position data for just obtaining default each control point of object of identification code.
Presently preferred embodiments of the present invention also provides a kind of action sharing means, applied to electronic equipment, the electronic equipment
Action data when default object makes deliberate action is stored with, the action data includes the default object in action process
Each control point compared with initial bit offset vector;The action sharing means include:
Acquiring unit, for obtaining the initial position data at each control point of default object;
Associative cell, for according to the initial position data, by the control point of target object and the default object
Control point is associated;
The first adjustment unit for being directed to each control point of the target object, is being made according to the default object
The offset vector at the control point during deliberate action adjusts the position of the target object Control point, makes the target
Object makes the deliberate action.
Optionally, before the step of initial position data at above-mentioned acquisition default each control point of object, the action
Sharing means further include:
Recording unit is obtained, for obtaining and recording the initial position data at the control point of the default object for the first time;
Second adjustment unit, for adjusting each control point of the default object, so that each control point is according to default
Action policy is moved, and forms the action data of the default object;
Recording unit is deviated, for being directed to each control point of the default object, the default object is recorded and is making
The position offset vector at control point control point corresponding with initial position during every frame picture of deliberate action, and will be every
In frame picture all control points position offset vector as the default object the frame picture offset data.
Optionally, above-mentioned action data includes time series corresponding with every frame picture of the action data, and described the
One adjustment unit is additionally operable to:
According to the offset vector, the location information for the position that the control point is moved in advance is calculated;
According to the time series, the position at the control point is adjusted to position corresponding with the location information.
In terms of existing technologies, action sharing method provided by the invention and device at least have below beneficial to effect
Fruit:Scheme provided by the invention presets the initial position data at each control point of object by obtaining;According to the initial position number
According to the control point of target object and the control point of the default object are associated;For each control of the target object
It is processed, according to the offset vector at default object control point when making the deliberate action, adjust the target object
The position of Control point makes the target object make the deliberate action.This programme passes through default pair of electronic equipment storage
Action data during as making deliberate action, the action data include default object each control point phase in action process
For the offset vector of initial bit so that target object can realize the deliberate action of default object, help to simplify making bone
The operating procedure of animation reduces the consumption to system resource.
For the above objects, features and advantages of the present invention is enable to be clearer and more comprehensible, present pre-ferred embodiments cited below particularly,
And attached drawing appended by coordinating, it is described in detail below.
Description of the drawings
It in order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached
Figure is briefly described.It should be appreciated that the following drawings illustrates only certain embodiments of the present invention, therefore it is not construed as pair
The restriction of scope, for those of ordinary skill in the art, without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the electronic equipment that present pre-ferred embodiments provide and the interaction schematic diagram of motion sensor means.
Fig. 2 is one of flow diagram of action sharing method that present pre-ferred embodiments provide.
Fig. 3 is the two of the flow diagram for the action sharing method that present pre-ferred embodiments provide.
Fig. 4 is the block diagram for the action sharing means that present pre-ferred embodiments provide.
Icon:10- electronic equipments;11- processing units;12- communication units;13- storage units;20- motion sensor means;
100- acts sharing means;110- acquiring units;120- associative cells;130- the first adjustment units;140- obtains recording unit;
150- second adjustment units;160- deviates recording unit.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes.Obviously, described embodiment is only the part of the embodiment of the present invention, instead of all the embodiments.It is logical
The component for the embodiment of the present invention being often described and illustrated herein in the accompanying drawings can configure to arrange and design with a variety of.
Therefore, below the detailed description of the embodiment of the present invention to providing in the accompanying drawings be not intended to limit it is claimed
The scope of the present invention, but be merely representative of the present invention selected embodiment.Based on the embodiment of the present invention, people in the art
Member's all other embodiments obtained on the premise of creative work is not made, belong to the scope of protection of the invention.
It should be noted that:Similar label and letter represents similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined, then it further need not be defined and explained in subsequent attached drawing in a attached drawing.In addition, term " the
One ", " second " etc. is only used for distinguishing description, and it is not intended that instruction or hint relative importance.
Below in conjunction with the accompanying drawings, elaborate to some embodiments of the present invention.In the case where there is no conflict, it is following
Feature in embodiment and embodiment can be mutually combined.
In the prior art, to target object is made to complete the same or similar action of deliberate action with presetting object,
Default transformation matrix of the object in the model space is typically directly preserved in animation file, each frame can directly be taken default
The transformation results of object directly convert target object.However which is, it is necessary to ensure each target object and default pair
Skeleton height, the size of elephant are basically identical.It can not be suitable for the slightly larger object of height ratio difference.
How a kind of action sharing method of science is provided, the larger object of skeleton height, size gap can be suitable for,
And the consumption to system resource can be reduced, it is a great problem of those skilled in the art.In view of the above problems, present inventor
It is explored by studying for a long period of time, proposes following embodiment to solve the above problems.Below in conjunction with the accompanying drawings, the embodiment of the present invention is made detailed
It describes in detail bright.In the case where there is no conflict, the feature in following embodiment and embodiment can be mutually combined.
Fig. 1 is refer to, for the block diagram for the electronic equipment 10 that present pre-ferred embodiments provide.It is provided by the invention
Electronic equipment 10 can be used for performing following action sharing methods.The electronic equipment 10 may be, but not limited to, intelligent hand
Machine, PC (personal computer, PC), tablet computer, personal digital assistant (personal digital
Assistant, PDA), mobile internet surfing equipment (mobile Internet device, MID) etc..
In the present embodiment, the electronic equipment 10 can include processing unit 11, communication unit 12, storage unit 13 and
Act sharing means 100, the processing unit 11, communication unit 12, storage unit 13 and 100 each yuan of sharing means of action
It is directly or indirectly electrically connected between part, to realize the transmission of data or interaction.For example, these elements can pass through between each other
One or more communication bus or signal wire, which are realized, to be electrically connected.
The processing unit 11 can be processor.For example, the processor can be central processing unit (Central
Processing Unit, CPU), graphics processor (Graphics Processing Unit, GPU), application-specific integrated circuit
(ASIC), field programmable gate array (FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components.It can realize or perform disclosed each method, step and the logic diagram in the embodiment of the present invention.
The communication unit 12 is used to establish the communication connection of electronic equipment 10 and motion sensor means 20 by network, and
By the network transceiving data, the network can be cable network, wireless network etc..
The storage unit 13 may be, but not limited to, random access memory, read-only memory, may be programmed read-only deposit
Reservoir, Erasable Programmable Read Only Memory EPROM, electrically erasable programmable read-only memory etc..In the present embodiment, the storage
Unit 13 can be used for storing action data when default object makes deliberate action.Certainly, the storage unit 13 can be with
For storing program, the processing unit 11 performs the program after receiving and executing instruction.
Further, it is described action sharing means 100 include it is at least one can be with the shape of software or firmware (firmware)
Formula is stored in the storage unit 13 or is solidificated in 10 operating system of electronic equipment (operating system, OS)
Software function module.The processing unit 11 is used to perform the executable module stored in the storage unit 13, such as dynamic
Make software function module and computer program included by sharing means 100 etc..
It is understood that structure shown in FIG. 1 is only a kind of structure diagram of electronic equipment 10, the electronic equipment
10 can also include than more or fewer components shown in Fig. 1.Each component shown in Fig. 1 may be employed hardware, software or its
Combination is realized.
Fig. 2 is refer to, one of flow diagram of action sharing method provided for present pre-ferred embodiments.In this reality
It applies in example, which can be applied to above-mentioned electronic equipment 10, and performing the action by the electronic equipment 10 is total to
Method is enjoyed, so that target object can complete the deliberate action of default object.Wherein, which is stored with default object and does
Go out action data during deliberate action, the action data include the default object in action process each control point compared with
The offset vector of initial bit, that is, even if height, size gap with default object are larger, target object can be also automatically performed
The deliberate action of default object, and then simplify the operating procedure for making skeleton cartoon.
Wherein, the control point represents the key position of object (object can be target object or default object)
Motion control point.If for example, object be figure kind's model, the head of person model, joint part (such as knee joint, ankle close
Section, elbow joint, hip joint etc.) etc. positions corresponding control point is set, it is whole in order to be simulated by the movement of key position
The action that body personage makes.
Each step of action sharing method shown in Fig. 2 will be described in detail below, in the present embodiment, the action
Sharing method may comprise steps of:
Step S210 obtains the initial position data at default each control point of object.
In the present embodiment, it will be appreciated that ground, for each control point, the initial position data at control point exists for the control point
Spatial data when being in static before making deliberate action.
Optionally, the action data is associated with the default identification code for characterizing the default object type.In step S210
Before, this method can also include:The target identification code of the target object is obtained, the target identification code table levies the target
The type of object;Judge whether the target identification code and the default identification code identical, if the target identification code with it is described
The initial position data at the identical just acquisition of default identification code default each control point of object.
Understandably, the type of object includes, but are not limited to personage's class model, canine animals model, feline model
Etc. types, corresponding type corresponding identification code can be set, the identification code can be unique digital number or other character strings,
Here the species of identification code is not especially limited.If target object is identical with the type of default object, target object can be adopted
With the action data of default object.It (is namely recognized for example, target object and default object are three-dimensional personage's class model
The identification code of target object is identical with the identification code of default object, identification code characterization figure kind), then target object can be used pre-
If the action data of object, that is, the action data of shared default object.If target object is different from the type of default object,
For example target object is figure kind's model, it is canine animals model to preset object, then default object not can be used for target object
Action data.
What deserves to be explained is same type of default object can be pre-configured with more sets for completing the action number of different actions
According to the action data also can be identified differentiation by corresponding identification code, so that target object can be automatically complete according to identification code
Into specified deliberate action.
Step S220, according to the initial position data, by the control of the control point of target object and the default object
Point is associated.
Understandably, when target object is identical with the type of default object, according to the initial position data of default object,
The corresponding control point of target object control point corresponding with default object is associated, two adjacent and connection control points are just
Form a bone of target object.
For each control point of the target object, described preset is being made according to the default object by step S230
The offset vector at control point during action adjusts the position of the target object Control point, makes the target object
The deliberate action.
Optionally, in the present embodiment, step S230 can include:The target object is calculated according to default computation rule
With the bodily form ratio value of the default object;The offset vector is zoomed in and out according to the ratio value, it is new inclined to obtain
The amount of shifting to;The control point of the target object is adjusted, so that the control point is moved according to the new offset vector.
For example, using the rise ratio of the height of target object and default object as the bodily form ratio value, and according to this
Ratio value zooms in and out the offset vector (for example, the ratio value is bigger than 1, then amplifies the ratio value pair to the offset vector
Offset vector if the ratio value is smaller than 1, is contracted to the corresponding multiple of the ratio value by the multiple answered) so that the target pair
As the action made is identical or approximate with the movement range of default object.
Certainly, in other embodiments, a bone length of the ratio value or target object and default object pair
Then the ratio for the bone length answered zooms in and out the offset vector at the corresponding control point of the bone, obtain new offset to
It measures, and the position at the control point is adjusted with new offset vector.For example, when target object is figure kind's model, the hand of the personage
It is relatively long, then the target when making deliberate action, the motion amplitude of hand can be slightly larger than the original offset of default object to
Amount, so that the deliberate action that the action that target object is made is made with default object is increasingly similar.
In the present embodiment, the action data of default object can include corresponding with every frame picture of the action data
Time series.Understandably, which makes the action video of deliberate action formation, based on the action including default object
Control point is with respect to the offset vector of the control point initial position and the corresponding time sequence of every frame picture on the every frame picture of video
Row.Optionally, step S230 can be:According to the offset vector, the position for the position that the control point is moved in advance is calculated
Information;According to the time series, the position at the control point is adjusted to position corresponding with the location information.
Understandably, for default object, it is assumed that initial position free space coordinate (1,1, the 1) expression at a control point,
Space coordinates of the control point in next frame picture is (1,2,3), and corresponding time series is assumed to be 0.8 second, then the offset
Vector is (0,1,2), if be with the initial position at the associated control point in the control point of default object in target object (0,0,
0).For the control point of target object, when time series is 0.8 second, it is necessary to by the position at the control point according to offseting to
Amount is adjusted so that the position coordinates of the control point after the adjustment is (0,1,2), also allows for target object in the frame picture
When be made that deliberate action corresponding with presetting object.
Optionally, step S230 can be:According to the offset vector, the position that the control point is moved in advance is calculated
Location information;The time series is zoomed in and out according to pre-set zoom multiple, to obtain new time series;According to described new
Time series, the position at the control point is adjusted to position corresponding with the location information.
Understandably, by being zoomed in and out to time series, can make target object with compared with the speed of default object more
Deliberate action is completed soon or more slowly, to enrich the manner of execution that target object is presented.
Fig. 3 is refer to, is the two of the flow diagram for the action sharing method that present pre-ferred embodiments provide.In this reality
It applies in example, this method can also include step S240 to step S260 before step S210.
Step S240 is obtained and is recorded the initial position data at the control point of the default object for the first time.
Step S250 adjusts each control point of the default object, so that each control point is according to deliberate action strategy
It is moved, and forms the action data of the default object.
Understandably, the action data include the default object in action process each control point compared with initial bit
Offset vector, that is, per frame picture in offset vector of the control point compared with the control point in initial position.
Optionally, the electronic equipment 10 is communicated to connect with motion sensor means 20, and the motion sensor means 20 include
With the control point associated motion sensor one by one.Step S250 can be to include:It receives and the associated fortune in the control point
The exercise data that dynamic sensor is sent, wherein, the exercise data is occurred relative motion by the motion sensor and is generated, institute
Stating exercise data includes the motion trace data of the motion sensor;The control point is adjusted according to the movement locus, with
The control point is made to be moved with the corresponding track of the motion trace data.Understandably, which can
Motion capture device is thought, for capturing the movement locus at moving object key position (the namely corresponding position in control point).
Step S260 for each control point of the default object, records the default object and is making deliberate action
Every frame picture when control point control point corresponding with the initial position position offset vector, and will be per frame picture in
All control points position offset vector as the default object the frame picture offset data.
Understandably, based on time series, electronic equipment 10 preserves the offset vector at the control point on every frame picture, and
Offset vector per each control point of frame picture can be as the offset data of the frame picture, and the offset data is corresponding with time series
Time point be associated so that target object is same or like according to the action that the time series is completed and deliberate action, keep away
Exempt from target object execution and entanglement occur.
Based on above-mentioned design, for the action to be completed and the same or similar bone of deliberate action of default object
Animation can share the action data of the deliberate action of default object, without artificially recording action video again to target object, into
And simplify the operating procedure for making animation, it reduces and makes skeleton cartoon cost, while can also reduce the consumption to Installed System Memory.
Fig. 4 is refer to, for the block diagram for the action sharing means 100 that present pre-ferred embodiments provide.The present invention
The action sharing means 100 of offer can be applied to above-mentioned electronic equipment 10, for performing above-mentioned action sharing method.Institute
It states electronic equipment 10 and is stored with action data when default object makes deliberate action, the action data includes the default object
In action process each control point compared with initial bit offset vector so that even if the bone of target object and default object
Size gap is larger, can also complete the deliberate action of default object.
In the present embodiment, action sharing means 100 can include acquiring unit 110, associative cell 120 and the first adjustment
Unit 130.
Acquiring unit 110, for obtaining the initial position data at each control point of default object.Specifically, obtain single
Member 110 can be used for performing step S210 shown in Fig. 2, and the operation content specifically performed can refer to retouching in detail to step S210
It states.
Associative cell 120, for according to the initial position data, by the control point of target object and the default object
Control point be associated.Specifically, associative cell 120 can be used for performing step S220 shown in Fig. 2, the behaviour specifically performed
The detailed description to step S220 is can refer to as content.
The first adjustment unit 130 for being directed to each control point of the target object, is being done according to the default object
The offset vector at control point when going out the deliberate action adjusts the position of the target object Control point, makes the mesh
Mark object makes the deliberate action.
The action data includes time series corresponding with every frame picture of the action data, the first adjustment list
Member 130 is additionally operable to:According to the offset vector, the location information for the position that the control point is moved in advance is calculated;According to described
Time series adjusts the position at the control point to position corresponding with the location information.Specifically, the first adjustment unit
130 can be used for performing step S230 shown in Fig. 2, and the operation content specifically performed can refer to retouching in detail to step S230
It states.
In the present embodiment, acting sharing means 100 can also include obtaining recording unit 140, second adjustment unit 150
And offset recording unit 160, the acquisition recording unit 140, second adjustment unit 150 and offset recording unit 160 are performing
Before step S210, for obtaining action data when default object makes deliberate action, to be deposited in advance as electronic equipment 10
The action data of storage.
For example, recording unit 140 is obtained, for obtaining and recording the initial position at the control point of the default object for the first time
Data.Specifically, obtain recording unit 140 to can be used for performing step S240 shown in Fig. 3, the operation content specifically performed can
With reference to the detailed description to step S240.
Second adjustment unit 150, for adjusting each control point of the default object, so that each control point is according to pre-
If action policy is moved, and forms the action data of the default object.Specifically, second adjustment unit 150 can be used
In performing step S250 shown in Fig. 3, the operation content specifically performed can refer to the detailed description to step S250.
Recording unit 160 is deviated, for being directed to each control point of the default object, the default object is recorded and is doing
The position offset vector at control point control point corresponding with initial position when going out every frame picture of deliberate action, and will
In per frame picture the position offset vector at all control points as the default object the frame picture offset data.Specifically
Ground, offset recording unit 160 can be used for performing step S260 shown in Fig. 3, and the operation content specifically performed can refer to step
The detailed description of rapid S260.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can lead to
Hardware realization is crossed, the mode of necessary general hardware platform can also be added to realize by software, based on such understanding, this hair
Bright technical solution can be embodied in the form of software product, which can be stored in a non-volatile memories
Medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in, it is used including some instructions so that a computer equipment (can be
Personal computer, server or network equipment etc.) perform method described in each implement scene of the present invention.
In conclusion the present invention provides a kind of action sharing method and device, by obtaining default each control point of object
Initial position data;According to the initial position data, the control of the control point of target object and the default object is clicked through
Row association;For each control point of the target object, control when making the deliberate action according to the default object
The offset vector of point is made, adjusts the position of the target object Control point, makes the target object described default dynamic
Make.This programme stores action data when default object makes deliberate action by electronic equipment, and the action data includes should
Default object in action process each control point compared with initial bit offset vector so that target object, which can be realized, to be preset pair
The deliberate action of elephant helps to simplify the operating procedure for making skeleton cartoon, reduces the consumption to system resource.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should all be included in the protection scope of the present invention.
Claims (10)
1. a kind of action sharing method, applied to electronic equipment, which is characterized in that the electronic equipment is stored with default object and does
Go out action data during deliberate action, the action data include the default object in action process each control point compared with
The offset vector of initial bit;The described method includes:
Obtain the initial position data at each control point of default object;
According to the initial position data, the control point of target object and the control point of the default object are associated;
For each control point of the target object, according to the default object when making the deliberate action control point
Offset vector, adjust the position of the target object Control point, the target object made to make the deliberate action.
2. the according to the method described in claim 1, it is characterized in that, initial bit for obtaining default each control point of object
Before the step of putting data, the method further includes:
It obtains for the first time and records the initial position data at the control point of the default object;
Each control point of the default object is adjusted, so that each control point is moved according to deliberate action strategy, and shape
Into the action data of the default object;
For each control point of the default object, record the default object and making every frame picture when institute of deliberate action
The position offset vector at control point control point corresponding with the initial position is stated, and by control point all in every frame picture
Position offset vector as the default object the frame picture offset data.
3. according to the method described in claim 2, it is characterized in that, the electronic equipment and motion sensor means communicate to connect,
The motion sensor means include and the control point associated motion sensor one by one;It is described to adjust each of the default object
Control point, so that the step of each control point is moved according to deliberate action strategy, including:
The exercise data sent with the associated motion sensor in the control point is received, wherein, the exercise data is by the fortune
Dynamic sensor occurs relative motion and generates, and the exercise data includes the motion trace data of the motion sensor;
The control point is adjusted according to the movement locus, so that the control point is with the corresponding track of the motion trace data
It is moved.
4. the according to the method described in claim 1, it is characterized in that, position of the adjustment target object Control point
The step of putting, the target object made to make the deliberate action, including:
The bodily form ratio value of the target object and the default object is calculated according to default computation rule;
The offset vector is zoomed in and out according to the ratio value, to obtain new offset vector;
The control point of the target object is adjusted, so that the control point is moved according to the new offset vector.
5. according to the method described in claim 1, it is characterized in that, the action data includes every frame with the action data
The corresponding time series of picture, the position of the adjustment target object Control point, makes the target object make institute
The step of stating deliberate action, including:
According to the offset vector, the location information for the position that the control point is moved in advance is calculated;
According to the time series, the position at the control point is adjusted to position corresponding with the location information.
6. according to the method described in claim 1, it is characterized in that, the action data includes every frame with the action data
The corresponding time series of picture, the position of the adjustment target object Control point, makes the target object make institute
The step of stating deliberate action, including:
According to the offset vector, the location information for the position that the control point is moved in advance is calculated;
The time series is zoomed in and out according to pre-set zoom multiple, to obtain new time series;
According to the new time series, the position at the control point is adjusted to position corresponding with the location information.
7. according to the method described in any one in claim 1-6, which is characterized in that the action data is associated with characterization institute
State the default identification code of default object type;It is described obtain default each control point of object initial position data the step of it
Before, the method further includes:
The target identification code of the target object is obtained, the target identification code table levies the type of the target object;
Judge whether the target identification code and the default identification code are identical, if the target identification code and the default mark
The identical initial position data for just obtaining default each control point of object of code.
8. a kind of action sharing means, applied to electronic equipment, which is characterized in that the electronic equipment is stored with default object and does
Go out action data during deliberate action, the action data include the default object in action process each control point compared with
The offset vector of initial bit;The action sharing means include:
Acquiring unit, for obtaining the initial position data at each control point of default object;
Associative cell, for according to the initial position data, by the control of the control point of target object and the default object
Point is associated;
The first adjustment unit, for being directed to each control point of the target object, according to being made the default object
The offset vector at control point during deliberate action adjusts the position of the target object Control point, makes the target object
Make the deliberate action.
9. action sharing means according to claim 8, which is characterized in that described to obtain default each control point of object
Initial position data the step of before, it is described action sharing means further include:
Recording unit is obtained, for obtaining and recording the initial position data at the control point of the default object for the first time;
Second adjustment unit, for adjusting each control point of the default object, so that each control point is according to deliberate action
Strategy is moved, and forms the action data of the default object;
Deviate recording unit, for being directed to each control point of the default object, record the default object make it is default
The position offset vector at control point control point corresponding with initial position during every frame picture of action, and will be drawn per frame
In face all control points position offset vector as the default object the frame picture offset data.
10. action sharing means according to claim 8 or claim 9, which is characterized in that the action data includes moving with described
Make the corresponding time series of every frame picture of data, the first adjustment unit is additionally operable to:
According to the offset vector, the location information for the position that the control point is moved in advance is calculated;
According to the time series, the position at the control point is adjusted to position corresponding with the location information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711268497.5A CN108109189A (en) | 2017-12-05 | 2017-12-05 | Act sharing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711268497.5A CN108109189A (en) | 2017-12-05 | 2017-12-05 | Act sharing method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108109189A true CN108109189A (en) | 2018-06-01 |
Family
ID=62208938
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711268497.5A Pending CN108109189A (en) | 2017-12-05 | 2017-12-05 | Act sharing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108109189A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109727302A (en) * | 2018-12-28 | 2019-05-07 | 网易(杭州)网络有限公司 | Bone creation method, device, electronic equipment and storage medium |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102509333A (en) * | 2011-12-07 | 2012-06-20 | 浙江大学 | Action-capture-data-driving-based two-dimensional cartoon expression animation production method |
CN102708582A (en) * | 2012-05-08 | 2012-10-03 | 电子科技大学 | Character movement redirecting method for heterogeneous topology |
CN103824316A (en) * | 2014-03-26 | 2014-05-28 | 广州博冠信息科技有限公司 | Method and equipment for generating action pictures for object |
CN104142820A (en) * | 2014-02-12 | 2014-11-12 | 腾讯科技(深圳)有限公司 | Animation production method, device and system |
CN105338369A (en) * | 2015-10-28 | 2016-02-17 | 北京七维视觉科技有限公司 | Method and apparatus for synthetizing animations in videos in real time |
CN106251396A (en) * | 2016-07-29 | 2016-12-21 | 迈吉客科技(北京)有限公司 | The real-time control method of threedimensional model and system |
CN106327482A (en) * | 2016-08-10 | 2017-01-11 | 东方网力科技股份有限公司 | Facial expression reconstruction method and device based on big data |
CN106709975A (en) * | 2017-01-11 | 2017-05-24 | 山东财经大学 | Interactive three-dimensional human face expression animation editing method and system and extension method |
US20170150212A1 (en) * | 2015-11-23 | 2017-05-25 | Le Holdings (Beijing) Co., Ltd. | Method and electronic device for adjusting video |
CN106780681A (en) * | 2016-12-01 | 2017-05-31 | 北京像素软件科技股份有限公司 | A kind of role action generation method and device |
CN106774872A (en) * | 2016-12-09 | 2017-05-31 | 网易(杭州)网络有限公司 | Virtual reality system, virtual reality exchange method and device |
-
2017
- 2017-12-05 CN CN201711268497.5A patent/CN108109189A/en active Pending
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102509333A (en) * | 2011-12-07 | 2012-06-20 | 浙江大学 | Action-capture-data-driving-based two-dimensional cartoon expression animation production method |
CN102708582A (en) * | 2012-05-08 | 2012-10-03 | 电子科技大学 | Character movement redirecting method for heterogeneous topology |
CN104142820A (en) * | 2014-02-12 | 2014-11-12 | 腾讯科技(深圳)有限公司 | Animation production method, device and system |
CN103824316A (en) * | 2014-03-26 | 2014-05-28 | 广州博冠信息科技有限公司 | Method and equipment for generating action pictures for object |
CN105338369A (en) * | 2015-10-28 | 2016-02-17 | 北京七维视觉科技有限公司 | Method and apparatus for synthetizing animations in videos in real time |
US20170150212A1 (en) * | 2015-11-23 | 2017-05-25 | Le Holdings (Beijing) Co., Ltd. | Method and electronic device for adjusting video |
CN106251396A (en) * | 2016-07-29 | 2016-12-21 | 迈吉客科技(北京)有限公司 | The real-time control method of threedimensional model and system |
CN106327482A (en) * | 2016-08-10 | 2017-01-11 | 东方网力科技股份有限公司 | Facial expression reconstruction method and device based on big data |
CN106780681A (en) * | 2016-12-01 | 2017-05-31 | 北京像素软件科技股份有限公司 | A kind of role action generation method and device |
CN106774872A (en) * | 2016-12-09 | 2017-05-31 | 网易(杭州)网络有限公司 | Virtual reality system, virtual reality exchange method and device |
CN106709975A (en) * | 2017-01-11 | 2017-05-24 | 山东财经大学 | Interactive three-dimensional human face expression animation editing method and system and extension method |
Non-Patent Citations (1)
Title |
---|
张典华等: "一种可共享三维动画的新方法", 《微计算机应用》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109727302A (en) * | 2018-12-28 | 2019-05-07 | 网易(杭州)网络有限公司 | Bone creation method, device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111659115B (en) | Virtual role control method and device, computer equipment and storage medium | |
US20210287415A1 (en) | Virtual object display method and apparatus, electronic device, and storage medium | |
CN112241993B (en) | Game image processing method and device and electronic equipment | |
US11559738B2 (en) | Machine learned virtual gaming environment | |
WO2022021686A1 (en) | Method and apparatus for controlling virtual object, and storage medium and electronic apparatus | |
CN109901894B (en) | Progress bar image generation method and device and storage medium | |
US20120028707A1 (en) | Game animations with multi-dimensional video game data | |
CN109816758B (en) | Two-dimensional character animation generation method and device based on neural network | |
CN111899319B (en) | Expression generation method and device of animation object, storage medium and electronic equipment | |
JP5190524B2 (en) | Object operation apparatus and method, and program | |
CN110298907A (en) | A kind of virtual role method of controlling operation and device calculate equipment and storage medium | |
CN110251942A (en) | Control the method and device of virtual role in scene of game | |
CN107219969A (en) | 3D display methods and device | |
CN112102364A (en) | Target tracking method and device, electronic equipment and storage medium | |
US20220237848A1 (en) | Image processing method and apparatus, electronic device, and storage medium | |
CN110879850A (en) | Method, device and equipment for acquiring jitter parameters and storage medium | |
CN110019866A (en) | Dynamic picture playback method, device and storage medium | |
CN111773688B (en) | Flexible object rendering method and device, storage medium and electronic device | |
CN114053696B (en) | Image rendering processing method and device and electronic equipment | |
US20240257429A1 (en) | Neural animation layering for synthesizing movement | |
CN112231020B (en) | Model switching method and device, electronic equipment and storage medium | |
CN108109189A (en) | Act sharing method and device | |
US10099135B2 (en) | Relative inverse kinematics graphical user interface tool | |
CN109816744B (en) | Neural network-based two-dimensional special effect picture generation method and device | |
CN107770458A (en) | A kind of method and terminal device of scene switching |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180601 |