CN101894389A - Rotation angle interpolation-based three-dimensional model torsional deformation method - Google Patents

Rotation angle interpolation-based three-dimensional model torsional deformation method Download PDF

Info

Publication number
CN101894389A
CN101894389A CN 201010216585 CN201010216585A CN101894389A CN 101894389 A CN101894389 A CN 101894389A CN 201010216585 CN201010216585 CN 201010216585 CN 201010216585 A CN201010216585 A CN 201010216585A CN 101894389 A CN101894389 A CN 101894389A
Authority
CN
China
Prior art keywords
bone
dimensional model
grid vertex
summit
vector
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN 201010216585
Other languages
Chinese (zh)
Inventor
李凤霞
黄天羽
刘陈
许仁杰
郝云生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Institute of Technology BIT
Original Assignee
Beijing Institute of Technology BIT
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Institute of Technology BIT filed Critical Beijing Institute of Technology BIT
Priority to CN 201010216585 priority Critical patent/CN101894389A/en
Publication of CN101894389A publication Critical patent/CN101894389A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a rotation angle interpolation-based three-dimensional model torsional deformation method. In the method, the speed and the three dimension of deformation can be improved by dividing a three-dimensional model into a deformation zone, a transition zone and a non-deformation zone according to deformation characteristics of a role model and applying different deformation methods to each zone of the three-dimensional model. In the deformation zone and the transition zone of the three-dimensional model, corresponding zones of the three-dimensional model can twist around a framework in torsional deformation; smooth and continuous transition is realized close to articulation points of the surfaces of the three-dimensional model; and in the non-deformation zone of the three-dimensional model, local coordinates of grid vertexes in the non-deformation zone after the torsional deformation can be obtained by performing corresponding Euclidean transformation on part of vertexes.

Description

A kind of three-dimensional model torsional deformation method based on rotation angle interpolation
Technical field
The present invention relates to a kind of three-dimensional model torsional deformation method, belong to computer graphics, virtual reality technology field based on rotation angle interpolation.
Background technology
In the distortion of three-dimensional model, following several deformation technology is arranged usually: Morphing method, FFD deformation method, based on the deformation method of bone.The Morphing method realizes distortion by interpolation method, and the control volume that the FFD deformation method surrounds the three-dimensional model surface by control is realized distortion, realizes distortion by the model surface grid vertex is set corresponding to the weights that influence of bone based on the deformation technology of bone.
For actor model, two parts packets of information is arranged usually with which, the model bone information of the surface mesh information of representation model geometric properties and representation model topological characteristic.The distortion of actor model has following characteristics usually: distortion occurs near the zone the articulation point, belongs to local deformation; Distortion causes that around an articulation point rotation therefore the model after the distortion is consistent with the motion conditions of bone by one section bone.
The Morphing method belongs to overall situation distortion, and can not combine with the motion of bone; The FFD deformation method is to each summit of three-dimensional model, all needs by calculating this summit to the polynomial expression of all control vertexs with the coordinate after obtaining this vertex deformation, and the The deformation calculation complexity can not reach the deformation velocity that meets the demands; Need the user to carry out repeatedly adjustment based on the deformation method of bone, increased the use difficulty influencing weights.
Deformation characteristics at actor model, the inventive method proposes a kind of three-dimensional model torsional deformation method based on rotation angle interpolation, this method is by to carrying out grid vertex that interpolation the obtains three-dimensional model articulation point near zone rotation angle with respect to bone in the torsional deflection process around the anglec of rotation of bone, and then tries to achieve the local coordinate of grid vertex after distortion.
Summary of the invention
The objective of the invention is to overcome the defective of prior art,, propose a kind of three-dimensional model torsional deformation method based on rotation angle interpolation in order to solve the problem of the quick distortion true to nature of actor model.
The present invention is achieved through the following technical solutions:
The skeletal structure of three-dimensional model is: articulation point A and O connect into bone OA, and articulation point B and O connect into bone OB, and bone OA and bone OB are positioned near the axis of three-dimensional model.
Use the local coordinate after following method is calculated three-dimensional model summit torsional deflection:
(1) near three-dimensional model surface mesh shangguan node O, selects two summit P 1, P 2,, should make plane OP as preferably 1P 2With bone OA and bone OB angle separately about equally;
(2) obtain plane OP according to following method 1P 2Equation coefficient,
1. calculate tri-vector
Figure BSA00000166991700021
Wherein * the vectorial multiplication cross of expression;
2. n=n '/| n ' |, variable s=-n μ oμ wherein oThe vector representation of the coordinate of expression articulation point O in world coordinate system; The dot product of expression vector;
3. V=[n, s]; V has stored plane OP 1P 2Four coefficients of equation,
The coefficient of plane equation is meant A, B, C and the D among the Ax+By+Cz+D=0.
(3), judge its grid vertex and plane OP to each triangular mesh of three-dimensional model 1P 2Relation, if all summits of grid all with articulation point A at plane OP 1P 2The same side, judge that then this triangular mesh belongs to bone OA, otherwise judge that this triangular mesh belongs to bone OB; If all do not constitute in the master pattern, then need before judgement, regard non-triangular mesh as a plurality of triangles and form by triangular mesh.
Judge that summit and articulation point A are at plane OP 1P 2The same side method be:
To a summit in the grid, the vector representation of the coordinate in world coordinate system is P, and the vector representation of the coordinate of articulation point A in world coordinate system is μ A,
Calculate f P=nP+s, f A=n μ AIf+s is f PWith f AJack per line judges that then summit P and summit A are at plane OP 1P 2The same side, otherwise judge that summit P and summit A be not at plane OP 1P 2The same side;
(4) make the local coordinate of calculating the three-dimensional model correspondence with the following method be tied to the transformation matrix F of world coordinate system 1:
F 1Be 4 * 4 matrixes, F 1 = α 1 T β 1 T γ 1 T μ o T 0 0 0 1 ,
Subscript T representing matrix matrix transpose operation wherein,
And, vector
Figure BSA00000166991700023
Vector γ 11'/| γ 1' |,
Figure BSA00000166991700024
Vector α 11* γ 1
(5) make the local coordinate of calculating each grid vertex of three-dimensional model with the following method:
The local coordinate of grid vertex P is μ in the three-dimensional model P 'PF 1 -T, μ wherein PThe vector representation of the expression coordinate of summit P in world coordinate system, subscript-T represents earlier matrix is carried out matrix transpose operation again to finding the inverse matrix as a result.
(6) the local coordinate μ of articulation point B B 'BF 1 -T, μ wherein Bα=μ is calculated in the vector representation of the coordinate of expression articulation point B in world coordinate system B/ | μ B|.
(7) according to following method three-dimensional model is divided into distorted area, zone of transition and non-deformation zone,
1. set the maximal projection value d of vector on bone OA and bone OB that distorted area grid vertex and articulation point O constitute;
2. set the value L of minimum projection of vector on bone OA that non-deformation zone grid vertex and articulation point O constitute 1, and the value L of the minimum projection on bone OB 2Should guarantee when being provided with that d is less than L 1, L 2Among minimum value;
3. in three-dimensional model, belong to each grid vertex of bone OA, its local coordinate that obtains in step (5) is written as P=, and (x, y z), less than d, judge then that this summit belongs to the distorted area as if y; If y is greater than L 1, judge that then this summit belongs to non-deformation zone; If y is more than or equal to d and smaller or equal to L 1, judge that then this summit belongs to zone of transition;
4. in three-dimensional model,, use μ to belonging to each grid vertex of bone OB P 'The local coordinate of representing this summit is calculated l PP 'μ B '/ | μ B '|, if l PLess than d, judge that then this summit belongs to the distorted area; If l PGreater than L 2, judge that then this summit belongs to non-deformation zone; If l PMore than or equal to d and smaller or equal to L 2, judge that then this summit belongs to zone of transition;
(8) for each grid vertex that belongs to bone OA in the three-dimensional model, the local coordinate on this summit is written as P 1=(z), if z>0, this summit is with respect to the deflection angle φ of plane AOB for x, y 1=2 π-φ ' 1, otherwise, φ 1=φ ' 1, wherein
Figure BSA00000166991700031
(9) for each grid vertex that belongs to bone OB in the three-dimensional model, the local coordinate on this summit is written as P 2=(z), if z>0, this summit is with respect to the deflection angle φ of plane AOB for x, y 2=2 π-φ 2', otherwise, φ 22', wherein
Figure BSA00000166991700032
And P 2'=(x, y, 0), P 2"=(P 2α) α;
(10) parameter N is set, the grid vertex of three-dimensional model is divided into N zone according to the deflection angle with respect to plane AOB, deflection angle is being numbered of zone of the grid vertex correspondence of φ
Figure BSA00000166991700033
, φ=φ when the summit belongs to bone OA 1, and φ=φ when belonging to bone OB 2
(11) according to vector the projection value on corresponding bone of following each grid vertex of method calculating three-dimensional model with articulation point O formation,
1. for each grid vertex that belongs to bone OA in the three-dimensional model, the projection value of vector on bone OA that this grid vertex and articulation point O constitute equals y, and y is from the local coordinate P of this grid vertex 1=(x, y, z);
2. for each grid vertex that belongs to bone OB in the three-dimensional model, the projection value of vector on bone OB that this grid vertex and articulation point O constitute is P 2μ B '/ | μ B '|, P wherein 2Be this grid vertex local coordinate;
(12) in the obtaining step (10) in each regional distorted area and the zone of transition and belong to the vector that the grid vertex of bone OA and articulation point O constitute, the minimum value l of the projection value on bone OA 1And the minimum value l that belongs to the projection value of vector on bone OB that the grid vertex of bone OB and articulation point O constitute 2
(13) make deformed region and the summit in the transitional region local coordinate after torsional deflection of calculating three-dimensional model with the following method, wherein torsional deflection angle is w 1,
1. for each grid vertex that belongs to bone OA in the distorted area of three-dimensional model and the zone of transition, its local coordinate is written as P 1, from the result of calculation of step (11), obtain the projection value l of vector on bone OA that this grid vertex and articulation point O constitute P1, from the result of calculation of step (12), obtain in the distorted area in zone of this grid vertex correspondence and the zone of transition and belong to the grid vertex of bone OA and the vector that articulation point O constitutes, the minimum value l of the projection value on bone OA 1And belong to minimum value l in the projection value of vector on bone OB that the grid vertex of bone OB and articulation point O constitute 2, wherein the zone of this grid vertex correspondence obtains from the division result of step (10);
2. put P 1Rotation angle θ around bone OA P1=w 1* (L 1-l P1)/(L 1-l 1+ L 2-l 2)-w 1, summit P 1The local coordinate P of corresponding point after the torsional deflection 1'=P 1R P1 T, rotation matrix R wherein P1For:
R P 1 = cos ( θ P 1 ) 0 sin ( θ P 1 ) 0 1 0 - sin ( θ P 1 ) 0 cos ( θ P 1 )
3. for each grid vertex that belongs to bone OB in the distorted area of three-dimensional model and the zone of transition, its local coordinate is written as P 2, from the result of calculation of step (11), obtain the projection value l of vector on bone OB that this grid vertex and articulation point O constitute P2, from the result of calculation of step (12), obtain in the distorted area in zone of this grid vertex correspondence and the zone of transition and belong to the grid vertex of bone OA and the vector that articulation point O constitutes, the minimum value l of the projection value on bone OA 1' and belong to minimum value l in the projection value of vector on bone OB that the grid vertex of bone OB and articulation point O constitute 2', wherein the zone of this grid vertex correspondence obtains from the division result of step (10);
4. put P 2Rotation angle θ around bone OA P2=w 1* (L 1-l 1'+l P2-l 2')/(L 1-l 1'+L 2-l 2')-w 1, summit P 2The local coordinate P of corresponding point after the torsional deflection 2'=P 2R P2 T, rotation matrix R wherein P2For:
R P 2 = cos ( θ P 2 ) 0 sin ( θ P 2 ) 0 1 0 - sin ( θ P 2 ) 0 cos ( θ P 2 )
(14) make the local coordinate of summit after torsional deflection in the non-deformation zone territory of calculating three-dimensional model with the following method, wherein torsional deflection angle is w 1,
For each grid vertex that belongs to bone OA in the three-dimensional model non-deformation zone territory, local coordinate is P before its distortion, the local coordinate P ' after this vertex deformation=PR 1 T, rotation matrix R wherein 1For:
R 1 = cos ( - w 1 ) 0 sin ( - w 1 ) 0 1 0 - sin ( - w 1 ) 0 cos ( - w 1 )
For each grid vertex that belongs to bone OB in the three-dimensional model non-deformation zone territory, its local coordinate is constant before and after distortion.
(15) make the local coordinate of calculating distortion back three-dimensional model correspondence with the following method be tied to the transformation matrix F of world coordinate system 1':
F 1' be 4 * 4 matrixes, F 1 ′ = α ′ T β ′ T γ ′ T μ o ′ T 0 0 0 1 ,
Subscript T representing matrix matrix transpose operation wherein,
And, vector
Figure BSA00000166991700053
Vector γ '=γ "/| γ " |,
Figure BSA00000166991700054
Vector α '=β ' * γ ', μ o' be that articulation point O is out of shape the vector representation of the coordinate in world coordinate system afterwards, A 2, O 2, B 2Be articulation point A, O, the coordinate of B distortion back in world coordinate system.
Obtained local coordinate after all grid vertexes distortion of three-dimensional model by said method, and local coordinate is tied to the transformation matrix of world coordinate system behind the three-dimensional model deformation.Be tied to the transformation matrix of world coordinate system according to local coordinate behind the local coordinate of each grid vertex of three-dimensional model and the three-dimensional model deformation, draw the three-dimensional model after the distortion.So far, finished the torsional deformation of three-dimensional model.
The contrast prior art, the beneficial effect of the inventive method is, according to the deformation characteristics of actor model, three-dimensional model is divided into distorted area, zone of transition and non-deformation zone, by the deformation method different, can improve the speed and the sense of reality of distortion to each area applications of three-dimensional model.In the distorted area and zone of transition of three-dimensional model, by after torsional deflection, grid vertex being carried out interpolation with respect to the rotation angle of bone, can be implemented in three-dimensional model respective regions in the torsional deflection around the reversing of bone, and make the three-dimensional model surface realize smooth, continuous transition at the articulation point near zone; In the non-deformation zone of three-dimensional model, by the part summit being carried out the local coordinate after corresponding European conversion obtains the torsional deflection of non-deformation zone grid vertex.
Description of drawings:
Fig. 1 is a synoptic diagram of three-dimensional model being divided distorted area, zone of transition and non-deformation zone;
Fig. 2 is to the synoptic diagram behind three-dimensional model division distorted area, zone of transition and the non-deformation zone of human body shank.
Embodiment:
Below in conjunction with drawings and Examples technical solution of the present invention is done further explanation, essence of the present invention is a kind of method of three-dimensional model being carried out torsional deflection.
Next be deformed into example with the three-dimensional model that the shank and the pin of human body are formed, the specific embodiment of the present invention is described.
The articulation point of this three-dimensional model correspondence is A, O, B, and wherein articulation point A and O connect into bone OA, and articulation point B and O connect into bone OB.
According to the technical program, the method for this three-dimensional model being carried out torsional deflection is as follows:
(1) near articulation point O, selects two summit P 1, P 2, wherein articulation point O coordinate is (0.053979,0.029863 ,-0.339496), some P 1Coordinate is (0.0623082,0.0758197 ,-0.249175), some P 2Coordinate is (0.0871224,0.0691930 ,-0.263863).Calculate plane OP 1P 2Equation V=(0.0288590 ,-0.891964,0.451185,0.178254).
(2) articulation point A coordinate is (0.099197,0.543307 ,-0.151083), to each grid of three-dimensional model, judge all grid vertexes of this grid whether with articulation point A at plane OP 1P 2The same side, if then this grid belongs to bone OA, otherwise this grid belongs to bone OB.
(3) local coordinate of calculating three-dimensional model is tied to the local coordinate of each grid vertex in the transformation matrix of world coordinate system and the three-dimensional model.
(4) articulation point B coordinate in world coordinate system is (0.0890980,0.0151050 ,-0.256083), calculates the local coordinate B ' of articulation point B, B '=(x, y, z)=(0.09,0.0177,0).
(5) L is set 1=0.25, L 2=0.16, d=0.125, use following method that three-dimensional model is divided into distorted area, zone of transition and non-deformation zone:
In three-dimensional model, belong to each grid vertex of bone OA, (z), less than d, then this summit belongs to the distorted area as if y for x, y, if y is greater than L to obtain its local coordinate P= 1, then this summit belongs to non-deformation zone, if y is more than or equal to d and smaller or equal to L 1, then this summit belongs to zone of transition; In three-dimensional model, belong to each grid vertex of bone OB, obtain its local coordinate P ', calculate
Figure BSA00000166991700061
If l is less than d, then this summit belongs to the distorted area, and greater than L2, then this summit belongs to non-deformation zone as if l, if l is more than or equal to d and smaller or equal to L 2, then this summit belongs to zone of transition.Divide the result as shown in Figure 2.
(6) calculate in the three-dimensional model each grid vertex with respect to the deflection angle φ of plane AOB.The user is provided with parameter N=20, and deflection angle is being numbered of zone of the grid vertex correspondence of φ , grid vertexes all in the three-dimensional model is divided into 20 zones according to deflection angle.
(7) calculate the projection value of vector on corresponding bone of each grid vertex of three-dimensional model and articulation point O formation.
(8) in the obtaining step (6) in each regional distorted area and the zone of transition and belong to the vector that the grid vertex of bone OA and articulation point O constitute, the minimum value l of the projection value on bone OA 1And the minimum value l that belongs to the projection value of vector on bone OB that the grid vertex of bone OB and articulation point O constitute 2
(9) make deformed region and the summit in the transitional region local coordinate after torsional deflection of calculating three-dimensional model with the following method, wherein torsional deflection angle w 1=-0.261803:
For each grid vertex that belongs to bone OA in the distorted area of three-dimensional model and the zone of transition, its local coordinate is written as P 1From the result of calculation of step (7), obtain the projection value l of vector on bone OA that this grid vertex and articulation point O constitute, from the result of calculation of step (8), obtain in the distorted area in zone of this grid vertex correspondence and the zone of transition and belong to the grid vertex of bone OA and the vector that articulation point O constitutes, the minimum value l of the projection value on bone OA 1And belong to minimum value l in the projection value of vector on bone OB that the grid vertex of bone OB and articulation point O constitute 2, wherein the zone of this grid vertex correspondence obtains from the division result of step (6), some P 1Around bone OA rotation angle θ 1=w 1* (L 1-l)/(L 1-l 1+ L 2-l 2)-w 1, calculate rotation matrix R 1, grid vertex P 1The local coordinate P of corresponding point after the torsional deflection 1'=P 1R 1 TFor each grid vertex that belongs to bone OB in the distorted area of three-dimensional model and the zone of transition, its local coordinate is written as P 2From the result of calculation of step (7), obtain the projection value l ' of vector on bone OB that this grid vertex and articulation point O constitute, from the result of calculation of step (8), obtain in the distorted area in zone of this grid vertex correspondence and the zone of transition and belong to the grid vertex of bone OA and the vector that articulation point O constitutes, the minimum value l of the projection value on bone OA 1' and belong to minimum value l in the projection value of vector on bone OB that the grid vertex of bone OB and articulation point O constitute 2', wherein the zone of this grid vertex correspondence obtains from the division result of step (6), some P 2Around bone OA rotation angle θ 2=w 1* (L 1-l 1'+l '-l 2')/(L 1-l 1'+L 2-l 2')-w 1, calculate rotation matrix R 2, grid vertex P 2The local coordinate P of corresponding point after the torsional deflection 2'=P 2R 2 T
(10) calculate rotation matrix R, wherein rotation angle w=-w 1, turning axle direction vector ρ=(0,1,0); For each grid vertex that belongs to bone OA in the three-dimensional model non-deformation zone territory, its local coordinate is P, the local coordinate P '=PR after this summit torsional deflection TThe grid vertex distortion front and back local coordinate that belongs to bone OB in the three-dimensional model non-deformation zone territory is constant.
(11) the corresponding coordinate of articulation point in world coordinate system is A behind the three-dimensional model deformation 2=(0.1508,0.4863 ,-0.0254), O 2=(0.054,0.0399 ,-0.3295), B 2=(0.1048 ,-0.0149 ,-0.2764) makes the local coordinate of calculating distortion back three-dimensional model correspondence with the following method be tied to the transformation matrix F of world coordinate system 1':
F 1' be 4 * 4 matrixes, F 1 ′ = α ′ T β ′ T γ ′ T μ o ′ T 0 0 0 1 ,
Subscript T representing matrix matrix transpose operation wherein,
And, vector
Figure BSA00000166991700082
Vector γ '=γ "/| γ " |,
Figure BSA00000166991700083
Vector α '=β ' * γ ', μ o' be that articulation point O is out of shape the vector representation of the coordinate in world coordinate system afterwards.
Obtained local coordinate after all grid vertexes distortion of three-dimensional model by said method, and local coordinate is tied to the transformation matrix of world coordinate system behind the three-dimensional model deformation.Be tied to the transformation matrix of world coordinate system according to local coordinate behind the local coordinate of each grid vertex of three-dimensional model and the three-dimensional model deformation, can use OPENGL to draw three-dimensional model after function and model view matrix manipulation function are drawn distortion.So far, finished the torsional deformation of three-dimensional model.
Above-described specific descriptions; purpose, technical scheme and beneficial effect to invention further describe; institute is understood that; the above only is specific embodiments of the invention; and be not intended to limit the scope of the invention; within the spirit and principles in the present invention all, any modification of being made, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (3)

1. three-dimensional model torsional deformation method based on rotation angle interpolation, the skeletal structure of described three-dimensional model is: articulation point A and O connect into bone OA, and articulation point B and O connect into bone OB, and bone OA and bone OB are positioned near the axis of three-dimensional model; It is characterized in that, comprise the steps:
Use the local coordinate after following method is calculated three-dimensional model summit torsional deflection:
(1) near three-dimensional model surface mesh shangguan node O, selects two summit P 1, P 2
(2) obtain plane OP according to following method 1P 2Equation coefficient,
1. calculate tri-vector
Figure FSA00000166991600011
Wherein * the vectorial multiplication cross of expression;
2. n=n '/| n ' |, variable s=-n μ oμ wherein oThe vector representation of the coordinate of expression articulation point O in world coordinate system; The dot product of expression vector;
3. V=[n, s]; V has stored plane OP 1P 2Four coefficients of equation;
(3), judge its grid vertex and plane OP to each triangular mesh of three-dimensional model 1P 2Relation, if all summits of grid all with articulation point A at plane OP 1P 2The same side, judge that then this triangular mesh belongs to bone OA, otherwise judge that this triangular mesh belongs to bone OB; If all do not constitute in the master pattern, then need before judgement, regard non-triangular mesh as a plurality of triangles and form by triangular mesh;
(4) make the local coordinate of calculating the three-dimensional model correspondence with the following method be tied to the transformation matrix F of world coordinate system 1:
F 1Be 4 * 4 matrixes, F 1 = α 1 T β 1 T γ 1 T μ o T 0 0 0 1 ,
Subscript T representing matrix matrix transpose operation wherein,
And, vector
Figure FSA00000166991600013
Vector γ 11'/| γ 1' |,
Figure FSA00000166991600014
Vector α 11* γ 1
(5) make the local coordinate of calculating each grid vertex of three-dimensional model with the following method:
The local coordinate of grid vertex P is μ in the three-dimensional model P 'PF 1 -T, μ wherein PThe vector representation of the expression coordinate of summit P in world coordinate system, subscript-T represents earlier matrix is carried out matrix transpose operation again to finding the inverse matrix as a result;
(6) the local coordinate μ of articulation point B B 'BF 1 -T, μ wherein Bα=μ is calculated in the vector representation of the coordinate of expression articulation point B in world coordinate system B/ | μ B|;
(7) according to following method three-dimensional model is divided into distorted area, zone of transition and non-deformation zone,
1. set the maximal projection value d of vector on bone OA and bone OB that distorted area grid vertex and articulation point O constitute;
2. set the value L of minimum projection of vector on bone OA that non-deformation zone grid vertex and articulation point O constitute 1, and the value L of the minimum projection on bone OB 2Should guarantee when being provided with that d is less than L 1, L 2Among minimum value;
3. in three-dimensional model, belong to each grid vertex of bone OA, its local coordinate that obtains in step (5) is written as P=, and (x, y z), less than d, judge then that this summit belongs to the distorted area as if y; If y is greater than L 1, judge that then this summit belongs to non-deformation zone; If y is more than or equal to d and smaller or equal to L 1, judge that then this summit belongs to zone of transition;
4. in three-dimensional model,, use μ to belonging to each grid vertex of bone OB P 'The local coordinate of representing this summit is calculated l PP 'μ B '/ | μ B '|, if l PLess than d, judge that then this summit belongs to the distorted area; If l PGreater than L 2, judge that then this summit belongs to non-deformation zone; If l PMore than or equal to d and smaller or equal to L 2, judge that then this summit belongs to zone of transition;
(8) for each grid vertex that belongs to bone OA in the three-dimensional model, the local coordinate on this summit is written as P 1=(z), if z>0, this summit is with respect to the deflection angle φ of plane AOB for x, y 1=2 π-φ ' 1, otherwise, φ 1=φ ' 1, wherein
Figure FSA00000166991600021
(9) for each grid vertex that belongs to bone OB in the three-dimensional model, the local coordinate on this summit is written as P 2=(z), if z>0, this summit is with respect to the deflection angle φ of plane AOB for x, y 2=2 π-φ 2', otherwise, φ 22', wherein And P 2'=(x, y, 0), P 2"=(P 2α) α;
(10) parameter N is set, the grid vertex of three-dimensional model is divided into N zone according to the deflection angle with respect to plane AOB, deflection angle is being numbered of zone of the grid vertex correspondence of φ
Figure FSA00000166991600023
, φ=φ when the summit belongs to bone OA 1, and φ=φ when belonging to bone OB 2
(11) according to vector the projection value on corresponding bone of following each grid vertex of method calculating three-dimensional model with articulation point O formation,
1. for each grid vertex that belongs to bone OA in the three-dimensional model, the projection value of vector on bone OA that this grid vertex and articulation point O constitute equals y, and y is from the local coordinate P of this grid vertex 1=(x, y, z);
2. for each grid vertex that belongs to bone OB in the three-dimensional model, the projection value of vector on bone OB that this grid vertex and articulation point O constitute is P 2μ B '/ | μ B '|, P wherein 2Be this grid vertex local coordinate;
(12) in the obtaining step (10) in each regional distorted area and the zone of transition and belong to the vector that the grid vertex of bone OA and articulation point O constitute, the minimum value l of the projection value on bone OA 1And the minimum value l that belongs to the projection value of vector on bone OB that the grid vertex of bone OB and articulation point O constitute 2
(13) make deformed region and the summit in the transitional region local coordinate after torsional deflection of calculating three-dimensional model with the following method, wherein torsional deflection angle is w 1,
1. for each grid vertex that belongs to bone OA in the distorted area of three-dimensional model and the zone of transition, its local coordinate is written as P 1, from the result of calculation of step (11), obtain the projection value l of vector on bone OA that this grid vertex and articulation point O constitute P1, from the result of calculation of step (12), obtain in the distorted area in zone of this grid vertex correspondence and the zone of transition and belong to the grid vertex of bone OA and the vector that articulation point O constitutes, the minimum value l of the projection value on bone OA 1And belong to minimum value l in the projection value of vector on bone OB that the grid vertex of bone OB and articulation point O constitute 2, wherein the zone of this grid vertex correspondence obtains from the division result of step (10);
2. put P 1Rotation angle θ around bone OA P1=w 1* (L 1-l P1)/(L 1-l 1+ L 2-l 2)-w 1, summit P 1The local coordinate P of corresponding point after the torsional deflection 1'=P 1R P1 T, rotation matrix R wherein P1For:
R P 1 = cos ( θ P 1 ) 0 sin ( θ P 1 ) 0 1 0 - sin ( θ P 1 ) 0 cos ( θ P 1 )
3. for each grid vertex that belongs to bone OB in the distorted area of three-dimensional model and the zone of transition, its local coordinate is written as P 2, from the result of calculation of step (11), obtain the projection value l of vector on bone OB that this grid vertex and articulation point O constitute P2, from the result of calculation of step (12), obtain in the distorted area in zone of this grid vertex correspondence and the zone of transition and belong to the grid vertex of bone OA and the vector that articulation point O constitutes, the minimum value l of the projection value on bone OA 1' and belong to minimum value l in the projection value of vector on bone OB that the grid vertex of bone OB and articulation point O constitute 2', wherein the zone of this grid vertex correspondence obtains from the division result of step (10);
4. put P 2Rotation angle θ around bone OA P2=w 1* (L 1-l 1'+l P2-l 2')/(L 1-l 1'+L 2-l 2')-w 1, summit P 2The local coordinate P of corresponding point after the torsional deflection 2'=P 2R P2 T, rotation matrix R wherein P2For:
R P 2 = cos ( θ P 2 ) 0 sin ( θ P 2 ) 0 1 0 - sin ( θ P 2 ) 0 cos ( θ P 2 )
(14) make the local coordinate of summit after torsional deflection in the non-deformation zone territory of calculating three-dimensional model with the following method, wherein torsional deflection angle is w 1,
For each grid vertex that belongs to bone OA in the three-dimensional model non-deformation zone territory, local coordinate is P before its distortion, the local coordinate P ' after this vertex deformation=PR 1 T, rotation matrix R wherein 1For:
R 1 = cos ( - w 1 ) 0 sin ( - w 1 ) 0 1 0 - sin ( - w 1 ) 0 cos ( - w 1 )
For each grid vertex that belongs to bone OB in the three-dimensional model non-deformation zone territory, its local coordinate is constant before and after distortion;
(15) make the local coordinate of calculating distortion back three-dimensional model correspondence with the following method be tied to the transformation matrix F of world coordinate system 1':
F 1' be 4 * 4 matrixes, F 1 ′ = α ′ T β ′ T γ ′ T μ o ′ T 0 0 0 1 ,
Subscript T representing matrix matrix transpose operation wherein,
And, vector
Figure FSA00000166991600043
Vector γ '=γ "/| γ " |,
Figure FSA00000166991600044
Vector α '=β ' * γ ', μ o' be that articulation point O is out of shape the vector representation of the coordinate in world coordinate system afterwards, A 2, O 2, B 2Be articulation point A, O, the coordinate of B distortion back in world coordinate system;
Be tied to the transformation matrix of world coordinate system according to local coordinate behind the local coordinate of each grid vertex of three-dimensional model that obtains and the three-dimensional model deformation, draw the three-dimensional model after the distortion, finish the torsional deformation of three-dimensional model.
2. according to the described a kind of three-dimensional model torsional deformation method of claim 1, it is characterized in that, near three-dimensional model surface mesh shangguan node O, select two summit P in the step (1) based on rotation angle interpolation 1, P 2The time, as preferably, should make plane OP 1P 2With bone OA and bone OB angle separately about equally.
3. according to the described a kind of three-dimensional model torsional deformation method of claim 1, it is characterized in that, judge in the step (3) that summit and articulation point A are at plane OP based on rotation angle interpolation 1P 2The same side method be:
To a summit in the grid, the vector representation of the coordinate in world coordinate system is P, and the vector representation of the coordinate of articulation point A in world coordinate system is μ A,
Calculate f P=nP+s, f A=n μ AIf+s is f PWith f AJack per line judges that then summit P and summit A are at plane OP 1P 2The same side, otherwise judge that summit P and summit A be not at plane OP 1P 2The same side.
CN 201010216585 2010-07-02 2010-07-02 Rotation angle interpolation-based three-dimensional model torsional deformation method Pending CN101894389A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010216585 CN101894389A (en) 2010-07-02 2010-07-02 Rotation angle interpolation-based three-dimensional model torsional deformation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010216585 CN101894389A (en) 2010-07-02 2010-07-02 Rotation angle interpolation-based three-dimensional model torsional deformation method

Publications (1)

Publication Number Publication Date
CN101894389A true CN101894389A (en) 2010-11-24

Family

ID=43103571

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010216585 Pending CN101894389A (en) 2010-07-02 2010-07-02 Rotation angle interpolation-based three-dimensional model torsional deformation method

Country Status (1)

Country Link
CN (1) CN101894389A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108846884A (en) * 2018-05-29 2018-11-20 电子科技大学 A kind of adaptive weighting setting method of three-dimensional animation algorithm
CN108932746A (en) * 2018-05-21 2018-12-04 电子科技大学 A kind of human body three-dimensional animation articular skin deformation method
US20210007806A1 (en) * 2018-03-21 2021-01-14 Vikas KARADE A method for obtaining 3-d deformity correction for bones

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003030254A (en) * 2001-07-17 2003-01-31 Toyota Motor Corp Method for deforming three-dimensional shape model
CN1617175A (en) * 2004-12-09 2005-05-18 上海交通大学 Human limb three-dimensional model building method based on labelling point
CN1773555A (en) * 2005-10-26 2006-05-17 浙江大学 Sparse grid-oriented three-dimensional foot type fast acquiring method based on standard foot deformation
WO2006106686A1 (en) * 2005-04-04 2006-10-12 Toyota Jidosha Kabushiki Kaisha Three-dimensional model deformation system, method and computer readable program, and computer readable storage medium storing that program
CN101383053A (en) * 2008-10-31 2009-03-11 北京理工大学 3D grid deforming method based on surface area keeping

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003030254A (en) * 2001-07-17 2003-01-31 Toyota Motor Corp Method for deforming three-dimensional shape model
CN1617175A (en) * 2004-12-09 2005-05-18 上海交通大学 Human limb three-dimensional model building method based on labelling point
WO2006106686A1 (en) * 2005-04-04 2006-10-12 Toyota Jidosha Kabushiki Kaisha Three-dimensional model deformation system, method and computer readable program, and computer readable storage medium storing that program
CN1773555A (en) * 2005-10-26 2006-05-17 浙江大学 Sparse grid-oriented three-dimensional foot type fast acquiring method based on standard foot deformation
CN101383053A (en) * 2008-10-31 2009-03-11 北京理工大学 3D grid deforming method based on surface area keeping

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210007806A1 (en) * 2018-03-21 2021-01-14 Vikas KARADE A method for obtaining 3-d deformity correction for bones
CN108932746A (en) * 2018-05-21 2018-12-04 电子科技大学 A kind of human body three-dimensional animation articular skin deformation method
CN108846884A (en) * 2018-05-29 2018-11-20 电子科技大学 A kind of adaptive weighting setting method of three-dimensional animation algorithm

Similar Documents

Publication Publication Date Title
Hinds et al. Pattern development for 3D surfaces
CN103679783B (en) Geometric deformation based skin deformation method for three-dimensional animated character model
CN101510083B (en) Airplane covering transversal stretch forming loading track designing and numerical control code generating method
CN101383053B (en) 3D grid deforming method based on surface area keeping
CN101408991B (en) Curved surface molding method combing interpolation type subdivision and approach type subdivision
CN102880741A (en) Method for generating garment body prototype model based on personalized three-dimensional virtual dress form
CN105313336A (en) Thin-shell 3D printing optimizing method
CN104574266B (en) Morphing based on contour line
CN104821006A (en) Dynamic clothing simulation method based on human body mixed enclosing box
CN101894389A (en) Rotation angle interpolation-based three-dimensional model torsional deformation method
CN107093200A (en) A kind of method of Skeletal Skinned Animation surface mesh additional model
CN101615300B (en) Ambient light occlusion method for microstructural surface object of screen space
CN105573143A (en) Inverse kinematics solving method for 6-DOF (degree of freedom) industrial robot
CN101833785A (en) Controllable dynamic shape interpolation method with physical third dimension
CN106625687A (en) Kinematics modeling method for articulated robot
Chen et al. Lattice-based skinning and deformation for real-time skeleton-driven animation
CN101872489A (en) Method for bending deformation of three-dimensional model on basis of circular curve
CN101866494B (en) Method for carrying out segmentation on role model by utilizing grid vertexes
JP5067935B2 (en) Simulation device
CN101872490A (en) Improved three-dimensional model deformation method under abrupt change in coordinate axis direction
CN103325086A (en) Deformation method of three-dimensional figure based on tetrahedron coordinate system
Alauzet Efficient moving mesh technique using generalized swapping
US20080129727A1 (en) System and method for generating curvature adapted isosurface based on delaunay triangulation
CN106570223A (en) Unity 3D based garment simulation human body collision ball extraction
JP4935506B2 (en) Apparatus and method for creating three-dimensional shape data of object

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20101124