CN103700129A - Random human head and random human body 3D (three-dimensional) combination method - Google Patents
Random human head and random human body 3D (three-dimensional) combination method Download PDFInfo
- Publication number
- CN103700129A CN103700129A CN201410007532.8A CN201410007532A CN103700129A CN 103700129 A CN103700129 A CN 103700129A CN 201410007532 A CN201410007532 A CN 201410007532A CN 103700129 A CN103700129 A CN 103700129A
- Authority
- CN
- China
- Prior art keywords
- people
- dimensional
- vertex
- human body
- manikin
- 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
Links
Images
Landscapes
- Processing Or Creating Images (AREA)
- Image Generation (AREA)
Abstract
The invention relates to the technical field of three dimensional human body modeling, in particular to a random human head and any human body 3D (three-dimensional) combination method. The method comprises the steps that 1, a random three dimensional human head model file and a random three dimensional human body model file are exported from three dimensional modeling software, an OBJ file format is adopted and analyzed by an analysis module, and parameters of the random three dimensional human head/body module are obtained; 2, peak parameters of a joint are named one by one, and an index of selected points is built; 3, according to the index obtained in the step 2, corresponding coordinates of the peak parameters to be combined are positioned, superposition is performed one by one, and the random three dimensional human head and random three dimensional human body model 3D combination is completed. According to the method, the speed of extracting the peak parameters of the human body model is rapid by using the text advantages of the OBJ file format, a deformation function formula is obtained by an interpolation calculation method, and the combination of the random human head and the random human body is realized.
Description
[technical field]
The present invention relates to 3 D human body modeling technique field, a kind of any number of people and arbitrarily the 3D associated methods of human body specifically.
[background technology]
Along with the development of virtual reality technology, visual human is more and more extensive in the application of engineering field, but the contradiction between the real-time of virtual human model and verisimilitude is visual human always apply in problem demanding prompt solution.
Sum up existing 3 D human body reduction technique, main method is as follows:
(1) in 3 dimension softwares, set up manikin
(2) scanning Human Modeling mode
Method (1) although reduction that can be very high but make hell to pay and need plenty of time and cost method, and (2) although the fast cost of precise speed is high, operation is difficult.
[summary of the invention]
Object of the present invention is improved on the basis of existing technology, provides a kind of and can input the method that any number of people and human body carry out combination.
Any number of people of the present invention and any 3D associated methods of human body, be achieved through the following technical solutions, and carries out combination realize by the three-dimensional number of people of parsing standard and manikin file and number of people human body, comprises following steps:
Step 1: derive Arbitrary 3 D headform file and Arbitrary 3 D manikin file in 3 d modeling software, described three-dimensional headform's file and three-dimensional (3 D) manikin file adopt obj file form, by parsing module, obj file form is resolved, obtain the parameter of the Arbitrary 3 D number of people/manikin;
The central point of manually adjusting three-dimensional headform and three-dimensional (3 D) manikin before deriving returns 0, i.e. x:0, and y: constant, z:0.
Obj file has row information up to ten thousand, and summit, normal and texture coordinate and material that described obj file form is stored the three-dimensional number of people/manikin with plain text form are used information, in obj file form:
V represents a summit of appointment, and this prefix heel 3 single precision floating datums, represents respectively the x, y, z axial coordinate of this point;
Vt represents a texture coordinate of appointment, and this prefix heel 2 single precision floating datums, represents respectively U, the V value of this texture coordinate;
Vn represents a normal line vector of appointment, and this prefix heel 3 single precision floating datums, represents respectively the x, y, z axial coordinate of this normal line vector;
F represents a surface of appointment, i.e. a triangle primitives.
Parsing for mode a line a line of convenient and our use software of efficiency.Analyzing step is as follows: described parsing module is opened obj file form with board, the described number of people/human parameters shows with several rows, with regular expression, carrying out batch reads, extract line by line the number of people/human parameters in obj file form, the described number of people/human parameters comprises vertex parameter v, face parameter f, uv parameter vt, normal parameter vn, then obtain vertex information according to JS code.
Described regular expression is for reading vertex parameter in batches, and regular expression, claims again normal representation method, conventional expressing method regular expression to describe, mate a series of character strings that meet certain syntactic rule by single character string, obtains following expression:
Var?vertex_pattern*/v(+[\d|\_|\+|\-|e]+)(+[\d|\_|\+|\-|e]+)(+[\d|\_|\+|\-|e]+)/;//vn?float?float?float
Var?normal_pattern*/vn(+[\d|\_|\+|\-|e]+)(+[\d|\_|\+|\-|e]+)(+[\d|\_|\+|\-|e]+)/;//vt?float?float?float
Var?uv_pattern*/vt(+[\d|\_|\+|\-|e]+)(+[\d|\_|\+|\-|e]+)/;//f?vertex?vertex?vertex
Var?face_pattern1*/f(+\d+)(+\d+)(+\d+)(+\d+)(+\d+)?/。
And JS code is result1=vertex_pattern.exec(line), wherein result1 is summit; Vertex_pattern is summit regular expression; The row of line for resolving.
Step 2: manually choose three-dimensional headform and name one by one with the vertex parameter that is three-dimensional (3 D) manikin junction in 3 d modeling software, set up the index of selected point, described index is corresponding one by one with the x, y, z axial coordinate of junction vertex parameter;
Step 3: according to the index obtaining in step 2, be positioned to the respective coordinates of the vertex parameter for the treatment of combination, and summit corresponding to three-dimensional headform and three-dimensional (3 D) manikin junction overlapped one by one, complete the Arbitrary 3 D number of people and be combined with the 3D of Arbitrary 3 D manikin.
Method provided by the invention, by utilizing the text advantage of obj file form, the vertex parameter speed of extracting manikin is fast; Utilize interpolation calculation method to obtain warping function formula, realize any number of people of input and carry out combination with any human body.
[accompanying drawing explanation]
Fig. 1 is the standard manikin reference diagram the present invention relates to;
Fig. 2 is module process flow diagram of the present invention.
[embodiment]
Now by reference to the accompanying drawings and embodiment technical scheme of the present invention is further elaborated, believe that those skilled in the art are clearly.
Any number of people of the present invention and any 3D associated methods of human body, be achieved through the following technical solutions, and described method is carried out combination by the three-dimensional number of people of parsing standard and manikin file and number of people human body and realized, and as shown in Figure 2, comprises following steps:
Step 1: the central point of manually adjusting three-dimensional headform and three-dimensional (3 D) manikin returns 0, be x:0, y: constant, z:0, and in 3 d modeling software, derive Arbitrary 3 D headform file and Arbitrary 3 D manikin file, described three-dimensional headform's file and three-dimensional (3 D) manikin file adopt obj file form, by parsing module, obj file form are resolved, and obtain the parameter of the Arbitrary 3 D number of people/manikin;
Summit, normal and texture coordinate and material that described obj file form is stored the three-dimensional number of people/manikin with plain text form are used information, in obj file form:
V represents a summit of appointment, and this prefix heel 3 single precision floating datums, represents respectively the x, y, z axial coordinate of this point;
Vt represents a texture coordinate of appointment, and this prefix heel 2 single precision floating datums, represents respectively U, the V value of this texture coordinate;
Vn represents a normal line vector of appointment, and this prefix heel 3 single precision floating datums, represents respectively the x, y, z axial coordinate of this normal line vector;
F represents a surface of appointment, i.e. a triangle primitives.
Analyzing step is as follows: described parsing module is opened obj file form with board, the described number of people/human parameters shows with several rows, with regular expression, carrying out batch reads, extract line by line the number of people/human parameters in obj file form, the described number of people/human parameters comprises vertex parameter v, face parameter f, uv parameter vt, normal parameter vn, then obtain vertex information according to JS code.
The expression formula of described regular expression is as follows:
Var?vertex_pattern*/v(+[\d|\_|\+|\-|e]+)(+[\d|\_|\+|\-|e]+)(+[\d|\_|\+|\-|e]+)/;//vn?float?float?float
Var?normal_pattern*/vn(+[\d|\_|\+|\-|e]+)(+[\d|\_|\+|\-|e]+)(+[\d|\_|\+|\-|e]+)/;//vt?float?float?float
Var?uv_pattern*/vt(+[\d|\_|\+|\-|e]+)(+[\d|\_|\+|\-|e]+)/;//f?vertex?vertex?vertex
Var?face_pattern1*/f(+\d+)(+\d+)(+\d+)(+\d+)(+\d+)?/。
And JS code is result1=vertex_pattern.exec(line), wherein result1 is summit; Vertex_pattern is summit regular expression; The row of line for resolving.
Step 2: manually choose three-dimensional headform and name one by one with the vertex parameter that is three-dimensional (3 D) manikin junction in 3 d modeling software, set up the index of selected point, described index is corresponding one by one with the x, y, z axial coordinate of junction vertex parameter;
As 0v 0.2170 0.9345-0.2905 be the 0th point index by that analogy;
1v?0.0000?0.9565?-0.2905
2v?0.17470?0.6955?0.0565
3v?-0.1740?0.6955?0.0565
4v?-0.2170?0.9345?-0.2905
Step 3: according to the index obtaining in step 2, be positioned to the respective coordinates of the vertex parameter for the treatment of combination, and summit corresponding to three-dimensional headform and three-dimensional (3 D) manikin junction overlapped one by one, complete the Arbitrary 3 D number of people and be combined with the 3D of Arbitrary 3 D manikin.
Claims (6)
1. any number of people and an any 3D associated methods for human body, is characterized in that: described method is carried out combination by the three-dimensional number of people of parsing standard and manikin file and number of people human body and realized, and comprises following steps,
(1) step 1: derive Arbitrary 3 D headform file and Arbitrary 3 D manikin file in 3 d modeling software, described three-dimensional headform's file and three-dimensional (3 D) manikin file adopt obj file form, by parsing module, obj file form is resolved, obtain the parameter of the Arbitrary 3 D number of people/manikin;
(2) step 2: manually choose three-dimensional headform and name one by one with the vertex parameter that is three-dimensional (3 D) manikin junction in 3 d modeling software, set up the index of selected point, described index is corresponding one by one with the x, y, z axial coordinate of junction vertex parameter;
(3) step 3: according to the index obtaining in step 2, be positioned to the respective coordinates of the vertex parameter for the treatment of combination, and summit corresponding to three-dimensional headform and three-dimensional (3 D) manikin junction overlapped one by one, complete the Arbitrary 3 D number of people and be combined with the 3D of Arbitrary 3 D manikin.
2. a kind of any number of people as claimed in claim 1 and any 3D associated methods of human body, is characterized in that: the central point of manually adjusting three-dimensional headform and three-dimensional (3 D) manikin before deriving returns 0, i.e. x:0, and y: constant, z:0.
3. a kind of any number of people as claimed in claim 1 and arbitrarily the 3D associated methods of human body, it is characterized in that: described obj file form is with the plain text form storage number of people/human parameters, the summit that comprises the three-dimensional number of people/manikin, normal and texture coordinate and material are used information, analyzing step is as follows: described parsing module is opened obj file form with board, the described number of people/human parameters shows with several rows, with regular expression, carrying out batch reads, extract line by line the number of people/human parameters in obj file form, the described number of people/human parameters comprises vertex parameter v, face parameter f, uv parameter vt, normal parameter vn, according to JS code, obtain vertex information again.
4. a kind of any number of people as claimed in claim 3 and arbitrarily the 3D associated methods of human body, is characterized in that: obj file form:
V represents a summit of appointment, and this prefix heel 3 single precision floating datums, represents respectively the x, y, z axial coordinate of this point;
Vt represents a texture coordinate of appointment, and this prefix heel 2 single precision floating datums, represents respectively U, the V value of this texture coordinate;
Vn represents a normal line vector of appointment, and this prefix heel 3 single precision floating datums, represents respectively the x, y, z axial coordinate of this normal line vector;
F represents a surface of appointment, i.e. a triangle primitives.
5. a kind of any number of people as claimed in claim 3 and arbitrarily the 3D associated methods of human body, is characterized in that: described JS code is result1=vertex_pattern.exec(line); Wherein result1 is summit; Vertex_pattern is summit regular expression; The row of line for resolving.
6. a kind of any number of people as claimed in claim 3 and arbitrarily the 3D associated methods of human body, is characterized in that: described regular expression is for reading vertex parameter in batches, and described regular expression expression formula is as follows:
Var?vertex_pattern*/v(+[\d|\_|\+|\-|e]+)(+[\d|\_|\+|\-|e]+)(+[\d|\_|\+|\-|e]+)/;//vn?float?float?float
Var?normal_pattern*/vn(+[\d|\_|\+|\-|e]+)(+[\d|\_|\+|\-|e]+)(+[\d|\_|\+|\-|e]+)/;//vt?float?float?float
Var?uv_pattern*/vt(+[\d|\_|\+|\-|e]+)(+[\d|\_|\+|\-|e]+)/;//f?vertex?vertex?vertex
Var?face_pattern1*/f(+\d+)(+\d+)(+\d+)(+\d+)(+\d+)?/。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410007532.8A CN103700129A (en) | 2014-01-08 | 2014-01-08 | Random human head and random human body 3D (three-dimensional) combination method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410007532.8A CN103700129A (en) | 2014-01-08 | 2014-01-08 | Random human head and random human body 3D (three-dimensional) combination method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103700129A true CN103700129A (en) | 2014-04-02 |
Family
ID=50361646
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410007532.8A Pending CN103700129A (en) | 2014-01-08 | 2014-01-08 | Random human head and random human body 3D (three-dimensional) combination method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103700129A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104318602A (en) * | 2014-10-31 | 2015-01-28 | 南京偶酷软件有限公司 | Animation production method of figure whole body actions |
CN108389253A (en) * | 2018-02-07 | 2018-08-10 | 盎锐(上海)信息科技有限公司 | Mobile terminal with modeling function and model generating method |
CN109671156A (en) * | 2018-12-27 | 2019-04-23 | 成都四方伟业软件股份有限公司 | Threedimensional model loading method and device |
CN110310358A (en) * | 2018-03-21 | 2019-10-08 | 杭州逍度网络科技有限公司 | A method of realizing per-pixel lighting operation |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100156935A1 (en) * | 2008-12-22 | 2010-06-24 | Electronics And Telecommunications Research Institute | Method and apparatus for deforming shape of three dimensional human body model |
CN103049896A (en) * | 2012-12-27 | 2013-04-17 | 浙江大学 | Automatic registration algorithm for geometric data and texture data of three-dimensional model |
-
2014
- 2014-01-08 CN CN201410007532.8A patent/CN103700129A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100156935A1 (en) * | 2008-12-22 | 2010-06-24 | Electronics And Telecommunications Research Institute | Method and apparatus for deforming shape of three dimensional human body model |
CN103049896A (en) * | 2012-12-27 | 2013-04-17 | 浙江大学 | Automatic registration algorithm for geometric data and texture data of three-dimensional model |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104318602A (en) * | 2014-10-31 | 2015-01-28 | 南京偶酷软件有限公司 | Animation production method of figure whole body actions |
CN108389253A (en) * | 2018-02-07 | 2018-08-10 | 盎锐(上海)信息科技有限公司 | Mobile terminal with modeling function and model generating method |
CN110310358A (en) * | 2018-03-21 | 2019-10-08 | 杭州逍度网络科技有限公司 | A method of realizing per-pixel lighting operation |
CN110310358B (en) * | 2018-03-21 | 2023-10-03 | 杭州逍度网络科技有限公司 | Method for realizing pixel-by-pixel illumination operation |
CN109671156A (en) * | 2018-12-27 | 2019-04-23 | 成都四方伟业软件股份有限公司 | Threedimensional model loading method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Xie et al. | Tree modeling with real tree-parts examples | |
CN104463938A (en) | Three-dimensional virtual make-up trial method and device | |
CN103606190A (en) | Method for automatically converting single face front photo into three-dimensional (3D) face model | |
CN105138780A (en) | Device for rapidly establishing three-dimensional building information model | |
CN103714221A (en) | Method for adjusting deformation of three-dimensional human body by using human body morphological parameters | |
CN103700129A (en) | Random human head and random human body 3D (three-dimensional) combination method | |
CN109086495A (en) | The method that BIM goes out hard-cover construction drawing | |
CN105741347A (en) | Simulation recovery system and method of historic building component | |
CN104407779A (en) | Arrangement display method and device for graphical interface | |
Bhattacharjee et al. | A survey on sketch based content creation: from the desktop to virtual and augmented reality | |
CN106097433A (en) | Object industry and the stacking method of Image model and system | |
CN110782534B (en) | 3D character color gradient method, medium, equipment and device | |
Deng et al. | Sketch2PQ: freeform planar quadrilateral mesh design via a single sketch | |
Miao et al. | SymmSketch: Creating symmetric 3D free-form shapes from 2D sketches | |
Miranda et al. | Sketch express: facial expressions made easy | |
Kazmi et al. | Efficient sketch‐based creation of detailed character models through data‐driven mesh deformations | |
Igarashi et al. | Knitty: 3D Modeling of Knitted Animals with a Production Assistant Interface. | |
KR102026857B1 (en) | 3D printing system using 3D modeling authoring tool based on VR technology | |
CN103902750A (en) | Design method for achieving parameterized three-dimensional modeling and two-dimensional diagram conversion of parts similar to main part | |
Li et al. | Sketch-based 3D modeling by aligning outlines of an image | |
Guo et al. | The simulation of the brush stroke based on force feedback technology | |
Li et al. | A human-computer interactive dynamic description method for Jiaguwen Characters | |
CN103218853A (en) | Crop single-root deformable modeling method | |
Li et al. | Animating cartoon faces by multi‐view drawings | |
CN106157366A (en) | Ultra-large scene based on BIM renders optimization method and system in mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
AD01 | Patent right deemed abandoned | ||
AD01 | Patent right deemed abandoned |
Effective date of abandoning: 20180504 |