Proxy body generation method, device, equipment and storage medium

By generating proxy polyhedrons to reduce the complexity of rigid parts in the 3D model, it solves the problem of high computational complexity in the motion redirection process in 3D animation and improves computational efficiency.

CN113129412BActive Publication Date: 2024-08-23BEIJING IQIYI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110391101.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-12
Publication Date
2024-08-23
Estimated Expiration
2041-04-12

AI Technical Summary

Technical Problem

In 3D animation, during the motion reorientation process, the complexity of the 3D model leads to high computational complexity, making it difficult to improve computational efficiency.

Method used

By obtaining the key points of the same rigid part from the three-dimensional model, a proxy polyhedron is generated to form a proxy body, thereby reducing the complexity of the rigid part and simplifying the calculation process.

Benefits of technology

The computational complexity is greatly reduced, the calculation efficiency of the motion redirection process is improved, the calculation process is simplified, and the number of triangles in the three-dimensional model is reduced, thus reducing the calculation load.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113129412B
    Figure CN113129412B
Patent Text Reader

Abstract

The present application relates to a proxy body generation method, device, equipment and storage medium, the method comprising: obtaining no more than a set number of key points of the same rigid part from a three-dimensional model, wherein the key points at least include a first endpoint and a second endpoint that can define the rigid part; generating a proxy polyhedron corresponding to each of the key points, wherein the connecting line segment between the first endpoint and the second endpoint serves as the central axis running through each of the proxy polyhedrons; and using the proxy polyhedron to form a proxy body of the rigid part. The present application reduces the complexity of the rigid part in the three-dimensional model to improve the computational efficiency of the motion redirection process of the three-dimensional model and simplify the computational process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of virtual reality technology, and in particular to a proxy body generation method, device, equipment and storage medium. Background Art

[0002] Motion retargeting is one of the important methods for motion editing and synthesis in 3D animation. Motion retargeting refers to relocating motion from one character to another to achieve the purpose of sharing motion among multiple characters. For example, the arm bending action of character A is redirected to character B, so that character B performs the same arm bending action as character A.

[0003] In 3D animation, the 3D models used to represent characters are very complex, usually including hundreds of thousands or even millions of meshes.

[0004] During a redirection process, it is necessary to perform skeletal analysis on character A and character B, match the joints of character A and character B, and then transform the motion data of character A to adapt from character A to character B. This process involves complex mathematical operations, and the implementation process needs to rely on engines such as Unity / Blender. Summary of the invention

[0005] The present application provides a proxy body generation method, device, equipment and storage medium for reducing the complexity of rigid parts in a three-dimensional model, so as to improve the computational efficiency of the motion redirection process of the three-dimensional model and simplify the computational process.

[0006] In a first aspect, the present application provides a proxy body generation method, comprising:

[0007] Acquire, from the three-dimensional model, key points of no more than a set number of key points of the same rigid part, wherein the key points at least include a first endpoint and a second endpoint capable of defining the rigid part;

[0008] Generate a proxy polyhedron corresponding to each of the key points, wherein a line segment connecting the first endpoint and the second endpoint serves as a central axis running through each of the proxy polyhedrons;

[0009] The proxy polyhedron is used to form a proxy body of the rigid part.

[0010] Optionally, the proxy polyhedron includes a first bottom surface and a second bottom surface, the first bottom surface and the second bottom surface are parallel, and vertices of the first bottom surface are connected to vertices of the second bottom surface correspondingly;

[0011] A line segment connecting the first endpoint and the second endpoint passes through the center of the bottom surface of each of the proxy polyhedrons.

[0012] Optionally, generating a proxy polyhedron corresponding to each of the key points includes:

[0013] The following processing is performed on each of the key points:

[0014] Determine a first bottom surface center point and a second bottom surface center point of the proxy polyhedron corresponding to the key point; wherein the first bottom surface center point and the second bottom surface center point are both located on the connecting line segment;

[0015] The first bottom surface is constructed based on the center point of the first bottom surface of the proxy polyhedron, and the second bottom surface is constructed based on the center point of the second bottom surface of the proxy polyhedron, wherein the plane where the first bottom surface is located is perpendicular to the connecting line segment, and the plane where the second bottom surface is located is perpendicular to the connecting line segment, and the first bottom surface and the second bottom surface adopt the same polygonal figure;

[0016] The vertices of the first bottom surface and the second bottom surface are connected correspondingly to obtain the proxy polyhedron including a plurality of triangular faces.

[0017] Optionally, the step of constructing the first bottom surface based on the center point of the first bottom surface of the proxy polyhedron as a reference, and constructing the second bottom surface based on the center point of the second bottom surface of the proxy polyhedron as a reference includes:

[0018] A first circle is constructed with the center point of the first bottom surface as the center of the circle; the plane where the first circle is located is perpendicular to the connecting line segment;

[0019] A second circle is constructed with the center point of the second bottom surface as the center of the circle; the plane where the second circle is located is perpendicular to the connecting line segment, and the perimeters of the first circle and the second circle are the same;

[0020] Obtain a first inscribed polygon of the first circle, and use the plane defined by the first inscribed polygon as the first bottom surface, and obtain a second inscribed polygon of the second circle, and use the plane defined by the second inscribed polygon as the second bottom surface; the first inscribed polygon and the second inscribed polygon have the same shape.

[0021] Optionally, a side of the second inscribed polygon, on the plane where the first inscribed polygon is located, intersects with a side of the first inscribed polygon, and the included angle is a set angle value;

[0022] The set angle value is greater than or equal to zero and less than or equal to a threshold value, and the threshold value is a quotient obtained by dividing 360 degrees by the number of sides of the first inscribed polygon.

[0023] Optionally, before constructing a first circle with the center point of the first bottom surface as the center of the circle, the method further includes:

[0024] The perimeter of the cross section of the rigid part at the key point position is obtained from the three-dimensional model as the perimeter of the circumscribed circle of the first bottom surface.

[0025] Optionally, the key point also includes at least one intermediate point between the first endpoint and the second endpoint;

[0026] The step of determining the first bottom surface center point and the second bottom surface center point of the proxy polyhedron corresponding to the key point comprises:

[0027] If the key point is the first endpoint or the second endpoint, the key point is used as the first bottom center point of the proxy polyhedron, and the point on the connecting line segment whose distance from the first bottom center point is a first preset value is used as the second bottom center point of the proxy polyhedron;

[0028] If the key point is the middle point, two points on the connecting line segment whose distances from the middle point are second preset values ​​are used as the first bottom surface center point and the second bottom surface center point of the proxy polyhedron.

[0029] Optionally, the step of correspondingly connecting the vertices of the first bottom surface and the second bottom surface to obtain the proxy polyhedron including a plurality of triangular faces comprises:

[0030] The vertices of the corresponding sides in the first bottom surface and the second bottom surface are connected respectively, and the vertices of the corresponding sides are connected diagonally to obtain the proxy polyhedron including a plurality of triangular faces.

[0031] In a second aspect, the present application provides a proxy body generation device, comprising:

[0032] An acquisition module, used for acquiring key points of no more than a set number of key points of the same rigid part from the three-dimensional model, wherein the key points at least include a first endpoint and a second endpoint that can define the rigid part;

[0033] A generating module, configured to generate a proxy polyhedron corresponding to each of the key points, wherein a connecting line segment between the first endpoint and the second endpoint serves as a central axis running through each of the proxy polyhedrons;

[0034] A construction module is used to use the proxy polyhedron to construct a proxy body of the rigid part.

[0035] In a third aspect, the present application provides an electronic device comprising: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; the memory is used to store computer programs; the processor is used to execute the programs stored in the memory to implement the agent generation method described in the first aspect.

[0036] In a fourth aspect, the present application provides a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the proxy body generation method described in the first aspect.

[0037] The above-mentioned technical scheme provided by the embodiment of the present application has the following advantages over the prior art: the method provided by the embodiment of the present application, by acquiring no more than a set number of key points belonging to the same rigid part in the three-dimensional model, generates proxy polyhedrons corresponding to the key points, and constructs a proxy body of the rigid part through the proxy polyhedrons corresponding to each key point. Compared with the model of the rigid part in the three-dimensional model, the complexity of the proxy body is greatly reduced, so that in the process of motion redirection, the proxy body can be used to replace the model of the rigid part for calculation, which greatly reduces the calculation complexity, simplifies the calculation process, and improves the calculation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0039] Figure 1 This is a schematic diagram of the application system architecture of the proxy generation method in the embodiment of the present application;

[0040] Figure 2 A schematic diagram of a method flow chart for generating a proxy body in an embodiment of the present application;

[0041] Figure 3 A schematic diagram of a proxy polyhedron generation process for key points in an embodiment of the present application;

[0042] Figure 4 A schematic diagram of the process of constructing the first bottom surface and the second bottom surface in an embodiment of the present application;

[0043] Figure 5 Schematic diagram of the drawing process of the octagon corresponding to point a in the embodiment of the present application;

[0044] Figure 6 This is a schematic diagram of the drawing process of two octagons corresponding to points a and a' in the embodiment of the present application;

[0045] Figure 7 A schematic diagram of a proxy polyhedron in an embodiment of the present application;

[0046] Fig. 8A Schematic diagram of the method for generating proxy bodies of the limbs of a character model using the proxy generation method in the embodiment of the present application Figure 1 ;

[0047] Figure 8B Schematic diagram of the method for generating proxy bodies of the limbs of a character model using the proxy generation method in the embodiment of the present application Figure 2 ;

[0048] Fig. 9 This is a schematic diagram of the structure of the proxy body generation device in the embodiment of the present application;

[0049] Fig.10 Schematic diagram of the structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0051] The term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0052] The inventors have found through analysis of the prior art that virtual 3D models are usually complex, generally including hundreds of thousands or even millions of grids. During the motion redirection process, each grid of the virtual 3D model needs to participate in the calculation process, which requires a huge amount of calculation. The proxy body of the virtual 3D model includes dozens to thousands of grids depending on the different proxy tasks. It can be seen that the amount of calculation will be greatly reduced from hundreds of thousands or millions to tens or thousands.

[0053] Different proxy tasks require different proxy bodies. For simple proxy tasks, the proxy body required only includes a small number of mesh faces, while complex tasks may require a larger number of mesh faces.

[0054] In addition, different proxy bodies are used for different parts of the model. For example, the non-rigid parts of the character model, such as the torso, are different from the rigid parts, such as the upper arms and forearms, and the limbs. Rigid parts refer to parts that will not bend or deform significantly during movement.

[0055] In order to reduce the complexity of rigid parts in a three-dimensional model, to improve the computational efficiency of the motion redirection process of the three-dimensional model, and to simplify the computational process, in an embodiment of the present application, a proxy body generation method is proposed mainly for rigid parts.

[0056] The proxy body generation method proposed in this application can be applied to Figure 1 In the system shown, the system includes a terminal 10 and a server 11. The server 11 is connected to the terminal 10 via a network and can be used to provide services (such as game services, application services, etc.) for the terminal or a client installed on the terminal. A database can be set on the server or independently of the server to provide data storage services for the server 11. The above-mentioned network includes but is not limited to: a wide area network, a metropolitan area network or a local area network. The terminal 10 is not limited to a PC (Personal Computer), a mobile phone, a tablet computer, etc.

[0057] The proxy generation method of the embodiment of the present application can be executed by the server 11, or by the terminal 10, or by both the server 11 and the terminal 10. The terminal 10 can execute the proxy generation method of the embodiment of the present application, or the client installed thereon.

[0058] The embodiments of the present application can be applied to a variety of scenarios, for example, in a game scenario, a virtual environment is created in a game application, a virtual three-dimensional model and / or a proxy model is displayed in the virtual environment, and the generated proxy model can be used for motion redirection in the game scenario. Of course, this does not mean that the proxy model can only be used in the motion redirection process, and it can also be used in other calculation processes instead of the three-dimensional model as needed.

[0059] In the present application embodiment, Figure 2 As shown in the figure, the specific process of proxy body generation is as follows:

[0060] Step 201 : acquiring, from a three-dimensional model, key points not exceeding a set number of key points of a same rigid part, wherein the key points at least include a first endpoint and a second endpoint capable of defining the rigid part.

[0061] The three-dimensional model can be a three-dimensional model of a virtual person or a virtual animal in a virtual reality scene, or a three-dimensional model of other objects. That is to say, the embodiment does not limit the category of the specific object corresponding to the three-dimensional model, as long as the object includes rigid parts, the proxy body can be generated by the method provided in the embodiment of the present application.

[0062] The set number can be configured by the technician according to the rigid parts, and different rigid parts can correspond to different set numbers, for example, for the forearm, no more than 5 key points are obtained, for the upper arm, no more than 6 key points are obtained, etc. Of course, the same set number can also be set for each rigid part, for example, all are set to obtain no more than 6 key points.

[0063] In a specific embodiment, the limited number of key points of a rigid part include, in addition to the first endpoint and the second endpoint, at least one intermediate point between the first endpoint and the second endpoint. The intermediate point refers to a point located between the first endpoint and the second endpoint.

[0064] The more intermediate points there are, the better the proxy effect on the rigid parts will be, but the amount of calculation will also increase accordingly. Therefore, the proxy effect and the amount of calculation can be balanced by limiting the number of intermediate points.

[0065] Specifically, the middle points may be uniformly selected on the connecting line segment between the first endpoint and the second endpoint. For example, N points evenly spaced on the connecting line segment may be selected as the middle points.

[0066] The first endpoint and the second endpoint can define the rigid part. That is, when the rigid part is defined by two joint points, the first endpoint and the second endpoint are the first joint point and the end joint point of the rigid part; when the rigid part is defined by one joint point and one end point, the first endpoint and the second endpoint are one joint point and one end point corresponding to the rigid part.

[0067] For example, when the rigid part is an upper arm in the upper limb part of the human body, the first end point and the second end point of the upper arm can be defined as the shoulder joint point and the elbow joint point defining the upper arm. Any number of intermediate points can be selected from the shoulder joint point to the elbow joint point, and the number of intermediate points can be set arbitrarily as long as it does not exceed the set upper limit value.

[0068] It should be noted that when only the first endpoint and the second endpoint are included in the key points, the rigid part can be represented. A limited number of intermediate points are included here to better represent the rigid part, but they are not required. It should be understood that the case of including a limited number of intermediate points can improve the accuracy of the proxy body in expressing the rigid part and the accuracy of using the proxy body for motion redirection, compared to the case of only including the first endpoint and the second endpoint. It is a more preferred implementation method, but not a necessary implementation method.

[0069] Step 202 : Generate a proxy polyhedron corresponding to each key point, wherein a connecting line segment between the first endpoint and the second endpoint serves as a central axis running through each proxy polyhedron.

[0070] In a specific embodiment, the proxy polyhedron includes a first bottom surface and a second bottom surface, wherein the first bottom surface and the second bottom surface respectively include a plurality of vertices, the first bottom surface and the second bottom surface are parallel, and the vertices of the first bottom surface are connected to the vertices of the second bottom surface accordingly.

[0071] The connecting line segment between the first end point and the second end point passes through the center of the bottom surface of each proxy polyhedron. In other words, the connecting line segment between the first end point and the second end point is used as the central axis, and each proxy polyhedron is connected in series on the central axis.

[0072] By setting the proxy polyhedron to include a first bottom surface and a second bottom surface, and the first bottom surface and the second bottom surface are connected in correspondence, the generation process of the proxy polyhedron can be simplified compared with proxy polyhedrons of other shapes. And because the movement of the rigid part is mostly related to the parameters of the side of the rigid limb, and has little to do with the cross-sectional parameters perpendicular to the rigid limb, in the structure of the proxy polyhedron, the grid formed by the corresponding connection of each vertex and used to express the side of the rigid limb can meet the calculation in the process of motion redirection, providing a guarantee for the accuracy of the motion redirection process.

[0073] Step 203: Use a proxy polyhedron to construct a proxy body of the rigid part.

[0074] The method provided in the embodiment of the present application obtains no more than a set number of key points belonging to the same rigid part in the three-dimensional model, generates proxy polyhedrons corresponding to the key points, and constructs a proxy body of the rigid part through the proxy polyhedrons corresponding to the key points. Compared with the model of the rigid part in the three-dimensional model, the complexity of the proxy body is greatly reduced, so that in the process of motion redirection, the proxy body can be used to replace the model of the rigid part for calculation, which greatly reduces the calculation complexity, simplifies the calculation process, and improves the calculation efficiency.

[0075] In a specific embodiment, taking any key point as an example, the specific process of generating the proxy polyhedron of the key point is as follows: Figure 3 As shown, it mainly includes:

[0076] Step 301, determining a first bottom surface center point and a second bottom surface center point of a proxy polyhedron corresponding to the key point; wherein the first bottom surface center point and the second bottom surface center point are both located on a connecting line segment, and the connecting line segment is formed by connecting a first endpoint and a second endpoint;

[0077] Step 302, using the center point of the first bottom surface of the proxy polyhedron as a reference, constructing the first bottom surface, using the center point of the second bottom surface of the proxy polyhedron as a reference, constructing the second bottom surface, the plane where the first bottom surface is located is perpendicular to the connecting line segment, the plane where the second bottom surface is located is perpendicular to the connecting line segment, and the first bottom surface and the second bottom surface use the same polygonal figure;

[0078] Step 303: Connect the vertices of the first bottom surface and the second bottom surface correspondingly to obtain a proxy polyhedron including a plurality of triangular faces.

[0079] Specifically, the vertices of the corresponding sides in the first bottom surface and the second bottom surface are connected respectively, and the vertices of the corresponding sides are connected diagonally to obtain a proxy polyhedron including a plurality of triangular faces.

[0080] For example, the first bottom surface and the second bottom surface are the same pentagon. After the second bottom surface is orthographically projected on the plane where the first bottom surface is located, there are overlapping edges between the first bottom surface and the second bottom surface, which serve as corresponding edges of the first bottom surface and the second bottom surface. It should be noted that only a pentagon is used as an example here, and the first bottom surface and the second bottom surface can be any polygon with more than 3 sides.

[0081] Among them, the more edges the first bottom surface and the second bottom surface have, the better the proxy effect on the rigid parts, but the amount of calculation will also increase accordingly. The better the effect of motion redirection using the proxy body, the more edges can be set, and a balance can be achieved between the proxy effect and the amount of calculation to meet the needs.

[0082] Among them, the distance value between the center point of the first bottom surface and the center point of the second bottom surface can be set as needed. For example, the distance value between the center point of the first bottom surface and the center point of the second bottom surface satisfies that after the two bottom surface vertices are connected correspondingly, the obtained triangular faces are approximately equilateral triangles.

[0083] In the embodiment of the present application, the specific process of constructing the first bottom surface and the second bottom surface is not limited, and any method can be used for construction, as long as the first bottom surface and the second bottom surface obtained by construction meet the restriction of the same polygon. For ease of understanding, a specific construction method is given here, but it should be noted that this does not mean that the following method must be used for construction, and the embodiment of the present application does not limit the specific construction method.

[0084] Specifically, the specific process of constructing the first bottom surface and the second bottom surface is as follows: Figure 4 As shown, it mainly includes:

[0085] Step 401, constructing a first circle with the center point of the first bottom surface as the center of the circle; the plane where the first circle is located is perpendicular to a connecting line segment, and the connecting line segment is formed by connecting the first endpoint and the second endpoint;

[0086] Step 402, constructing a second circle with the center point of the second bottom surface as the center; the plane where the second circle is located is perpendicular to the connecting line segment, and the perimeters of the first circle and the second circle are the same;

[0087] Step 403, obtain the first inscribed polygon of the first circle, and use the plane defined by the first inscribed polygon as the first bottom surface, and obtain the second inscribed polygon of the second circle, and use the plane defined by the second inscribed polygon as the second bottom surface; the first inscribed polygon and the second inscribed polygon have the same shape.

[0088] In order to ensure the diversity of the normal directions of the triangular faces in the generated proxy polyhedron, the corresponding sides of the first bottom face and the second bottom face are not parallel, but at a certain angle, so that the normal directions of the triangular faces obtained after the corresponding vertices are connected are different, so as to better express the movement in various directions in motion redirection. When the angle is zero, the vertices of the corresponding sides of the two bottom faces are connected to form a rectangle, and two triangles are formed after the vertices of a group of corresponding sides of the two bottom faces are connected diagonally. The two triangles are on the same plane and have the same normal direction. When the angle is not zero, the two triangles formed after the vertices of a group of corresponding sides of the two bottom faces are connected diagonally are not on the same plane and have different normal directions. This makes the triangular faces extracted from the formed proxy body present diversity when redirecting, which can better express the redirected action.

[0089] Specifically, an edge of the second inscribed polygon intersects with an edge of the first inscribed polygon on the direct projection line segment of the plane where the first inscribed polygon is located, and the included angle is a set angle value; the set angle value is greater than zero and less than or equal to a threshold value, and the threshold value is the quotient of 360 degrees divided by the number of sides of the first inscribed polygon.

[0090] For example, assuming that both the first bottom surface and the second bottom surface are hexagons, the orthographic projection of the second bottom surface on the plane where the first bottom surface is located, after the orthographic projection, an edge of the second bottom surface intersects with an edge of the first bottom surface, and the included angle is greater than 0 and less than or equal to 60 degrees.

[0091] Before constructing a proxy polyhedron for a key point, the perimeter of the cross section of the rigid part at the key point is obtained from the three-dimensional model. In the process of constructing the proxy polyhedron for the key point, when constructing the first circle and the second circle respectively based on the first bottom surface center point and the second bottom surface center point corresponding to the key point, the perimeter is used as the perimeter of each of the first circle and the second circle, so that the constructed proxy polyhedron can reflect the thickness of the rigid limb, thereby providing further guarantee for the calculation accuracy in the motion redirection process.

[0092] In a specific embodiment, for the above step 301, depending on the type of the key point, the method of determining the first bottom surface center point and the second bottom surface center point of the proxy polyhedron corresponding to the key point is not exactly the same. The following mainly describes the process of determining the first bottom surface center point and the second bottom surface center point based on whether the key point type is an endpoint or an intermediate point.

[0093] Case 1: If the key point is the first endpoint or the second endpoint, the key point is used as the first bottom center point of the proxy polyhedron, and the point on the connecting line segment whose distance from the first bottom center point is a first preset value is used as the second bottom center point of the proxy polyhedron. The connecting line segment is obtained by connecting the first endpoint and the second endpoint.

[0094] Case 2: if the key point is a middle point, two points on the connecting line segment whose distance from the middle point is a second preset value are used as the first bottom surface center point and the second bottom surface center point of the proxy polyhedron.

[0095] For example, assuming that you need to obtain the proxy body of the left forearm, first obtain the coordinates of the left wrist joint and the left elbow joint that can define the left forearm, define the left wrist joint as point a, and define the left elbow joint as point b, and according to the set rules, obtain any multiple intermediate points c on the ab line and put them into set C, so that the key points a, b and c are obtained.

[0096] The circumference of the left forearm at point a is measured and expressed as Ca. According to the circumference, the radius Ra of the two bottom surfaces of the proxy polyhedron corresponding to the key point a is obtained, so that the circumference of the circumscribed circle of the bottom surface drawn according to the radius is Ca.

[0097] The circumference of the left forearm at point b is measured and expressed as Cb. According to the circumference, the radius Rb of the two bottom surfaces of the proxy polyhedron corresponding to the key point b is obtained, so that the circumference of the circumscribed circle of the bottom surface drawn according to the radius is Cb.

[0098] For each middle point c in the set C, measure the circumference of the left forearm at point c, denoted as Cc, and obtain the radius Rc of the two bases of the proxy polyhedron corresponding to the key point c based on the circumference, so that the circumference of the circumscribed circle of the base drawn according to the radius is Cc.

[0099] With point a as the center, draw a circle on the plane perpendicular to the line ab with Ra as the radius. Figure 5 The circle shown in the figure is drawn, and the inscribed n-gon of the circle is drawn. The figure takes an octagon as an example. Determine point a' on the line ab, which is d away from point a. With point a' as the center, draw the same circle on the plane perpendicular to the line ab with Ra as the radius, and draw the inscribed octagon of the circle, so as to obtain two parallel octagons, as shown in Figure 6 As shown, connect the corresponding vertices of the two octagons.

[0100] When the corresponding sides of the two octagons are parallel, the octagons obtained with point a' as the center are rotated by h degrees, where 360 / 8≥h>0. After the rotation, the corresponding vertices of the two octagons are connected to each other, as shown in Figure 7As shown by the solid line in the middle, the two vertices corresponding to each side of the two octagons are connected diagonally, as shown in Figure 7 As shown by the dotted line in the middle, 16 triangular faces are formed, and the proxy polyhedron enclosed by the 16 triangular faces is used as the proxy polyhedron of the key point a.

[0101] Similarly, similar processing is performed on point b, the only difference is that point b' is determined in the opposite direction, that is, point b' will not exceed the connecting line segment of ab.

[0102] For any point c in the set C, with point c as the center, find two points on the line ab that are d / 2 away from point c. Use these two points as the center of the circle and follow the same processing method as point a to obtain the proxy polyhedron of point c.

[0103] Assuming that C includes only one point c, the obtained proxy body of the left forearm includes 3*8*2=48 triangular faces in total. Usually, the left forearm in a three-dimensional model is composed of more than four thousand triangular faces. It can be seen that the proxy body obtained through the embodiment of the present application greatly reduces the number of triangular faces.

[0104] In a specific embodiment, by adopting the proxy body generation method provided in the embodiment of the present application, the limbs of the character model are processed to obtain the following Fig. 8A and Figure 8B The proxy body model shown in the figure, wherein the left upper arm, left lower arm, right upper arm, right lower arm, left thigh, left calf, right thigh and right calf are respectively represented by three proxy polyhedrons, and the three proxy polyhedrons include two endpoints and one midpoint proxy polyhedron.

[0105] In the embodiment of the present application, for rigid parts, by generating proxy polyhedrons of key points, the complexity of the proxy body is greatly reduced, especially compared with the capsule proxy body. In addition, in a preferred embodiment, the normal directions of the triangular faces of the proxy polyhedron are different, so that the triangular faces of the proxy body have diversity and can be better applied to the calculation process of motion redirection.

[0106] Since the proxy body generated by the embodiment of the present application greatly reduces the number of triangles, it is possible to use simple mathematical operations for redirection, so that subsequent motion redirection does not need to rely on engines such as Unity / Blender.

[0107] Based on the same concept, an agent generation device is provided in the embodiment of the present application. The specific implementation of the device can be found in the description of the method embodiment part, and the repeated parts will not be repeated. Fig. 9 As shown, the device mainly includes:

[0108] An acquisition module 901 is used to acquire, from a three-dimensional model, key points of no more than a set number of key points of the same rigid part, wherein the key points at least include a first endpoint and a second endpoint that can define the rigid part;

[0109] A generating module 902 is used to generate a proxy polyhedron corresponding to each of the key points, wherein a connecting line segment between the first end point and the second end point serves as a central axis running through each of the proxy polyhedrons;

[0110] The construction module 903 is used to use the proxy polyhedron to construct the proxy body of the rigid part.

[0111] Based on the same concept, an electronic device is also provided in the embodiment of the present application, such as Fig.10 As shown, the electronic device mainly includes: a processor 1001, a memory 1002 and a communication bus 1003, wherein the processor 1001 and the memory 1002 communicate with each other through the communication bus 1003. The memory 1002 stores a program that can be executed by the processor 1001, and the processor 1001 executes the program stored in the memory 1002 to implement the following steps:

[0112] Acquire, from the three-dimensional model, key points of no more than a set number of key points of the same rigid part, wherein the key points at least include a first endpoint and a second endpoint capable of defining the rigid part;

[0113] Generate a proxy polyhedron corresponding to each of the key points, wherein a line segment connecting the first endpoint and the second endpoint serves as a central axis running through each of the proxy polyhedrons;

[0114] The proxy polyhedron is used to form a proxy body of the rigid part.

[0115] The communication bus 1003 mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus 1003 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.10 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0116] The memory 1002 may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Alternatively, the memory may also be at least one storage device located away from the processor 1001.

[0117] The above-mentioned processor 1001 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc., and can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

[0118] In another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed on a computer, the computer executes the proxy body generation method described in the above embodiment.

[0119] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instruction is loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instruction can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instruction is transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, a data center, etc. that contains one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape, etc.), an optical medium (e.g., a DVD) or a semiconductor medium (e.g., a solid-state hard disk), etc.

[0120] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0121] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A proxy body generation method, characterized in that: include: Acquire, from the three-dimensional model, key points of no more than a set number of key points of the same rigid part, wherein the key points at least include a first endpoint and a second endpoint capable of defining the rigid part; Generate a proxy polyhedron corresponding to each of the key points, wherein the proxy polyhedron includes a first bottom surface and a second bottom surface, the first bottom surface and the second bottom surface are parallel, the vertices of the first bottom surface are connected to the vertices of the second bottom surface, and the connecting line segment of the first end point and the second end point serves as a central axis passing through the center of the bottom surface of each of the proxy polyhedrons; The proxy polyhedron is used to form a proxy body of the rigid part.

2. The proxy body generation method according to claim 1, characterized in that: The generating of the proxy polyhedron corresponding to each of the key points comprises: The following processing is performed on each of the key points: Determine a first bottom surface center point and a second bottom surface center point of the proxy polyhedron corresponding to the key point; wherein the first bottom surface center point and the second bottom surface center point are both located on the connecting line segment; The first bottom surface is constructed based on the center point of the first bottom surface of the proxy polyhedron, and the second bottom surface is constructed based on the center point of the second bottom surface of the proxy polyhedron, wherein the plane where the first bottom surface is located is perpendicular to the connecting line segment, and the plane where the second bottom surface is located is perpendicular to the connecting line segment, and the first bottom surface and the second bottom surface adopt the same polygonal figure; The vertices of the first bottom surface and the second bottom surface are connected correspondingly to obtain the proxy polyhedron including a plurality of triangular faces.

3. The proxy body generation method according to claim 2, characterized in that: The method of constructing the first bottom surface by taking the center point of the first bottom surface of the proxy polyhedron as a reference and constructing the second bottom surface by taking the center point of the second bottom surface of the proxy polyhedron as a reference comprises: A first circle is constructed with the center point of the first bottom surface as the center of the circle; the plane where the first circle is located is perpendicular to the connecting line segment; A second circle is constructed with the center point of the second bottom surface as the center of the circle; the plane where the second circle is located is perpendicular to the connecting line segment, and the perimeters of the first circle and the second circle are the same; Obtain a first inscribed polygon of the first circle, and use the plane defined by the first inscribed polygon as the first bottom surface, and obtain a second inscribed polygon of the second circle, and use the plane defined by the second inscribed polygon as the second bottom surface; the first inscribed polygon and the second inscribed polygon have the same shape.

4. The proxy body generation method according to claim 3, characterized in that: The orthographic projection line segment of one side of the second inscribed polygon on the plane where the first inscribed polygon is located intersects with one side of the first inscribed polygon, and the included angle is a set angle value; The set angle value is greater than zero and less than or equal to a threshold value, and the threshold value is a quotient obtained by dividing 360 degrees by the number of sides of the first inscribed polygon.

5. The proxy body generation method according to claim 3, characterized in that: Before constructing a first circle with the center point of the first bottom surface as the center of the circle, the method further includes: The perimeter of the cross section of the rigid part at the key point position is obtained from the three-dimensional model as the perimeter of the circumscribed circle of the first bottom surface.

6. The proxy body generation method according to any one of claims 2 to 5, characterized in that: The key points also include at least one intermediate point between the first endpoint and the second endpoint; The step of determining the first bottom surface center point and the second bottom surface center point of the proxy polyhedron corresponding to the key point comprises: If the key point is the first endpoint or the second endpoint, the key point is used as the first bottom center point of the proxy polyhedron, and the point on the connecting line segment whose distance from the first bottom center point is a first preset value is used as the second bottom center point of the proxy polyhedron; If the key point is the middle point, two points on the connecting line segment whose distances from the middle point are second preset values ​​are used as the first bottom surface center point and the second bottom surface center point of the proxy polyhedron.

7. The proxy body generation method according to any one of claims 2 to 5, characterized in that: The step of correspondingly connecting the vertices of the first bottom surface and the second bottom surface to obtain the proxy polyhedron including a plurality of triangular faces comprises: The vertices of the corresponding sides in the first bottom surface and the second bottom surface are connected respectively, and the vertices of the corresponding sides are connected diagonally to obtain the proxy polyhedron including a plurality of triangular faces.

8. A proxy body generation device, characterized in that: include: An acquisition module, used for acquiring key points of no more than a set number of key points of the same rigid part from the three-dimensional model, wherein the key points at least include a first endpoint and a second endpoint that can define the rigid part; A generating module, configured to generate a proxy polyhedron corresponding to each of the key points, wherein the proxy polyhedron comprises a first bottom surface and a second bottom surface, the first bottom surface and the second bottom surface are parallel, the vertices of the first bottom surface are connected to the vertices of the second bottom surface, and the connecting line segment between the first end point and the second end point serves as a central axis passing through the center of the bottom surface of each of the proxy polyhedrons; A construction module is used to use the proxy polyhedron to construct a proxy body of the rigid part.

9. An electronic device, comprising: A processor, a memory and a communication bus, wherein the processor and the memory communicate with each other via the communication bus; the memory is used to store computer programs; the processor is used to execute the programs stored in the memory to implement the agent generation method described in any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the proxy body generation method according to any one of claims 1 to 7 is implemented.