CN108014497A - Object adding method, device and electronic equipment - Google Patents
Object adding method, device and electronic equipment Download PDFInfo
- Publication number
- CN108014497A CN108014497A CN201711283717.1A CN201711283717A CN108014497A CN 108014497 A CN108014497 A CN 108014497A CN 201711283717 A CN201711283717 A CN 201711283717A CN 108014497 A CN108014497 A CN 108014497A
- Authority
- CN
- China
- Prior art keywords
- added
- information
- animation
- attitude information
- attitude
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/55—Controlling game characters or game objects based on the game progress
- A63F13/56—Computing the motion of game characters with respect to other game characters, game objects or elements of the game scene, e.g. for simulating the behaviour of a group of virtual soldiers or for path finding
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/55—Controlling game characters or game objects based on the game progress
- A63F13/57—Simulating properties, behaviour or motion of objects in the game world, e.g. computing tyre load in a car race game
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/60—Methods for processing data by generating or executing the game program
- A63F2300/66—Methods for processing data by generating or executing the game program for rendering three dimensional images
- A63F2300/6607—Methods for processing data by generating or executing the game program for rendering three dimensional images for animating game characters, e.g. skeleton kinematics
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Processing Or Creating Images (AREA)
Abstract
The embodiment of the present invention provides a kind of object adding method, device and electronic equipment, is related to game making technical field, this method includes:Obtain the original attitude information for being added object, the original attitude information of animation attitude information and object to be added, according to the original attitude information for being added object, the original attitude information of animation attitude information and object to be added, the animation attitude information for obtaining object to be added is calculated using matching algorithm, the bone information to be loaded for reflecting the object form to be added is determined according to the animation attitude information of object to be added, animation attitude information according to object is added obtains the target bone information that reflection is added the point of addition of object, bone information to be loaded is loaded onto target bone information, object is added to realize object to be added being added to.Using this method, device and electronic equipment, game art work amount and game movie resource size can be reduced, improves the maintainability of resource.
Description
Technical field
The present invention relates to game making technical field, is set in particular to a kind of object adding method, device and electronics
It is standby.
Background technology
Game be it is a kind of based on material requisite meet on, certain specific rule is followed in special time, spatial dimension
Then, the social action mode that spiritual demand meets is pursued.With the development of the society, game industry flourishes, become people
Life or even the important component of work.
In the large-scale network games of 3D, many game roles can be related to, can wear or hold various with these game roles
The objects such as weapon, equipment or the ornaments of various kinds.The prior art generally realizes the addition of object by setting and calculating hanging point, but
This mode is relatively time-consuming, and the fine arts resource and game resource of occupancy are also very much.
The content of the invention
In view of this, the purpose of the embodiment of the present invention is to provide a kind of object adding method, device and electronic equipment, with
Improve the problem of existing time-consuming when the prior art is added object and occupancy is compared with multiple resource.
An embodiment of the present invention provides a kind of object adding method, applied to game client, the described method includes:
Obtain the original attitude information of the original attitude information for being added object, animation attitude information and object to be added;
According to the original appearance of the original attitude information for being added object, animation attitude information and the object to be added
State information, the animation attitude information for obtaining the object to be added is calculated using matching algorithm;
The bone to be loaded for reflecting the object form to be added is determined according to the animation attitude information of the object to be added
Information;The targeted bone of the point of addition of object is added according to reflecting the animation attitude information for being added object
Bone information;
The bone information to be loaded is loaded onto the target bone information, is added the object to be added with realizing
Object is added to described.
Alternatively, the matching algorithm includes translational component algorithm, rotational component algorithm and scaling component algorithms, described to treat
Adding the animation attitude information of object includes translational component information, rotational component information and scaling component information;Calculated using matching
Method calculates the step of animation attitude information for obtaining object to be added, including:
The translational component information in the animation attitude information for obtaining the object to be added is calculated using translational component algorithm;
The rotational component information in the animation attitude information for obtaining the object to be added is calculated using rotational component algorithm;
The scaling component information in the animation attitude information for obtaining the object to be added is calculated using scaling component algorithms.
Alternatively, the translation point in the animation attitude information for obtaining the object to be added is calculated using translational component algorithm
The step of measuring information, including:
The translational component information in the animation attitude information for obtaining the object to be added is calculated using translation calculation formula,
The translation calculation formula is as follows:
B2.Trans=a2.Trans
Wherein:
A2.Trans is the translational component information in the original attitude information of the object to be added;
B2.Trans is the translational component information in the animation attitude information of the object to be added.
Alternatively, the rotation point in the animation attitude information for obtaining the object to be added is calculated using rotational component algorithm
The step of measuring information, including:
Rotational component information in the animation attitude information for obtaining the object to be added is calculated using rotation calculation formula,
The rotation calculation formula is as follows:
B2.Quat=a2.Quat* (b1.Quat/a1.Quat)
Wherein:
A1.Quat is the rotational component information being added in the original attitude information of object;
A2.Quat is the rotational component information in the original attitude information of the object to be added;
B1.Quat is the rotational component information being added in the animation attitude information of object;
B2.Quat is the rotational component information in the animation attitude information of the object to be added.
Alternatively, the scaling point in the animation attitude information for obtaining the object to be added is calculated using scaling component algorithms
The step of measuring information, including:
Scaling component information in the animation attitude information for obtaining the object to be added is calculated using scaling calculation formula,
The scaling calculation formula is as follows:
B2.Scale=a2.Scale
Wherein:
A2.Scale is the scaling component information being added in the animation attitude information of object;
B2.Scale is the scaling component information in the animation attitude information of the object to be added.
Alternatively, the animation attitude information for being added object includes translational component information, rotational component information and contracting
Put component information;The bone to be loaded for reflecting the object form to be added is determined according to the animation attitude information of the object to be added
Bone information;The target of the point of addition of object is added according to reflecting the animation attitude information for being added object
The step of bone information, including:
Translational component information, rotational component information and scaling point in the animation attitude information of the object to be added
Amount information determines the bone information to be loaded for reflecting the object form to be added;
Translational component information, rotational component information and scaling point in the animation attitude information for being added object
Amount information acquisition reflects the target bone information for being added the point of addition of object.
Alternatively, the step of bone information to be loaded being added to the target bone information, including:
The bone information to be loaded is rendered into the target bone information and covers the target bone information.
The embodiment of the present invention additionally provides a kind of object adding set, and the object adding set is applied to game client
End, the object adding set include:
Acquisition module, for obtaining the original attitude information for being added object, animation attitude information and object to be added
Original attitude information;
Computing module, for according to being added the original attitude information of object, animation attitude information and object to be added
Original attitude information, the animation attitude information for obtaining object to be added is calculated using matching algorithm;
Analysis module, for being determined to reflect the object form to be added according to the animation attitude information of the object to be added
Bone information to be loaded;The addition of object is added according to reflecting the animation attitude information for being added object
The target bone information of position;
Add module, for the bone information to be loaded to be loaded onto the target bone information, to realize by described in
Object to be added is added object added to described.
The embodiment of the present invention additionally provides a kind of electronic equipment, including memory, processor and storage are on a memory simultaneously
The computer program that can be run on a processor, the processor realize above-mentioned object adding method when performing described program.
The embodiment of the present invention also provides a kind of computer-readable recording medium, and the readable storage medium storing program for executing includes computer journey
Sequence, electronic equipment performs above-mentioned object adding method the computer program controls the readable storage medium storing program for executing when running where.
Object adding method, device and electronic equipment provided in an embodiment of the present invention, are calculated by matching algorithm and are treated
The animation attitude information of object is added, by object to be added added to object is added by the way of bone replacement, without hand
Work calculates hanging point, reduces workload and resource consumption.
To enable the above objects, features and advantages of the present invention to become apparent, preferred embodiment cited below particularly, and coordinate
Appended attached drawing, is described in detail below.
Brief description of the drawings
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 will be appreciated that the following drawings illustrate only certain embodiments of the present invention, therefore be 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 block diagram for a kind of electronic equipment 10 that present pre-ferred embodiments provide.
Fig. 2 is a kind of flow chart for object adding method that present pre-ferred embodiments provide.
Fig. 3 is the schematic diagram of another sub-step that step S22 described in Fig. 2 includes in an embodiment.
A kind of module frame chart for object adding set 20 that Fig. 4 is provided by the embodiment of the present invention.
Icon:10- electronic equipments;11- memories;12- processors;13- mixed-media network modules mixed-medias;20- object adding sets;21-
Acquisition module;22- computing modules;23- analysis modules;24- add modules.
Embodiment
It has been investigated that the mode that object of the prior art with to game role is added generally is hung using bone
The mode of point, object is mounted to game role.This method needs the manual edit in editing machine and sets hanging point, time
Cost and human cost are too big, and can take more fine arts resource and game resource.
Based on the studies above, an embodiment of the present invention provides a kind of article addition that can reduce workload and resource occupation
Method.
Below in conjunction with attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Ground describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.Usually exist
The component of the embodiment of the present invention described and illustrated in attached drawing can be arranged and designed with a variety of configurations herein.Cause
This, the detailed description of the embodiment of the present invention to providing in the accompanying drawings is not intended to limit claimed invention below
Scope, but it is merely representative of the selected embodiment of the present invention.Based on the embodiment of the present invention, those skilled in the art are not doing
Go out all other embodiments obtained on the premise of creative work, 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.
As shown in Figure 1, it is the block diagram for the electronic equipment 10 that present pre-ferred embodiments provide.The embodiment of the present invention
In electronic equipment 10 can be with data storage, transmission, processing function server-side.As shown in Figure 1, electronic equipment 10 wraps
Include:Memory 11, processor 12, mixed-media network modules mixed-media 13 and object adding set 20.
The memory 11, processor 12 and mixed-media network modules mixed-media 13 are directly or indirectly electrically connected between each other, with reality
The transmission or interaction of existing data.For example, these elements can be realized by one or more communication bus or signal wire between each other
It is electrically connected.Be stored with object adding set 20 in memory 11, the object adding set 20 include it is at least one can be soft
The form of part or firmware (firmware) is stored in the software function module in the memory 11, and the processor 12 passes through fortune
Row is stored in software program and module in memory 11, such as the object adding set 20 in the embodiment of the present invention, so as to hold
Row various function application and data processing, that is, realize the object adding method in the embodiment of the present invention.
Wherein, the memory 11 may be, but not limited to, random access memory (Random Access Memory,
RAM), read-only storage (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only
Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM),
Electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..
Wherein, memory 11 is used for storage program, and the processor 12 performs described program after execute instruction is received.
The processor 12 is probably a kind of IC chip, has the disposal ability of data.Above-mentioned processor 12
Can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit
(Network Processor, NP) etc..It can realize or perform each method disclosed in the embodiment of the present invention, step and patrol
Collect block diagram.General processor can be microprocessor or the processor can also be any conventional processor etc..
Mixed-media network modules mixed-media 13 is realized for establishing the communication connection between electronic equipment 10 and other communication terminals by network
The transmitting-receiving operation of network signal and data.Above-mentioned network signal may include wireless signal or wire signal.
It is appreciated that structure shown in Fig. 1 is only to illustrate, electronic equipment 10 may also include it is more more than shown in Fig. 1 or
Less component, or there is the configuration different from shown in Fig. 1.Each component shown in Fig. 1 can use hardware, software or its
Combination is realized.
The embodiment of the present invention also provides a kind of computer-readable recording medium, and the readable storage medium storing program for executing includes computer journey
Sequence.Electronic equipment 10 where the readable storage medium storing program for executing is controlled to perform following object addition side during the computer program operation
Method.
Referring to Fig. 2, it is a kind of flow chart for object adding method that present pre-ferred embodiments provide.The method has
Method and step defined in the flow of pass is applied to electronic equipment 10, can be realized by the processor 12.Below will be to Fig. 2 institutes
The idiographic flow shown is described in detail.
It is appreciated that the object adding method can be applied to game client, and in the present embodiment, the object addition side
Method can be applied to 3D network games《Seek celestial being 2》Game client in.
Step S21, obtains the original attitude information, animation attitude information and the original appearance for being added object for being added object
State information.
In the present embodiment, original attitude information can be binding attitude information, bind attitude information and animation posture letter
Breath can make in fine arts Software for producing.For example, binding attitude information and animation attitude information can be obtained by 3dmax.
In another example making a skeleton in 3dmax, then model is made, which is attached on skeleton by way of covering, then for
Carcasing animation, meeting Controlling model sways in synchrony after skeleton moves up, and realizes animation effect.Wherein, the initial attitude of skeleton
Posture is exactly bound, the sculpture static equivalent to one, applies upper animation data, " static sculpture " is just moved to skeleton
Come, the set of the stationary posture of each frame is exactly animation posture during movement.
It is to be understood that game client obtains the original attitude information for being added object, animation attitude information and is added
Add the channel of the original attitude information of object there are many kinds, however it is not limited to obtained in the slave 3dmax that the present embodiment provides.
In another example game client obtains the binding for binding attitude information, animation attitude information and object B of role A
Attitude information.Object B can be weapon, equipment or ornaments etc. one of those, in the present embodiment, object B can be wrist guard
B。
Step S22, according to the original attitude information for being added object, animation attitude information and the object to be added
Original attitude information, the animation attitude information for obtaining the object to be added is calculated using matching algorithm.
For example, according to the binding attitude information of role A, the original attitude information of animation attitude information and wrist guard B, using
The animation attitude information of wrist guard B is obtained with calculating method.
In another example the binding attitude information of role A can be a1, the animation attitude information of role A can be b1.Wrist guard B
Binding attitude information can be a2, the animation attitude information of wrist guard B can be b2.Wherein, each attitude information can include flat
Move component information, rotational component information and scaling component information.Matching algorithm can be understood as bone and replace algorithm, which replaces
Scaling method includes translational component algorithm, rotational component algorithm and scaling component algorithms.
Please refer to Fig. 3, step is listed by step S221, step S222 and step S223 in the embodiment of the present invention
The one of which implementation of S22.
Step S221, the translation in the animation attitude information for obtaining the object to be added is calculated using translational component algorithm
Component information.
For example, calculating the translational component information in the animation attitude information for obtaining wrist guard B using translation calculation formula, this is flat
It is as follows to move calculation formula:
B2.Trans=a2.Trans
Wherein,
A2.Trans is the translational component information in the original attitude information of wrist guard B;
B2.Trans is the translational component information in the animation attitude information of wrist guard B.
Step S222, the rotation in the animation attitude information for obtaining the object to be added is calculated using rotational component algorithm
Component information.
For example, the rotational component information in the animation attitude information for obtaining wrist guard B, the rotation are calculated using rotation calculation formula
It is as follows to turn calculation formula:
B2.Quat=a2.Quat* (b1.Quat/a1.Quat)
Wherein,
A1.Quat is the rotational component information in the original attitude information of role A;
A2.Quat is the rotational component information in the original attitude information of wrist guard B;
B1.Quat is the rotational component information in the animation attitude information of role A;
B2.Quat is the rotational component information in the animation attitude information of wrist guard B.
Step S223, the scaling in the animation attitude information for obtaining the object to be added is calculated using scaling component algorithms
Component information.
For example, the scaling component information in the animation attitude information for obtaining wrist guard B, the contracting are calculated using scaling calculation formula
It is as follows to put calculation formula:
B2.Scale=a2.Scale
Wherein,
A2.Scale is the scaling component information in the original attitude information of wrist guard B;
B2.Scale is the scaling component information in the animation attitude information of wrist guard B.
It is to be understood that for translational component information and scaling component information by the way of indirect assignment, for rotation
Component information is calculated using difference value equation.
Extra editor's hanging point is not had to using algorithm above, has saved fine arts resource.
Step S23, determines to reflect treating for the object form to be added according to the animation attitude information of the object to be added
Load bone information;The point of addition of object is added according to reflecting the animation attitude information for being added object
Target bone information.
For example, the bone information to be loaded of reflection wrist guard B forms is determined according to b2.Trans, b2.Quat and b2.Scale;
The target bone information of the point of addition of reflection role A is determined according to b1.Trans, b1.Quat and b1.Scale.
In another example wrist guard B can added at the right hand wrist of role A, can according to b1.Trans, b1.Quat and
B1.Scale determines the target bone information A-Wrist at role's A wrists, correspondingly, according to b2.Trans, b2.Quat and
B2.Scale obtains the bone information B-Model to be loaded of reflection wrist guard B forms.
Step S24, the target bone information is loaded onto by the bone information to be loaded, will be described to be added with realization
Object is added object added to described.
For example, B-Model is rendered to A-Wrist, and A-Wrist is covered, to realize wrist guard B added to role A's
At right hand wrist, calculated without carrying out extra hanging point, reduce editing amount and the occupancy of game resource.According to tradition
Manual edit, take game resource it is more, play carry out during interim card situation occurs, reduce the experience of user
Degree.
On the basis of the above, as shown in figure 4, an embodiment of the present invention provides a kind of object adding set 20, the object
Adding set includes acquisition module 21, computing module 22, analysis module 23 and add module 24.
Acquisition module 21, the original attitude information, animation attitude information and object to be added of object are added for obtaining
Original attitude information.
Since acquisition module 21 is similar with the realization principle of step S21 in Fig. 2, do not illustrate more herein.
Computing module 22, for according to the original attitude information, animation attitude information and object to be added for being added object
Original attitude information, the animation attitude information for obtaining object to be added is calculated using matching algorithm.
Since computing module 22 is similar with the realization principle of step S22 in Fig. 2, do not illustrate more herein.
Analysis module 23, for being determined to reflect the object shape to be added according to the animation attitude information of the object to be added
The bone information to be loaded of state;Adding for object is added according to reflecting the animation attitude information for being added object
Add the target bone information of position.
Since analysis module 23 is similar with the realization principle of step S23 in Fig. 2, do not illustrate more herein.
Add module 24, for the bone information to be loaded to be loaded onto the target bone information, to realize institute
State object to be added and be added object added to described.
Since add module 24 is similar with the realization principle of step S24 in Fig. 2, do not illustrate more herein.
Object adding method, device and electronic equipment in the embodiment of the present invention, can be according to being added object and to be added
The relevant information of object calculates the animation attitude information for obtaining object to be added using matching algorithm, and calculates and obtain relevant bone
Bone information, without manually computing hanging point, is reduced object to be added added to object is added by the way of bone replacement
Art work amount, improves the maintainability of resource and the size of game movie resource.
In several embodiments that the embodiment of the present invention is provided, it should be understood that disclosed apparatus and method, also may be used
To realize by another way.Apparatus and method embodiment described above is only schematical, for example, in attached drawing
Flow chart and block diagram show the device of multiple embodiments according to the present invention, the possibility of method and computer program product is realized
Architectural framework, function and operation.At this point, each square frame in flow chart or block diagram can represent module, a program
A part for section or code, a part for the module, program segment or code are used for realization defined patrol comprising one or more
Collect the executable instruction of function.It should also be noted that at some as the function of in the implementation replaced, being marked in square frame
Can be with different from the order marked in attached drawing generation.For example, two continuous square frames can essentially be held substantially in parallel
OK, they can also be performed in the opposite order sometimes, this is depending on involved function.It is also noted that block diagram and/or
The combination of each square frame and block diagram in flow chart and/or the square frame in flow chart, can use function or dynamic as defined in performing
The dedicated hardware based system made is realized, or can be realized with the combination of specialized hardware and computer instruction.
In addition, each function module in each embodiment of the present invention can integrate to form an independent portion
Point or modules individualism, can also two or more modules be integrated to form an independent part.
If the function is realized in the form of software function module and is used as independent production marketing or in use, can be with
It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words
The part to contribute to the prior art or the part of the technical solution can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be
People's computer, electronic equipment 10, or network equipment etc.) perform all or part of step of each embodiment the method for the present invention
Suddenly.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), deposit at random
Access to memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to the bag of nonexcludability
Contain, so that process, method, article or equipment including a series of elements not only include those key elements, but also including
Other elements that are not explicitly listed, or further include as elements inherent to such a process, method, article, or device.
In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including the key element
Process, method, also there are other identical element in article or equipment.
The foregoing is merely the alternative embodiment of the present invention, it is not intended to limit the invention, for the skill of this area
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)
- A kind of 1. object adding method, it is characterised in that applied to game client, the described method includes:Obtain the original attitude information of the original attitude information for being added object, animation attitude information and object to be added;Believed according to the original posture of the original attitude information for being added object, animation attitude information and the object to be added Breath, the animation attitude information for obtaining the object to be added is calculated using matching algorithm;The bone information to be loaded for reflecting the object form to be added is determined according to the animation attitude information of the object to be added; The target bone letter of the point of addition of object is added according to reflecting the animation attitude information for being added object Breath;The bone information to be loaded is loaded onto the target bone information, the object to be added is added to institute to realize State and be added object.
- 2. object adding method according to claim 1, it is characterised in that the matching algorithm is calculated including translational component Method, rotational component algorithm and scaling component algorithms, the animation attitude information of the object to be added include translational component information, rotation Turn component information and scaling component information;The step of animation attitude information for obtaining object to be added is calculated using matching algorithm, Including:The translational component information in the animation attitude information for obtaining the object to be added is calculated using translational component algorithm;The rotational component information in the animation attitude information for obtaining the object to be added is calculated using rotational component algorithm;The scaling component information in the animation attitude information for obtaining the object to be added is calculated using scaling component algorithms.
- 3. object adding method according to claim 2, it is characterised in that calculated using translational component algorithm described in obtaining The step of translational component information in the animation attitude information of object to be added, including:The translational component information in the animation attitude information for obtaining the object to be added is calculated using translation calculation formula, it is described Translation calculation formula is as follows:B2.Trans=a2.TransWherein:A2.Trans is the translational component information in the original attitude information of the object to be added;B2.Trans is the translational component information in the animation attitude information of the object to be added.
- 4. object adding method according to claim 2, it is characterised in that calculated using rotational component algorithm described in obtaining The step of rotational component information in the animation attitude information of object to be added, including:Rotational component information in the animation attitude information for obtaining the object to be added is calculated using rotation calculation formula, it is described It is as follows to rotate calculation formula:B2.Quat=a2.Quat* (b1.Quat/a1.Quat)Wherein:A1.Quat is the rotational component information being added in the original attitude information of object;A2.Quat is the rotational component information in the original attitude information of the object to be added;B1.Quat is the rotational component information being added in the animation attitude information of object;B2.Quat is the rotational component information in the animation attitude information of the object to be added.
- 5. object adding method according to claim 2, it is characterised in that calculated using scaling component algorithms described in obtaining The step of scaling component information in the animation attitude information of object to be added, including:Scaling component information in the animation attitude information for obtaining the object to be added is calculated using scaling calculation formula, it is described It is as follows to scale calculation formula:B2.Scale=a2.ScaleWherein:A2.Scale is the scaling component information in the original attitude information of the object to be added;B2.Scale is the scaling component information in the animation attitude information of the object to be added.
- 6. object adding method according to claim 2, it is characterised in that the animation attitude information for being added object Including translational component information, rotational component information and scaling component information;According to the animation attitude information of the object to be added Determine the bone information to be loaded for reflecting the object form to be added;Obtained according to the animation attitude information for being added object The step of target bone information of the point of addition of object is added described in reflection, including:Translational component information, rotational component information and scaling component letter in the animation attitude information of the object to be added Breath determines the bone information to be loaded for reflecting the object form to be added;Translational component information, rotational component information and scaling component letter in the animation attitude information for being added object Breath obtains the target bone information for reflecting that this is added the point of addition of object.
- 7. object adding method according to claim 6, it is characterised in that the bone information to be loaded is added to institute The step of stating target bone information, including:The bone information to be loaded is rendered into the target bone information and covers the target bone information.
- 8. a kind of object adding set, it is characterised in that the object adding set is applied to game client, and the object adds Feeder apparatus includes:Acquisition module, for obtaining the original of the original attitude information for being added object, animation attitude information and object to be added Attitude information;Computing module, for according to being added the original of the original attitude information of object, animation attitude information and object to be added Attitude information, the animation attitude information for obtaining object to be added is calculated using matching algorithm;Analysis module, for determining to reflect treating for the object form to be added according to the animation attitude information of the object to be added Load bone information;The point of addition of object is added according to reflecting the animation attitude information for being added object Target bone information;Add module, for the bone information to be loaded to be loaded onto the target bone information, waits to add to realize by described Object is added to be added object added to described.
- 9. a kind of electronic equipment, including memory, processor and storage are on a memory and the calculating that can run on a processor Machine program, it is characterised in that the processor realizes that claim 1~8 any one of them object adds when performing described program Adding method.
- 10. a kind of computer-readable recording medium, it is characterised in that the readable storage medium storing program for executing includes computer program, described Electronic equipment perform claim requires 1~8 any one of them computer program controls the readable storage medium storing program for executing when running where Object adding method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711283717.1A CN108014497B (en) | 2017-12-06 | 2017-12-06 | Object adding method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711283717.1A CN108014497B (en) | 2017-12-06 | 2017-12-06 | Object adding method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108014497A true CN108014497A (en) | 2018-05-11 |
CN108014497B CN108014497B (en) | 2021-03-30 |
Family
ID=62078942
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711283717.1A Active CN108014497B (en) | 2017-12-06 | 2017-12-06 | Object adding method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108014497B (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109908579A (en) * | 2019-01-27 | 2019-06-21 | 镇江奇游网络科技有限公司 | A kind of method and system selecting game role |
CN110613935A (en) * | 2019-10-21 | 2019-12-27 | 网易(杭州)网络有限公司 | Game data processing method and device and electronic equipment |
CN111068327A (en) * | 2019-12-26 | 2020-04-28 | 珠海金山网络游戏科技有限公司 | Method and device for adjusting back decoration of game role |
CN111260764A (en) * | 2020-02-04 | 2020-06-09 | 腾讯科技(深圳)有限公司 | Method, device and storage medium for making animation |
CN111275800A (en) * | 2020-01-15 | 2020-06-12 | 北京字节跳动网络技术有限公司 | Animation generation method and device, electronic equipment and computer readable storage medium |
CN111292402A (en) * | 2020-02-13 | 2020-06-16 | 腾讯科技(深圳)有限公司 | Data processing method, device, equipment and computer readable storage medium |
CN111402371A (en) * | 2020-03-20 | 2020-07-10 | 网易(杭州)网络有限公司 | Animation object processing method, device, equipment and storage medium |
CN112435318A (en) * | 2020-11-30 | 2021-03-02 | 上海米哈游天命科技有限公司 | Anti-threading method and device in game, electronic equipment and storage medium |
CN112435315A (en) * | 2020-11-30 | 2021-03-02 | 上海米哈游天命科技有限公司 | Anti-threading method and device in game, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101609561A (en) * | 2009-06-30 | 2009-12-23 | 广州市八丁动漫网络科技有限公司 | A kind of method that realizes smooth transition among animated cartoons |
JP5043919B2 (en) * | 2009-11-30 | 2012-10-10 | 株式会社コナミデジタルエンタテインメント | Image generating apparatus, image generating method, and program |
CN106075909A (en) * | 2016-07-15 | 2016-11-09 | 珠海金山网络游戏科技有限公司 | A kind of system and method that changes the outfit of playing |
CN106504309A (en) * | 2016-11-24 | 2017-03-15 | 腾讯科技(深圳)有限公司 | A kind of method of image synthesis and image synthesizer |
-
2017
- 2017-12-06 CN CN201711283717.1A patent/CN108014497B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101609561A (en) * | 2009-06-30 | 2009-12-23 | 广州市八丁动漫网络科技有限公司 | A kind of method that realizes smooth transition among animated cartoons |
JP5043919B2 (en) * | 2009-11-30 | 2012-10-10 | 株式会社コナミデジタルエンタテインメント | Image generating apparatus, image generating method, and program |
CN106075909A (en) * | 2016-07-15 | 2016-11-09 | 珠海金山网络游戏科技有限公司 | A kind of system and method that changes the outfit of playing |
CN106504309A (en) * | 2016-11-24 | 2017-03-15 | 腾讯科技(深圳)有限公司 | A kind of method of image synthesis and image synthesizer |
Non-Patent Citations (1)
Title |
---|
峻峰飞阳: "Cocos骨骼动画功能解密", 《HTTPS://BLOG.CSDN.NET/WHILE0/ARTICLE/DETAILS/74781739?UTM_SOURCE=APP&FROM=SINGLEMESSAGE》 * |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109908579A (en) * | 2019-01-27 | 2019-06-21 | 镇江奇游网络科技有限公司 | A kind of method and system selecting game role |
CN110613935A (en) * | 2019-10-21 | 2019-12-27 | 网易(杭州)网络有限公司 | Game data processing method and device and electronic equipment |
CN111068327A (en) * | 2019-12-26 | 2020-04-28 | 珠海金山网络游戏科技有限公司 | Method and device for adjusting back decoration of game role |
CN111068327B (en) * | 2019-12-26 | 2024-02-09 | 珠海金山数字网络科技有限公司 | Method and device for adjusting back decoration of game character |
CN111275800B (en) * | 2020-01-15 | 2021-09-14 | 北京字节跳动网络技术有限公司 | Animation generation method and device, electronic equipment and computer readable storage medium |
CN111275800A (en) * | 2020-01-15 | 2020-06-12 | 北京字节跳动网络技术有限公司 | Animation generation method and device, electronic equipment and computer readable storage medium |
US11972517B2 (en) | 2020-01-15 | 2024-04-30 | Beijing Bytedance Network Technology Co., Ltd. | Animation generation method and apparatus, electronic device, and computer-readable storage medium |
CN111260764A (en) * | 2020-02-04 | 2020-06-09 | 腾讯科技(深圳)有限公司 | Method, device and storage medium for making animation |
US11823315B2 (en) | 2020-02-04 | 2023-11-21 | Tencent Technology (Shenzhen) Company Ltd | Animation making method and apparatus, computing device, and storage medium |
CN111260764B (en) * | 2020-02-04 | 2021-06-25 | 腾讯科技(深圳)有限公司 | Method, device and storage medium for making animation |
WO2021155686A1 (en) * | 2020-02-04 | 2021-08-12 | 腾讯科技(深圳)有限公司 | Animation production method and apparatus, computing device, and storage medium |
CN111292402B (en) * | 2020-02-13 | 2023-03-07 | 腾讯科技(深圳)有限公司 | Data processing method, device, equipment and computer readable storage medium |
CN111292402A (en) * | 2020-02-13 | 2020-06-16 | 腾讯科技(深圳)有限公司 | Data processing method, device, equipment and computer readable storage medium |
CN111402371B (en) * | 2020-03-20 | 2023-08-08 | 网易(杭州)网络有限公司 | Method, device, equipment and storage medium for processing animation object |
CN111402371A (en) * | 2020-03-20 | 2020-07-10 | 网易(杭州)网络有限公司 | Animation object processing method, device, equipment and storage medium |
CN112435315A (en) * | 2020-11-30 | 2021-03-02 | 上海米哈游天命科技有限公司 | Anti-threading method and device in game, electronic equipment and storage medium |
CN112435318A (en) * | 2020-11-30 | 2021-03-02 | 上海米哈游天命科技有限公司 | Anti-threading method and device in game, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108014497B (en) | 2021-03-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108014497A (en) | Object adding method, device and electronic equipment | |
US10475250B1 (en) | Virtual item simulation using detected surfaces | |
Ye et al. | Synthesis of detailed hand manipulations using contact sampling | |
Mordatch et al. | Contact-invariant optimization for hand manipulation | |
US11029760B2 (en) | Simulating touch in a virtual environment | |
CN109313721A (en) | Training machine learning model | |
CN107710188A (en) | Automate local story generation and plan exhibition | |
US7830375B2 (en) | Constraint schemes for computer simulation of cloth and other materials | |
CN107280693A (en) | Psychoanalysis System and method based on VR interactive electronic sand tables | |
CN111260764A (en) | Method, device and storage medium for making animation | |
CN108830200A (en) | A kind of image processing method, device and computer storage medium | |
CN107450830A (en) | The method and apparatus that a kind of single screen multiwindow supports Random seismic field simultaneously | |
CN105630595B (en) | A kind of information processing method and electronic equipment | |
WO2023122595A1 (en) | Automated gif generation platform | |
Kang | Effect of interaction based on augmented context in immersive virtual reality environment | |
CN111369647A (en) | Information processing method and device, computer storage medium and electronic equipment | |
Anderson | Computer games and archaeological reconstruction: The low cost VR | |
WO2010012768A1 (en) | Method and system for adjusting a virtual display device | |
CN109448123A (en) | The control method and device of model, storage medium, electronic equipment | |
CN106909263A (en) | The interactive display method and system of 3-D view | |
CN105912312A (en) | Control sliding control method and device thereof | |
CN105786333B (en) | The operating method and device of mobile terminal | |
CN104731328B (en) | Information processing method and electronic equipment | |
CN103744608B (en) | A kind of information processing method and electronic equipment | |
CN106406742B (en) | Mobile terminal screen brightness adjusting method, device and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |