CN112402957A - 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
CN112402957A
CN112402957A CN202011360552.5A CN202011360552A CN112402957A CN 112402957 A CN112402957 A CN 112402957A CN 202011360552 A CN202011360552 A CN 202011360552A CN 112402957 A CN112402957 A CN 112402957A
Authority
CN
China
Prior art keywords
target object
animation
motion information
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.)
Withdrawn
Application number
CN202011360552.5A
Other languages
Chinese (zh)
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 CN202011360552.5A priority Critical patent/CN112402957A/en
Publication of CN112402957A publication Critical patent/CN112402957A/en
Withdrawn legal-status Critical Current

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
    • 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/55Controlling game characters or game objects based on the game progress
    • A63F13/57Simulating properties, behaviour or motion of objects in the game world, e.g. computing tyre load in a car race game
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features 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/60Methods for processing data by generating or executing the game program
    • A63F2300/64Methods for processing data by generating or executing the game program for computing dynamical parameters of game objects, e.g. motion determination or computation of frictional forces for a virtual car

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (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; determining state information of the clothes of the target object under the motion information based on the motion information; determining a 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; 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 leg actions is achieved 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 the player has experience. When the game character encounters an obstacle, the game character may have a leg-raising action, and the clothes on the game character may also change in height, angle, and the like according to the animal of the game character.
At present, an inverse motion mechanics algorithm is usually added in a game, when the leg lifting height of a game character changes along with the terrain where the game character is located, the cloth system real-time calculation algorithm in a game engine is utilized to calculate the leg lifting height, direction, angle and the like of the game character in real time, and then the position, direction and angle where clothing of the game character is located are calculated 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 leg action of the game character has overlarge consumption on the system performance, the processing system of a plurality of games cannot bear the consumption 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 leg 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 simulated limb movement of the target object in the current movement state;
determining state information of the clothes of the target object under the motion information based on the motion information;
determining a 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;
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.
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 limb of the target object based on the limb movement of the simulated target object in the current movement state;
the state information determining module is used for determining the state information of the clothes of the target object under the motion information based on the motion information;
the clothing swing animation acquisition module is used for determining 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 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.
The technical scheme of the embodiment of the invention obtains the motion information of limbs of the target object based on the simulated limb motion of the target object in the current motion state, determines the state information of the clothing of the target object under the motion information based on the motion information, determines 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, sets a state machine layer for the clothing swinging animation, determines the clothing swinging animation state machine layer of the target object under the motion information, determines the animation of the clothing of the target object changing along with the change of the limb motion of the target object based on the clothing swinging animation state machine layer of the target object under the motion information, thus perfectly matching the motion information of the target object by adding the corresponding clothing swinging animation state machine layer under the motion information of the target object in the actual scene, the method avoids the condition of clothing interlude, realizes the effect that the clothing of the target object changes along with the change of the limb action in an off-line mode, greatly reduces the performance consumption of the system, and avoids the condition that the animation of the clothing of the target object changes along with the change of the limb action in real time in the actual scene in the prior art.
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 structural diagram of a garment changing device in accordance with a third embodiment of the invention;
fig. 6 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 of the structures related to the present invention are shown in the drawings, not all of the structures.
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, determining the state information of the clothes of the target object under the motion information based on 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 state information of the apparel of the target object under the motion information may be state data of the apparel of the target object under the motion information.
Optionally, 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, based on a preset calculation algorithm, the state information of the clothes of the target object under the motion information can be determined.
Therefore, the clothing swing animation of the target object under the motion information can be obtained based on the determined state information of the clothing of the target object under the motion information.
And S130, 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.
For example, 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.
And S140, 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 the state machine layer of the clothing swing animation formed by the target object under the motion information after the state machine layer is arranged on the determined clothing swing animation.
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 S150, 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.
The technical scheme of the embodiment of the invention obtains the motion information of limbs of the target object based on the simulated limb motion of the target object in the current motion state, determines the state information of the clothing of the target object under the motion information based on the motion information, determines 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, sets a state machine layer for the clothing swinging animation, determines the clothing swinging animation state machine layer of the target object under the motion information, determines the animation of the clothing of the target object changing along with the change of the limb motion of the target object based on the clothing swinging animation state machine layer of the target object under the motion information, thus perfectly matching the motion information of the target object by adding the corresponding clothing swinging animation state machine layer under the motion information of the target object in the actual scene, the method avoids the condition of clothing interlude, realizes the effect that the clothing of the target object changes along with the change of the limb action in an off-line mode, greatly reduces the performance consumption of the system, and avoids the condition that the animation of the clothing of the target object changes along with the change of the limb action in real time in the actual scene in the prior art.
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:
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, determining the state information of the clothes of the target object under the motion information based on the motion information.
And S230, 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.
S240, 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 S250, 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 S260, 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, at this time, the motion information of the target object in the actual scene crosses one obstacle as shown in fig. 2, and at this time, two legs of the target object are on the obstacle, the clothing swing animation state machine layer corresponding to the scene motion information obtained at the time of the simulation may be used as the target clothing swing animation state machine layer of the target object under the motion information of fig. 2 in the actual scene according to the clothing swing animation state machine layer corresponding to the scene motion information obtained at the time of the simulation. Namely, the corresponding clothing swing animation state machine layer under the current motion information obtained in the simulation is found.
And S270, 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 swing animation state machine layer.
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 added to the target object state machine layer in a stacked mode, specifically, the target clothing swing animation state machine layer is added to the target object state machine layer in a stacked mode through code logic, and therefore the effect of the animation that the clothing of the target object changes along with the change of the limb actions of the target object can be formed by the two state machine layers in the stacked mode.
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. 5 is a schematic structural diagram of a clothing changing apparatus provided in the second embodiment of the present invention, as shown in fig. 5, the apparatus includes: a limb movement information determination module 31, a state information determination module 32, a clothing swing animation acquisition module 33, a clothing swing animation state machine layer determination module 34, and a change animation determination module 35.
The limb movement information determining module 31 is configured to obtain movement information of a limb of the target object based on a simulated limb movement of the target object in a current movement state;
a status information determining module 32, configured to determine, based on the motion information, status information of the clothing of the target object under the motion information;
a clothing swing animation obtaining module 33, configured to determine, based on the state information of the clothing of the target object under the motion information, a clothing swing animation of the target object under the motion information;
a clothing swing animation state machine layer determining module 34, configured to set a state machine layer for the clothing swing animation, and determine a clothing swing animation state machine layer of the target object under the motion information;
and the change animation determining module 35 is configured to determine, 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 along with changes in the limb motions of the target object.
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.
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 determining module 35 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 the 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. 6 is a schematic structural diagram of an electronic apparatus according to a fourth embodiment of the present invention, as shown in fig. 6, 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. 6; 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. 6.
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, state information determination module 32, garment sway animation acquisition module 33, garment sway animation state machine layer determination module 34, and change animation determination module 35). 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 greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A clothing changing method, comprising:
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;
determining state information of the clothes of the target object under the motion information based on the motion information;
determining a 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;
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.
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 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.
4. The method of claim 1, wherein determining an animation of the target object's apparel as a function of the target object's limb actions based on the target object's apparel swing animation state machine layer under the motion information comprises:
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.
5. The method of claim 4, 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.
6. A clothing changing apparatus, 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 state information determining module is used for determining the state information of the clothes of the target object under the motion information based on the motion information;
the clothing swing animation acquisition module is used for determining 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 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.
7. The apparatus of claim 6, wherein the change animation determination module comprises:
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.
8. The apparatus according to claim 7, wherein the change animation determination unit is specifically configured to:
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.
9. 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-5.
10. A storage medium containing computer-executable instructions for performing the apparel change method of any of claims 1-5 when executed by a computer processor.
CN202011360552.5A 2020-11-27 2020-11-27 Clothing change method and device, electronic equipment and storage medium Withdrawn CN112402957A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011360552.5A CN112402957A (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
CN202011360552.5A CN112402957A (en) 2020-11-27 2020-11-27 Clothing change method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112402957A true CN112402957A (en) 2021-02-26

Family

ID=74843364

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011360552.5A Withdrawn CN112402957A (en) 2020-11-27 2020-11-27 Clothing change method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112402957A (en)

Similar Documents

Publication Publication Date Title
CN111488824B (en) Motion prompting method, device, electronic equipment and storage medium
CN110827383B (en) Attitude simulation method and device of three-dimensional model, storage medium and electronic equipment
CN108176048B (en) Image processing method and device, storage medium and electronic device
CN111028320B (en) Cloth animation generation method and device and computer readable storage medium
CN111260764B (en) Method, device and storage medium for making animation
CN111544889B (en) Behavior control method and device of virtual object and storage medium
CN108960192A (en) Action identification method and its neural network generation method, device and electronic equipment
CN108771866A (en) Virtual object control method in virtual reality and device
CN109191593A (en) Motion control method, device and the equipment of virtual three-dimensional model
US20170221251A1 (en) Animating a virtual object in a virtual world
CN115082608B (en) Virtual character clothing rendering method, device, electronic equipment and storage medium
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
CN115115752B (en) Deformation prediction method and device for virtual clothing, storage medium and electronic equipment
CN112274926A (en) Virtual character reloading method and device
CN111429543A (en) Material generation method and device, electronic equipment and medium
CN112370779B (en) Clothing change method and device, electronic equipment and storage medium
CN112316422B (en) Clothing change method and device, electronic equipment and storage medium
CN111639615B (en) Trigger control method and device for virtual building
CN112402957A (en) Clothing change method and device, electronic equipment and storage medium
CN105204630A (en) Method and system for garment design through motion sensing
CN112669425B (en) Hair rendering method, device, electronic equipment and readable storage medium
CN110610537B (en) Clothes image display method and device, storage medium and terminal equipment
CN114529653A (en) Image generation method, device, equipment and storage medium
CN114764537A (en) Cloth physical simulation method based on virtual reality garment design

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20210226

WW01 Invention patent application withdrawn after publication