CN103824316A - Method and equipment for generating action pictures for object - Google Patents

Method and equipment for generating action pictures for object Download PDF

Info

Publication number
CN103824316A
CN103824316A CN201410117545.0A CN201410117545A CN103824316A CN 103824316 A CN103824316 A CN 103824316A CN 201410117545 A CN201410117545 A CN 201410117545A CN 103824316 A CN103824316 A CN 103824316A
Authority
CN
China
Prior art keywords
bone
frame picture
subsequent frame
physical location
current
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
CN201410117545.0A
Other languages
Chinese (zh)
Other versions
CN103824316B (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.)
Guangzhou Boguan Information Technology Co Ltd
Original Assignee
Guangzhou Boguan Information Technology 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 Guangzhou Boguan Information Technology Co Ltd filed Critical Guangzhou Boguan Information Technology Co Ltd
Priority to CN201410117545.0A priority Critical patent/CN103824316B/en
Publication of CN103824316A publication Critical patent/CN103824316A/en
Application granted granted Critical
Publication of CN103824316B publication Critical patent/CN103824316B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention provides a method and equipment for generating action pictures for an object. The method comprises the following steps: responding to a trigger instruction of an execution action of the object, and acquiring a current actual position of each skeleton of the object in a current frame picture; sequentially calculating a subsequent actual position of each skeleton in each subsequent frame picture in the action execution process based on the current actual position of each skeleton of the object in the current frame picture according to a physical model of the object, wherein the physical model is a model which is established for the object in advance and is used for expressing a kinematic relation among the skeletons in the object; and covering each skeleton in each subsequent frame picture according to the subsequent actual position of each skeleton in each subsequent frame picture, thereby forming each subsequent frame picture in the action execution process. In addition, the embodiment of the invention provides equipment for generating action pictures for the object.

Description

A kind of method and apparatus for object generation motion picture
Technical field
Embodiments of the present invention relate to view data process field, and more specifically, embodiments of the present invention relate to a kind of method and apparatus for object generation motion picture.
Background technology
The embodiments of the present invention that be intended to for stating in claims this part provide background or context.Description is not herein because be included in just admit it is prior art in this part.
In various game, animation or Computer Simulation, many objects all can be carried out exercises, as the running of game role, rotation etc.In order to present the action of object, need to generate motion picture for game object.
At present, the motion picture of object can generate by skeleton cartoon.For the motion picture that adopts skeleton cartoon to generate, the action of object is controlled by multiple bones of this object.In database, bone corresponding to exercises of having preserved various objects distributes.In the time that object performs an action, under this action that can in each frame motion picture, database be preserved, the bone of this object distributes and is attached in the current location of this object in this frame motion picture, determine the physical location of this each bone of object in this frame motion picture, then in the physical location of each bone, carry out covering, thereby obtain this frame motion picture of this object.
In various objects, many objects attitude in the middle of the process of same action executing is constantly to change, and not identical all the time.For example, the hair of game role, clothes are carried out in the process of running or rotate and are constantly waved at game role.Therefore,, for the object such as hair, clothes, adopt aforementioned skeleton cartoon cannot generate the motion picture that the attitude under its same action constantly changes.In order to generate the motion picture that attitude constantly changes under same action for object, available technology adopting is set up the physical model of describing kinematic relation between each summit between the summit of each grid that forms object.In the process performing an action at this object, start to adopt physical model to calculate successively the position of each summit each frame motion picture from root summit, and then according to the vertex position calculating, grid corresponding to each summit of object is set in each frame motion picture, thereby form object each frame motion picture in action executing process.
Summary of the invention
But, because object is to be all made up of a large amount of grids conventionally, and in object performs an action process, need to generate motion picture according to a large amount of grid vertex position of physical model calculating in prior art, this makes the generation of motion picture need to take a large amount of system resources in computation, thereby cause system burden too heavy, response time is long, finally may cause system operation not smooth.
Therefore in the prior art, the object constantly changing for attitude in same action executing process, the position that need to calculate in real time a large amount of grid vertexes during due to the motion picture of formation object, cause system resources in computation to be taken in a large number, cause operation not smooth, this is very bothersome process.
For this reason, be starved of a kind of improved method and apparatus for object generation motion picture, so that when generate the motion picture that attitude constantly changes for object without calculating in real time a large amount of grid vertex positions, thereby saving system resources in computation, mitigation system burden, shorten system response time, and smooth and easy with the operation of this assurance system, for user brings better experience.
In the present context, embodiments of the present invention expect to provide a kind of method and apparatus for object generation motion picture.
In the first aspect of embodiment of the present invention, a kind of method for object generation motion picture is provided, comprising:
The triggering command performing an action in response to described object, the current physical location of each bone that obtains described object in present frame picture;
Current physical location based on described each bone in present frame picture, according to the physical model of described object, calculate successively the follow-up physical location of each bone in each subsequent frame picture described in the implementation of described action, wherein said physical model be set up for described object in advance, for representing the model of kinematic relation between each bone of described object;
Follow-up physical location according to described each bone in each subsequent frame picture, carries out covering to described each bone in each subsequent frame picture, thereby forms each the subsequent frame picture in the implementation of described action.
In the second aspect of embodiment of the present invention, a kind of equipment for object generation motion picture is provided, comprising:
Current location acquisition module, for the triggering command performing an action in response to described object, the current physical location of each bone that obtains described object in present frame picture;
Actual calculation of location module, for the current physical location at present frame picture based on described each bone, according to the physical model of described object, calculate successively the follow-up physical location of each bone in each subsequent frame picture described in the implementation of described action, wherein said physical model be set up for described object in advance, for representing the model of kinematic relation between each bone of described object;
Operating position covering module, for the follow-up physical location at each subsequent frame picture according to described each bone, carries out covering to described each bone in each subsequent frame picture, thereby forms each the subsequent frame picture in the implementation of described action.
Be the method and apparatus that object generates motion picture according to embodiment of the present invention, in the process performing an action at object, no longer adopt the changeless bone of preserving in advance to distribute and determine the physical location of each bone in each frame picture, but based on the perform an action current physical location of each bone of present frame picture while being triggered of object, according in advance for this object is set up, calculate successively at this object and carry out the follow-up physical location of each bone in each subsequent frame picture in the process of this action for the physical model that represents kinematic relation between each bone of this object, and then in each subsequent frame picture, in the follow-up physical location of each bone, carry out covering and form each subsequent frame picture, thereby not only can make in process that object performs an action to change each bone producing and present according to physical model motion along with picture one by one the variation of object attitude, overcome skeleton cartoon technology and cannot present the object problem that attitude in process changes that performs an action, also make to present the attitude that object performs an action in process changes without calculating a large amount of grid vertex positions simultaneously, thereby the system resources in computation that the generation that has reduced significantly motion picture need to take, alleviate the burden of system and shortened the response time, for user has brought better experience.
Summary of the invention
The inventor finds, prior art adopts skeleton cartoon to come to generate motion picture for object, because the position of a large amount of grids of object is realized by each bone Control vertices, the problem that the system resources in computation that just can avoid a large amount of grid vertexes to calculate separately generation by the calculating of bone position in the time that object performs an action takies in a large number.But, because all adopting changeless bone in object performs an action each frame picture of process, existing skeleton cartoon distributes, relative position between each bone is changeless in object performs an action process, thereby causes presenting the attitude variation that object performs an action in process.And the attitude variation performing an action in process in order to present object, prior art has been given up the mode of this saving system resources in computation of skeleton cartoon, directly the grid vertex of a large amount of grids in object is calculated successively and determines the position of each grid in each frame picture then adopt according to the physical model that represents kinematic relation between grid vertex, although can, for object presents the motion picture that attitude changes, but cannot avoid taking in a large number of system resources in computation like this.
Based on above-mentioned analysis, basic thought of the present invention is: on the basis of existing skeleton cartoon, no longer adopt changeless bone to distribute at perform an action each frame picture of process of object, but based on the perform an action current physical location of each bone of present frame picture while being triggered of object, according in advance for this object is set up, calculate successively at this object and carry out the follow-up physical location of each bone in each subsequent frame picture in the process of this action for the physical model that represents kinematic relation between each bone of this object, and then in each subsequent frame picture, in the follow-up physical location of each bone, carry out covering and form each subsequent frame picture.Like this, because each bone of object can produce and meet the different bones that object attitude changes and distribute according to physical model along with picture one by one changes, not only make in process that object performs an action to change along with picture one by one the variation that presents object attitude, also make to present the attitude that object performs an action in process changes without calculating a large amount of grid vertex positions, for system has been saved computational resource simultaneously.
After having introduced ultimate principle of the present invention, lower mask body is introduced various non-limiting embodiment of the present invention.
application scenarios overview
First with reference to figure 1, Fig. 1 is the framework schematic diagram of an exemplary application scene of embodiments of the present invention.Wherein, user is undertaken by client 102 and server 101 alternately.It will be understood by those skilled in the art that the framework schematic diagram shown in Fig. 1 is only the example that embodiments of the present invention can be achieved therein.The scope of application of embodiment of the present invention is not subject to the restriction of this any aspect of framework.
It should be noted that, client 102 herein can be existing, that research and develop or in the future research and development, can be by any type of wired and/or wireless connections (for example, Wi-Fi, LAN, honeycomb, concentric cable etc.) with the mutual any client of server 101, include but not limited to: existing, research and develop or the smart mobile phone of research and development in the future, non intelligent mobile phone, panel computer, laptop PC, desktop personal computer, small-size computer, medium-size computer, mainframe computer etc.Or client 102 can be also software client, the such as current popular application program being installed on the hardware devices such as computing machine, smart mobile phone, panel computer.More generally, client 102 can be the combination of software client and hardware client.More specifically, client 102 can be game client.
It is also to be noted that, server 101 be herein only existing, research and develop or examples research and development, that the equipment (can be software, hardware, firmware or their any combination) of service can be provided to user in the future.Embodiments of the present invention are unrestricted in this regard.
Based on the framework shown in Fig. 1, under the first exemplary application scene, the triggering command that client 102 performs an action in response to described object, the current physical location of each bone that obtains described object in present frame picture; Then, client 102 is the current physical location in present frame picture based on described each bone, according to the physical model of described object, calculate successively the follow-up physical location of each bone in each subsequent frame picture described in the implementation of described action, wherein said physical model be set up for described object in advance, for representing the model of kinematic relation between each bone of described object; Finally, client 102 is the follow-up physical location in each subsequent frame picture according to described each bone, and described each bone in each subsequent frame picture is carried out to covering, thereby forms each the subsequent frame picture in the implementation of described action.Wherein, each subsequent frame picture can present for client 102.
Based on the framework shown in Fig. 1, under the second exemplary application scene, the triggering command that server 101 performs an action in response to described object, the current physical location of each bone that obtains described object in present frame picture; Then, server 101 is the current physical location in present frame picture based on described each bone, according to the physical model of described object, calculate successively the follow-up physical location of each bone in each subsequent frame picture described in the implementation of described action, wherein said physical model be set up for described object in advance, for representing the model of kinematic relation between each bone of described object; Finally, server 101 is the follow-up physical location in each subsequent frame picture according to described each bone, and described each bone in each subsequent frame picture is carried out to covering, thereby forms each the subsequent frame picture in the implementation of described action.Wherein, each subsequent frame picture can send to client 102 for server 101, so that client 102 presents.
It is also to be noted that, in application scenarios of the present invention, although be to be carried out separately by client 102 or server 101 action description of embodiment of the present invention herein and below, these actions also can part be carried out, partly be carried out by server 101 by client 102.The present invention is unrestricted aspect executive agent, as long as carried out the disclosed action of embodiment of the present invention.
illustrative methods
Below in conjunction with the application scenarios of Fig. 1, describe according to the object that is used to of exemplary embodiment of the invention and generate the method for motion picture with reference to figure 2~6.It should be noted that above-mentioned application scenarios is only to illustrate for the ease of understanding spirit of the present invention and principle, embodiments of the present invention are unrestricted in this regard.On the contrary, embodiments of the present invention can be applied to applicable any scene.
Referring to Fig. 2, show the process flow diagram that generates method one embodiment of motion picture in the present invention for object.In the present embodiment, for example specifically can comprise the steps:
Step 201, the triggering command performing an action in response to described object, the current physical location of each bone that obtains described object in present frame picture.
Wherein, this present frame picture is the frame picture that this object is triggered while carrying out this action, and also, this present frame picture is that this object is carried out the first frame picture in this course of action.Therefore, the current physical location of each bone of this object in this present frame picture, is each bone of this object initial position in this action executing process.
Be understandable that, under different application scenarioss, the triggering command that object performs an action can be to be generated by different equipment under different conditions.For example, for an application moving in client completely, the triggering command that object performs an action can be that user while carrying out certain operation or run under certain particular case and generated by client in this application in client.And for example, for an application that needs server and client to move alternately, the triggering command that object performs an action can be to be generated by client when the operation in client user, also can be to run under certain particular case and generated by server or client in this application, can also be to be generated by client announcement server when the operation in client user.
Step 202, current physical location based on described each bone in present frame picture, according to the physical model of described object, calculate successively the follow-up physical location of each bone in each subsequent frame picture described in the implementation of described action, wherein said physical model be set up for described object in advance, for representing the model of kinematic relation between each bone of described object.
Wherein, each subsequent frame picture, be each bone in its former frame picture actual calculation of location out after, calculate according to the physical location of each bone in its former frame picture.Particularly, using arbitrary subsequent frame picture as current subsequent frame picture, can be according to object the physical location in current subsequent frame picture determine the follow-up physical location of the root bone of this object, using root bone as current parent's bone, utilize the follow-up physical location of current parent's bone in current subsequent frame picture, according to the kinematic relation between current parent's bone and its sub-bone of physical model indication, the follow-up physical location of the sub-bone of calculating current parent bone in current subsequent frame picture, again using the sub-bone of current parent's bone as current parent's bone, the follow-up physical location of the sub-bone that again calculates current parent's bone in current subsequent frame picture, until the follow-up actual calculation of location of last bone of this object in current subsequent frame picture is complete.Be understandable that, if the present frame picture when former frame picture of current subsequent frame picture is aforementioned object action triggering calculates each bone using and is aforementioned current physical location in the physical location of former frame picture; If the former frame picture of current subsequent frame picture is not aforementioned present frame picture but a subsequent frame picture, calculating each bone using is the follow-up physical location in last subsequent frame picture in the physical location of former frame picture.
It should be noted that, in order to make the object distribution of each bone that performs an action in process can embody object attitude and change and change, need to be in advance for this object be set up the physical model that be used for representing kinematic relation between each bone of described object.For example, this physical model can be Mass-spring Model, and correspondingly, each bone of this object can be each particle on this Mass-spring Model.
For the object that adopts Mass-spring Model as physical model, the parameter that setting up model needs comprises as the point mass of each bone of particle and each to the elasticity coefficient between bone connected with each other.Based on this, in some embodiments of the present embodiment, the foundation of Mass-spring Model can comprise: in response to the selection operation of the bone to described object, determine that the bone of choosing is current bone; In response to the setting operation of the quality to described current bone, determine the point mass as the described current bone of particle; In response to the setting operation to elasticity coefficient between bone, determine as the described current bone of particle and as the elasticity coefficient between the father's bone that is connected in described current bone of particle.Wherein, be the user that object is set up Mass-spring Model, can select any one bone as current bone, so as editor deserve before bone point mass and and his father's bone between elasticity coefficient.
A common object has a lot of bones, if user chooses respectively, arranges point mass and elasticity coefficient to each bone in the time setting up Mass-spring Model, in operation, just will be very loaded down with trivial details.For the ease of simplifying the operation of user in the time setting up Mass-spring Model, based on object perform an action the attitude of process change in the motion of each bone have the advantages that to go forward one by one and change, in other embodiments of the present embodiment, a kind of operation of continuous setting can also be provided for user in the time setting up Mass-spring Model, make user complete setting to each bone point mass by setting operation and to each setting to elasticity coefficient between connected bone.Particularly, on the aforementioned basis of setting up Mass-spring Model embodiment, can also comprise: in response to the continuous setting operation to bone mass, based on the point mass of described current bone, according to the point mass relation between the adjacent bone arranging, determine the point mass of each bone, and/or, in response to the continuous setting operation to elasticity coefficient between bone, elasticity coefficient between father's bone based on described current bone and described current bone, according to elasticity coefficient relation between the adjacent two pairs of bones that arrange, determine each to the elasticity coefficient between adjacent bone.Wherein, it is identical that point mass relation between adjacent bone can be set to point mass, between adjacent two pairs of bones, can be set to elasticity coefficient identical for elasticity coefficient relation, in the time that user triggers continuous setting operation, the point mass of each bone is set to the point mass of current bone, each elasticity coefficient between adjacent bone is set to the elasticity coefficient between current bone and his father's bone.
For some object, it is in the process performing an action, and the attitude of its certain part does not change.For example, some part of the clothes of game role can not change because there being hard material to support attitude in role runs process.In order to adapt to have these special objects of the constant part of attitude in the process of performing an action, in the other embodiment of the present embodiment, can also be for user provides a kind of operation that bone attribute is set in the time setting up Mass-spring Model, so that user can according to the part of bone place object whether in action executing process attitude change, it is to adopt the mode that fix bone distributes determine or adopt the mode of following his father's skeleton motion to determine that bone physical location in each frame picture in action executing process is set.Particularly, on the aforementioned basis of setting up Mass-spring Model embodiment, can also comprise: in response to the setting operation of the attribute to described current bone, the attribute of determining described current bone is os osseum or cartilage.Wherein, the attribute of described current bone is os osseum, and being illustrated in described object, to carry out the follow-up physical location of current bone described in the process of described action in each subsequent frame picture be to distribute to determine according to the fix bone of described object under described action of preserving in advance; The attribute of described current bone is cartilage, being illustrated in described object, to carry out the follow-up physical location of current bone described in the process of described action in each subsequent frame picture be the follow-up physical location in this subsequent frame picture according to father's bone of described current bone, and the Mass-spring Model limiting according to the elasticity coefficient between father's bone of the point mass of father's bone of the point mass of described current bone, described current bone, described current bone and described current bone calculates.It should be noted that, fix bone defines the relative position relation between each bone in distributing, and is thick-and-thin in the process that performs an action at object of this relative position relation.The bone that is os osseum for attribute, in each the subsequent frame picture performing an action in process at object, be that in the position that distributes in fix bone according to this bone correspondence and this frame picture, the follow-up physical location of this bone at this frame picture determined in the position at this object place.
Be understandable that, the setting operation for the ease of user in the time setting up Mass-spring Model to bone, the above various embodiments of setting up Mass-spring Model, for the setting operation that each bone provides can be gathered in a tab.For example, Fig. 3 shows a kind of tab example that in Mass-spring Model, a current bone of choosing is carried out setting operation of setting up.In this tab, " whether cartilage " option provides the operation of the attribute that current bone is set to user, " displacement promotion coefficient " option provides the operation that elasticity coefficient between current bone and his father's bone is set to user, " point mass " option provides the operation of the point mass that current bone is set to user, " the related editor of sub-bone " provides the operation that elasticity coefficient between bone mass and bone is set continuously.
Step 203, follow-up physical location according to described each bone in each subsequent frame picture, carry out covering to described each bone in each subsequent frame picture, thereby form each the subsequent frame picture in the implementation of described action.
Wherein, for arbitrary subsequent frame picture, the process of covering is in the follow-up physical location of each bone in this subsequent frame picture, to determine to be respectively attached to the position of each bone from grid vertex with it, and in this subsequent frame picture, arrange described object according to the position of each grid vertex, carry out this frame picture in this course of action thereby generate this object.
Sometimes, the follow-up physical location of the bone calculating according to the physical model of kinematic relation between bone in subsequent frame picture can depart from this bone fix bone in this subsequent frame picture and divide the position planting too far away, thereby causes object attitude in this subsequent frame picture that irrational modification occurs.Occur for fear of irrational object attitude, in some embodiments of the present embodiment, can be go out the follow-up physical location of bone in subsequent frame picture according to physical model calculating after, while first immobilizing according to employing object attitude, this follow-up physical location is adjusted in the position of this bone in this subsequent frame picture, and then carry out covering with the follow-up physical location after adjusting, thereby avoid covering to produce the irrational subsequent frame picture of object attitude later.Particularly, can be after step 202 be complete, according to the fixed position of each bone under described action described in each subsequent frame picture, adjust the follow-up physical location of each bone in each subsequent frame picture, then, when the follow-up physical location of each bone described in each subsequent frame picture is adjusted when complete, then enter execution step 203.Wherein, in each subsequent frame picture, the fixed position of each bone represents to distribute and each bone of determining position in this subsequent frame picture according to the fix bone of described object under described action of preserving in advance.
For the adjustment of follow-up physical location, a kind of possible implementation is, the extent of deviation between the follow-up physical location of bone and fixed position is limited in a predetermined scope.Particularly, embodiment as shown in Figure 4, the step of adjusting the follow-up physical location of each bone in each subsequent frame picture according to the fixed position of each bone under described action described in each subsequent frame picture for example can comprise:
Step 401, the follow-up physical location of described each bone of calculating in each subsequent frame picture depart from the offset distance of described each bone fixed position in each subsequent frame picture.
Wherein, fixed position for arbitrary bone in arbitrary subsequent frame picture can be this bone distribute according to default fix bone in this bone with respect to be combined the physical location of this object in this frame picture and the position that calculates with the relative position of object's position.
Step 402, more described offset distance and the offset distance higher limit of described each bone under described action.
Wherein, offset distance higher limit can be arranged this bone by user in the time setting up Mass-spring Model for object in advance.For example, on the basis of the aforementioned embodiment of setting up Mass-spring Model, can also provide for user the operation of the offset distance higher limit that current bone is set.Tab as shown in Figure 3, " the bending displacement upper limit " option provides the operation that current bone offset distance higher limit is set to user.
Step 403, be greater than the follow-up physical location of described offset distance higher limit for offset distance, described follow-up physical location is adjusted to deviation upper limit position, and the offset distance that wherein said deviation upper limit position departs from described fixed position is described offset distance higher limit.
It should be noted that, in the present embodiment, compare in step 402 on the basis of offset distance and offset distance higher limit, can also compare the magnitude relationship between offset distance and offset distance lower limit simultaneously, wherein said offset distance higher limit is greater than described offset distance lower limit.For example, " bending displacement lower limit " option provides the operation that current bone offset distance lower limit is set to user.Correspondingly, for each follow-up physical location (being the follow-up physical location of each bone in each subsequent frame picture), enter step 403 according to comparative result except selecting, can also select to enter following steps according to comparative result: the follow-up physical location that is less than described offset distance lower limit for offset distance, described follow-up physical location is adjusted to lower limit of variation position, and the offset distance of fixed position is described offset distance lower limit described in wherein said lower limit of variation position deviation; Or
Follow-up physical location for offset distance between described offset distance higher limit and described offset distance lower limit, keeps described follow-up physical location constant.
Then return to Fig. 2.The effect that the object attitude presenting for the motion picture that those skilled in the art is understood in the present embodiment more intuitively generate for object changes, Fig. 5 and Fig. 6 show respectively the motion picture design sketch that adopts the present embodiment to generate under two application examples.Shown in Fig. 5, this object of cloak is the position distribution schematic diagram of cloak bone in each frame picture in execution descends slowly and lightly the process of This move, and wherein, the each frame picture in Fig. 5 presents according to order from left to right, from top to bottom.Shown in Fig. 6, be, this object of personage is in the time that execution personage rotates This move, available technology adopting fix bone the distribute Contrast on effect of the motion picture presenting of bone that the motion picture that presents and the present embodiment adopt physical model calculating to go out that distributes, wherein, left figure in Fig. 6 is that prior art adopts the fix bone personage who presents that distributes to rotate picture, and the right figure in Fig. 6 is bone that the present embodiment employing physical model calculating the goes out motion picture presenting that distributes.
By the technical scheme of the present embodiment, not only can make in process that object performs an action to change each bone producing and present according to physical model motion along with picture one by one the variation of object attitude, overcome skeleton cartoon and cannot present the object problem that attitude in process changes that performs an action, also make to present the attitude that object performs an action in process changes without calculating a large amount of grid vertex positions simultaneously, thereby the system resources in computation that the generation that has reduced significantly motion picture need to take, has alleviated the burden of system and has shortened the response time.
exemplary apparatus
After having introduced the method for exemplary embodiment of the invention, next, be introduced with reference to equipment 7~9 pairs of exemplary embodiment of the invention of figure, that be used to object to generate motion picture.
Referring to Fig. 7, show the structural drawing that generates equipment one embodiment of motion picture in the present invention for object.In the present embodiment, described equipment for example specifically can comprise:
Current location acquisition module 701, for the triggering command performing an action in response to described object, the current physical location of each bone that obtains described object in present frame picture;
Actual calculation of location module 702, for the current physical location at present frame picture based on described each bone, according to the physical model of described object, calculate successively the follow-up physical location of each bone in each subsequent frame picture described in the implementation of described action, wherein said physical model be set up for described object in advance, for representing the model of kinematic relation between each bone of described object;
Operating position covering module 703, for the follow-up physical location at each subsequent frame picture according to described each bone, described each bone in each subsequent frame picture is carried out to covering, thereby form each the subsequent frame picture in the implementation of described action.
Wherein, alternatively, in apparatus embodiments of the present invention, described physical model can be Mass-spring Model, and described each bone of described object can be each particle on described Mass-spring Model.
Wherein, alternatively, in apparatus embodiments of the present invention, the foundation of described Mass-spring Model for example can comprise: in response to the selection operation of the bone to described object, determine that the bone of choosing is current bone; In response to the setting operation of the quality to described current bone, determine the point mass as the described current bone of particle; In response to the setting operation to elasticity coefficient between bone, determine as the described current bone of particle and as the elasticity coefficient between the father's bone that is connected in described current bone of particle.
Wherein, alternatively, in apparatus embodiments of the present invention, the foundation of described Mass-spring Model, for example, can also comprise: in response to the setting operation of the attribute to described current bone, the attribute of determining described current bone is os osseum or cartilage; Wherein, the attribute of described current bone is os osseum, and being illustrated in described object, to carry out the follow-up physical location of current bone described in the process of described action in each subsequent frame picture be to distribute to determine according to the fix bone of described object under described action of preserving in advance; The attribute of described current bone is cartilage, being illustrated in described object, to carry out the follow-up physical location of current bone described in the process of described action in each subsequent frame picture be the follow-up physical location in this subsequent frame picture according to father's bone of described current bone, and the Mass-spring Model limiting according to the elasticity coefficient between father's bone of the point mass of father's bone of the point mass of described current bone, described current bone, described current bone and described current bone calculates.
Referring to Fig. 8, show the structural drawing that generates another embodiment of equipment of motion picture in the present invention for object.In the present embodiment, except the structure shown in Fig. 7, described equipment for example can also comprise:
Physical location adjusting module 801, for according to the fixed position of each bone under described action described in each subsequent frame picture, adjusts the follow-up physical location of each bone in each subsequent frame picture; Wherein, in each subsequent frame picture, the fixed position of each bone under described action represents to distribute and each bone of determining position in this subsequent frame picture according to the fix bone of described object under described action of preserving in advance;
Covering trigger module 802, when complete for all adjusting when the follow-up physical location of each bone described in each subsequent frame picture, triggers described operating position covering module 703.
Referring to Fig. 9, show the structural drawing of physical location adjusting module 801 1 embodiments in the embodiment of the present invention.In the present embodiment, described physical location adjusting module 801 for example specifically can comprise:
Offset distance calculating sub module 901, departs from the offset distance of described each bone fixed position in each subsequent frame picture in the follow-up physical location of each subsequent frame picture for calculating described each bone;
Offset distance comparison sub-module 902, the magnitude relationship for more described offset distance and described each bone between the offset distance higher limit under described action;
The upper limit is adjusted submodule 903, for be greater than the follow-up physical location of described offset distance higher limit for offset distance, described follow-up physical location is adjusted to deviation upper limit position, and the offset distance that wherein said deviation upper limit position departs from described fixed position is described offset distance higher limit.
By the technical scheme of present device embodiment, not only can make in process that object performs an action to change each bone producing and present according to physical model motion along with picture one by one the variation of object attitude, overcome skeleton cartoon and cannot present the object problem that attitude in process changes that performs an action, also make to present the attitude that object performs an action in process changes without calculating a large amount of grid vertex positions simultaneously, thereby the system resources in computation that the generation that has reduced significantly motion picture need to take, alleviate the burden of system and shortened the response time.
Although it should be noted that and mention the some devices or the sub-device that generate the equipment of motion picture for object in above-detailed, this division is only not enforceable.In fact, according to the embodiment of the present invention, the feature of above-described two or more devices and function can be specialized in a device.Otherwise, the feature of an above-described device and function can Further Division for to be specialized by multiple devices.
In addition, although described in the accompanying drawings the operation of the inventive method with particular order,, this not requires or hint must be carried out these operations according to this particular order, or the operation shown in must carrying out all could realize the result of expecting.Additionally or alternatively, can omit some step, multiple steps be merged into a step and carry out, and/or a step is decomposed into multiple steps carries out.
Although described spirit of the present invention and principle with reference to some embodiments, but should be appreciated that, the present invention is not limited to disclosed embodiment, the division of each side is not meant that to the feature in these aspects can not combine to be benefited yet, and this division is only the convenience in order to explain.The present invention is intended to contain interior included various modifications and the equivalent arrangements of spirit and scope of claims.
Accompanying drawing explanation
Read detailed description below by reference to accompanying drawing, above-mentioned and other objects of exemplary embodiment of the invention, feature and advantage will become easy to understand.In the accompanying drawings, show some embodiments of the present invention in exemplary and nonrestrictive mode, wherein:
Fig. 1 schematically shows the framework schematic diagram of an exemplary application scene of embodiments of the present invention;
Fig. 2 schematically shows the process flow diagram that generates method one embodiment of motion picture in the present invention for object;
Fig. 3 schematically shows a kind of tab example schematic of in Mass-spring Model, a current bone of choosing being carried out setting operation of setting up;
Fig. 4 schematically shows the process flow diagram of adjusting follow-up physical location one embodiment in the embodiment of the present invention;
Fig. 5 schematically shows the effect schematic diagram of bone position distribution in the motion picture generating under an application example in the embodiment of the present invention;
Fig. 6 schematically shows the motion picture generating under Another Application example in the embodiment of the present invention and presents effect schematic diagram;
Fig. 7 schematically shows the structural drawing that generates equipment one embodiment of motion picture in the present invention for object;
Fig. 8 schematically shows the structural drawing that generates another embodiment of equipment of motion picture in the present invention for object;
Fig. 9 schematically shows the structural drawing of physical location adjusting module 801 1 embodiments in the embodiment of the present invention;
In the accompanying drawings, identical or corresponding label represents identical or corresponding part.
Embodiment
Below with reference to some illustrative embodiments, principle of the present invention and spirit are described.Should be appreciated that providing these embodiments is only used to make those skilled in the art can understand better and then realize the present invention, and not limit the scope of the invention by any way.On the contrary, it is in order to make the disclosure more thorough and complete that these embodiments are provided, and the scope of the present disclosure intactly can be conveyed to those skilled in the art.
One skilled in the art will appreciate that embodiments of the present invention can be implemented as a kind of system, device, equipment, method or computer program.Therefore, the disclosure can specific implementation be following form, that is: hardware, software (comprising firmware, resident software, microcode etc.), or the form of hardware and software combination completely completely.
According to the embodiment of the present invention, a kind of method and apparatus for object generation motion picture has been proposed.
In this article, it will be appreciated that, related term " motion picture " indicated object performs an action needs the series of frames picture that presents in process, and the attitude that presents object in motion picture changes, be that the object object in each frame picture that performs an action in process presents different shapes.In addition, any number of elements in accompanying drawing is all unrestricted for example, and any name is all only for distinguishing, and does not have any limitation.
Below with reference to some representative embodiments of the present invention, explain in detail principle of the present invention and spirit.

Claims (12)

1. a method that generates motion picture for object, comprising:
The triggering command performing an action in response to described object, the current physical location of each bone that obtains described object in present frame picture;
Current physical location based on described each bone in present frame picture, according to the physical model of described object, calculate successively the follow-up physical location of each bone in each subsequent frame picture described in the implementation of described action, wherein said physical model be set up for described object in advance, for representing the model of kinematic relation between each bone of described object;
Follow-up physical location according to described each bone in each subsequent frame picture, carries out covering to described each bone in each subsequent frame picture, thereby forms each the subsequent frame picture in the implementation of described action.
2. method according to claim 1, wherein, described physical model is Mass-spring Model, described each bone of described object is each particle on described Mass-spring Model.
3. method according to claim 2, wherein, the foundation of described Mass-spring Model comprises:
In response to the selection operation of the bone to described object, determine that the bone of choosing is current bone;
In response to the setting operation of the quality to described current bone, determine the point mass as the described current bone of particle;
In response to the setting operation to elasticity coefficient between bone, determine as the described current bone of particle and as the elasticity coefficient between the father's bone that is connected in described current bone of particle.
4. method according to claim 3, wherein, the foundation of described Mass-spring Model, also comprises:
In response to the setting operation of the attribute to described current bone, the attribute of determining described current bone is os osseum or cartilage;
Wherein, the attribute of described current bone is os osseum, and being illustrated in described object, to carry out the follow-up physical location of current bone described in the process of described action in each subsequent frame picture be to distribute to determine according to the fix bone of described object under described action of preserving in advance; The attribute of described current bone is cartilage, being illustrated in described object, to carry out the follow-up physical location of current bone described in the process of described action in each subsequent frame picture be the follow-up physical location in this subsequent frame picture according to father's bone of described current bone, and the Mass-spring Model limiting according to the elasticity coefficient between father's bone of the point mass of father's bone of the point mass of described current bone, described current bone, described current bone and described current bone calculates.
5. method according to claim 1, after the follow-up physical location of each bone, also comprises described in each the subsequent frame picture in the described implementation of calculating successively described action:
According to the fixed position of each bone under described action described in each subsequent frame picture, adjust the follow-up physical location of each bone in each subsequent frame picture; Wherein, in each subsequent frame picture, the fixed position of each bone under described action represents to distribute and each bone of determining position in this subsequent frame picture according to the fix bone of described object under described action of preserving in advance;
All adjust when complete when the follow-up physical location of each bone described in each subsequent frame picture, enter described in carrying out, according to the follow-up physical location of each bone described in each subsequent frame picture, described each bone in each frame picture is carried out to covering.
6. method according to claim 5, wherein, described according to the fixed position of each bone under described action described in each subsequent frame picture, adjust the follow-up physical location of each bone in each subsequent frame picture, comprising:
Calculate the follow-up physical location of described each bone in each subsequent frame picture and depart from the offset distance of described each bone fixed position in each subsequent frame picture;
Magnitude relationship between more described offset distance and the offset distance higher limit of described each bone under described action;
Be greater than the follow-up physical location of described offset distance higher limit for offset distance, described follow-up physical location is adjusted to deviation upper limit position, the offset distance that wherein said deviation upper limit position departs from described fixed position is described offset distance higher limit.
7. an equipment that generates motion picture for object, comprising:
Current location acquisition module, for the triggering command performing an action in response to described object, the current physical location of each bone that obtains described object in present frame picture;
Actual calculation of location module, for the current physical location at present frame picture based on described each bone, according to the physical model of described object, calculate successively the follow-up physical location of each bone in each subsequent frame picture described in the implementation of described action, wherein said physical model be set up for described object in advance, for representing the model of kinematic relation between each bone of described object;
Operating position covering module, for the follow-up physical location at each subsequent frame picture according to described each bone, carries out covering to described each bone in each subsequent frame picture, thereby forms each the subsequent frame picture in the implementation of described action.
8. equipment according to claim 7, wherein, described physical model is Mass-spring Model, described each bone of described object is each particle on described Mass-spring Model.
9. equipment according to claim 8, wherein, the foundation of described Mass-spring Model comprises:
In response to the selection operation of the bone to described object, determine that the bone of choosing is current bone;
In response to the setting operation of the quality to described current bone, determine the point mass as the described current bone of particle;
In response to the setting operation to elasticity coefficient between bone, determine as the described current bone of particle and as the elasticity coefficient between the father's bone that is connected in described current bone of particle.
10. equipment according to claim 9, wherein, the foundation of described Mass-spring Model, also comprises:
In response to the setting operation of the attribute to described current bone, the attribute of determining described current bone is os osseum or cartilage;
Wherein, the attribute of described current bone is os osseum, and being illustrated in described object, to carry out the follow-up physical location of current bone described in the process of described action in each subsequent frame picture be to distribute to determine according to the fix bone of described object under described action of preserving in advance; The attribute of described current bone is cartilage, being illustrated in described object, to carry out the follow-up physical location of current bone described in the process of described action in each subsequent frame picture be the follow-up physical location in this subsequent frame picture according to father's bone of described current bone, and the Mass-spring Model limiting according to the elasticity coefficient between father's bone of the point mass of father's bone of the point mass of described current bone, described current bone, described current bone and described current bone calculates.
11. equipment according to claim 7, also comprise:
Physical location adjusting module, for according to the fixed position of each bone under described action described in each subsequent frame picture, adjusts the follow-up physical location of each bone in each subsequent frame picture; Wherein, in each subsequent frame picture, the fixed position of each bone under described action represents to distribute and each bone of determining position in this subsequent frame picture according to the fix bone of described object under described action of preserving in advance;
Covering trigger module, when complete for all adjusting when the follow-up physical location of each bone described in each subsequent frame picture, triggers described operating position covering module.
12. equipment according to claim 11, wherein, described physical location adjusting module comprises:
Offset distance calculating sub module, departs from the offset distance of described each bone fixed position in each subsequent frame picture in the follow-up physical location of each subsequent frame picture for calculating described each bone;
Offset distance comparison sub-module, the magnitude relationship for more described offset distance and described each bone between the offset distance higher limit under described action;
The upper limit is adjusted submodule, for be greater than the follow-up physical location of described offset distance higher limit for offset distance, described follow-up physical location is adjusted to deviation upper limit position, and the offset distance that wherein said deviation upper limit position departs from described fixed position is described offset distance higher limit.
CN201410117545.0A 2014-03-26 2014-03-26 Method and equipment for generating action pictures for object Active CN103824316B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410117545.0A CN103824316B (en) 2014-03-26 2014-03-26 Method and equipment for generating action pictures for object

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410117545.0A CN103824316B (en) 2014-03-26 2014-03-26 Method and equipment for generating action pictures for object

Publications (2)

Publication Number Publication Date
CN103824316A true CN103824316A (en) 2014-05-28
CN103824316B CN103824316B (en) 2017-05-10

Family

ID=50759357

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410117545.0A Active CN103824316B (en) 2014-03-26 2014-03-26 Method and equipment for generating action pictures for object

Country Status (1)

Country Link
CN (1) CN103824316B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104732572A (en) * 2014-12-24 2015-06-24 天脉聚源(北京)科技有限公司 Method and device for generating motion image
CN104966319A (en) * 2015-06-29 2015-10-07 天脉聚源(北京)科技有限公司 Method and apparatus for generating motion trail of virtual player in virtual terminal
CN105551072A (en) * 2015-12-11 2016-05-04 网易(杭州)网络有限公司 Method and system for realizing local real-time movement of role model
CN106296778A (en) * 2016-07-29 2017-01-04 网易(杭州)网络有限公司 Virtual objects motion control method and device
CN107067451A (en) * 2017-04-07 2017-08-18 广州爱九游信息技术有限公司 The implementation method and device of dynamic bone in animation
CN108109189A (en) * 2017-12-05 2018-06-01 北京像素软件科技股份有限公司 Act sharing method and device
CN110490958A (en) * 2019-08-22 2019-11-22 腾讯科技(深圳)有限公司 Animation method for drafting, device, terminal and storage medium
CN111223170A (en) * 2020-01-07 2020-06-02 腾讯科技(深圳)有限公司 Animation generation method and device, electronic equipment and storage medium
CN111862276A (en) * 2020-07-02 2020-10-30 南京师范大学 Automatic skeleton animation production method based on formalized action description text
CN112819931A (en) * 2021-02-22 2021-05-18 腾讯科技(深圳)有限公司 Animation generation method, animation generation device, terminal and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101510314A (en) * 2009-03-27 2009-08-19 腾讯科技(深圳)有限公司 Method and apparatus for synthesizing cartoon video
CN101719284A (en) * 2009-12-25 2010-06-02 北京航空航天大学 Method for physically deforming skin of virtual human based on hierarchical model
CN101894392A (en) * 2010-06-28 2010-11-24 北京理工大学 Motion unit bending and torsion angle analytical method based on skeleton motion data
CN102289836A (en) * 2011-07-25 2011-12-21 北京农业信息技术研究中心 Method for synthesizing plant animation
CN102467749A (en) * 2010-11-10 2012-05-23 上海日浦信息技术有限公司 Three-dimensional virtual human body movement generation method based on key frames and spatiotemporal restrictions
US20120313931A1 (en) * 2011-06-07 2012-12-13 Sony Computer Entertainment Inc. Image generating device, image generating method, and non-transitory information storage medium
CN103426192A (en) * 2012-05-25 2013-12-04 上海幻维数码创意科技有限公司 Animated character constructing method capable of modifying binding mode

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101510314A (en) * 2009-03-27 2009-08-19 腾讯科技(深圳)有限公司 Method and apparatus for synthesizing cartoon video
CN101719284A (en) * 2009-12-25 2010-06-02 北京航空航天大学 Method for physically deforming skin of virtual human based on hierarchical model
CN101894392A (en) * 2010-06-28 2010-11-24 北京理工大学 Motion unit bending and torsion angle analytical method based on skeleton motion data
CN102467749A (en) * 2010-11-10 2012-05-23 上海日浦信息技术有限公司 Three-dimensional virtual human body movement generation method based on key frames and spatiotemporal restrictions
US20120313931A1 (en) * 2011-06-07 2012-12-13 Sony Computer Entertainment Inc. Image generating device, image generating method, and non-transitory information storage medium
CN102289836A (en) * 2011-07-25 2011-12-21 北京农业信息技术研究中心 Method for synthesizing plant animation
CN103426192A (en) * 2012-05-25 2013-12-04 上海幻维数码创意科技有限公司 Animated character constructing method capable of modifying binding mode

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
丁鹏等: "骨骼蒙皮动画设计与实现", 《技术与市场》 *
王洪福: "三维图形引擎实时角色动画关键技术的研究与实现", 《中国优秀硕士论文全文数据库(硕士)信息科技辑》 *
王洪福等: "三维图形引擎中骨骼蒙皮动画的一种实现方法", 《计算机应用研究》 *
聂俊岚等: "骨骼驱动的三维鱼快速建模与运动的实现", 《小型微型计算机系统》 *

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104732572A (en) * 2014-12-24 2015-06-24 天脉聚源(北京)科技有限公司 Method and device for generating motion image
CN104732572B (en) * 2014-12-24 2018-06-19 天脉聚源(北京)科技有限公司 A kind of method and device for generating moving image
CN104966319A (en) * 2015-06-29 2015-10-07 天脉聚源(北京)科技有限公司 Method and apparatus for generating motion trail of virtual player in virtual terminal
CN105551072B (en) * 2015-12-11 2018-11-30 网易(杭州)网络有限公司 Realize the method and system of actor model part real time kinematics
CN105551072A (en) * 2015-12-11 2016-05-04 网易(杭州)网络有限公司 Method and system for realizing local real-time movement of role model
CN106296778A (en) * 2016-07-29 2017-01-04 网易(杭州)网络有限公司 Virtual objects motion control method and device
CN106296778B (en) * 2016-07-29 2019-11-15 网易(杭州)网络有限公司 Virtual objects motion control method and device
CN107067451A (en) * 2017-04-07 2017-08-18 广州爱九游信息技术有限公司 The implementation method and device of dynamic bone in animation
CN108109189A (en) * 2017-12-05 2018-06-01 北京像素软件科技股份有限公司 Act sharing method and device
CN110490958A (en) * 2019-08-22 2019-11-22 腾讯科技(深圳)有限公司 Animation method for drafting, device, terminal and storage medium
CN110490958B (en) * 2019-08-22 2023-09-01 腾讯科技(深圳)有限公司 Animation drawing method, device, terminal and storage medium
CN111223170A (en) * 2020-01-07 2020-06-02 腾讯科技(深圳)有限公司 Animation generation method and device, electronic equipment and storage medium
CN111223170B (en) * 2020-01-07 2022-06-10 腾讯科技(深圳)有限公司 Animation generation method and device, electronic equipment and storage medium
CN111862276A (en) * 2020-07-02 2020-10-30 南京师范大学 Automatic skeleton animation production method based on formalized action description text
CN111862276B (en) * 2020-07-02 2023-12-05 南京师范大学 Automatic skeletal animation production method based on formalized action description text
CN112819931A (en) * 2021-02-22 2021-05-18 腾讯科技(深圳)有限公司 Animation generation method, animation generation device, terminal and storage medium

Also Published As

Publication number Publication date
CN103824316B (en) 2017-05-10

Similar Documents

Publication Publication Date Title
CN103824316A (en) Method and equipment for generating action pictures for object
KR102338136B1 (en) Emoji animation creation method and device, storage medium and electronic device
CN111260764B (en) Method, device and storage medium for making animation
KR102698917B1 (en) Image processing method and device, electronic device and storage medium
US20230334744A1 (en) Method and apparatus for generating walk animation of virtual role, device and storage medium
US10846906B2 (en) Animation using keyframing and projected dynamics simulation
US20240307779A1 (en) Animation data processing method, non-transitory storage medium and electronic device
US8432401B2 (en) Image processing apparatus, image processing method, and image processing program
CN106033333A (en) A visual augmented reality scene making system and method
CN110689604A (en) Personalized face model display method, device, equipment and storage medium
US20170091976A1 (en) Coordinated gesture and locomotion for virtual pedestrians
CN111583367B (en) Hair simulation method and system
CN112669194B (en) Animation processing method, device, equipment and storage medium in virtual scene
CN111369647B (en) Information processing method and device, computer storage medium and electronic equipment
CN112184862A (en) Control method and device of virtual object and electronic equipment
US20190139288A1 (en) Dynamic motion simulation methods and systems
CN114053696B (en) Image rendering processing method and device and electronic equipment
CN111047675A (en) Method and device for simulating hair
US20160171740A1 (en) Real-time method for collaborative animation
CN105678828B (en) Method and device for creating transition animation
CN116843809A (en) Virtual character processing method and device
CN114452646A (en) Virtual object perspective processing method and device and computer equipment
CN117861219A (en) Method, device, equipment and storage medium for processing model in game
CN113744372A (en) Animation generation method, device and equipment
EP4181072A1 (en) Method of generating facial expression and threee-dimensional (3d) graphic interface device using the same

Legal Events

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