Virtual character skeleton volumetric simulation sampling method based on hierarchical structure

By obtaining the position of the virtual character's bone segments and combining it with the cylindrical model, a volumetric space is constructed and the surface sampling points are determined, which solves the problem that the bone template in the existing technology cannot provide accurate spatial entities and improves the accuracy of virtual character animation production. .

CN118587337AActive Publication Date: 2024-09-03JIANGSU YILING DIGITAL TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410812091.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-09-03
Estimated Expiration
2044-06-21

AI Technical Summary

Technical Problem

In existing three-dimensional virtual character production, the skeleton template based on the hierarchical structure cannot provide accurate spatial entities, resulting in inaccurate collision detection and model penetration avoidance.

Method used

By obtaining the near and far body end positions of the virtual character's bone segments, combined with the preset cylindrical model, the convex geometry cross-section parameters of the bone sampling points are determined, and the outermost coordinate expression of the bone segments is constructed to form a volumetric space. , and determine the surface sampling points in this space to achieve volumetric construction and sampling of virtual characters.

Benefits of technology

It improves the accuracy of collision detection and mold-crossing avoidance in three-dimensional virtual character animation production, provides accurate character body surface data, and enhances the accuracy of animation production.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587337A
    Figure CN118587337A
Patent Text Reader

Abstract

The invention is suitable for the technical field of image processing, and particularly relates to a virtual character skeleton volumetric simulation sampling method and device based on a hierarchical structure, equipment and a medium. The method comprises the following steps: acquiring a near-body end position and a far-body end position of a to-be-volumerized skeleton section, aiming at any skeleton sampling point in the two positions, by taking the skeleton sampling point as a central point and combining a preset positive cylinder model, determining a section parameter of a convex geometrical section corresponding to the skeleton sampling point, and calculating the volume of the to-be-volumerized skeleton section according to the section parameter. The method comprises the following steps: constructing an outermost layer coordinate expression of a skeleton segment, determining a space included in the outermost layer coordinate expression as a volumetric space of the skeleton segment, determining a surface sampling point in the outermost layer of the volumetric space, and determining a coordinate of the surface sampling point as a volumetric sampling result of the skeleton segment, thereby realizing volumetric construction of the three-dimensional virtual character. Accurate character body surface data are obtained through sampling, the data can be used for subsequent collision detection and mold penetrating avoidance, and the accuracy of three-dimensional virtual character animation production is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application is applicable to the field of image processing technology, and in particular relates to a method, device, equipment and medium for volumetric simulation sampling of virtual character skeletons based on a hierarchical structure. Background Art

[0002] At present, due to the increasing application of 3D virtual characters in animation production and movie special effects, the production of 3D virtual characters is becoming more and more important. The production of 3D virtual characters mainly includes: capturing various actions of the target character through motion capture technology, then transferring the captured actions to the specified 3D human model, and driving the 3D human model to perform various actions.

[0003] In the process of driving a 3D digital human character, a set of skeleton templates based on a hierarchical structure is usually defined first, and then the posture of each skeleton is applied to the corresponding skeleton using the principle of forward kinematics in each frame to obtain the character's full body posture and the position of each joint and bone end. However, the limbs (joints and bones) are represented by points and lines here, without spatial entities. This makes it impossible to provide accurate spatial values ​​when performing collision detection, model penetration avoidance and other operations based on the generated virtual character, resulting in model penetration in the produced virtual character.

[0004] Therefore, how to construct the volume of three-dimensional virtual characters and sample them to obtain accurate character surface data to improve the accuracy of subsequent collision detection and penetration avoidance has become an urgent problem to be solved. Summary of the invention

[0005] In view of this, the embodiments of the present application provide a method, device, equipment and medium for volumetric simulation sampling of virtual character skeletons based on a hierarchical structure to solve the problem of how to volumetrically construct a three-dimensional virtual character and sample it to obtain accurate character surface data to improve the accuracy of subsequent collision detection and penetration avoidance.

[0006] In a first aspect, an embodiment of the present application provides a virtual character skeleton volumetric simulation sampling method based on a hierarchical structure, and the virtual character skeleton volumetric simulation sampling method comprises:

[0007] Obtaining the near body end position and the far body end position of the skeleton segment of the virtual character to be volumetrically shaped;

[0008] For any bone sampling point between the proximal body end position and the distal body end position, taking the bone sampling point as the center point and combining with a preset regular cylinder model, determining the cross-sectional parameters of the convex geometric shape cross-sectional area corresponding to the bone sampling point;

[0009] constructing the outermost coordinate expression of the bone segment according to the cross-sectional parameters, and determining the space included in the outermost coordinate expression as the volumetric space of the bone segment;

[0010] Surface sampling points are determined in the outermost layer of the volumetric space, and coordinates of the surface sampling points are determined as volumetric sampling results of the bone segment.

[0011] In a second aspect, an embodiment of the present application provides a virtual character skeleton volume simulation sampling device based on a hierarchical structure, and the virtual character skeleton volume simulation sampling device comprises:

[0012] A position acquisition module, used to acquire the near body end position and the far body end position of the skeleton segment of the virtual character to be volumetrically shaped;

[0013] A volumetric construction module, used for forming a volumetric space corresponding to the bone segment between the proximal body end position and the distal body end position according to a preset positive cylinder model;

[0014] The volumetric sampling module is used to determine surface sampling points in the outermost layer of the volumetric space, and determine the coordinates of the surface sampling points as the volumetric sampling results of the bone segment.

[0015] In a third aspect, an embodiment of the present application provides a computer device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the virtual character skeleton volumetric simulation sampling method as described in the first aspect is implemented.

[0016] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the virtual character skeleton volumetric simulation sampling method as described in the first aspect is implemented.

[0017] Compared with the prior art, the embodiments of the present application have the following beneficial effects: the present application obtains the proximal body end position and the distal body end position of the bone segment to be volumetrically processed, and for any bone sampling point from the proximal body end position to the distal body end position, with the bone sampling point as the center point, combined with the preset positive cylinder model, the cross-sectional parameters of the convex geometric shape cross section corresponding to the bone sampling point are determined, and according to the cross-sectional parameters, the outermost coordinate expression of the bone segment is constructed, and the space included in the outermost coordinate expression is determined to be the volumetric space of the bone segment, and the surface sampling points are determined in the outermost layer of the volumetric space, and the coordinates of the surface sampling points are determined to be the volumetric sampling results of the bone segment, so as to realize the volumetric construction of the three-dimensional virtual character, and sample to obtain accurate character surface data, which can be used for subsequent collision detection and model penetration avoidance, and improve the accuracy of the three-dimensional virtual character animation production. The above method can be used as an independent calculation processing module to volume the limbs after forward kinematics solution in three-dimensional space and generate a surface sampling point cloud, which can be realized by adding functional modules without modifying the bone hierarchy template or adjusting the forward kinematics solution module. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0019] Figure 1 This is a schematic diagram of an application environment of a virtual character skeleton volume simulation sampling method based on a hierarchical structure provided in Example 1 of the present application;

[0020] Figure 2 It is a flowchart of a virtual character skeleton volume simulation sampling method based on a hierarchical structure provided in the second embodiment of the present application;

[0021] Figure 3 It is a flowchart of a virtual character skeleton volume simulation sampling method based on a hierarchical structure provided in Example 3 of the present application;

[0022] Figure 4 It is a simulation schematic diagram of a single regular ellipse simulating the volume of a limb provided in Example 3 of the present application;

[0023] Figure 5 It is a flowchart of a virtual character skeleton volume simulation sampling method based on a hierarchical structure provided in the fourth embodiment of the present application;

[0024] Figure 6It is a flowchart of a virtual character skeleton volume simulation sampling method based on a hierarchical structure provided in Example 5 of the present application;

[0025] Figure 7 This is a simulation schematic diagram of a plurality of regular ellipsoids spliced ​​together to simulate the volume of a limb, provided in Example 5 of the present application;

[0026] Figure 8 This is a structural diagram of a virtual character skeleton volume simulation sampling device based on a hierarchical structure provided in Example 6 of the present application;

[0027] Fig. 9 It is a structural diagram of a computer device provided in Example 7 of the present application. DETAILED DESCRIPTION

[0028] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0029] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0030] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0031] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0032] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0033] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0034] It should be understood that the size of the serial numbers of the steps in the following embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0035] In order to illustrate the technical solution of the present application, a specific embodiment is provided below for illustration.

[0036] The first embodiment of the present application provides a virtual character skeleton volume simulation sampling method based on a hierarchical structure, which can be applied to Figure 1 In an application environment, a server communicates with a client, and the client generates corresponding instructions by receiving corresponding operation information from the user so as to enable the server to execute corresponding actions, for example, to complete the volumetric construction of a virtual character, wherein the client can be implemented by computer devices including but not limited to handheld computers, desktop computers, notebook computers, ultra-mobile personal computers (UMPC), netbooks, cloud computer devices, personal digital assistants (PDA), etc., and the server can be implemented by a computer device corresponding to an independent server or an integrated server.

[0037] See also Figure 2 , is a flow chart of a virtual character skeleton volume simulation sampling method based on a hierarchical structure provided in the second embodiment of the present application, and the virtual character skeleton volume simulation sampling method is applied to Figure 1 In the server, after receiving the corresponding instruction from the client, the server starts to execute the construction of the character volume, thereby determining the data of the sampling point after volume. Figure 2 As shown, the hierarchical structure-based virtual character skeleton volumetric simulation sampling method may include the following steps:

[0038] Step S201, obtaining the near body end position and the far body end position of the skeleton segment of the virtual character to be volumetrically converted.

[0039] Among them, the bones in a limb of the virtual character are extracted in whole or in part as bone segments. The bone segment can be considered as a line of fixed thickness. The so-called volumetricization is to wrap the bone segment with an outer surface of a certain thickness, thereby forming a structure similar to that of a real human body.

[0040] The proximal end position and the distal end position of the bone segment represent the positions of the two ends of the bone segment, which can be represented by coordinates in the world coordinate system. Volumetric skeletal segment is to form a volumetric space from the proximal end position to the distal end position, thereby representing a limb. Among them, the proximal end position represents the position of the end of the bone segment close to the body, and the distal end position represents the position of the end of the bone segment far from the body.

[0041] Step S202, for any bone sampling point between the proximal body end position and the distal body end position, with the bone sampling point as the center point, combined with a preset regular cylinder model, determine the section parameters of the convex geometric shape section corresponding to the bone sampling point.

[0042] The body volume of the character can be simulated and represented by a regular cylinder whose cross section is a convex geometric shape (e.g., square, circular, elliptical, etc.). Each point between the near body end position and the far body end position is defined as a bone sampling point. At each bone sampling point, a plane perpendicular to the bone segment is cut to form a cross section corresponding to the bone sampling point. At this time, the cross section is a convex geometric shape, and the specific shape is related to the preset regular cylinder model.

[0043] For example, when the preset regular cylinder model is a square cylinder, the cross-section corresponding to each bone sampling point is square; when the preset regular cylinder model is a circular cylinder, the cross-section corresponding to each bone sampling point is circular; when the preset regular cylinder model is an elliptical cylinder, the cross-section corresponding to each bone sampling point is elliptical, and so on. The specific shape of the regular cylinder model is not limited in this example.

[0044] Step S203: constructing the outermost coordinate expression of the bone segment according to the cross-sectional parameters, and determining the space included in the outermost coordinate expression as the volumetric space of the bone segment.

[0045] After the section parameters are determined, the coordinate expression of the convex geometric shape centered on each bone sampling point can be determined according to the convex geometric shape corresponding to the section, and then all the bone sampling points are connected to form a continuous simulation volume structure.

[0046] The cross sections corresponding to all bone sampling points are connected to form a structure corresponding to the regular cylindrical model, and the space within this structure is the volumetric space of the bone segment.

[0047] Step S204, determining surface sampling points in the outermost layer of the volumetric space, and determining the coordinates of the surface sampling points as the volumetric sampling results of the bone segment.

[0048] Among them, the outermost layer of the volumetric space is the body surface that represents the limbs, that is, the surface. A limited number of points are selected from the surface as surface sampling points, and the coordinates of the surface sampling points are calculated to represent the volumetric sampling results of the bone sampling points.

[0049] The above method can be used as an independent computing and processing module to volume the limb after forward kinematics solution in three-dimensional space and generate a surface sampling point cloud. This can be achieved by adding functional modules without modifying the bone hierarchy template or adjusting the forward kinematics solution module.

[0050] The embodiment of the present application obtains the proximal body end position and the distal body end position of the bone segment to be volumetricized, forms a volumetric space corresponding to the bone segment between the proximal body end position and the distal body end position according to a preset regular cylinder model, determines surface sampling points in the outermost layer of the volumetric space, determines the coordinates of the surface sampling points as the volumetric sampling results of the bone segment, realizes volumetric construction of the three-dimensional virtual character, and samples to obtain accurate character surface data, which can be helpful for subsequent collision detection and penetration avoidance, thereby improving the accuracy of three-dimensional virtual character animation production.

[0051] See also Figure 3 , is a flow chart of a virtual character skeleton volume simulation sampling method based on a hierarchical structure provided in the third embodiment of the present application. In the case where the preset regular cylinder model is a regular elliptical cone model, such as Figure 3 As shown, in the above step S202, the cross-sectional parameters of the convex geometric shape cross-section corresponding to the bone sampling point are determined by taking the bone sampling point as the center point in combination with a preset regular cylinder model, which may include the following steps:

[0052] Step S301, taking the bone sampling point as the center point and combining with the regular ellipse cone model, determine the section parameters of the regular ellipse section corresponding to the bone sampling point.

[0053] In this embodiment, the right elliptical cone is a general form of a right circular cone, a right circular cylinder and a right elliptical cone and can be widely adapted to various limbs. Figure 4 FIG. 1 is a schematic diagram of a simulation of a single regular ellipse simulating the volume of a limb provided in Example 3 of the present application. Figure 4 In, P A is the far end position, P B is the position near the body end, and the cross section corresponding to the position far from the body end is a regular elliptical cross section, A n , A mare the cross-sectional parameters corresponding to the far end of the body, and the cross-sectional parameters corresponding to the near end of the body are also regular elliptical cross-sectional parameters, B n , B m are the cross-sectional parameters corresponding to the position near the body end.

[0054] When A n =A m , B n =B m When A n , A m approaches 0, and B n , Bm>0 (or B n , B m approaches 0, and A n , A m >0), the right elliptical cone will approach the right elliptical cone; when A n =A m and approaches 0, B n =B m >0 (or B n =B m and approaches 0, and A n =A m >0), the right ellipse will approach a right circular cone.

[0055] For any bone sampling point between the proximal end and the distal end of the bone segment, the cross-section corresponding to the bone sampling point is constructed as a right ellipse, that is, the bone sampling point is the center point of the right ellipse cross-section, so that the major axis and minor axis of the right ellipse cross-section can be determined, and then the major semi-axis and minor semi-axis are determined, and the major semi-axis and minor semi-axis are used as the cross-section parameters of the right ellipse cross-section.

[0056] For example, refer to Figure 4 , for the bone sampling point P A , the corresponding cross-sectional parameter is A n and A m , for the bone sampling point P B , the corresponding cross-sectional parameter is B n and B m .

[0057] In this embodiment, the skeleton is defined as a straight line. Therefore, the positions of the skeleton sampling points from the proximal body end position to the distal body end position change linearly. The position expression of the skeleton sampling point P is as follows:

[0058] P=P A +σ(P B -P A )

[0059] Among them, 0≤σ≤1, σ is a parameter that changes continuously with the position of the bone sampling point.

[0060] The general form of the cross-sectional parameter expression is defined as follows:

[0061] a=f(parameter, parameter, parameter, ...)

[0062] b = f(parameter, parameter, parameter, ...)

[0063] Correspondingly, if the regular ellipse is linearly variable (i.e. Figure 4 As shown), the corresponding cross-sectional parameters a and b of any bone sampling point P are expressed as follows:

[0064] a=f(A m ,B m ,σ)=A m +σ(B m -A m )

[0065] b=g(A n ,B n ,σ)=A n +σ(B n -A n )

[0066] Where f and g are linear functions, a represents the major semi-axis of the elliptical cross section, b represents the minor semi-axis of the elliptical cross section, and σ corresponds to the bone sampling point P.

[0067] Of course, f and g can also be nonlinear functions. If they are nonlinear functions, a quadratic function can be used to determine the values ​​of the cross-sectional parameters a and b; or the spline interpolation method can be used to plan and achieve the values ​​of the cross-sectional parameters a and b that are more in line with the actual shape of the limb.

[0068] The step S203 of constructing the outermost coordinate expression of the bone segment according to the cross-sectional parameters and determining the space included in the outermost coordinate expression as the volumetric space of the bone segment includes the following steps:

[0069] Step S302: constructing an elliptical coordinate expression of a regular elliptical cross section corresponding to the bone sampling point according to the cross section parameters.

[0070] Among them, according to the ellipse equation, combined with the above-mentioned section parameters, it can be determined that the coordinate relationship expression between the section edge point and the bone sampling point is the ellipse coordinate expression of the corresponding bone sampling point.

[0071] Step S303, according to the positional relationship of all the bone sampling points, the elliptical coordinate expressions of all the bone sampling points are sequentially spliced ​​to obtain the outermost coordinate expression.

[0072] Among them, for a bone sampling point, its corresponding elliptical coordinate expression is the coordinate expression of the outermost edge point of the cross-section where the bone sampling point is located. Therefore, after splicing the elliptical coordinate expressions of all bone sampling points, the three-dimensional outermost coordinate expression can be obtained. The outermost layer here can represent the surface of the limb. Therefore, the space included in the outermost coordinate expression is the volumetric space of the above-mentioned bone segment.

[0073] The embodiment of the present application uses a right ellipse as a right cylinder model, which can effectively express the characteristics of the limbs, and constructs the cross-sectional parameters of the elliptical cross-section in a linear or nonlinear manner. By adjusting the corresponding parameter settings, it can flexibly adapt to various types of limbs, which helps to obtain accurate surface sampling point data.

[0074] See also Figure 5 , is a flow chart of a virtual character skeleton volume simulation sampling method based on a hierarchical structure provided in the fourth embodiment of the present application. Figure 5 As shown, in the above step S203, determining the surface sampling points in the outermost layer of the volumetric space, and determining the coordinates of the surface sampling points as the volumetric sampling results of the bone segment may include the following steps:

[0075] Step S501, determining surface sampling points in the outermost layer of the volumetric space, and determining bone sampling points corresponding to the surface sampling points.

[0076] Step S502, the coordinates of the bone sampling points corresponding to the surface sampling points are substituted into the outermost coordinate expression to obtain the coordinates of the surface sampling points, and the coordinates of the surface sampling points are used as the volumetric sampling results of the bone segment.

[0077] Among them, in the Cartesian coordinate system, if the posture parameters of the bone "X" at time t are known, its corresponding rotation matrix R can be obtained X ∈SO(3), define r X_i Characterization R X The i-th column vector in , and i∈{1,2,3}, at the 3D positions of both ends of the skeleton obtained by forward kinematics (i.e., P A and P B ), for any bone sampling point, the outermost edge point of the corresponding elliptical cross section is the surface sampling point. The bone sampling point is expressed as follows:

[0078] PP X = {P + a·r X_i cosγ+b·r X_j sinγ|0≤γ≤2π;0≤σ≤1;i,j∈{1,2,3}}

[0079] Among them, PP Xrepresents the surface sampling point set of the limb simulation volume corresponding to the limb simulation volume bone sampling point of bone X at time t, γ represents the angle between the surface sampling point and the bone sampling point P, a and b are the cross-sectional parameters, r X_i and r X_j The i-th column vector and the j-th column vector in the rotation matrix are represented, and the specific values ​​of i and j need to be determined according to the definition of the initial posture of each bone and the world coordinate of the standard template. In the embodiment of the present application, the outermost coordinate expression is substituted for use, so as to obtain the data information of each surface sampling point, and provide accurate data support for the subsequent collision detection and penetration judgment using the data of the surface sampling points.

[0080] See also Figure 6 , is a flow chart of a virtual character skeleton volume simulation sampling method based on a hierarchical structure provided in Example 5 of the present application. Figure 6 As shown, the virtual character skeleton volumetric simulation sampling method also includes the following steps:

[0081] Step S601, before obtaining the proximal body end position and the distal body end position of the bone segment to be volumetrically quantized, for any target limb part of the virtual character, obtain the bone corresponding to the target limb part, and determine the first position closest to one end of the body and the second position farthest from one end of the body in the bone.

[0082] In this embodiment, the bones corresponding to the limbs of the virtual character are analyzed through forward kinematics, and the spatial positions of the two ends of the bone can be obtained, which, for the limbs, include the direction away from the body and the direction close to the body. Therefore, the position of the end closest to the body and the position of the end farthest from the body can be determined. The length of the bone can be calculated by the Euclidean distance between the first position bracket and the second position bracket.

[0083] Step S602, dividing the skeleton into N continuous skeleton segments according to the actual shape of the target limb part.

[0084] Where N is an integer greater than zero. For some limb parts, if a single regular ellipse cannot accurately represent its spatial volume shape, multiple ellipse cones (including their deformations) are spliced ​​and combined to complete the limb volume. Therefore, the skeleton can be divided into multiple bone segments, such as Figure 7 As shown, it is a simulation schematic diagram of a plurality of regular ellipsoids spliced ​​together to simulate the volume of a limb provided in Example 5 of the present application.

[0085] For each bone segment, different cylindrical models and parameters can be matched to accurately simulate the limb form.

[0086] Step S603: determining the proximal body end position and the distal body end position of each bone segment according to the first position and the second position.

[0087] Among them, based on the known first position and the second position, the proximal body end position and the distal body end position of each bone segment are calculated. For example, the bone is divided into 3 segments, and the bone length L is determined according to the first position and the second position. The length of each bone segment is L / 3, wherein the proximal body end position of the first segment is the first position, and the distal body end position of the first segment is the position where the first position is extended by L / 3 along the bone direction.

[0088] Optionally, after determining the surface sampling points in the outermost layer of the volumetric space and determining the coordinates of the surface sampling points as the volumetric sampling results of the bone segments, the method further includes:

[0089] Each bone segment is used as a bone segment to be volumetrically processed, and the near-body end position and the far-body end position of the bone segment to be volumetrically processed are obtained until all the bone segments are traversed to obtain the volumetric sampling result of each bone segment;

[0090] The volumetric sampling results of all bone segments are combined to obtain the volumetric sampling result of the target limb part.

[0091] After obtaining the volumetric sampling results of all bone segments, all sampling results are spliced ​​together to obtain the completed volumetric sampling results of the target limb part.

[0092] After obtaining each target limb part of the virtual character, the volumetric sampling results of every two target limb parts can be used to perform collision detection to prevent penetration between limbs.

[0093] Optionally, after the volumetric sampling results of all the bone segments are combined to obtain the volumetric sampling result of the target limb part, the method further includes:

[0094] All target limb parts are traversed, and the volumetric sampling results of all target limb parts are merged to obtain the volumetric sampling result of the virtual character.

[0095] After obtaining the volumetric sampling results of all body parts, all volumetric sampling results are spliced ​​together according to the splicing method of each body part of the virtual character to obtain the volumetric sampling result of the virtual character, thereby completing the volumetric modeling of the entire virtual character.

[0096] The embodiment of the present application can conveniently implement segmented combination based on a universal parametric model, thereby achieving more accurate and practical limb volume simulation.

[0097] Corresponding to the virtual character skeleton volume simulation sampling method based on the hierarchical structure in the above embodiment, Figure 8The structure block diagram of the virtual character skeleton volume simulation sampling device based on the hierarchical structure provided in the seventh embodiment of the present application is shown. The virtual character skeleton volume simulation sampling device is applied to Figure 1 In the server, after receiving the corresponding instruction from the client, the server starts to execute the construction of the character volume, thereby determining the data of the surface sampling points after the volume. For the convenience of explanation, only the part related to the embodiment of the present application is shown.

[0098] See also Figure 8 The virtual character skeleton volumetric simulation sampling device comprises:

[0099] A position acquisition module 81 is used to acquire the near body end position and the far body end position of the skeleton segment of the virtual character to be volumetrically converted;

[0100] A parameter calculation module 82 is used to determine the cross-sectional parameters of the convex geometric shape cross-sectional area corresponding to any bone sampling point from the proximal body end position to the distal body end position, taking the bone sampling point as the center point and combining with a preset regular cylinder model;

[0101] A volume construction module 83, configured to construct an outermost coordinate expression of the bone segment according to the cross-sectional parameters, and determine that the space included in the outermost coordinate expression is the volume space of the bone segment;

[0102] The volumetric sampling module 84 is used to determine the surface sampling points in the outermost layer of the volumetric space, and the coordinates of the surface sampling points are determined as the volumetric sampling results of the bone segment.

[0103] Optionally, the preset regular cylinder model is a regular elliptical cone model.

[0104] Optionally, the parameter calculation module 82 includes:

[0105] A section parameter determination unit is used to determine the section parameters of the regular ellipse section corresponding to the bone sampling point by taking the bone sampling point as the center point and combining the regular ellipse cone model;

[0106] The volumetric building block 83 includes:

[0107] A coordinate expression construction unit, used to construct an elliptical coordinate expression of a regular elliptical cross section corresponding to a bone sampling point according to the cross section parameters;

[0108] The volume construction unit is used to sequentially stitch the elliptical coordinate expressions of all bone sampling points according to the positional relationship of all bone sampling points to obtain the outermost coordinate expression, and determine that the space included in the outermost coordinate expression is the volume space of the bone segment.

[0109] Optionally, the volumetric sampling module 84 includes:

[0110] A bone sampling point determination unit, used to determine the surface sampling points in the outermost layer of the volumetric space, and determine the bone sampling points corresponding to the surface sampling points;

[0111] The volume sampling unit is used to substitute the coordinates of the bone sampling points corresponding to the surface sampling points into the outermost coordinate expression to obtain the coordinates of the surface sampling points, and use the coordinates of the surface sampling points as the volume sampling results of the bone segment.

[0112] Optionally, the virtual character skeleton volumetric simulation sampling device further includes:

[0113] A bone position determination module is used to obtain the bone corresponding to any target limb part of the virtual character before obtaining the proximal body end position and the distal body end position of the bone segment to be volumetrically quantified, and determine a first position of the bone closest to one end of the body and a second position farthest from one end of the body;

[0114] A bone segmentation module, used for dividing the bone into N consecutive bone segments according to the actual morphology of the target limb part, where N is an integer greater than zero;

[0115] The bone segment position determination module is used to determine the proximal body end position and the distal body end position of each bone segment according to the first position and the second position.

[0116] Optionally, the virtual character skeleton volumetric simulation sampling device further includes:

[0117] A bone segment traversal module is used to determine the surface sampling points in the outermost layer of the volumetric space, and after determining the coordinates of the surface sampling points as the volumetric sampling results of the bone segments, each bone segment is used as the bone segment to be volumetrically processed, and the near-body end position and the far-body end position of the bone segment to be volumetrically processed are obtained, until all the bone segments are traversed to obtain the volumetric sampling results of each bone segment;

[0118] The limb volumetric module is used to merge the volumetric sampling results of all bone segments to obtain the volumetric sampling results of the target limb part.

[0119] Optionally, the virtual character skeleton volumetric simulation sampling device further includes:

[0120] The character volumetric module is used to merge the volumetric sampling results of all bone segments to obtain the volumetric sampling results of the target limb parts, then traverse all target limb parts, merge the volumetric sampling results of all target limb parts, and obtain the volumetric sampling results of the virtual character.

[0121] It should be noted that the information interaction, execution process and other contents between the above-mentioned modules are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0122] Fig. 9 This is a schematic diagram of the structure of a computer device provided in Example 7 of this application. Fig. 9 As shown, the computer device of this embodiment includes: at least one processor ( Fig. 9 Only one is shown), a memory, and a computer program stored in the memory and executable on at least one processor, wherein when the processor executes the computer program, the steps in any of the above-mentioned embodiments of the hierarchical structure-based virtual character skeleton volumetric simulation sampling method are implemented.

[0123] The computer device may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that Figure 8 These are merely examples of computer devices and do not constitute limitations on the computer devices. The computer devices may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. For example, they may also include a network interface, a display screen, and an input device.

[0124] The processor may be a CPU, or other general-purpose processors, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0125] The memory includes a readable storage medium, an internal memory, etc., wherein the internal memory may be the memory of a computer device, and the internal memory provides an environment for the operation of an operating system and computer-readable instructions in the readable storage medium. The readable storage medium may be a hard disk of a computer device, and in other embodiments may also be an external storage device of a computer device, for example, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on a computer device. Further, the memory may also include both an internal storage unit of a computer device and an external storage device. The memory is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as program codes of computer programs, etc. The memory may also be used to temporarily store data that has been output or is to be output.

[0126] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned device can refer to the corresponding process in the above-mentioned method embodiment, which will not be repeated here. If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned method embodiment when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device capable of carrying computer program code, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0127] The present application implements all or part of the processes in the above-mentioned embodiment method, and may also be completed through a computer program product. When the computer program product runs on a computer device, the computer device can implement the steps in the above-mentioned method embodiment when executing the computer program product.

[0128] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0129] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0130] In the embodiments provided in the present application, it should be understood that the disclosed devices / computer equipment and methods can be implemented in other ways. For example, the device / computer equipment embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0131] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0132] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application 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. 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 application, and should all be included in the protection scope of the present application.

Claims

1. A virtual character skeleton volumetric simulation sampling method based on a hierarchical structure, characterized in that: The virtual character skeleton volumetric simulation sampling method comprises: Obtaining the near body end position and the far body end position of the skeleton segment of the virtual character to be volumetrically shaped; For any bone sampling point between the proximal body end position and the distal body end position, taking the bone sampling point as the center point and combining with a preset regular cylinder model, determining the cross-sectional parameters of the convex geometric shape cross-sectional area corresponding to the bone sampling point; constructing the outermost coordinate expression of the bone segment according to the cross-sectional parameters, and determining the space included in the outermost coordinate expression as the volumetric space of the bone segment; Surface sampling points are determined in the outermost layer of the volumetric space, and coordinates of the surface sampling points are determined as volumetric sampling results of the bone segment.

2. The virtual character skeleton volumetric simulation sampling method according to claim 1, characterized in that: The preset regular cylinder model is a regular elliptical cone model.

3. The virtual character skeleton volume simulation sampling method according to claim 2, characterized in that: The method of determining the cross-sectional parameters of the convex geometric cross-sectional area corresponding to the bone sampling point by taking the bone sampling point as the center point and combining with a preset regular cylinder model comprises: Taking the bone sampling point as the center point and combining the regular elliptical cone model, determining the section parameters of the regular elliptical section corresponding to the bone sampling point; The step of constructing the outermost coordinate expression of the bone segment according to the cross-section parameters includes: According to the cross-section parameters, construct an elliptical coordinate expression of the regular elliptical cross-section corresponding to the bone sampling point; According to the positional relationship of all the bone sampling points, the elliptical coordinate expressions of all the bone sampling points are concatenated in turn to obtain the outermost coordinate expression.

4. The virtual character skeleton volumetric simulation sampling method according to claim 2, characterized in that: The step of determining a surface sampling point in the outermost layer of the volumetric space and determining the coordinates of the surface sampling point as the volumetric sampling result of the bone segment includes: Determine surface sampling points in the outermost layer of the volumetric space, and determine bone sampling points corresponding to the surface sampling points; Substitute the coordinates of the bone sampling points corresponding to the surface sampling points into the outermost coordinate expression to obtain the coordinates of the surface sampling points, and use the coordinates of the surface sampling points as the volumetric sampling results of the bone segment.

5. The virtual character skeleton volume simulation sampling method according to any one of claims 1 to 4, characterized in that: Before obtaining the proximal body end position and the distal body end position of the bone segment to be volumetrically quantified, the method further includes: For any target limb part of the virtual character, obtain the skeleton corresponding to the target limb part, and determine a first position of the skeleton closest to one end of the body and a second position farthest from one end of the body; According to the actual morphology of the target limb part, the skeleton is divided into N consecutive bone segments, where N is an integer greater than zero; The proximal body end position and the distal body end position of each bone segment are determined according to the first position and the second position.

6. The virtual character skeleton volume simulation sampling method according to claim 5, characterized in that: After determining the surface sampling points in the outermost layer of the volumetric space and determining the coordinates of the surface sampling points as the volumetric sampling results of the bone segment, the method further includes: Taking each bone segment as the bone segment to be volumetrically quantified, performing the step of obtaining the proximal body end position and the distal body end position of the bone segment to be volumetrically quantified, until all the bone segments are traversed to obtain the volumetric sampling result of each bone segment; The volumetric sampling results of all bone segments are combined to obtain the volumetric sampling result of the target limb part.

7. The virtual character skeleton volume simulation sampling method according to claim 6, characterized in that: After the volumetric sampling results of all the bone segments are combined to obtain the volumetric sampling result of the target limb part, the method further includes: All target limb parts are traversed, and the volumetric sampling results of all target limb parts are merged to obtain the volumetric sampling result of the virtual character.

8. A virtual character skeleton volume simulation sampling device based on a hierarchical structure, characterized in that: The virtual character skeleton volumetric simulation sampling device comprises: A position acquisition module, used to acquire the near body end position and the far body end position of the skeleton segment of the virtual character to be volumetrically shaped; A parameter calculation module, for determining, for any bone sampling point from the proximal body end position to the distal body end position, the cross-sectional parameters of the convex geometric shape cross-sectional area corresponding to the bone sampling point with the bone sampling point as the center point and in combination with a preset positive cylinder model; A volumetric construction module, used to construct the outermost coordinate expression of the bone segment according to the cross-sectional parameters, and determine the space included in the outermost coordinate expression as the volumetric space of the bone segment; The volumetric sampling module is used to determine surface sampling points in the outermost layer of the volumetric space, and determine the coordinates of the surface sampling points as the volumetric sampling results of the bone segment.

9. A computer device, characterized in that: The computer device includes a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the virtual character skeleton volumetric simulation sampling method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the virtual character skeleton volume simulation sampling method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Skeleton modeling and simulating method

    CN105224764A

  • Method for generating digital model of patient-topography-specific bone plate

    CN116261431A

  • Intelligent skeleton design system of virtual 3D role

    CN116433811A

  • Methods and apparatus for efficiently rendering, managing, recording, and replaying interactive, multiuser, virtual reality experiences

    US20200234487A1

  • Method For Generating Digital Models Of Osteosynthesis Plates Specific To The Patient's Morphology

    US20220061899A1