CN112316422B - Clothing change method and device, electronic equipment and storage medium - Google Patents

Clothing change method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112316422B
CN112316422B CN202011364890.6A CN202011364890A CN112316422B CN 112316422 B CN112316422 B CN 112316422B CN 202011364890 A CN202011364890 A CN 202011364890A CN 112316422 B CN112316422 B CN 112316422B
Authority
CN
China
Prior art keywords
target object
motion information
animation
state machine
clothing
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.)
Active
Application number
CN202011364890.6A
Other languages
Chinese (zh)
Other versions
CN112316422A (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.)
Shanghai Mihoyo Tianming Technology Co Ltd
Original Assignee
Shanghai Mihoyo Tianming 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 Shanghai Mihoyo Tianming Technology Co Ltd filed Critical Shanghai Mihoyo Tianming Technology Co Ltd
Priority to CN202011364890.6A priority Critical patent/CN112316422B/en
Publication of CN112316422A publication Critical patent/CN112316422A/en
Application granted granted Critical
Publication of CN112316422B publication Critical patent/CN112316422B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • G06T13/203D [Three Dimensional] animation
    • G06T13/403D [Three Dimensional] animation of characters, e.g. humans, animals or virtual beings

Landscapes

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

Abstract

The embodiment of the invention discloses a clothing change method, a clothing change device, electronic equipment and a storage medium. The method comprises the following steps: obtaining the movement information of the limbs of the target object based on the simulated limb movement of the target object in the current movement state; acquiring a clothing swing animation under the motion information; setting a state machine layer for the clothing swing animation, and determining the clothing swing animation state machine layer of the target object under the motion information; and determining the animation of the clothes of the target object changing along with the change of the limb action of the target object based on the clothes swinging animation state machine layer of the target object under the motion information. The effect that the clothes change along with the change of the limb actions is realized in an off-line mode.

Description

Clothing change method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to computer technology, in particular to a clothing change method, a clothing change device, electronic equipment and a storage medium.
Background
With the rapid development of the electronic competition industry, in the game, the game characters are vivid, and the actions of walking, jumping and the like in the game scene are consistent with those of people in reality, so that players have experience. When the game character encounters an obstacle, the game character can have the action of lifting legs and the like, and the clothes on the game character can also change in height, angle and the like along with the animal of the game character.
At present, an inverse motion mechanics algorithm is usually added in a game, when the lifting height of limbs of a game character changes along with the terrain where the game character is located, the lifting height, the lifting direction, the lifting angle and the like of the legs of the game character are solved in real time by using a cloth system real-time calculation algorithm in a game engine, and then the position, the lifting direction and the lifting angle of clothes of the game character are solved in real time. Or adding collision to the skeleton of the game character in the game, and calculating the position, the direction and the angle of the dress of the game character based on the inverse motion mechanics by utilizing the contact between the skeleton and the dress.
The mode of calculating the change of the clothes of the game character along with the body action of the game character consumes too much system performance, the processing systems of a plurality of games cannot bear the performance at present, and the resolution precision of clothes cloth or collision is not high, so that the legs are inserted out of the clothes, namely, the legs are not covered by the clothes.
Disclosure of Invention
The embodiment of the invention provides a clothing change method, a clothing change device, electronic equipment and a storage medium, and aims to realize the effect that clothing changes along with the change of limb actions in an off-line mode.
In a first aspect, an embodiment of the present invention provides a clothing variation method, where the method includes:
obtaining the movement information of the limbs of the target object based on the limb movement of the simulated target object in the current movement state;
acquiring a clothing swing animation under the motion information;
setting a state machine layer for the clothing swing animation, and determining the clothing swing animation state machine layer of the target object under the motion information;
and determining the animation of the clothes of the target object changing along with the change of the limb actions of the target object on the basis of the clothes swing animation state machine layer of the target object under the motion information.
In a second aspect, an embodiment of the present invention further provides a clothing changing apparatus, where the apparatus includes:
the limb movement information determining module is used for obtaining the movement information of the limbs of the target object based on the limb movement of the simulated target object in the current movement state;
the clothing swing animation acquisition module is used for acquiring clothing swing animation under the motion information;
the clothing swing animation state machine layer determining module is used for setting a state machine layer for the clothing swing animation and determining the clothing swing animation state machine layer of the target object under the motion information;
and the change animation determining module is used for determining the animation of the clothes of the target object changing along with the change of the limb action of the target object on the basis of the clothes swing animation state machine layer of the target object under the motion information.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the apparel variation method of any of the embodiments of the present invention.
In a fourth aspect, embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the apparel variation method described in any of the embodiments of the present invention.
According to the technical scheme of the embodiment of the invention, the motion information of the limbs of the target object is obtained based on the simulated limb motion of the target object in the current motion state, the state machine layer is arranged on the clothes swing animation under the obtained motion information, the clothes swing animation state machine layer of the target object under the motion information is determined, and the animation of the clothes of the target object changing along with the change of the limb motion of the target object is determined based on the clothes swing animation state machine layer of the target object under the motion information.
Drawings
FIG. 1 is a flow chart of a method of apparel variation in a first embodiment of the invention;
FIG. 2 is a schematic diagram illustrating the body movements of a target object according to a first embodiment of the present invention;
FIG. 3 is a diagram illustrating the addition of a state machine layer to a garment swing animation according to a first embodiment of the invention;
FIG. 4 is a flow chart of a clothing variation method in a second embodiment of the invention;
FIG. 5 is a schematic diagram of a second embodiment of the present invention, in which motion information is drawn in 3D software;
FIG. 6 is a schematic structural diagram of a garment changing device in accordance with a third embodiment of the invention;
fig. 7 is a schematic structural diagram of an electronic device in a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some structures related to the present invention are shown in the drawings, not all of them.
Example one
Fig. 1 is a flowchart of a clothing change method according to an embodiment of the present invention, where this embodiment is applicable to a situation where clothing of a target object changes with a change in a limb movement, and the method may be executed by a clothing change apparatus, where the clothing change apparatus may be implemented by software and/or hardware, and the clothing change apparatus may be configured on an electronic computing device, and specifically includes the following steps:
and S110, obtaining the movement information of the limbs of the target object based on the simulated limb movement of the target object in the current movement state.
For example, the target object may be an object having clothing in the game, such as a game character in the game, a pet in the game, and the like.
The current motion state may be the motion state in which the target object is currently located, for example, may be the state in which the target object is crossing an obstacle at the time.
The limb motion in the current motion state may be a limb motion of the target object in the current motion state, for example, a leg motion and/or an arm motion of the target object may be used.
Specifically, referring to the schematic limb movement diagram of the target object described in fig. 2, when the target object is in a state of crossing an obstacle at the time, both the left leg and the right leg of the target object are on the obstacle, and the leg movement at the time is the limb movement in the current movement state.
The motion information of the limbs of the target object may be state information of the limbs of the target object.
Alternatively, the motion information of the limb of the target object may include, but is not limited to: height, angle and direction of the limb of the target subject.
Referring to fig. 2, the left leg and the right leg of the target object are both on the obstacle, but the height, direction, angle, and the like of the two legs are different. At this time, the height, direction and angle of two legs of the target object are the motion information of the limbs of the target object.
And S120, acquiring the clothing swing animation under the motion information.
For example, the apparel may be apparel worn by the target subject, such as, but not limited to, skirts, mantles, and cloches.
The clothing swing animation under the motion information may be an animation of clothing swing of the target object under the motion information.
As shown in fig. 2, taking an example in which the target object is a game character in the game, the game character is a skirt (not shown in fig. 2), and when the game character crosses an obstacle, the height, direction, angle, and the like of the dress of the game character vary with the height, angle, and direction in which the leg of the game character is raised. When the game character crosses the obstacle in fig. 2, the height, angle and direction of the skirt hem of the skirt of the game character are changed to form the dress swinging animation of the game character.
After the motion information of the limbs of the target object is obtained based on the simulated limb motion of the target object in the current motion state, the clothing swing animation under the motion information can be obtained according to the motion information of the limbs of the target object.
It should be noted that, after the clothing swing animation under the motion information is obtained, the clothing swing animation may be exported to form an offline file for subsequent use.
S130, setting a state machine layer for the clothing swing animation, and determining the clothing swing animation state machine layer of the target object under the motion information.
For example, the clothing swing animation state machine layer may be a state machine layer of the clothing swing animation formed by setting the state machine layer on the determined clothing swing animation, wherein the target object is under the motion information.
After the offline file is formed, the offline file is imported into an engine, and a state machine layer is arranged on the clothing swing animation, so that the clothing swing animation state machine layer of the target object under the motion information can be obtained. FIG. 3 is a schematic diagram of adding a state machine layer to a garment swing animation in an engine.
Here, it can be understood that: and importing the offline file into an engine, wherein the offline file is the clothing swing animation under the motion information, and adding a state machine layer to the clothing swing animation to form the clothing swing animation state machine layer of the target object under the motion information.
The obtained off-line clothes swing animation state machine layer is convenient for obtaining the animation effect that the clothes of the target object change along with the change of the limb actions based on the off-line clothes swing animation state machine layer.
And S140, determining the animation of the clothes of the target object changing along with the change of the limb actions of the target object based on the clothes swing animation state machine layer of the target object under the motion information.
Illustratively, according to the determined clothes swinging animation state machine layer of the target object under the motion information, the clothes swinging animation state machine layer is imported into the same actual scene as the simulated scene, the motion information of the target object in the actual scene is acquired, and the acquired motion information of the target object in the actual scene is consistent with the motion information of the target object in the simulated scene because the actual scene is the same as the simulated scene.
After the motion information of the target object in the actual scene is acquired, the clothing swing animation state machine layer corresponding to the motion information of the target object in the actual scene is matched with the motion information of the target object, so that the animation effect that the clothing of the target object changes along with the motion information of the target object is obtained.
Therefore, in an actual scene, the corresponding clothing swing animation state machine layer is added under the motion information of the target object, the motion information of the target object can be perfectly matched, the clothing penetration condition is avoided, the effect that the clothing of the target object changes along with the change of the limb action is realized in an off-line mode, the performance consumption of a system is greatly reduced, and the condition that the animation that the clothing of the target object changes along with the change of the limb action needs to be directly calculated in the actual scene in real time in the prior art is avoided.
According to the technical scheme of the embodiment of the invention, the motion information of the limbs of the target object is obtained based on the simulated limb motion of the target object in the current motion state, the state machine layer is arranged on the clothes swing animation under the obtained motion information, the clothes swing animation state machine layer of the target object under the motion information is determined, and the animation of the clothes of the target object changing along with the change of the limb motion of the target object is determined based on the clothes swing animation state machine layer of the target object under the motion information.
Example two
Fig. 4 is a flowchart of a clothing variation method provided in the second embodiment of the present invention, and the second embodiment of the present invention may be combined with various alternatives in the above embodiments. In this embodiment of the present invention, optionally, the determining, based on the clothing swing animation state machine layer of the target object under the motion information, an animation in which clothing of the target object changes with changes in limb motions of the target object includes: acquiring motion information of a target object in an actual scene which is the same as the simulated scene, and adding a state machine layer to the motion information of the target object in the actual scene to form a target object state machine layer; determining a target clothing swing animation state machine layer of the target object under the motion information of the target object in the actual scene based on the motion information of the target object in the actual scene; and determining the animation of the clothes of the target object changing along with the change of the limb actions of the target object based on the target object state machine layer and the target clothes swinging animation state machine layer.
As shown in fig. 4, the method of the embodiment of the present invention specifically includes the following steps:
and S210, obtaining the movement information of the limbs of the target object based on the simulated limb movement of the target object in the current movement state.
And S220, obtaining the clothing swing animation under the motion information.
Optionally, in the embodiment of the present invention, the motion information may be obtained by the following two ways:
(1) And drawing the clothing swing animation under the motion information based on the motion information.
After the motion information is acquired, the motion information can be input into 3D software, and the 3D software is utilized to automatically draw the clothing swing animation under the motion information. Specifically, the 3D software may draw the apparel swing animation under the motion information by calling a preset drawing algorithm.
In another embodiment, the user can manually draw the clothing swing animation under the motion information in the 3D software.
Referring to fig. 5, a schematic diagram of the clothing swing animation under the motion information is drawn in the 3D software, the motion information is input into the 3D software, a prototype of the target object in fig. 5 can be formed in the 3D software, and the clothing swing animation under the motion information can be drawn by using the 3D software according to the prototype.
Specifically, the clothing swing animation under the motion information is automatically drawn or manually drawn by the user, and can be selected according to the user requirement, and the method is not limited here.
(2) Determining state information of the clothes of the target object under the motion information based on the motion information; and determining the clothing swing animation of the target object under the motion information based on the state information of the clothing of the target object under the motion information.
The state information of the clothing of the target object under the motion information may include, but is not limited to: the height, direction and angle of the key positions of the clothes of the target object under the motion information.
The key positions of the apparel of the target object here may be, for example: taking a dress as an example of a skirt, if the motion information is only the motion of a leg, the key position of the dress of the target object may be the bottom edge of the skirt. If the motion information is the motion of the arms (for example, the target object draws a bow arrow and the like), the bottom, the armpit and the waist line part of the skirt are all lifted upwards when the arms are lifted, and therefore, the key positions of the dress here can be the bottom of the skirt, the armpit of the skirt and the waist line part of the skirt.
According to the motion information, the state information of the clothing of the target object under the motion information can be determined, and according to the state information of the clothing of the target object under the motion information, the clothing swing animation of the target object under the motion information can be determined.
In one embodiment, according to the state information of the clothing of the target object under the motion information, the clothing swing animation of the target object under the motion information is directly obtained by utilizing a computer algorithm.
In another embodiment, the 3D software may also draw the clothing swing animation of the target object under the motion information according to the status information of the clothing of the target object under the motion information.
Specifically, according to the state information of the clothing of the target object under the motion information, the clothing swing animation of the target object under the motion information is directly obtained by using a computer algorithm, or the clothing swing animation of the target object under the motion information is drawn in the 3D software according to the state information of the clothing of the target object under the motion information, and the clothing swing animation can be selected by a user according to the user requirement without limitation.
The two manners for obtaining the clothing swing animation under the motion information can be selected by the user according to the requirements of the user, and are not limited here.
And S230, setting a state machine layer for the clothing swing animation, and determining the clothing swing animation state machine layer of the target object under the motion information.
S240, acquiring the motion information of the target object in the actual scene which is the same as the simulated scene, and adding a state machine layer to the motion information of the target object in the actual scene to form a target object state machine layer.
For example, the target object state machine layer may be a state machine layer formed by adding a state machine layer to motion information of the target object in the actual scene.
And after the clothes swing animation state machine layer under the motion information of the target object in the simulated scene is obtained, obtaining the motion information of the target object in the actual scene same as the simulated scene, and adding the state machine layer to the motion information of the target object in the actual scene to form the target object state machine layer.
Since the simulated scene is identical to the actual scene at the time of simulation, the acquired motion information of the target object in the actual scene is also identical to the motion information of the target object in the simulated scene.
And S250, determining a target clothes swinging animation state machine layer of the target object under the motion information of the target object in the actual scene based on the motion information of the target object in the actual scene.
For example, the target clothing swing animation state machine layer may be a clothing swing animation state machine layer under the motion information of the target object in the actual scene, which is determined according to the motion information of the target object in the actual scene.
According to the motion information of the target object in the actual scene, the target clothing swing animation state machine layer of the target object under the motion information of the actual scene can be determined.
Specifically, for example, when the motion information of the target object in the actual scene crosses an obstacle as shown in fig. 2, and when both legs of the target object are on the obstacle, the clothing swing animation state machine layer corresponding to the scene motion information obtained in the simulation may be used as the target clothing swing animation state machine layer of the target object in the actual scene under the motion information of fig. 2 according to the clothing swing animation state machine layer corresponding to the scene motion information obtained in the simulation. Namely, the corresponding clothing swing animation state machine layer under the current motion information obtained in the simulation is found.
And S260, determining the animation of the clothes of the target object changing along with the change of the limb actions of the target object based on the state machine layer of the target object and the state machine layer of the target clothes swing animation.
For example, after the target object state machine layer and the target clothing swing animation state machine layer are determined, the animation of the clothing of the target object changing along with the change of the limb action of the target object is determined according to the target object state machine layer and the target clothing swing animation state machine layer.
Optionally, determining an animation of the clothing of the target object changing along with the change of the limb action of the target object based on the target object state machine layer and the target clothing swing animation state machine layer may specifically be: and superposing the target object state machine layer and the target clothes swinging animation state machine layer to form the animation of the clothes of the target object changing along with the change of the limb actions of the target object.
For example, after the target object state machine layer and the target clothing swing animation state machine layer are determined, the target clothing swing animation state machine layer is laminated on the target object state machine layer, specifically, the target clothing swing animation state machine layer is laminated on the target object state machine layer by using code logic, and thus, the two state machine layers are laminated, so that the effect of the animation that the clothing of the target object changes along with the change of the limb action of the target object can be formed.
Therefore, according to the obtained offline clothing swing animation state machine layer, the determined target clothing swing animation state machine layer is added on the target object state machine layer in a layered mode to form the animation effect that the clothing of the target object changes along with the change of the limb action of the target object.
According to the technical scheme of the embodiment of the invention, the motion information of the target object in the actual scene which is the same as the simulated scene is obtained, and the state machine layer is added to the motion information of the target object in the actual scene to form the state machine layer of the target object; determining a clothing swing animation state machine layer of the target object under the motion information of the target object in the actual scene based on the motion information of the target object in the actual scene; the method comprises the steps of determining an animation of the target object, which changes along with the change of the limb action of the target object, based on a target object state machine layer and a decoration swinging animation state machine layer, and laminating the determined target decoration swinging animation state machine on the target object state machine layer according to the obtained offline decoration swinging animation state machine layer to form an animation effect of the target object, which changes along with the change of the limb action of the target object.
EXAMPLE III
Fig. 6 is a schematic structural diagram of a clothing changing apparatus provided in the third embodiment of the present invention, as shown in fig. 6, the apparatus includes: a limb movement information determination module 31, a clothing swing animation acquisition module 32, a clothing swing animation state machine layer determination module 33, and a change animation determination module 34.
The limb movement information determining module 31 obtains the movement information of the limb of the target object based on the limb movement of the simulated target object in the current movement state;
a clothing swing animation obtaining module 32, configured to obtain clothing swing animation under the motion information;
the clothing swing animation state machine layer determining module 33 is configured to set a state machine layer for the clothing swing animation, and determine the clothing swing animation state machine layer of the target object under the motion information;
and the change animation determining module 34 is used for determining the animation of the clothes of the target object changing along with the change of the limb actions of the target object on the basis of the clothes swing animation state machine layer of the target object under the motion information.
Optionally, the motion information of the limb of the target object at least includes: height, angle and direction of a limb of the target object.
On the basis of the technical solution of the above embodiment, the clothing swing animation obtaining module 32 includes:
and the first garment swing animation determining unit is used for drawing the garment swing animation under the motion information based on the motion information.
On the basis of the technical solution of the above embodiment, the clothing swing animation obtaining module 32 may further include:
a state information determining unit, configured to determine, based on the motion information, state information of the clothing of the target object under the motion information;
and the second clothing swing animation determining unit is used for determining the clothing swing animation of the target object under the motion information based on the state information of the clothing of the target object under the motion information.
Optionally, the state information of the clothing of the target object under the motion information at least includes: the height, direction and angle of the clothing key position of the target object under the motion information.
On the basis of the technical solution of the above embodiment, the change animation determination module 34 includes:
the target object state machine layer determining unit is used for acquiring the motion information of the target object in the actual scene which is the same as the simulated scene, and adding a state machine layer to the motion information of the target object in the actual scene to form a target object state machine layer;
the target clothing swing animation state machine layer determining unit is used for determining a target clothing swing animation state machine layer of the target object under the motion information of the target object in the actual scene based on the motion information of the target object in the actual scene;
and the change animation determining unit is used for determining the animation of the clothes of the target object changing along with the change of the limb action of the target object on the basis of the target object state machine layer and the target clothes swing animation state machine layer.
On the basis of the technical solution of the above embodiment, the change animation determining unit is specifically configured to:
and superposing the target object state machine layer and the target clothing swing animation state machine layer to form an animation of the clothing of the target object changing along with the change of the limb action of the target object.
The clothing change device provided by the embodiment of the invention can execute the clothing change method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 7 is a schematic structural diagram of an electronic apparatus according to a fourth embodiment of the present invention, as shown in fig. 7, the electronic apparatus includes a processor 70, a memory 71, an input device 72, and an output device 73; the number of the processors 70 in the electronic device may be one or more, and one processor 70 is taken as an example in fig. 7; the processor 70, the memory 71, the input device 72 and the output device 73 in the electronic apparatus may be connected by a bus or other means, and the bus connection is exemplified in fig. 7.
Memory 71 is one type of computer-readable storage medium that may be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the garment change method in embodiments of the present invention (e.g., limb movement information determination module 31, garment sway animation acquisition module 32, garment sway animation state machine layer determination module 33, and change animation determination module 34). The processor 70 executes various functional applications and data processing of the electronic device by executing software programs, instructions and modules stored in the memory 71, that is, implements the clothing change method described above.
The memory 71 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 71 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 71 may further include memory located remotely from the processor 70, which may be connected to the electronic device through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 72 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function controls of the electronic apparatus. The output device 73 may include a display device such as a display screen.
EXAMPLE five
Embodiments of the present invention also provide a storage medium containing computer-executable instructions that, when executed by a computer processor, perform a method for apparel variation.
Of course, the storage medium containing the computer-executable instructions provided by the embodiments of the present invention is not limited to the method operations described above, and may also perform related operations in the clothing change method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes instructions for enabling a computer electronic device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the clothing changing apparatus, the units and modules included in the embodiment are only divided according to the functional logic, but are not limited to the above division, as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in some detail by the above embodiments, the invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the invention, and the scope of the invention is determined by the scope of the appended claims.

Claims (9)

1. A clothing changing method, comprising:
obtaining the movement information of the limbs of the target object based on the limb movement of the simulated target object in the current movement state;
acquiring a clothing swing animation under the motion information;
setting a state machine layer for the clothing swing animation, and determining the clothing swing animation state machine layer of the target object under the motion information;
determining an animation of the clothing of the target object changing along with the change of the limb action of the target object based on the clothing swing animation state machine layer of the target object under the motion information;
the determining the animation of the clothing of the target object changing along with the change of the limb action of the target object based on the clothing swing animation state machine layer of the target object under the motion information comprises the following steps:
acquiring the motion information of the target object in an actual scene which is the same as the simulated scene, and adding a state machine layer to the motion information of the target object in the actual scene to form a target object state machine layer;
determining a target clothing swing animation state machine layer of the target object under the motion information of the target object in the actual scene based on the motion information of the target object in the actual scene;
determining an animation of the apparel of the target object changing with changes in limb motions of the target object based on the target object state machine layer and the target apparel swing animation state machine layer.
2. The method of claim 1, wherein the motion information of the limb of the target object comprises at least: height, angle and direction of a limb of the target object.
3. The method of claim 1, wherein obtaining the apparel swing animation under the motion information comprises:
and drawing the clothing swing animation under the motion information based on the motion information.
4. The method of claim 1, wherein obtaining the apparel swing animation under the motion information comprises:
determining state information of the clothes of the target object under the motion information based on the motion information;
and determining the clothing swinging animation of the target object under the motion information based on the state information of the clothing of the target object under the motion information.
5. The method according to claim 3 or 4, wherein the status information of the apparel of the target object under the motion information at least comprises: the height, direction and angle of the clothing key position of the target object under the motion information.
6. The method of claim 1, wherein determining an animation of the target object's apparel as a function of the target object's limb motion based on the target object state machine layer and the target apparel weaving animation state machine layer comprises:
and superposing the target object state machine layer and the target clothing swing animation state machine layer to form the animation of the clothing of the target object changing along with the change of the limb action of the target object.
7. A garment changing device, comprising:
the limb movement information determining module is used for obtaining the movement information of the limb of the target object based on the limb movement of the simulated target object in the current movement state;
the clothing swing animation acquisition module is used for acquiring clothing swing animation under the motion information;
the clothing swing animation state machine layer determining module is used for setting a state machine layer for the clothing swing animation and determining the clothing swing animation state machine layer of the target object under the motion information;
the change animation determining module is used for determining the animation of the clothes of the target object changing along with the change of the limb actions of the target object on the basis of the clothes swing animation state machine layer of the target object under the motion information;
the change animation determination module includes:
the target object state machine layer determining unit is used for acquiring the motion information of the target object in the actual scene which is the same as the simulated scene, and adding a state machine layer to the motion information of the target object in the actual scene to form a target object state machine layer;
the target clothing swing animation state machine layer determining unit is used for determining a target clothing swing animation state machine layer of the target object under the motion information of the target object in the actual scene based on the motion information of the target object in the actual scene;
and the change animation determining unit is used for determining the animation of the clothes of the target object changing along with the change of the limb actions of the target object on the basis of the target object state machine layer and the target clothes swing animation state machine layer.
8. An electronic device, characterized in that the electronic device comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the apparel variation method of any of claims 1-6.
9. A storage medium containing computer-executable instructions for performing the apparel change method of any of claims 1-6 when executed by a computer processor.
CN202011364890.6A 2020-11-27 2020-11-27 Clothing change method and device, electronic equipment and storage medium Active CN112316422B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011364890.6A CN112316422B (en) 2020-11-27 2020-11-27 Clothing change method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011364890.6A CN112316422B (en) 2020-11-27 2020-11-27 Clothing change method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112316422A CN112316422A (en) 2021-02-05
CN112316422B true CN112316422B (en) 2023-01-13

Family

ID=74309328

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011364890.6A Active CN112316422B (en) 2020-11-27 2020-11-27 Clothing change method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112316422B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110102050A (en) * 2019-04-30 2019-08-09 腾讯科技(深圳)有限公司 Virtual objects display methods, device, electronic equipment and storage medium
CN110264554A (en) * 2019-06-24 2019-09-20 网易(杭州)网络有限公司 Processing method, device, storage medium and the electronic device of animation information
CN111080755A (en) * 2019-12-31 2020-04-28 上海米哈游天命科技有限公司 Motion calculation method and device, storage medium and electronic equipment
CN111563945A (en) * 2020-04-30 2020-08-21 完美世界(北京)软件科技发展有限公司 Generation method, device and equipment of character morphing animation and readable storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9704288B2 (en) * 2010-05-04 2017-07-11 Disney Enterprises, Inc. Stable spaces for rendering character garments in real-time
CA2968589C (en) * 2016-06-10 2023-08-01 Square Enix Ltd. System and method for placing a character animation at a location in a game environment
CN111420399B (en) * 2020-02-28 2021-01-12 苏州叠纸网络科技股份有限公司 Virtual character reloading method, device, terminal and storage medium
CN111714880B (en) * 2020-04-30 2023-10-20 完美世界(北京)软件科技发展有限公司 Picture display method and device, storage medium and electronic device
CN111589143B (en) * 2020-05-15 2022-07-26 腾讯科技(深圳)有限公司 Animation playing method, device, equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110102050A (en) * 2019-04-30 2019-08-09 腾讯科技(深圳)有限公司 Virtual objects display methods, device, electronic equipment and storage medium
CN110264554A (en) * 2019-06-24 2019-09-20 网易(杭州)网络有限公司 Processing method, device, storage medium and the electronic device of animation information
CN111080755A (en) * 2019-12-31 2020-04-28 上海米哈游天命科技有限公司 Motion calculation method and device, storage medium and electronic equipment
CN111563945A (en) * 2020-04-30 2020-08-21 完美世界(北京)软件科技发展有限公司 Generation method, device and equipment of character morphing animation and readable storage medium

Also Published As

Publication number Publication date
CN112316422A (en) 2021-02-05

Similar Documents

Publication Publication Date Title
CN111488824B (en) Motion prompting method, device, electronic equipment and storage medium
CN111260764B (en) Method, device and storage medium for making animation
CN110827383B (en) Attitude simulation method and device of three-dimensional model, storage medium and electronic equipment
CN111028320B (en) Cloth animation generation method and device and computer readable storage medium
EP3332312A1 (en) Mixed reality social interactions
CN108525305A (en) Image processing method, device, storage medium and electronic equipment
CN108960192A (en) Action identification method and its neural network generation method, device and electronic equipment
CN109191593A (en) Motion control method, device and the equipment of virtual three-dimensional model
CN111544889B (en) Behavior control method and device of virtual object and storage medium
CN108771866A (en) Virtual object control method in virtual reality and device
CN111714880A (en) Method and device for displaying picture, storage medium and electronic device
KR20230007409A (en) Virtual character display method and apparatus, device, medium and program product
CN111429543B (en) Material generation method and device, electronic equipment and medium
CN109395387A (en) Display methods, device, storage medium and the electronic device of threedimensional model
CN112274926A (en) Virtual character reloading method and device
CN109523615A (en) Data processing method and device for virtual animated character movement
CN112316422B (en) Clothing change method and device, electronic equipment and storage medium
CN115115752A (en) Virtual garment deformation prediction method and device, storage medium and electronic equipment
CN111639615B (en) Trigger control method and device for virtual building
CN112402957A (en) Clothing change method and device, electronic equipment and storage medium
CN112370779B (en) Clothing change method and device, electronic equipment and storage medium
CN110610537B (en) Clothes image display method and device, storage medium and terminal equipment
CN105204630A (en) Method and system for garment design through motion sensing
CN116069157A (en) Virtual object display method, device, electronic equipment and readable medium
CN113350788A (en) Virtual character reloading method, device and medium

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