Method and apparatus for improving prediction performance of interference between body parts of animation character
The method and device enhance collision prediction and avoidance in real-time animated characters by adjusting inspection lengths and calculating avoidance vectors based on bone speed and movement direction, addressing the challenge of inter-body interference in motion capture technology.
Patent Information
- Application Number
- PCT/KR2023/006733
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-25
- Filing Date
- 2023-05-18
- Publication Date
- 2024-10-31
AI Technical Summary
Conventional motion capture methods fail to accurately predict and prevent inter-body interference in real-time animated characters, leading to collisions between body parts, especially when applied to characters with differing body proportions, which is a challenge in real-time virtual content creation.
A method and device that generate bones corresponding to a user's image, set reference points, adjust inspection lengths based on bone speed, and calculate collision possibilities using inspection vectors to predict and avoid collisions by determining avoidance vectors based on the surface and movement direction of upper limbs.
This approach improves collision prediction accuracy and reliability, ensuring consistent results regardless of bone speed and frame rate, effectively preventing inter-body interference in real-time motion capture applications.
Smart Images

Figure KR2023006733_31102024_PF_FP_ABST
Abstract
Description
Method and device for improving the performance of predicting body interference of animated characters
[0001] The present invention relates to a method and device for avoiding interference between bodies of an animation character, and more particularly, to a method and device for avoiding interference between bodies of an animation character created in real time using motion capture technology.
[0002] Motion capture refers to the process of digitally recording human movements by attaching sensors to the body or using image sensors. Alternatively, motion capture can refer to a technology that captures a user's motions and records and processes them in the form of computer graphics (CG) animation. In other words, a motion capture system can create an animated character by capturing the actual user's movements and mapping the captured movements to computer-generated objects.
[0003] Conventional motion capture methods for creating animated characters simply apply motion data directly to the character, without considering differences in body proportions between the object and the character. Therefore, using conventional motion capture methods can easily lead to collisions between body parts, such as the character's arms, and other body parts. For example, if the character's arms are longer than the object's, the object may be holding its waist with its hands, but the character's hands, generated based on the object's motion information, may end up buried in the pelvis.
[0004] Conventional motion capture methods have mostly been applied to pre-rendered footage, such as movies. In pre-rendered footage, motion capture data is acquired and then manually corrected by animators through a post-processing process, allowing for the correction of collisions between body parts of animated characters.
[0005] However, demand for real-time virtual content using game engines and other technologies is increasing, and attempts to apply motion capture techniques to characters in real time are also on the rise. Consequently, creating content that applies motion capture data to characters in real time requires applying the data directly to the character without any additional post-processing. Therefore, existing motion capture methods are showing limitations.
[0006] Accordingly, the need for a method for avoiding interference between the bodies of animated characters for real-time motion capture is emerging. The present invention relates to this.
[0007] The present invention has been devised to solve the above problem, and an object of the present invention is to provide a method for avoiding interference between bodies of an animated character applied to character animation by improving collision prediction performance between animated bodies so that an arm does not collide with another body.
[0008] The technical problems to be achieved through the present invention are not limited to the technical problems mentioned above, and other technical problems not mentioned can be clearly understood by a person having ordinary skill in the technical field to which the present invention belongs from the description below.
[0009] An operation method for avoiding collision between bodies of a character executed by at least one processor of a device according to one embodiment of the present invention may include the steps of: generating a bone of a character corresponding to a user based on an image of the user; setting a reference point on the bone of the character and setting an inspection length for performing a collision risk inspection between bodies of the character based on the reference point; correcting the inspection length according to a speed of the bone of the character; and predicting a possibility of collision through the inspection length.
[0010] Here, the inspection length may be applied as the length of a vector that extends from a point of the first bone of the character to a point of the second bone of the character, and the vector may be characterized as being defined as a inspection vector.
[0011] Here, the step of correcting the inspection length according to the speed of the character's bone may be characterized by increasing the inspection length when the speed of the character's bone increases, and decreasing the inspection length when the speed of the character's bone decreases.
[0012] Here, the step of predicting the possibility of collision through the inspection length may be characterized in that the possibility of collision is predicted to exist when a distance from a point of the character's body measured in the same direction as the inspection vector to the surface of the character is shorter than the inspection length.
[0013] Here, the operating method may further include a step of calculating an avoidance vector based on the possibility of collision, and the step of calculating the avoidance vector based on the possibility of collision may include a step of calculating the avoidance vector based on at least one of a surface of the character and a direction of movement of the upper limb of the character, when the possibility of collision is predicted to exist.
[0014] Here, the operating method may further include a step of calculating the speed of the character's bones, and the step of calculating the speed of the character's bones may include a step of calculating the bone's movement distance per frame; and a step of converting the bone's movement distance per frame into the bone's movement distance per second.
[0015] Here, the step of converting the movement distance of the bone per frame into the movement distance of the bone per second may further include the step of calculating the number of frames per second; and the step of calculating a value obtained by multiplying the number of frames per second and the movement distance of the bone per frame.
[0016] Here, the step of calculating the number of frames per second may further include a step of calculating a delta time, which is the time taken to render one frame; and a step of calculating a value obtained by dividing 1 by the delta time.
[0017] A device of a system for executing an operation method for avoiding collision between bodies of a character according to one embodiment of the present invention comprises: a memory in which at least one program command is stored; and a processor for executing the at least one program command, wherein the at least one program command is executable to generate a bone of a character corresponding to a user based on an image of the user; set a reference point on the bone of the character and set an inspection length for performing a collision risk inspection between bodies of the character based on the reference point; correct the inspection length according to a speed of the bone of the character; and predict a possibility of collision through the inspection length.
[0018] Here, the inspection length may be applied as the length of a vector that extends from a point of the first bone of the character to a point of the second bone of the character, and the vector may be characterized as being defined as a inspection vector.
[0019] Here, the at least one program command may be characterized in that it is executed to correct the inspection length according to the speed of the character's bone, so that when the speed of the character's bone increases, the inspection length is increased, and when the speed of the character's bone decreases, the inspection length is decreased.
[0020] Here, the at least one program command may be characterized in that, when the program command is executed to predict the possibility of collision through the inspection length, if a distance from a point of the character's body measured in the same direction as the inspection vector to the surface of the character is shorter than the inspection length, the possibility of collision is predicted.
[0021] Here, the at least one program command may be executed to calculate an avoidance vector based on the possibility of collision, and when the program command is executed to calculate the avoidance vector based on the possibility of collision, if the possibility of collision is predicted, the program command may be executed to calculate the avoidance vector based on at least one of a surface of the character and a direction of movement of the upper limb of the character.
[0022] Here, the at least one program command may be characterized in that it is executed to calculate the speed of the bone of the character, and when the program command is executed to calculate the speed of the bone of the character, it calculates the movement distance of the bone per frame; and it is executed to convert the movement distance of the bone per frame into the movement distance of the bone per second.
[0023] Here, the at least one program command may be characterized in that it is executed to convert the movement distance of the bone per frame into the movement distance of the bone per second, thereby calculating the number of frames per second; and calculating a value obtained by multiplying the number of frames per second and the movement distance of the bone per frame.
[0024] Here, the at least one program command may be characterized in that, when executed to produce the number of frames per second, it produces a delta time, which is a time taken to render one frame; and produces a value obtained by dividing 1 by the delta time.
[0025] The above-described aspects of the present disclosure are only some of the preferred embodiments of the present disclosure, and various embodiments reflecting the technical features of the present disclosure can be derived and understood by a person having ordinary skill in the art based on the detailed description of the present disclosure to be described below.
[0026] According to an embodiment of the present invention, by correcting the inspection length based on the speed of the character's body, consistent inspection results can be obtained regardless of the character's body speed. Therefore, the accuracy of collision prediction between characters' bodies can be improved, and the reliability of the character's body collision avoidance behavior can be enhanced.
[0027] According to an embodiment of the present invention, by converting the movement distance of a bone per frame into the movement distance of a bone per second, the device can obtain consistent speed regardless of the frame rate. Therefore, the speed of a character's bones can be measured relatively accurately even in videos where the frame rate changes in real time. This can improve the accuracy of collision prediction between characters' bodies.
[0028] The effects that can be obtained through the present invention are not limited to the effects mentioned, and other effects that are not mentioned can be clearly understood by a person having ordinary skill in the art to which the present invention belongs from the description below.
[0029] Figure 1 is a schematic diagram showing the entire system according to the present disclosure.
[0030] FIG. 2 is a block diagram illustrating an embodiment of a configuration of a device constituting a system according to the present disclosure.
[0031] FIG. 3 is a flowchart illustrating one embodiment of a body-to-body interference avoidance operation of an animation character according to the present disclosure.
[0032] FIG. 4 is a drawing illustrating one embodiment of a character body generated as a result of an interference avoidance motion between bodies of an animation character according to the present disclosure.
[0033] FIG. 5 is a drawing illustrating an example of an inspection start line and a target line set on the body of a character generated as a result of an inter-body interference avoidance motion of an animation character according to the present disclosure.
[0034] FIG. 6 is a drawing illustrating an example of a start point and a target point set on the body of a character generated as a result of an interference avoidance motion between bodies of an animation character according to the present disclosure.
[0035] FIG. 7 is a drawing for explaining a test length for predicting a collision possibility for an inter-body interference avoidance motion of an animation character according to the present disclosure.
[0036] FIG. 8 is a drawing for explaining a test length for predicting a collision possibility for an inter-body interference avoidance motion of an animation character according to the present disclosure.
[0037] FIG. 9 is a diagram illustrating an example of a test length for predicting collision probability for an inter-body interference avoidance motion of an animation character according to the present disclosure.
[0038] FIG. 10 is a flowchart illustrating an embodiment of an operation for calculating the speed of a character's body according to the present disclosure.
[0039] FIG. 11 is a drawing showing two images of a character according to the present disclosure having the same frame speed and different frame rates.
[0040] The present invention is susceptible to various modifications and embodiments. Specific embodiments are illustrated and described in detail in the drawings. However, this is not intended to limit the present invention to specific embodiments, but rather to encompass all modifications, equivalents, and alternatives falling within the spirit and technical scope of the present invention.
[0041] While terms such as "first" and "second" may be used to describe various components, these components should not be limited by these terms. These terms are used solely to distinguish one component from another. For example, without departing from the scope of the present invention, a first component may be referred to as a "second component," and similarly, a second component may also be referred to as a "first component." The term "and / or" includes a combination of multiple related items described herein or any of multiple related items described herein.
[0042] When a component is referred to as being "connected" or "connected" to another component, it should be understood that it may be directly connected or connected to that other component, but that there may be other components intervening. Conversely, when a component is referred to as being "directly connected" or "connected" to another component, it should be understood that there are no other components intervening.
[0043] The terminology used in this application is only used to describe specific embodiments and is not intended to limit the present invention. The singular expression includes the plural expression unless the context clearly indicates otherwise. In this application, it should be understood that the terms "comprise" or "have" indicate the presence of a feature, number, step, operation, component, part, or combination thereof described in the specification, but do not preclude the possibility of the presence or addition of one or more other features, numbers, steps, operations, components, parts, or combinations thereof.
[0044] Unless otherwise defined, all terms used herein, including technical or scientific terms, have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. Terms defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant technology, and will not be interpreted in an idealized or overly formal sense unless explicitly defined herein.
[0045] Hereinafter, with reference to the attached drawings, preferred embodiments of the present invention will be described in more detail. In order to facilitate an overall understanding in describing the present invention, identical reference numerals will be used for identical components in the drawings, and redundant descriptions of identical components will be omitted.
[0046]
[0047] Figure 1 is a schematic diagram showing the entire system according to the present disclosure.
[0048] Referring to FIG. 1, the entire system may include a user device (102), a server (104), an image capture device (106), an object (108), a display device (110), and a communication network (112). The user device (102) may be connected to the server (104), the image capture device (106), and the display device (110) via the communication network (112).
[0049] The user device (102) may include logic, circuitry, interfaces, and / or code for generating animation. The user device (102) may generate animation of a character based on the movement of an object (108) tracked by the image capture device (106) and output the generated animation through the display device (110). The user device (102) may include, but is not limited to, a gaming device, a video conferencing system, an augmented reality-based device, a computing device, a server, a computer workstation, a mainframe machine, and / or other user devices.
[0050] The server (104) may include circuitry, interfaces, and / or code capable of storing one or more animation models. In one embodiment, the server (104) may include, but is not limited to, an application server, a cloud server, a web server, a database server, a file server, a game server, a mainframe server, or a combination thereof.
[0051] The image capture device (106) may include logic, circuitry, interfaces, and / or code for capturing images and motion of the object (108). The image capture device (106) may capture one or more images and / or poses of the object (108) in real time or within a delayed time. Additionally, the image capture device (106) may determine bone structure information of the object (108) based on the captured images. The bone structure information may include skeletal information of the object (108). The image capture device (106) may transmit the determined bone structure information to the user device (102) via the communication network (112). The image capture device (106) may include, but is not limited to, a depth sensor, an infrared (IR) sensor, and / or a color sensor (such as a red-green-blue (RGB) sensor), a 3D mesh structure generator, an image sensor, and / or a motion detection sensor, which capture one or more poses of the object (108) from a single viewpoint.
[0052] The object (108) may refer to a target object captured by the image capture device (106). The object (108) may be a human, an animal, or a robot capable of mimicking the natural body movements of an actual human or animal. The human body includes a skeleton that provides a framework that supports the body and maintains its shape. The human skeleton includes a hierarchical set of interconnected bones, and joints (also called joints) between the bones can allow a certain degree of movement of body parts such as the head, hands, and feet.
[0053] The display device (110) may comprise suitable logic, circuitry, interfaces, and / or code that may be configured to render an animated model of a character received from the user device (102). In one embodiment, the display device (110) may obtain commands and / or input signals from a user. In such a scenario, the display device (110) may be a touch screen capable of inputting user commands. In other embodiments, the display device (110) may receive input via a virtual keypad, a stylus, gesture-based input, and / or touch-based input. The display device (110) may be implemented via several known technologies, including, but not limited to, liquid crystal display (LCD) display, light emitting diode (LED) display, plasma display, and / or organic LED (OLED) display technologies. According to another embodiment, the display device (110) may be one of a display screen of a smart-glasses device, a see-through display, a projection-based display, an electro-chromic display, and / or a transparent display.
[0054] The communication network (112) may include a communication medium for connecting the user device (102) to the server (104) and / or the display device (110). Examples of the communication network (112) may include, but are not limited to, the Internet, a cloud network, a Wi-Fi network, a local area network (LAN), and / or a metropolitan area network (MAN). Various devices within the system may connect to the communication network (112) according to various wired and wireless communication protocols. According to one embodiment, the wired and wireless communication protocols may include, but are not limited to, at least one of Transmission Control Protocol and Internet Protocol (TCP / IP), User Datagram Protocol (UDP), Hypertext Transfer Protocol (HTTP), File Transfer Protocol (FTP), ZigBee, EDGE, IEEE 802.11, Li-Fi (light fidelity), 802.16, IEEE 802.11s, IEEE 802.11g, multi-hop communication, wireless access point (AP), device-to-device communication, cellular communication protocol, and / or Bluetooth (BT) communication protocol, or combinations thereof.
[0055] The system of FIG. 1 may include at least one device, and the configuration of the devices may be as described below.
[0056]
[0057] FIG. 2 is a block diagram illustrating an embodiment of a configuration of a device constituting a system according to the present disclosure.
[0058] A device (200) included in the system may include at least one processor (210) and a memory (220) that stores instructions that instruct the at least one processor (210) to perform at least one step.
[0059] Here, at least one processor (210) may mean a central processing unit (CPU), a graphics processing unit (GPU), or a dedicated processor on which methods according to embodiments of the present invention are performed. Each of the memory (220) and the storage device (260) may be configured with at least one of a volatile storage medium and a non-volatile storage medium. For example, the memory (220) may be configured with at least one of a read-only memory (ROM) and a random access memory (RAM).
[0060] In addition, the device (200) included in the system may include a transceiver (230) that performs communication via a wireless network. In addition, the device (200) included in the system may further include an input interface device (240), an output interface device (250), a storage device (260), etc. Each component included in the device (200) included in the system may be connected by a bus (270) and communicate with each other.
[0061] Additionally, the device (200) included in the system may further include software components for implementing / driving specific functions. For example, the software components may include a framework, a kernel or device driver, middleware, an application programming interface (API), an application program (or application), etc.
[0062] Using the device of FIG. 2, a system for performing an interference avoidance motion between bodies of an animation character can be implemented as described below.
[0063]
[0064] FIG. 3 is a flowchart illustrating one embodiment of a body-to-body interference avoidance operation of an animation character according to the present disclosure.
[0065] In step S2201, the device can generate a character bone corresponding to the user based on the user's image. The character bone may be an object corresponding to the character's skeleton. The device can acquire the user's image, determine the user's preset major skeleton or moving parts, and generate an object corresponding to the determined major skeleton or moving parts. Here, the major skeleton may include the head, spine, upper limbs, and lower limbs of the human body. The major moving parts may include joints such as the neck, shoulders, elbows, wrists, pelvis, and knees of the human body. The device can then generate a mesh on the surface of the character based on the user's image.
[0066] In step S2203, the device may set a reference point on the character's body and set a detection length for performing a collision risk check between the character's bodies based on the reference point. Collisions due to differences in body proportions between the user and the character may primarily occur on the lower arm of the upper limb. Therefore, the device may set the reference point on the lower arm of the upper limb.
[0067] The device can set a test length based on a reference point. The test length may be a scalar value for performing a collision risk test between the character's bodies. Specifically, the test length may be applied as the length of a vector that points from a point of the character's first bone to a point of the character's second bone. In this case, the vector may be defined as a test vector. That is, the size of the test vector may correspond to the test length. In this case, the first bone and the second bone may be different parts of the character's bones.
[0068] Specifically, the device may set the lower limb of the character's body as the starting line segment. Furthermore, the device may set the head, torso, and lower limbs, which correspond to the main skeleton of the character's body, as the target line segments. Accordingly, the first bone may correspond to the lower limb of the upper limb, and the second bone may be the head, torso, or lower limb.
[0069] The device can set a starting point and a target point for collision risk detection on the character's body based on the positional relationship between the starting line segment and the target line segment set on the body. Specifically, the device can set the point on the starting line segment closest to the target line segment as the starting point. Furthermore, the device can set the point on the target line segment closest to the starting line segment as the target point.
[0070] In this case, a point of the first body may correspond to a starting point, a point of the second body may correspond to a target point, and the starting point may correspond to the reference point. That is, the inspection length may be a scalar value set based on the starting point, and the inspection vector may be a vector value having a scalar value corresponding to the inspection direction and inspection length from the starting point to the target point. Accordingly, one end of the inspection vector may be fixed on the starting point, and the other end of the inspection vector may be spaced apart from the starting point by the inspection length in the inspection direction.
[0071] Additionally, the device can perform a collision test between a starting point and a target point to derive a collision surface between the starting point and the target point. Here, a mesh existing within a preset section in the inspection direction from the starting point can be referred to as a collision surface.
[0072] At step S2205, the device can calculate the speed of the character's bones. The collision prediction rate may vary depending on the speed at which the character's bones move. The collision prediction rate may refer to the likelihood that the device can predict a collision. Accordingly, a high collision prediction rate indicates a high likelihood that the device can predict a collision between the characters' bodies, while a low collision prediction rate indicates a low likelihood that the device can predict a collision.
[0073] For example, if a character's bone moves slowly, the collision prediction rate may be high. Since the bone's position moves slightly each frame, the device can immediately recognize the character's mesh (e.g., the character's surface) getting closer during collision risk detection. However, if the character's bone moves quickly, the collision prediction rate may be low. That is, in the previous frame, the device may determine that the distance between the bone and the character's mesh is sufficiently far that there is no collision risk, but in the very next frame, the bone's position may change rapidly, resulting in a situation where the character's mesh and the bone are already in collision.
[0074] That is, since the collision prediction rate varies depending on the speed of the bone, the device can calculate the speed of the bone first.
[0075] In step S2207, the device can adjust the test length based on the speed of the character's bones. That is, the test length can be adjusted based on the speed of the bones calculated in step S2205. The device can increase the test length when the speed of the character's bones increases, and can decrease the test length when the speed of the character's bones decreases.
[0076] When a character's bone speed decreases, the character's bones move more slowly, which can lead to a higher collision prediction rate. Therefore, even with a shorter scan time, the device can immediately detect a collision risk and avoid it during the collision risk check. Conversely, with a longer scan time, the device may determine a collision risk even when it is low. This can result in unnatural character movements, even if collision between characters' bodies is avoided.
[0077] Additionally, as the character's bone speed increases, the collision prediction rate may decrease because the character's bones move faster. Therefore, by increasing the detection length, the device can recognize collision risks more quickly during collision risk detection. If the detection length remains short despite the increased character's bone speed, the device may not recognize the risk of collision until just before impact, even if the risk of collision is high. This may result in the device failing to apply collision avoidance actions, resulting in collisions between the characters' bodies.
[0078] In step S2209, the device can predict the possibility of collision through the test length. That is, the device can predict that there is a possibility of collision if the distance from a point of the character's bone measured in the same direction as the test vector to the surface of the character (e.g., the character's mesh) is shorter than the test length. At this time, one end of the test vector may be fixed on the character's bone for measuring the risk of collision, and the other end of the test vector may be spaced apart from the one end of the test vector in the test direction by the test length. The device can predict that there is a possibility of collision between the characters' bodies if the other end of the test vector comes into contact with the character's mesh in the frame.
[0079] In step S2211, the device may calculate an avoidance vector based on the probability of collision. If a collision is predicted to occur, the device may calculate an avoidance vector based on at least one of the character's surface and the direction of movement of the character's upper limbs. Here, the avoidance vector may be a directional vector, and the magnitude of the avoidance vector may be 1.
[0080] According to one embodiment, the device may calculate the normal vector of the collision surface derived from the collision detection result as the avoidance vector. According to another embodiment, the device may calculate the avoidance vector using the normal vector of the collision surface and a vector having the same direction as the movement direction of the upper or lower limb of the character. According to yet another embodiment, the device may calculate the avoidance vector using the normal vector of the collision surface, a vector having the same direction as the movement direction of the upper or lower limb of the character, and the normal vector of the center plane of the character.
[0081] As a result, the device can calculate an evasion offset based on the evasion vector and weight. The evasion offset can indicate a vector value for adjusting the position of the character's bones from the motion capture source data. Furthermore, the device can calculate an increment vector to be added to or subtracted from the evasion offset for each frame. Furthermore, the device can calculate the evasion offset by accumulating the calculated vector to the size of the evasion offset of the previous frame.
[0082] Thereafter, the device may apply an evasion offset to the character's bones. In one embodiment, the device may apply an evasion offset to a bone corresponding to the character's upper limb. The position of the character's upper limb may be determined by adding the evasion offset to the existing position of the character's upper limb corresponding to the motion capture source image.
[0083] The device can generate an image of a character based on the character's bones. That is, the device can generate an image of a character based on the character's bones with an evasion offset applied.
[0084] Specific embodiments and operations for generating a character's body and predicting a collision risk between the character's bodies based on the generated body may be as described below.
[0085]
[0086] FIG. 4 is a drawing illustrating one embodiment of a character body generated as a result of an interference avoidance motion between bodies of an animation character according to the present disclosure.
[0087] Referring to FIG. 4, the body and mesh of a character (400) generated based on a user's image can be generated as shown.
[0088] In order to check the risk of collision between the bodies of the character (400), the device can determine the position of the character's hand when the motion capture data is applied as is. However, a device using a conventional animation generation method can only obtain the transform value of the generated character's animation. That is, when a collision avoidance solution is directly applied to the bones of the generated character, the device obtains only the transform value after the collision avoidance solution is applied. Therefore, the device cannot obtain the position of the user's hand based on the original motion capture data.
[0089] Therefore, in order to obtain the position information of the user's hand based on the original motion capture data, the device can use a separate bone that directly reflects the motion capture data without being skinned to the character's mesh. According to one embodiment, the device can use the virtual bone function of the game engine to generate a separate bone (420) different from the actual bone (410) of the character (400). Specifically, the device can generate a separate bone (420) corresponding to the upper limb of the character (400) based on an image from the collarbone to the hand among the motion capture data. In addition, when the device detects a risk of interference between the body of the character (400), the device can use the separate bone (420) generated based on the streaming motion capture data for calculation. In addition, the device can apply an avoidance solution using the separate bone (420) and apply the result value of the avoidance solution application to the character (400).
[0090]
[0091] FIG. 5 is a drawing illustrating an example of an inspection start line and a target line set on the body of a character generated as a result of an interference avoidance motion between bodies of an animation character according to the present disclosure.
[0092] Referring to FIG. 5, the most common location where collisions occur due to differences in body proportions may be the lower limb (510) of the upper limb, from the elbow to the hand. Other body parts likely to collide with the lower limb (510) may include the head (521), torso (522), and lower limb (523). Accordingly, the device may set the bone corresponding to the character's lower limb (510) as the inspection start line. Furthermore, the bones corresponding to the head (5210), torso (522), and lower limb (523), which are body parts likely to collide with the lower limb (510), may be set as inspection target points and inspection target line segments.
[0093] A specific embodiment of setting a start point and a target point for collision risk inspection on the inspection start line and inspection target line of the character shown in Fig. 5 may be as described below.
[0094]
[0095] FIG. 6 is a drawing illustrating an example of a start point and a target point set on the body of a character generated as a result of an inter-body interference avoidance motion of an animation character according to the present disclosure.
[0096] The device can perform a collision risk check from the starting line of the character (600) toward the target line. Here, the device can set the closest point between the starting line and the target line as the starting point and the target point.
[0097] According to one embodiment, the device may set the point on the lower arm of the character (600) that is closest to the head of the character as a first starting point (611), and the head of the character as a first target point (621). In addition, the device may set the point on the lower arm of the character that is closest to the torso as a second starting point (612), and the point on the torso of the character that is closest to the second starting point (612) as a second target point (622). In addition, the device may set the point on the lower arm of the character that is closest to the lower body as a third starting point (613), and the point on the lower body of the character that is closest to the third starting point (613) as a third target point (623).
[0098] That is, the device can set the closest point between the starting line segment and the target line segment of the character (600) as the starting point and target point for collision risk detection. In addition, the device can set the direction from the starting point toward the target point as the detection direction for collision risk detection.
[0099] A specific embodiment of predicting the possibility of collision based on the starting point and target point set for the collision risk inspection illustrated in Fig. 6 may be as described below.
[0100]
[0101] FIG. 7 is a drawing for explaining a test length for predicting a collision possibility for an inter-body interference avoidance motion of an animation character according to the present disclosure.
[0102] Referring to FIG. 7, the device can predict the possibility of collision between the lower body of the character (2300) and the lower body of the character (2300). In this case, the device can set a third starting point (for example, the third starting point (613) of FIG. 6) on the main body of the character (2300) as the reference point (2310). However, the present invention is not limited thereto, and according to another embodiment, the device can predict the possibility of collision between the lower body of the character (2300) and the head or torso of the character (2300). In this case, the device can set a first starting point (for example, the first starting point (611) of FIG. 6 when predicting the possibility of collision with the head of the character) or a second starting point (for example, the second starting point (612) of FIG. 6 when predicting the possibility of collision with the torso of the character) on the main body of the character (2300) as the reference point.
[0103] The device can perform a collision risk check between characters' bodies based on a reference point (2310). Specifically, the device can set a check vector (2320). The check vector (2320) can extend in a check direction from the reference point (2310), and the check length (2321) can refer to the extended length of the check vector (2320).
[0104] At this time, one end (2320a) of the inspection vector (2320) may be fixed on the reference point (2310), and the other end (2320b) of the inspection vector (2320) may be spaced apart from one end (2320a) of the inspection vector (2320) by a inspection length (2321) in the inspection direction. If the other end (2320b) of the inspection vector (2320) comes into contact with the mesh of the character (2300) (e.g., the surface of the character (2300)), the device may predict that there is a possibility of collision. That is, if the distance from the reference point (2310) of the character (2300) measured in the inspection direction to the mesh of the character (2300) is shorter than the inspection length (2321), the device may predict that there is a possibility of collision.
[0105] When the speed of the bone of the character (2300) is slow or becomes slower, the collision prediction rate may increase. That is, when the speed of the bone of the character (2300) is slow or becomes slower, the position of the hand may move slightly for each frame. Therefore, since the inspection density increases, even if the inspection length (2321) is constant, the device can predict the possibility of collision when the other end (2320b) of the inspection vector (2320) comes into contact with the mesh of the character (2300) and perform an action for collision avoidance. That is, since the possibility of collision is predicted through the inspection vector (2320) before a collision occurs between the bodies of the characters (2300), even if the device performs an action for collision avoidance immediately after predicting the possibility of collision, the collision between the bodies of the characters (2300) can be avoided.
[0106] However, when the character's (2300) body speed is fast, it may be difficult to predict the possibility of collision, unlike when the speed is slow. Therefore, when the inspection length (2321) is constant, the collision prediction rate may be low.
[0107]
[0108] FIG. 8 is a drawing for explaining a test length for predicting a collision possibility for an inter-body interference avoidance motion of an animation character according to the present disclosure.
[0109] Referring to FIG. 8, when the speed of the bone of the character (2400) is fast or becomes faster, the collision prediction rate may decrease. That is, when the speed of the bone of the character (2400) is fast or becomes faster, the position of the bone may move significantly in each frame. Therefore, since the inspection density is low, when the inspection length (2421) is constant, when the other end (2420b) of the inspection vector (2420) contacts the mesh of the character (2400), a collision between the bodies of the character (2400) may have already occurred. Therefore, since the device is late in predicting the possibility of collision and performing an action to avoid collision, the collision between the bodies of the character (2400) cannot be avoided.
[0110] In this case, when the inspection length (2421) is maintained constant, the device may produce inconsistent inspection results (e.g., collision probability prediction results) depending on the speed of the character's (2400) body. Accordingly, the reliability of the character's (2400) body interference avoidance operation may be reduced. Accordingly, the device may perform an operation to correct the inspection length (2421) depending on the speed of the character's (2400) body.
[0111]
[0112] FIG. 9 is a diagram illustrating an example of a test length for predicting collision probability for an inter-body interference avoidance motion of an animation character according to the present disclosure.
[0113] Referring to FIG. 9, the inspection length can be adjusted according to the speed of the character's (2500) bone. For example, if the speed of the character's (2500) bone increases, the device can increase the inspection length (2521).
[0114] The test length (2521) may be short in the beginning when the bone speed of the character (2500) is slow. Thereafter, as the bone speed of the character (2500) increases, the test length (2521') may also increase. At this time, the test length (2521) may increase in proportion to the bone speed of the character (2500). Therefore, even if the bone speed of the character (2500) increases, the device can predict the possibility of collision more quickly through the test length (2521') and the test vector (2520). That is, since the device predicts the possibility of collision more quickly, the device can perform collision avoidance actions even when the distance between the bodies of the characters (2500) is greater than before. Therefore, even when the bone speed of the character (2500) is fast or increases, the collision prediction rate of the device can be maintained high.
[0115] In addition, when the speed of the bone of the character (2500) decreases, the device can reduce the test length (2521). That is, as the speed of the bone of the character (2500) decreases, the test length (2521) can also decrease. As the test length (2521) decreases, the device can predict the possibility of collision later and perform an action for collision avoidance. Accordingly, the device can prevent unnaturalness caused by predicting the possibility of collision between the bodies of the character (2500) in advance and applying an action for collision avoidance to the character (2500) in advance. That is, the position of the bone of the character (2500) can become similar to the position of the actual body of the user. However, the present invention is not limited thereto, and according to another embodiment, the device can maintain the test length (2521) constant when the speed of the bone of the character (2500) decreases.
[0116] By correcting the inspection length (2521) according to the speed of the character's (2500) body, the device can produce consistent inspection results regardless of the speed of the character's (2500) body. Accordingly, the accuracy of the collision prediction rate between the character's (2500) bodies can be improved.
[0117] And the operation of calculating the speed of the character (2500) can be performed as follows.
[0118]
[0119] FIG. 10 is a flowchart illustrating an embodiment of an operation for calculating the speed of a character's body according to the present disclosure.
[0120] Referring to FIG. 10, at step S2601, the device can calculate the bone movement distance per frame. That is, the device can calculate the distance the character's bone has moved between the previous frame and the next frame. The bone movement distance per frame may be the distance between the same point of the character's bone in each of the previous and next frames.
[0121] However, if the speed of a character's bones is calculated solely based on the distance traveled between two frames, the variable frame rate can become a problem. In real-time rendered video, the frame rate can fluctuate from moment to moment. For example, in a static scene with little character movement, the amount of data to be rendered is small, so a high frame rate can be achieved. However, in a dynamic scene with a lot of character movement, the amount to be rendered is large, so a low frame rate can be achieved.
[0122] Therefore, even if a character's bones move at a constant speed, different results can be obtained depending on the frame rate. That is, if a character's bones move at the same speed but the frame rate is different, the device may determine that the bones are moving at different speeds because the distances they travel per frame are different.
[0123] If the character's bone speed were calculated solely based on the bone's movement per frame, the time unit for speed would be 1 frame, making it impossible to achieve consistent speed across frame rates. Therefore, to achieve consistent speed regardless of frame rate, the time unit for speed must be converted to 1 second.
[0124] In steps S2603 and S2605, the device can convert the bone movement distance per frame into the bone movement distance per second. That is, the device can calculate the number of frames per second, and multiply the number of frames per second by the bone movement distance per frame to calculate the bone movement distance per second.
[0125] Specifically, to calculate frames per second, the device can calculate delta time. Delta time can refer to the time it takes to render one frame. The device can calculate frames per second by dividing 1 by delta time.
[0126] The device can convert the bone movement per frame into the bone movement per second by calculating the product of the generated frames per second and the bone movement distance per frame. By converting the bone movement per frame into the bone movement distance per second, the device can obtain consistent speed regardless of the frame rate. Therefore, the speed of a character's bones can be measured relatively accurately even in videos with rapidly varying frame rates. This can improve the accuracy of collision prediction between characters' bodies.
[0127]
[0128] FIG. 11 is a drawing showing two images of a character according to the present disclosure having the same frame speed and different frame rates.
[0129] Referring to FIG. 11, the speed of the lower body of the character (2700) in both images may be the same, and the frame rates may be different. That is, the frame rate of the left image may be 40 fps, the frame rate of the right image may be 20 fps, and both images may be images showing the change in distance of the lower body of the character (2700) for 0.1 second.
[0130] Although the speed of the lower limbs of the character (2700) in both images is the same, since the frame rates are different, the bone movement distance per frame may be different. That is, since the frame rate of the left image is twice that of the right image, the bone movement distance of the character (2720) per frame in the right image may be approximately twice that of the bone movement distance of the character (2710) per frame in the left image. If the bone speed of the character (2700) is calculated based only on the bone movement distance per frame, the time unit of the speed becomes 1 frame, and the device cannot obtain a consistent speed depending on the frame rate. Therefore, the device can convert the time unit of the speed into 1 second.
[0131] The device can convert the distance traveled by a bone per frame into the distance traveled by a bone per second. That is, the device can calculate the number of frames per second, and multiply the number of frames per second by the distance traveled by a bone per frame to calculate the distance traveled by a bone per second.
[0132] Specifically, since the frame rate in the left image is 4 frames / 0.1s, it can be 40 fps, and since the frame rate in the right image is 2 frames / 0.1s, it can be 20 fps. Since the distance moved per frame in the right image is approximately twice that in the left image, the distance moved per frame in the right image can be 2a cm / frame (where a is a constant greater than 0), and the distance moved per frame in the left image can be approximately a cm / frame. Therefore, as a result, the distance moved per second in the left image can be approximately 40a cm / s, and the distance moved per second in the right image can be approximately 40a cm / s. That is, the device can achieve substantially the same speed despite different frame rates. Therefore, a consistent speed can be achieved even if the frame rate changes in real time.
[0133]
[0134] The methods according to the present invention may be implemented in the form of program instructions that can be executed by various computer means and recorded on a computer-readable medium. The computer-readable medium may include program instructions, data files, data structures, etc., either singly or in combination. The program instructions recorded on the computer-readable medium may be those specifically designed and constructed for the present invention, or may be known and available to those skilled in the computer software art.
[0135] Examples of computer-readable media include hardware devices specifically configured to store and execute program instructions, such as ROM, RAM, and flash memory. Examples of program instructions include not only machine language codes generated by a compiler, but also high-level language codes that can be executed by a computer using an interpreter, etc. The hardware devices described above may be configured to operate with at least one software module to perform the operations of the present invention, and vice versa.
[0136] Although the present invention has been described with reference to the above embodiments, it will be understood by those skilled in the art that various modifications and changes can be made to the present invention without departing from the spirit and scope of the present invention as set forth in the claims below.
Claims
1. In a method for avoiding body interference of a character executed by at least one processor of a device, A step of creating a bone of a character corresponding to the user based on the user's image; A step of setting a reference point on the body of the character and setting an inspection length for performing a collision risk inspection between the characters' bodies based on the reference point; A step of correcting the inspection length according to the speed of the character's body; and An operating method comprising: a step of predicting a possibility of collision through the above inspection length; 2. In paragraph 1, The above test length is, An operating method characterized in that the length of a vector is applied from a point of the first bone of the character to a point of the second bone of the character, and the vector is defined as a test vector.
3. In paragraph 2, The step of correcting the inspection length according to the speed of the character above is: An operating method characterized in that when the speed of the character's bone increases, the inspection length is increased, and when the speed of the character's bone decreases, the inspection length is decreased.
4. In paragraph 2, The step of predicting the possibility of collision through the above inspection length is: If the distance from a point on the character's body measured in the same direction as the inspection vector to the surface of the character is shorter than the inspection length, A method of operation, characterized in that it predicts that there is a possibility of the above collision.
5. In paragraph 4, Further comprising a step of calculating an avoidance vector based on the above collision probability, The step of calculating the avoidance vector based on the above collision probability is: A method of operation, characterized in that it comprises a step of calculating the avoidance vector based on at least one of the surface of the character and the direction of movement of the upper limb of the character, when the possibility of the collision is predicted.
6. In paragraph 1, Further comprising a step of calculating the speed of the character's body, The step of calculating the speed of the above character is: A step of calculating the movement distance of the bone per frame; and An operating method characterized by comprising a step of converting the movement distance of the bone per frame into the movement distance of the bone per second.
7. In paragraph 6, The step of converting the movement distance of the bone per frame into the movement distance of the bone per second is: a step of calculating the number of frames per second; and An operating method characterized by further comprising a step of calculating a value obtained by multiplying the number of frames per second by the movement distance of the bone per frame.
8. In paragraph 7, The step of calculating the number of frames per second is: A step for calculating delta time, which is the time it takes to render one frame; and An operating method, characterized in that it further comprises a step of calculating a value obtained by dividing 1 by the delta time.
9. In a device of a system for executing a method of movement for avoiding interference between characters' bodies, a memory in which at least one program instruction is stored; and comprising a processor for performing at least one program instruction; At least one program command above, Generate a bone of a character corresponding to the user based on the user's image; Setting a reference point on the body of the above character and setting an inspection length for performing a collision risk inspection between the bodies of the above character based on the reference point; Correct the inspection length according to the speed of the character's body; and A device that is executed to predict the possibility of collision through the above inspection length.
10. In paragraph 9, The above test length is, A device characterized in that the length of a vector is applied from a point of the first bone of the character to a point of the second bone of the character, and the vector is defined as a test vector.
11. In paragraph 10, At least one program command above, In order to correct the above inspection length according to the speed of the character's body, A device characterized in that it is executed so that when the speed of the character's bone increases, the inspection length is increased, and when the speed of the character's bone decreases, the inspection length is decreased.
12. In paragraph 10, At least one program command above, In order to predict the possibility of collision through the above inspection length, If the distance from a point on the character's body measured in the same direction as the inspection vector to the surface of the character is shorter than the inspection length, A device characterized in that it predicts that there is a possibility of the above collision.
13. In paragraph 12, At least one program command above, It is executed to calculate an avoidance vector based on the above collision probability, In order to calculate the avoidance vector based on the above collision probability, A device characterized in that, when the possibility of collision is predicted, the device is executed to calculate the avoidance vector based on at least one of the surface of the character and the direction of movement of the upper limb of the character.
14. In paragraph 9, At least one program command above, It is executed to calculate the speed of the character above, In order to calculate the speed of the character above, Calculate the distance the bone moves per frame; and A device characterized in that it is executed to convert the movement distance of the bone per frame into the movement distance of the bone per second.
15. In paragraph 14, At least one program command above, In order to convert the movement distance of the bone per frame into the movement distance of the bone per second, Calculate the number of frames per second; and A device characterized in that it is executed to produce a value obtained by multiplying the number of frames per second and the movement distance of the bone per frame.
16. In paragraph 15, At least one program command above, When executed to produce the above frames per second, Calculate the delta time, which is the time it takes to render one frame; and A device characterized in that it is executed to produce a value obtained by dividing 1 by the delta time.
Citation Information
Patent Citations
Motion reconstruction, retargeting, trajectory tracking and estimation of articulated systems
JP2009521334A
Program, computer device and determination method
JP2018088102A
Method and apparatus for recognizing jesture or capturing motion
KR1020140125018A
Small Detachable LED LIghting
KR1020210158072A
Method for generating character animation through extracting a character from an image and device using thereof
KR102264803B1
