A three-dimensional model construction method, device, system and storage medium

By constructing and replacing the agent body of the three-dimensional model, the problem of movements that are not in line with physical principles caused by the inconsistent figure of the actor and the model is solved, and the quality and computing efficiency of animation production and special effects are improved.

CN112785690BActive Publication Date: 2025-01-17BEIJING IQIYI TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110121089.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-28
Publication Date
2025-01-17
Estimated Expiration
2041-01-28

AI Technical Summary

Technical Problem

During the movement migration process, the existing three-dimensional model does not match the body shape of the actor and the model, resulting in the movements not conforming to physical principles, such as the problem of arms extending into the body, which affects the quality of animation production and movie special effects.

Method used

By obtaining the limb mesh information of the three-dimensional model of the human body, determining the three-dimensional information of the joint nodes, building the agent body and replacing the original model, simplifying the model, and thus improving the efficiency of motion redirection, collision calculation and mold penetration repair.

Benefits of technology

The simplified model improves the accuracy and computing efficiency of the motion capture process, avoids calculation costs caused by the complexity of the original model, and improves the quality of animation production and special effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112785690B_ABST
    Figure CN112785690B_ABST
Patent Text Reader

Abstract

The embodiments of the present invention provide a method, device, system and storage medium for constructing a three-dimensional model. Construction method: according to the mesh information of the human body three-dimensional model, obtain the three-dimensional information of the joint points corresponding to the limbs; based on the three-dimensional information, construct a proxy body corresponding to the mesh information of the limbs; replace the limbs in the human body three-dimensional model with the proxy body to obtain a simplified human body three-dimensional model. This solution obtains the mesh information of the limbs of the human body three-dimensional model, determines the three-dimensional information of the joint points in the limbs according to the mesh information, constructs the proxy body corresponding to the limbs according to the three-dimensional information of the joint points, and replaces the corresponding limbs in the human body three-dimensional model with the proxy body to simplify the human body three-dimensional model. The simplified human body three-dimensional model completes the motion redirection, collision calculation, penetration repair and other algorithms of the low-precision scene, avoids the above-mentioned calculation detection with the original human body three-dimensional model, and thus improves the calculation efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of three-dimensional model technology, and in particular to a three-dimensional model construction method, device, system and storage medium. Background Art

[0002] 3D virtual characters have many applications in animation production and movie special effects. The general process is to capture the various movements of the actors through motion capture technology, and then transfer these movements to the specified 3D model.

[0003] However, there will be many problems in the migration process. For example, due to the different body shapes of the actors and the 3D models to be driven, the 3D models may make some movements that are not in line with the principles of physics, such as putting hands inside limbs. Summary of the invention

[0004] In order to solve the problems existing in the prior art, at least one embodiment of the present invention provides a three-dimensional model construction method, device, system and storage medium.

[0005] In a first aspect, an embodiment of the present invention provides a three-dimensional model construction method, wherein:

[0006] Obtain mesh information of the limbs of the three-dimensional human body model;

[0007] According to the grid information, three-dimensional information of the joint points corresponding to the limbs is obtained;

[0008] Based on the three-dimensional information, construct a proxy body corresponding to the mesh information of the limbs;

[0009] The limbs in the three-dimensional human body model are replaced by the proxy body to obtain a simplified three-dimensional human body model.

[0010] Based on the above technical solution, the embodiment of the present invention can also make the following improvements.

[0011] In combination with the first aspect, in a first embodiment of the first aspect, constructing a proxy body corresponding to the mesh information of the limbs based on the three-dimensional information includes:

[0012] Determine associated joint point groups according to the three-dimensional information; wherein the joint point groups include a first joint point and a second joint point, and the first joint point and the second joint point correspond to the same bone on the same limb;

[0013] Corresponding proxy bodies are constructed respectively through the joint point groups.

[0014] In combination with the first embodiment of the first aspect, in the second embodiment of the first aspect, constructing corresponding proxy bodies respectively through the joint point groups includes:

[0015] For each joint point group, perform the following steps respectively:

[0016] According to the grid information, determine a grid point whose connection relationship with the first joint point meets a first preset condition as a first grid point, and determine a grid point whose connection relationship with the second joint point meets a second preset condition as a second grid point;

[0017] Calculating an average value of the distances between all the first grid points and the first joint point as a first reference radius;

[0018] Calculating an average value of the distances between all the second grid points and the second joint point as a second reference radius;

[0019] Obtaining a proxy body radius according to the first reference radius and the second reference radius;

[0020] The proxy body is constructed according to the joint point group and the proxy body radius.

[0021] In combination with the second embodiment of the first aspect, in the third embodiment of the first aspect,

[0022] The step of determining, according to the grid information, a grid point whose connection relationship with the first joint point meets a first preset condition as the first grid point includes:

[0023] Determine a first preliminary grid point according to the grid information; wherein the angle between the first connecting line and the second connecting line is less than a preset angle, the first connecting line is a connecting line between the first preliminary grid point and the first joint point, and the second connecting line is a connecting line between the first joint point and the second joint point;

[0024] Acquire a first preliminary grid point whose distance from the first joint point is less than a preset distance as the first grid point;

[0025] Wherein, according to the grid information, determining a grid point whose connection relationship with the second joint point meets a second preset condition as the second grid point includes:

[0026] Determine a second preliminary grid point according to the grid information; wherein the angle between the third line and the second line is less than a preset angle, the third line is a line between the preliminary grid point and the first joint point, and the second line is a line between the first joint point and the second joint point;

[0027] A second preliminary grid point whose distance from the second joint point is less than a preset distance is obtained as the second grid point.

[0028] In combination with the second embodiment of the first aspect, in a fourth embodiment of the first aspect, obtaining the proxy body radius according to the first reference radius and the second reference radius includes:

[0029] According to the grid information, obtaining a distance between a grid point closest to the first joint point and the first joint point as a first distance;

[0030] According to the grid information, obtaining the distance between the grid point closest to the second joint point and the second joint point as the second distance;

[0031] The proxy body radius is calculated according to the first reference radius and the second reference radius, with the first distance and the second distance being weighted.

[0032] In combination with the second embodiment of the first aspect, in a fifth embodiment of the first aspect, constructing the proxy body according to the joint point group and the proxy body radius includes:

[0033] Constructing a cylinder according to the first joint point and the second joint point in the joint point group; wherein the first joint point and the second joint point are the centers of the bottom surface of the cylinder, and the radius of the proxy body is the radius of the cylinder;

[0034] A hemisphere is added to the two bottom surfaces of the cylinder respectively to obtain the proxy body; wherein the first joint point and the second joint point are respectively the centers of the hemispheres, and the radius of the hemisphere is the radius of the proxy body.

[0035] In combination with the first aspect or the first, second, third, fourth or fifth embodiment of the first aspect, in a sixth embodiment of the first aspect, acquiring three-dimensional information corresponding to the joint points of the limbs according to the grid information includes:

[0036] Determine the grid point corresponding to each rotation position of the limb according to the deformation of the grid lines and grid surfaces in the grid information;

[0037] For each grid point corresponding to a rotation position, three-dimensional information of a center point of a plane surrounded by grid lines composed of the grid points corresponding to the rotation position is used as the three-dimensional information.

[0038] In a second aspect, an embodiment of the present invention provides a three-dimensional model construction device, the construction device comprising:

[0039] A first processing unit is used to obtain mesh information of limbs of a three-dimensional human body model;

[0040] A second processing unit, configured to obtain three-dimensional information corresponding to the joint points of the limbs according to the grid information;

[0041] A third processing unit, configured to construct a proxy body corresponding to the mesh information of the limbs based on the three-dimensional information;

[0042] The fourth processing unit is used to replace the limbs in the three-dimensional human body model by the proxy body to obtain a simplified three-dimensional human body model.

[0043] In a third aspect, an embodiment of the present invention provides a three-dimensional model construction system, including 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;

[0044] Memory, used to store computer programs;

[0045] The processor is used to implement the three-dimensional model construction method described in any embodiment of the first aspect when executing the program stored in the memory.

[0046] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the three-dimensional model construction method described in any embodiment of the first aspect.

[0047] The above technical scheme of the present invention has the following advantages compared with the prior art: the embodiment of the present invention obtains the mesh information of the limbs of the human body three-dimensional model, determines the three-dimensional information of the joints in the limbs according to the mesh information, constructs proxy bodies corresponding to the limbs according to the three-dimensional information of the joints, and replaces the corresponding limbs in the human body three-dimensional model with the proxy bodies to simplify the human body three-dimensional model. The simplified human body three-dimensional model is used to complete the motion redirection, collision calculation, penetration repair and other algorithms of low-precision scenes, avoiding the above-mentioned calculation detection with the original human body three-dimensional model, thereby improving the calculation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 A schematic diagram of a system provided for each embodiment of the present invention;

[0049] Figure 2 It is a schematic diagram of the process of constructing a three-dimensional model provided by an embodiment of the present invention;

[0050] Figure 3 is a schematic flow chart of a three-dimensional model construction method provided by another embodiment of the present invention;

[0051] Figure 4 This is a flow chart of a three-dimensional model construction method provided by another embodiment of the present invention;

[0052] Figure 5This is a second flow chart of a three-dimensional model construction method provided by another embodiment of the present invention;

[0053] Figure 6 It is a third flow chart of a three-dimensional model construction method provided by another embodiment of the present invention;

[0054] Figure 7 This is a fourth flow chart of a three-dimensional model construction method provided by another embodiment of the present invention;

[0055] Figure 8 is a schematic structural diagram of a three-dimensional model building device provided by another embodiment of the present invention;

[0056] Fig. 9 It is a structural schematic diagram of a three-dimensional model building system provided by another embodiment of the present invention. DETAILED DESCRIPTION

[0057] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0058] like Figure 1 As shown, it is a structural schematic diagram of a system for implementing various embodiments of the present invention, including a terminal, the terminal including: a processor 1110 and a memory 1130, wherein the terminal can be a mobile terminal such as a mobile phone, a tablet computer, a laptop computer, a handheld computer, a personal digital assistant (Personal Digital Assistant, PDA), a portable media player (Portable Media Player, PMP), a navigation device, a wearable device, a smart bracelet, a pedometer, etc., as well as a fixed terminal such as a digital TV, a desktop computer, etc.

[0059] like Figure 2 As shown, a three-dimensional model construction method is provided in an embodiment of the present invention. Figure 2 , the construction method is as follows:

[0060] S11. Obtain mesh information of the limbs of the three-dimensional human body model.

[0061] In this embodiment, 3D human body modeling, as a component of computer human body simulation, has always been one of the hot topics of research. Since the birth of interactive computer graphics, scholars have been constantly exploring computer human body modeling technology. From wireframe modeling, solid modeling, surface modeling to physics-based modeling, significant progress has been made.

[0062] In this embodiment, the grid information refers to the position information of each grid point constituting the limbs of the three-dimensional model of the human body.

[0063] In this embodiment, with the development of 3D games and virtual reality technology, the requirements for the simulation degree of objects in the scene are getting higher and higher, and the requirements for the three-dimensional model are also increasing. Among them, since the three-dimensional human body model is generally controlled by the user, the user completes the complex actions in the scene by controlling the three-dimensional human body model, and the requirements for the three-dimensional human body model are getting higher and higher. Once the three-dimensional human body model fails to restore the action, or the limbs of the three-dimensional human body model overlap, this situation is called "model penetration" in the industry, which will seriously affect the user's experience. Therefore, after the three-dimensional human body model is established, the movement process of the three-dimensional human body model will be verified according to the operation logic of the three-dimensional human body model to confirm whether the three-dimensional human body model will have model penetration. Since the complete three-dimensional human body model is relatively delicate and complex, the system calculation amount of controlling the three-dimensional human body model to perform actions is very time-consuming.

[0064] In this embodiment, the human body 3D model includes the static 3D digital human body used in current industrial animation and games, which is mainly a 3D mesh model (generally called mesh in English). The number of faces of the mesh determines the fineness of the model itself. However, in games, since real-time rendering of a large number of meshes consumes computer performance very much, the number of meshes in actual games will not be too high. In practice, a model with a lower number of faces is used, and then a texture is attached to make it look very real.

[0065] In this embodiment, the mesh information of the general human body surface is composed of triangular meshes to form the smallest surface, and the smaller the spacing between the mesh points constituting the mesh, the smaller the mesh, and the higher the accuracy of the final model. In this step, the mesh information of the limbs is obtained, that is, the information of each mesh point constituting the limbs of the human body, such as the position information of the mesh points.

[0066] S12. Obtain three-dimensional information of the joint points of the corresponding limbs according to the grid information.

[0067] In the present embodiment, the limb bones include upper limb bones and lower limb bones, which are composed of limb girdle bones connected to the trunk and free limb bones that move freely. The number and arrangement of the upper and lower limb bones are basically the same. The characteristics are that the upper limb bones are light and flexible, and the lower limb bones are thick and solid, which play the role of supporting and moving the body, which is closely related to human upright walking. The upper limb bones are composed of clavicle, scapula and humerus, radius, ulna, and hand bones. The joints formed by the upper limb bones include shoulder joints, elbow joints, hand joints, etc., which make people more dexterous when working. The lower limb bones are composed of hip bones, femurs, tibias, fibulas, patellas, and foot bones. The ring formed by the hip bones and the sacrum and coccyx in the trunk bones is called the pelvis, which is the bony component between the trunk bones and the limb bones, and has the functions of conducting weight, supporting, and protecting internal organs.

[0068] In this embodiment, the three-dimensional space we usually refer to is a space system formed by adding a direction vector to the two-dimensional plane system. The three-dimensional space is the three axes of the coordinate axis, namely the x-axis, the y-axis, and the z-axis, where x represents the left and right space, y represents the front and back space, and z represents the up and down space (the plane rectangular coordinate system cannot be used to understand the spatial direction).

[0069] In this embodiment, the three-dimensional information refers to three-dimensional position information.

[0070] In this embodiment, the joint points of the limbs can be direct connection points of the bones. The skeletal model of the human body three-dimensional model can be obtained, and the three-dimensional position information of the joint points can be obtained directly based on the skeletal model. The three-dimensional information of the joint points can also be obtained based on the mesh information of the limbs. When the limbs are bent, the three-dimensional information of the joint points can be obtained based on the three-dimensional information of the mesh points that are deformed.

[0071] S13. Based on the three-dimensional information, construct a proxy body corresponding to the mesh information of the limbs.

[0072] In this embodiment, proxy bodies of the mesh information of the limbs are constructed according to the three-dimensional information of the joints to achieve replacement of the limbs. Since this scheme is to simplify the original model, and the simplified model still needs to complete collision detection, a proxy body can be constructed according to two adjacent joints in the skeleton model to achieve replacement of each bone. For example, proxy bodies are constructed for the arm and the upper limb respectively, and proxy bodies are constructed for the thigh and the calf of the lower limb respectively, to complete the replacement of key bones, and to ensure that the simplified model can still simulate the movement of the original model.

[0073] In this embodiment, the proxy body may be a regular three-dimensional structure, such as a regular shape such as a cuboid, a cylinder, or a capsule.

[0074] S14. Replace the limbs in the three-dimensional human body model with the proxy body to obtain a simplified three-dimensional human body model.

[0075] In this embodiment, the designated joint points are extracted according to the mesh information of the original model and replaced with proxy bodies, thereby implementing the proxy of the human body three-dimensional model and obtaining a simplified human body three-dimensional model.

[0076] In this embodiment, this scheme obtains the mesh information of the limbs of the human body three-dimensional model, determines the three-dimensional information of the joints in the limbs based on the mesh information, constructs proxy bodies corresponding to the limbs based on the three-dimensional information of the joints, and replaces the corresponding limbs in the human body three-dimensional model with the proxy bodies to simplify the human body three-dimensional model. The simplified human body three-dimensional model is used to complete the motion redirection, collision calculation, penetration repair and other algorithms of low-precision scenes, avoids the above-mentioned calculation detection with the original human body three-dimensional model, thereby improving the calculation efficiency.

[0077] Specifically, in this embodiment, S12 obtains the three-dimensional information of the joint points of the corresponding limbs based on the grid information, including: determining the grid points corresponding to each rotation position in the limbs based on the deformation of the grid lines and grid surfaces in the grid information; for the grid points corresponding to each rotation position, taking the three-dimensional information of the center point of the plane surrounded by the grid lines composed of the grid points corresponding to the rotation position as the three-dimensional information.

[0078] In this embodiment, since only positions with joints can realize the function of rotation when the human body moves, in this step, the grid points corresponding to the positions where rotation can occur in the three-dimensional model of the human body can also be determined based on the deformation of the grid lines and grid surfaces on the grid information. The center point of the plane formed by the grid points at each rotation position is used as the joint point on the limbs in this scheme, and the three-dimensional information of the corresponding joint point is obtained based on the information of the grid point.

[0079] like Figure 3 As shown, an embodiment of the present invention provides a three-dimensional model construction method. Figure 3 , the construction method includes the following steps:

[0080] S21. Obtain mesh information of the limbs of the three-dimensional human body model.

[0081] For details of step S21, please refer to the description of step S11, which will not be repeated here in this embodiment.

[0082] S22. Obtain three-dimensional information of the joint points of the corresponding limbs according to the grid information.

[0083] For details of step S22, please refer to the description of step S12, which will not be repeated here in this embodiment.

[0084] S23. Determine the associated joint point groups respectively according to the three-dimensional information; wherein the joint point groups include a first joint point and a second joint point, and the first joint point and the second joint point correspond to the same bone on the same limb.

[0085] In this embodiment, the first node and the second node on the same bone of the same limb are determined based on the three-dimensional information of the joint points, and a joint point group is formed based on the first node and the second node. In this step, it is determined whether the first joint point and the second joint point correspond to the same bone on the same limb. The joint points on the same bone can be determined based on the skeletal model of the three-dimensional human body model. For example, if there are three joint points in the upper limb, the three joint points are the upper end point of the arm, the connection point between the arm and the arm, and the lower end point of the arm, and the connection point between the arm and the arm is also the first joint point or the second joint point of the arm and the arm of the upper limb.

[0086] S24. Construct corresponding proxy bodies through joint point groups.

[0087] In this embodiment, corresponding proxy bodies are constructed respectively according to the joint point groups, that is, a proxy body for each section of the skeleton is constructed.

[0088] S25. Replace the limbs in the three-dimensional human body model with the proxy body to obtain a simplified three-dimensional human body model.

[0089] For details of step S25, please refer to the description of step S14, which will not be repeated here in this embodiment.

[0090] like Figure 4 As shown, in S24, corresponding proxy bodies are constructed respectively through joint point groups, including: for each joint point group, the following steps are performed respectively:

[0091] S31. According to the grid information, determine a grid point whose connection relationship with the first joint point meets the first preset condition as the first grid point, and determine a grid point whose connection relationship with the second joint point meets the second preset condition as the second grid point.

[0092] In this embodiment, a grid point whose connection relationship with the first joint point meets the first preset condition is obtained. For example, a grid point whose spacing with the line connecting the first joint point is the minimum among all spacings can be directly obtained as the first grid point. A grid point whose spacing with the first joint point is smaller than the preset spacing can also be selected as the first grid point, wherein the preset spacing is larger than the minimum value in the above embodiment. Referring to the above description of the first grid point, a grid point whose connection relationship with the second joint point meets the second preset condition is selected as the second grid point, which will not be elaborated in this scheme.

[0093] S32. Calculate the average value of the distances between all first grid points and the first joint point as the first reference radius.

[0094] In this embodiment, since the thickness of the arm in the human body three-dimensional model is the relative distance between the first joint point and the skin of the human body three-dimensional model, the first grid point in the above step can be the grid point closest to the first joint point, but since the grid points are randomly distributed on the surface of the human body three-dimensional model, the distance between the grid point closest to the first joint point and the first joint point will be greater than or equal to the thickness of the arm at the first joint point, and the grid point whose distance to the first joint point is less than the preset distance is selected as the first grid point, wherein the preset distance is greater than the minimum value in the above embodiment, then the average value of the distance between all the first grid points and the first joint point obtained in this step will be greater than the thickness of the arm at the first joint point compared with the description in the previous embodiment, since, in this scheme, the original human body three-dimensional model is replaced by constructing a proxy body, so the thickness of the generated proxy body is greater than the thickness of the original human body three-dimensional model, and it can better complete the motion redirection, collision calculation, penetration repair and other algorithms of low-precision scenes.

[0095] S33. Calculate the average value of the distances between all second grid points and the second joint point as the second reference radius.

[0096] In this embodiment, details about step S21 can be found in the description of step S32, which will not be described in detail in this embodiment.

[0097] S34. Obtain a radius of the proxy body according to the first reference radius and the second reference radius.

[0098] In this embodiment, the proxy body radius is obtained based on the first reference radius and the second reference radius obtained above. The first reference radius and the second reference radius can be averaged to obtain the proxy body radius. However, since the first reference radius and the second reference radius correspond to different joint points respectively, weight values ​​can be set respectively according to the positions of the joint points on the bones, and the proxy body radius can be obtained by taking a weighted average of the first reference radius and the second reference radius according to the weight values.

[0099] S35. Construct a proxy body according to the joint point group and the proxy body radius.

[0100] In this embodiment, the proxy body can be constructed according to each group of joint point groups and the corresponding proxy body radius. For example, the joint points in the joint point group are used as the centers of the two bottom surfaces, and a cylinder is constructed with the proxy body radius as the radius as the proxy body.

[0101] Specifically, in this embodiment, a cylinder is constructed according to the first joint point and the second joint point in the joint point group; wherein the first joint point and the second joint point are the bottom center of the cylinder, and the radius of the proxy body is the radius of the cylinder;

[0102] Furthermore, since the cylinder constructed by the joint points can intelligently represent the model situation in the joint, a half sphere can be added to the two bottom surfaces of the cylinder to obtain a proxy body; wherein the first joint point and the second joint point are the centers of the half spheres, and the radius of the half sphere is the radius of the proxy body. A corresponding sphere is added to the outer surface of the cylinder to serve as the proxy body in this embodiment.

[0103] like Figure 5 As shown, in S31, according to the grid information, determining a grid point whose connection relationship with the first joint point meets the first preset condition as the first grid point includes the following steps:

[0104] S41. Determine a first preliminary grid point according to the grid information; wherein the angle between the first connection line and the second connection line is less than a preset angle, the first connection line is a line between the first preliminary grid point and the first joint point, and the second connection line is a line between the first joint point and the second joint point.

[0105] S42, obtaining a first preliminary grid point whose distance from the first joint point is less than a preset distance as the first grid point.

[0106] In this embodiment, through the above steps, a grid point that meets the first preset condition is determined as the first grid point. The first grid point sets a preset angle and selects a grid point whose angle with the first joint point and the second joint point meets the preset angle according to the grid information as the first preset grid point. Then, by setting a preset distance, the first preset grid points are further screened to avoid selecting a grid point that is too far away from the first joint point as the first grid point. This ensures that the first reference radius finally calculated is larger than the thickness of the arm of the three-dimensional human body model and avoids the first reference radius being too large.

[0107] like Figure 6 As shown, in S31, according to the grid information, determining a grid point whose connection relationship with the second joint point meets the second preset condition as the second grid point includes:

[0108] S51. Determine a second preliminary grid point according to the grid information; wherein the angle between the third line and the second line is less than a preset angle, the third line is a line between the preliminary grid point and the first joint point, and the second line is a line between the first joint point and the second joint point.

[0109] S52: Acquire a second preliminary grid point whose distance to the second joint point is less than a preset distance as the second grid point.

[0110] In this embodiment, through the above steps, a grid point that meets the second preset condition is determined as the second grid point. The second grid point sets a preset angle and selects a grid point whose angle with the first joint point and the second joint point meets the preset angle according to the grid information as the second preset grid point. Then, by setting a preset distance, the second preset grid points are further screened to avoid selecting a grid point that is too far away from the second joint point as the second grid point. This ensures that the second reference radius finally calculated is larger than the thickness of the arm of the three-dimensional human body model and avoids the second reference radius being too large.

[0111] like Figure 7 As shown, in S33, obtaining the proxy body radius according to the first reference radius and the second reference radius includes the following steps:

[0112] S61. According to the grid information, obtain the distance between the grid point closest to the first joint point and the first joint point as the first distance.

[0113] S62. According to the grid information, obtain the distance between the grid point closest to the second joint point and the second joint point as the second distance.

[0114] S63. Calculate the proxy body radius according to the first reference radius and the second reference radius, taking the first distance and the second distance as weights.

[0115] In this embodiment, since the grid point closest to the first joint point can be considered as the minimum thickness of the limb at the position corresponding to the first joint point, and the grid point closest to the second joint point can be considered as the minimum thickness of the limb at the position corresponding to the second joint point, the first reference radius and the second reference radius are weighted and averaged with the first distance and the second distance as weights, the radius of the proxy body that conforms to the thickness of the limb can be better calculated, thereby establishing a proxy body that is more in line with the three-dimensional model of the human body.

[0116] An embodiment of the present invention provides a three-dimensional model construction method, which, in addition to constructing a limb proxy body based on the above embodiment, also includes constructing a head and torso proxy body, wherein the method for constructing the head and torso proxy body includes: obtaining mesh information and bone information of the head and torso of the human body three-dimensional model; determining the head key points and torso key points based on the mesh information and bone information; constructing a head proxy body based on the head key points, and constructing a torso proxy body based on the torso key points.

[0117] Specifically, in this embodiment, regarding the proxy body of the head, we reconstruct the mesh structure and select the key points of the head (the original mesh vertices closest to the key points), specifically, for example, eyes (two points), nose tip (one point), mouth corners (two points), chin tip (one point), ears (two points), top of the head (one point), head circumference (two points). The above key points are only a specific implementation method of this solution, and other methods can also be used to select key points to achieve simplification of the head.

[0118] Specifically, in this embodiment, regarding the proxy body of the torso, we reconstruct the mesh structure and select the key points of the torso (the original mesh vertices closest to the key points), specifically, for example, the torso key points located in the shoulder area, the torso key points located in the chest, the torso key points located in the hips, and the torso key points located in the hips. The above key points are only a specific implementation method of this solution, and other methods can also be used to select key points to achieve the corresponding torso simplification.

[0119] Among them, the eyes, nose tip, mouth corners, chin tip, ears, and top of the head can be directly obtained in the human body 3D model.

[0120] The key points corresponding to the head circumference can be determined by the following method: according to the bone information of the head, the three-dimensional information of the neck joint points is obtained; according to the average of the coordinates of the grid points corresponding to the top of the head and the tip of the nose in the vertical direction, the coordinates of the head circumference in the vertical direction are taken; according to the three-dimensional information of the neck joint points and the grid information of the grid points corresponding to the tip of the nose, the neck projection points and the nose tip projection points of the grid points corresponding to the neck joint points and the nose tip on the cross section in the horizontal direction of the head circumference are determined; with the neck projection point as the origin, four rays are generated on the cross section in the horizontal direction of the head circumference; wherein, the four rays divide the cross section in the horizontal direction of the head circumference into four equal parts, and the line connecting the neck projection point and the nose tip projection point bisects the angle formed by the two rays adjacent to the nose tip projection point; according to the grid information of the head, the grid point closest to the head circumference intersection is taken as the grid point corresponding to the head circumference; wherein, the head circumference intersection is the intersection of the ray and the grid structure of the head.

[0121] The key points corresponding to the back of the head can be determined by the following method: based on the bone information of the head, the three-dimensional information of the neck joint points is obtained; based on the three-dimensional information of the neck joint points, the neck projection point of the neck joint points on the horizontal cross-section where the grid point corresponding to the nose tip is located is determined; based on the grid information of the head, the grid point closest to the intersection of the back of the head is used as the grid point corresponding to the back of the head; wherein the intersection of the back of the head is the intersection of the extended line of the line connecting the grid point corresponding to the nose tip and the neck projection point and the grid structure of the head.

[0122] The key points of the trunk located in the shoulder area can be determined by the following method: based on the skeleton information of the trunk, the three-dimensional information of the left shoulder joint, the three-dimensional information of the right shoulder joint and the three-dimensional information of the second spine joint are determined; based on the three-dimensional information of the left shoulder joint and the three-dimensional information of the right shoulder joint, the average of the coordinates of the left shoulder joint and the right shoulder joint in the vertical direction is determined as the coordinate of the key points of the trunk in the vertical direction; based on the three-dimensional information of the second spine joint and the grid information of the grid points corresponding to the nose tip, the second spine projection point and the nose tip projection point of the second spine joint and the grid points corresponding to the nose tip on the cross section in the horizontal direction where the key points of the trunk are located are determined; based on the three-dimensional information of the left shoulder joint The left shoulder projection point and the right shoulder projection point on the horizontal cross section of the trunk key point are determined based on the three-dimensional information of the left shoulder joint and the right shoulder joint; with the second spine projection point as the starting point, according to the second spine projection point and the nose tip projection point, a first ray is established from the second spine projection point to the nose tip projection point; according to the grid information of the trunk, the grid point closest to the trunk intersection is used as the trunk key point; wherein, the trunk intersection is the intersection of the second ray constructed with the left shoulder projection point as the starting point and the grid structure of the trunk, and the trunk intersection is the intersection of the third ray constructed with the right shoulder projection point as the starting point and the grid structure of the trunk, and the directions of the first ray, the second ray and the third ray are the same.

[0123] The key points of the trunk located in the chest area can be determined by the following method: based on the skeletal information of the trunk, determine the three-dimensional information of the left shoulder joint, the three-dimensional information of the right shoulder joint, the three-dimensional information of the first spine joint and the three-dimensional information of the second spine joint; wherein the coordinate of the first spine joint in the vertical direction is greater than the coordinate of the second spine joint in the vertical direction; establish a cross section in the horizontal direction of the first spine joint as a spine reference cross section; based on the three-dimensional information of the left shoulder joint and the three-dimensional information of the right shoulder joint, determine the left shoulder projection point and the right shoulder projection point of the left shoulder joint and the right shoulder joint on the spine reference cross section; establish a connection between the left shoulder projection point The line connecting the right shoulder projection point is used as the reference line; a vertical line is established with the first spinal joint point as the orthocenter to divide the spinal reference section into a first reference section and a second reference section; wherein the vertical line is perpendicular to the reference line; both the first reference section and the second reference section are vertically moved downward to the second spinal joint point, and according to the grid information of the torso, the distance between each grid point in the first reference section and the reference line is obtained in real time, and the distance between each grid point in the second reference section and the reference line is obtained in real time; the grid point with the largest distance from the reference line in the first reference section and the grid point with the largest distance from the reference line in the second reference section are used as the key points of the torso.

[0124] The key points of the trunk located in the hip area can be determined by the following method: based on the skeleton information of the trunk, determine the three-dimensional information of the hip joint point and the three-dimensional information of the first spine joint point; based on the three-dimensional information of the first spine joint point and the grid information of the grid point corresponding to the nose tip, determine the first spine projection point and the nose tip projection point of the first spine joint point and the grid point corresponding to the nose tip on the cross section in the horizontal direction of the hip joint point; with the first spine projection point as the origin, generate three rays on the cross section in the horizontal direction of the hip joint point; wherein the three rays divide the cross section in the horizontal direction of the hip joint point into three equal parts, and the line connecting the first spine projection point and the nose tip projection point bisects the angle formed by the two rays adjacent to the nose tip projection point; based on the grid information of the trunk, take the grid point closest to the hip intersection as the trunk key point; wherein the hip intersection is the intersection of the ray and the grid structure of the trunk.

[0125] The key points of the trunk located in the hip area can be determined by the following method: based on the skeleton information of the trunk, determine the three-dimensional information of the left hip joint point and the three-dimensional information of the right hip joint point; based on the three-dimensional information of the left hip joint point and the three-dimensional information of the right hip joint point, determine the average of the vertical coordinates of the left hip joint point and the right hip joint point as the vertical coordinates of the trunk key points; establish a horizontal section at the trunk key points as a hip reference section; based on the three-dimensional information of the left hip joint point and the three-dimensional information of the right hip joint point, determine the left hip projection point of the left hip joint point and the left hip joint point on the hip reference section. and the right hip bone projection point; taking the left hip bone projection point as the starting point, establishing the first ray and the second ray on the hip bone reference section; wherein, the line connecting the left hip bone projection point and the right hip bone bisects the angle formed by the first ray and the second ray; taking the right hip bone projection point as the starting point, establishing the third ray and the fourth ray on the hip bone reference section; wherein, the line connecting the left hip bone projection point and the right hip bone bisects the angle formed by the third ray and the fourth ray; according to the grid information of the torso, the grid point closest to the hip bone intersection is used as the torso key point; wherein, the hip bone intersection is the intersection of the first ray, the second ray, the third ray and the fourth ray with the grid structure of the torso, respectively.

[0126] Based on the above head key points and torso key points, a head proxy body and a torso proxy body are constructed, and the head and torso in the human body 3D model are replaced by the proxy bodies to obtain a simplified human body 3D model.

[0127] In a specific embodiment, the present solution provides a method for constructing a three-dimensional model, by constructing proxy bodies of various parts of the three-dimensional human body model, and replacing the corresponding parts of the three-dimensional human body model with the proxy bodies, so as to achieve overall simplification of the three-dimensional human body model. Specifically, it can be achieved by the following method:

[0128] First, the method for constructing the proxy body of the limbs includes: obtaining the mesh information of the limbs of the human body three-dimensional model; obtaining the three-dimensional information of the joint points corresponding to the limbs according to the mesh information; and constructing a proxy body for the mesh information corresponding to the limbs based on the three-dimensional information.

[0129] Specifically, in this embodiment, the proxy body of the limbs can be composed of two hemispheres and a cylinder. Taking the right upper arm between the right shoulder and the right elbow as an example to calculate the generation of the proxy body of this part. First, we know the spatial coordinates of the right shoulder and the right elbow, and we use them as the center points c1 and c2 of the two bottom surfaces of the cylinder.

[0130] Next, we need to calculate the radius r c 。

[0131] We select one of c1 and c2, for example, we select c1, and we need to find the reference point set P1. This set P1 is the vertices of the meshes that meet the conditions near c1.

[0132] The vertices p of the meshes in the reference point set P1 should satisfy:

[0133] 1. ∠c2c1p < α, where ∠c2c1p is the included angle formed by points c2, c1, and p, that is, the included angle formed by points c2, c1, and p is less than α, and α is a preset angle.

[0134] 2. d(c1, p) < D, where d(c1, p) is the distance from point c1 to point p, that is, the distance from point c1 to point p is less than D, and D is a preset distance.

[0135] Calculate the reference radius l1 is the number of points p in the reference point set P1, d(c1, p) is the distance from point c1 to point p, and ∑ pinP1 d(c1, p) is the sum of the distances from point c1 to each point p in the reference point set P1.

[0136] Similarly, we can obtain the reference point set P2 that meets the conditions near c2 through the above method.

[0137] Calculate the reference radius l2 is the number of points p in the reference point set P2, d(c2, p) is the distance from point c2 to point p, and ∑ pinP2 d(c2, p) is the sum of the distances from point c2 to each point p in the reference point set P2.

[0138] Sphere radius r c = w1 × r1 + w2 × r2, where w1 and w2 are preset weight values.

[0139] Through the above process, we can calculate the points c1 and c2 of the two bottom centers of the cylinder, and the radius of the bottom of the cylinder is also the radius of the sphere r c , and thus obtain the corresponding proxy body, and similarly, the proxy bodies of the limbs can be obtained.

[0140] Secondly, the method for constructing the proxy bodies of the torso and head includes: obtaining the mesh information and bone information of the head and torso of the human body three-dimensional model; determining the head key points and torso key points based on the mesh information and bone information; constructing the head proxy body based on the head key points, and constructing the torso proxy body based on the torso key points.

[0141] Specifically, in this embodiment, regarding the proxy body of the head, we reconstruct the mesh structure and select the key points of the head (the original mesh vertices closest to the key points), specifically, for example, eyes (two points), nose tip (one point), mouth corners (two points), chin tip (one point), ears (two points), top of the head (one point), head circumference (two points). The above key points are only a specific implementation method of this solution, and other methods can also be used to select key points to achieve simplification of the head.

[0142] Specifically, in this embodiment, regarding the proxy body of the torso, we reconstruct the mesh structure and select the key points of the torso (the original mesh vertices closest to the key points), specifically, for example, the torso key points located in the shoulder area, the torso key points located in the chest, the torso key points located in the hips, and the torso key points located in the hips. The above key points are only a specific implementation method of this solution, and other methods can also be used to select key points to achieve the corresponding torso simplification.

[0143] Among them, the eyes, nose tip, mouth corners, chin tip, ears, and top of the head can be directly obtained in the human body 3D model.

[0144] The key points corresponding to the head circumference can be determined by the following method: according to the bone information of the head, the three-dimensional information of the neck joint points is obtained; according to the average of the coordinates of the grid points corresponding to the top of the head and the tip of the nose in the vertical direction, the coordinates of the head circumference in the vertical direction are taken; according to the three-dimensional information of the neck joint points and the grid information of the grid points corresponding to the tip of the nose, the neck projection points and the nose tip projection points of the grid points corresponding to the neck joint points and the nose tip on the cross section in the horizontal direction of the head circumference are determined; with the neck projection point as the origin, four rays are generated on the cross section in the horizontal direction of the head circumference; wherein, the four rays divide the cross section in the horizontal direction of the head circumference into four equal parts, and the line connecting the neck projection point and the nose tip projection point bisects the angle formed by the two rays adjacent to the nose tip projection point; according to the grid information of the head, the grid point closest to the head circumference intersection is taken as the grid point corresponding to the head circumference; wherein, the head circumference intersection is the intersection of the ray and the grid structure of the head.

[0145] The key points corresponding to the back of the head can be determined by the following method: based on the bone information of the head, the three-dimensional information of the neck joint points is obtained; based on the three-dimensional information of the neck joint points, the neck projection point of the neck joint points on the horizontal cross-section where the grid point corresponding to the nose tip is located is determined; based on the grid information of the head, the grid point closest to the intersection of the back of the head is used as the grid point corresponding to the back of the head; wherein the intersection of the back of the head is the intersection of the extended line of the line connecting the grid point corresponding to the nose tip and the neck projection point and the grid structure of the head.

[0146] The key points of the trunk located in the shoulder area can be determined by the following method: based on the skeleton information of the trunk, the three-dimensional information of the left shoulder joint, the three-dimensional information of the right shoulder joint and the three-dimensional information of the second spine joint are determined; based on the three-dimensional information of the left shoulder joint and the three-dimensional information of the right shoulder joint, the average of the coordinates of the left shoulder joint and the right shoulder joint in the vertical direction is determined as the coordinate of the key points of the trunk in the vertical direction; based on the three-dimensional information of the second spine joint and the grid information of the grid points corresponding to the nose tip, the second spine projection point and the nose tip projection point of the second spine joint and the grid points corresponding to the nose tip on the cross section in the horizontal direction where the key points of the trunk are located are determined; based on the three-dimensional information of the left shoulder joint The left shoulder projection point and the right shoulder projection point on the horizontal cross section of the trunk key point are determined based on the three-dimensional information of the left shoulder joint and the right shoulder joint; with the second spine projection point as the starting point, according to the second spine projection point and the nose tip projection point, a first ray is established from the second spine projection point to the nose tip projection point; according to the grid information of the trunk, the grid point closest to the trunk intersection is used as the trunk key point; wherein, the trunk intersection is the intersection of the second ray constructed with the left shoulder projection point as the starting point and the grid structure of the trunk, and the trunk intersection is the intersection of the third ray constructed with the right shoulder projection point as the starting point and the grid structure of the trunk, and the directions of the first ray, the second ray and the third ray are the same.

[0147] The key points of the trunk located at the chest can be determined by the following method: based on the skeletal information of the trunk, the three-dimensional information of the left shoulder joint, the three-dimensional information of the right shoulder joint, the three-dimensional information of the first spine joint and the three-dimensional information of the second spine joint are determined; wherein the coordinate of the first spine joint in the vertical direction is greater than the coordinate of the second spine joint in the vertical direction; a cross section in the horizontal direction of the first spine joint is established as a spine reference cross section; based on the three-dimensional information of the left shoulder joint and the three-dimensional information of the right shoulder joint, the left shoulder projection point and the right shoulder projection point of the left shoulder joint and the right shoulder joint on the spine reference cross section are determined; a connection is established between the left shoulder projection point and The line connecting the right shoulder projection points is used as the reference line; a vertical line is established with the first spinal joint point as the orthocenter to divide the spinal reference section into a first reference section and a second reference section; wherein the vertical line is perpendicular to the reference line; both the first reference section and the second reference section are moved vertically downward to the second spinal joint point, and according to the grid information of the trunk, the distance between each grid point in the first reference section and the reference line is obtained in real time, and the distance between each grid point in the second reference section and the reference line is obtained in real time; the grid point with the largest distance from the reference line in the first reference section and the grid point with the largest distance from the reference line in the second reference section are used as the key points of the trunk.

[0148] The key point of the trunk located at the hip can be determined by the following method: based on the skeleton information of the trunk, determine the three-dimensional information of the hip joint point and the three-dimensional information of the first spine joint point; based on the three-dimensional information of the first spine joint point and the grid information of the grid point corresponding to the nose tip, determine the first spine projection point and the nose tip projection point of the first spine joint point and the grid point corresponding to the nose tip on the horizontal cross-section of the hip joint point; with the first spine projection point as the origin, generate three rays on the horizontal cross-section of the hip joint point; wherein the three rays divide the horizontal cross-section of the hip joint point into three equal parts, and the line connecting the first spine projection point and the nose tip projection point bisects the angle formed by the two rays adjacent to the nose tip projection point; based on the grid information of the trunk, take the grid point closest to the hip intersection as the key point of the trunk; wherein the hip intersection is the intersection of the ray and the grid structure of the trunk.

[0149] The key points of the trunk located at the hip can be determined by the following method: based on the skeleton information of the trunk, determine the three-dimensional information of the left hip joint point and the three-dimensional information of the right hip joint point; based on the three-dimensional information of the left hip joint point and the three-dimensional information of the right hip joint point, determine the average of the vertical coordinates of the left hip joint point and the right hip joint point as the vertical coordinates of the key points of the trunk; establish a horizontal section at the key points of the trunk as a hip reference section; based on the three-dimensional information of the left hip joint point and the three-dimensional information of the right hip joint point, determine the left hip projection point and the left hip joint point on the hip reference section. Right hip bone projection point; establish the first ray and the second ray on the hip bone reference section with the left hip bone projection point as the starting point; wherein, the line connecting the left hip bone projection point and the right hip bone bisects the angle formed by the first ray and the second ray; establish the third ray and the fourth ray on the hip bone reference section with the right hip bone projection point as the starting point; wherein, the line connecting the left hip bone projection point and the right hip bone bisects the angle formed by the third ray and the fourth ray; according to the grid information of the torso, the grid point closest to the hip bone intersection is used as the key point of the torso; wherein, the hip bone intersection is the intersection of the first ray, the second ray, the third ray and the fourth ray with the grid structure of the torso respectively.

[0150] Through the above head key points and torso key points, the corresponding head proxy body and torso proxy body are constructed.

[0151] In this embodiment, constructing a proxy body through head key points and torso key points can be achieved in the following manner: connecting the head key points in pairs to obtain a first grid structure; removing the lines inside the first grid structure to obtain a head grid structure as a head proxy body; connecting the torso key points in pairs to obtain a second grid structure; removing the lines inside the second grid structure to obtain a torso grid structure as a torso proxy body.

[0152] Finally, the proxy bodies of the limbs, the head and the torso constructed in the above embodiments are used to replace various parts of the three-dimensional human body model, thereby simplifying the three-dimensional human body model. By performing collision detection on the simplified three-dimensional human body model, proxy calculation of the three-dimensional human body model can be quickly realized, thereby improving data processing efficiency.

[0153] like Figure 8 As shown, an embodiment of the present invention provides a three-dimensional model construction device, which includes: a first processing unit 11, a second processing unit 12, a third processing unit 13 and a fourth processing unit 14.

[0154] The first processing unit 11 is used to obtain mesh information of the limbs of the three-dimensional human body model.

[0155] The second processing unit 12 is used to obtain three-dimensional information of the joint points corresponding to the limbs according to the grid information.

[0156] The third processing unit 13 is used to construct a proxy body corresponding to the mesh information of the limbs based on the three-dimensional information.

[0157] The fourth processing unit 14 is used to replace the limbs in the three-dimensional human body model with proxy bodies to obtain a simplified three-dimensional human body model.

[0158] In this embodiment, the third processing unit 13 is specifically used to determine the associated joint point groups according to the three-dimensional information; and construct corresponding proxy bodies through the joint point groups; wherein the joint point groups include the first joint point and the second joint point, and the first joint point and the second joint point correspond to the same bone on the same limb.

[0159] In the embodiment, the third processing unit 13 is specifically used to perform the following steps for each joint point group: determine, based on the grid information, a grid point whose connection relationship with the first joint point meets the first preset condition as the first grid point, and determine a grid point whose connection relationship with the second joint point meets the second preset condition as the second grid point; calculate the average value of the distances between all the first grid points and the first joint point as the first reference radius; calculate the average value of the distances between all the second grid points and the second joint point as the second reference radius; obtain the proxy body radius based on the first reference radius and the second reference radius; and construct the proxy body based on the joint point group and the proxy body radius.

[0160] In this embodiment, the third processing unit 13 is specifically used to determine the first preliminary grid point according to the grid information; obtain the first preliminary grid point whose distance from the first joint point is less than the preset distance as the first grid point; wherein the angle between the first line and the second line is less than the preset angle, the first line is the line between the first preliminary grid point and the first joint point, and the second line is the line between the first joint point and the second joint point.

[0161] In this embodiment, the third processing unit 13 is specifically used to determine the second preliminary grid point based on the grid information; obtain the second preliminary grid point whose distance from the second joint point is less than the preset distance as the second grid point; wherein the angle between the third line and the second line is less than the preset angle, the third line is the line between the preliminary grid point and the first joint point, and the second line is the line between the first joint point and the second joint point.

[0162] In this embodiment, the third processing unit 13 is specifically used to obtain the distance between the grid point closest to the first joint point and the first joint point according to the grid information, as the first distance; obtain the distance between the grid point closest to the second joint point and the second joint point according to the grid information, as the second distance; and calculate the radius of the proxy body according to the first reference radius and the second reference radius, with the first distance and the second distance as weights.

[0163] In this embodiment, the third processing unit 13 is specifically used to construct a cylinder based on the first joint point and the second joint point in the joint point group; add a hemisphere to the two bottom surfaces of the cylinder respectively to obtain a proxy body; wherein the first joint point and the second joint point are the center of the bottom surface of the cylinder, and the radius of the proxy body is the radius of the cylinder; the first joint point and the second joint point are the centers of the hemisphere respectively, and the radius of the hemisphere is the radius of the proxy body.

[0164] In this embodiment, the first processing unit 11 is specifically used to determine the grid points corresponding to each rotational position in the limbs based on the deformation of the grid lines and grid surfaces in the grid information; for the grid points corresponding to each rotational position, the three-dimensional information of the center point of the plane surrounded by the grid lines composed of the grid points corresponding to the rotational position is used as the three-dimensional information.

[0165] like Fig. 9 As shown, an embodiment of the present invention provides a three-dimensional model construction system, including a processor 1110, a communication interface 1120, a memory 1130 and a communication bus 1140, wherein the processor 1110, the communication interface 1120, and the memory 1130 communicate with each other through the communication bus 1140;

[0166] Memory 1130, used for storing computer programs;

[0167] The processor 1110 is used to implement the following steps when executing the program stored in the memory 1130:

[0168] Obtain mesh information of the limbs of the three-dimensional human body model;

[0169] According to the grid information, the three-dimensional information of the joint points of the corresponding limbs is obtained;

[0170] Based on the three-dimensional information, a proxy body corresponding to the mesh information of the limbs is constructed;

[0171] The limbs in the human body 3D model are replaced by proxy bodies to obtain a simplified human body 3D model.

[0172] In the electronic device provided by the embodiment of the present invention, the processor 1110 executes the program stored in the memory 1130 to obtain the mesh information of the limbs of the human body three-dimensional model, and determines the three-dimensional information of the joints in the limbs according to the mesh information, constructs proxy bodies corresponding to the limbs according to the three-dimensional information of the joints, and replaces the corresponding limbs in the human body three-dimensional model with the proxy bodies to simplify the human body three-dimensional model. The simplified human body three-dimensional model is used to complete the motion redirection, collision calculation, penetration repair and other algorithms of low-precision scenes, avoids the above-mentioned calculation detection with the original human body three-dimensional model, thereby improving the calculation efficiency.

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

[0174] The communication interface 1120 is used for communication between the above electronic device and other devices.

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

[0176] The above-mentioned processor 1110 can be a general-purpose processor 1110, including a central processing unit 1110 (CPU), a network processor 1110 (NP), etc.; it can also be a digital signal processor 1110 (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.

[0177] An embodiment of the present invention provides a computer-readable storage medium, which stores one or more programs. The one or more programs can be executed by one or more processors 1110 to implement the three-dimensional model construction method of any of the above embodiments.

[0178] 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 program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present invention 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 instructions 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 instructions can be 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, wireless, 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 or a data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk SolidStateDisk (SSD)), etc.

[0179] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A three-dimensional model construction method, characterized in that: The construction method comprises: Obtain mesh information of the limbs of the human body three-dimensional model; According to the grid information, three-dimensional information of the joint points corresponding to the limbs is obtained, including: determining the grid points corresponding to each rotation position of the limbs according to the deformation of the grid lines and grid surfaces in the grid information; for the grid points corresponding to each rotation position, taking the three-dimensional information of the center point of the plane surrounded by the grid lines composed of the grid points corresponding to the rotation position as the three-dimensional information; Based on the three-dimensional information, construct a proxy body corresponding to the mesh information of the limbs; The limbs in the three-dimensional human body model are replaced by the proxy body to obtain a simplified three-dimensional human body model.

2. The construction method according to claim 1, characterized in that: The step of constructing a proxy body corresponding to the mesh information of the limbs based on the three-dimensional information includes: Determine associated joint point groups according to the three-dimensional information; wherein the joint point groups include a first joint point and a second joint point, and the first joint point and the second joint point correspond to the same bone on the same limb; Corresponding proxy bodies are constructed respectively through the joint point groups.

3. The construction method according to claim 2, characterized in that: The corresponding proxy bodies are constructed respectively through the joint point groups, including: For each joint point group, perform the following steps respectively: According to the grid information, determine a grid point whose connection relationship with the first joint point meets a first preset condition as a first grid point, and determine a grid point whose connection relationship with the second joint point meets a second preset condition as a second grid point; Calculating an average value of the distances between all the first grid points and the first joint point as a first reference radius; Calculating an average value of the distances between all the second grid points and the second joint point as a second reference radius; Obtaining a proxy body radius according to the first reference radius and the second reference radius; The proxy body is constructed according to the joint point group and the proxy body radius.

4. The construction method according to claim 3, It is characterized in that in, The step of determining, according to the grid information, a grid point whose connection relationship with the first joint point meets a first preset condition as the first grid point includes: Determine a first preliminary grid point according to the grid information; wherein the angle between the first connecting line and the second connecting line is less than a preset angle, the first connecting line is a connecting line between the first preliminary grid point and the first joint point, and the second connecting line is a connecting line between the first joint point and the second joint point; Acquire a first preliminary grid point whose distance from the first joint point is less than a preset distance as the first grid point; Wherein, according to the grid information, determining a grid point whose connection relationship with the second joint point meets a second preset condition as the second grid point includes: Determine a second preliminary grid point according to the grid information; wherein the angle between the third line and the second line is less than a preset angle, the third line is a line between the preliminary grid point and the first joint point, and the second line is a line between the first joint point and the second joint point; A second preliminary grid point whose distance from the second joint point is less than a preset distance is obtained as the second grid point.

5. The construction method according to claim 3, characterized in that: The obtaining the proxy body radius according to the first reference radius and the second reference radius includes: According to the grid information, obtaining a distance between a grid point closest to the first joint point and the first joint point as a first distance; According to the grid information, obtaining a distance between a grid point closest to the second joint point and the second joint point as a second distance; The proxy body radius is calculated according to the first reference radius and the second reference radius, with the first distance and the second distance being weighted.

6. The construction method according to claim 3, characterized in that: The step of constructing the proxy body according to the joint point group and the proxy body radius includes: Constructing a cylinder according to the first joint point and the second joint point in the joint point group; wherein the first joint point and the second joint point are the centers of the bottom surface of the cylinder, and the radius of the proxy body is the radius of the cylinder; A hemisphere is added to the two bottom surfaces of the cylinder respectively to obtain the proxy body; wherein the first joint point and the second joint point are respectively the centers of the hemispheres, and the radius of the hemisphere is the radius of the proxy body.

7. A three-dimensional model construction device, characterized in that: The construction device comprises: A first processing unit is used to obtain mesh information of limbs of a three-dimensional human body model; A second processing unit is used to obtain three-dimensional information corresponding to the joint points of the limbs according to the grid information, including: determining the grid points corresponding to each rotation position of the limbs according to the deformation of the grid lines and grid surfaces in the grid information; for the grid points corresponding to each rotation position, taking the three-dimensional information of the center point of the plane surrounded by the grid lines composed of the grid points corresponding to the rotation position as the three-dimensional information; A third processing unit, configured to construct a proxy body corresponding to the mesh information of the limbs based on the three-dimensional information; The fourth processing unit is used to replace the limbs in the three-dimensional human body model by the proxy body to obtain a simplified three-dimensional human body model.

8. A three-dimensional model construction system, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; The processor is used to implement the three-dimensional model construction method described in any one of claims 1 to 6 when executing the program stored in the memory.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the three-dimensional model construction method described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Human body modeling method and apparatus

    CN104866657A