CN110570518A - Mass model loading method based on high compression of model data - Google Patents
Mass model loading method based on high compression of model data Download PDFInfo
- Publication number
- CN110570518A CN110570518A CN201910823383.5A CN201910823383A CN110570518A CN 110570518 A CN110570518 A CN 110570518A CN 201910823383 A CN201910823383 A CN 201910823383A CN 110570518 A CN110570518 A CN 110570518A
- Authority
- CN
- China
- Prior art keywords
- model
- data
- vertex
- compression
- gltf
- 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
- 230000006835 compression Effects 0.000 title claims abstract description 36
- 238000007906 compression Methods 0.000 title claims abstract description 36
- 238000011068 loading method Methods 0.000 title claims abstract description 29
- 238000000034 method Methods 0.000 claims abstract description 17
- 238000005457 optimization Methods 0.000 claims abstract description 5
- 241000509579 Draco Species 0.000 claims description 9
- 238000013507 mapping Methods 0.000 claims description 5
- 230000009286 beneficial effect Effects 0.000 abstract 1
- 239000000463 material Substances 0.000 description 3
- 239000013598 vector Substances 0.000 description 3
- 238000009877 rendering Methods 0.000 description 2
- 241000221696 Sclerotinia sclerotiorum Species 0.000 description 1
- 239000011449 brick Substances 0.000 description 1
- 210000004534 cecum Anatomy 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000013499 data model Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T17/00—Three dimensional [3D] modelling, e.g. data description of 3D objects
- G06T17/05—Geographic models
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T19/00—Manipulating 3D models or images for computer graphics
- G06T19/20—Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Software Systems (AREA)
- Geometry (AREA)
- Computer Graphics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Remote Sensing (AREA)
- Architecture (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Processing Or Creating Images (AREA)
Abstract
the invention provides a massive model loading method based on high compression of model data, which comprises the following steps: optimizing the model vertex; model data are simplified; the model is highly compressed. The invention has the beneficial effects that: based on model vertexes, a compression method of three procedures of vertex clipping optimization, vertex model data simplification and model height compression based on a gltf-pipeline method is adopted, the model is simplest without distortion, and therefore the large-data-volume model loading under the limitation of network bandwidth is better met.
Description
Technical Field
The invention belongs to the technical field of model loading, and particularly relates to a massive model loading method based on high compression of model data.
Background
In the prior art, the schemes for loading massive three-dimensional models (particularly white mould data) are roughly divided into two types: firstly, a building group is quickly formed in a vector drawing mode, and the method has the advantages of high forming speed and high performance. But the disadvantages are also evident: the building group consisting of the tourist boxes can only be seen from far, and the details of the model cannot be well expressed after the visual angle is zoomed in; secondly, the manufactured city model data is loaded after being processed, the method can well express the details of the model, but the performance is seriously influenced by the number of the top points and the network bandwidth, so that the problems of low frame number, long loading waiting time and the like exist. And the current compression scheme can not solve the problem well. The draco compression recommended by *** can highly compress model data, but the compressed models are automatically merged, so that certain limitations exist in the aspects of supporting model singleization and material batch rendering.
Disclosure of Invention
In view of this, the present invention aims to provide a massive model loading method based on high compression of model data, which simplifies the model without distortion, thereby better satisfying the large data model loading under the limitation of network bandwidth, and supporting model singleization and material loading.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
A mass model loading method based on model data high compression comprises the following steps:
A. Optimizing the model vertex;
B. Simplifying model data of the model optimized in the step A;
C. And C, performing model height compression on the simplified model in the step B.
further, in the step a, a 3dmax vertex optimization function is adopted to perform high-order compression on the model vertex, so that the minimum number of vertices is ensured under the condition of no distortion.
furthermore, the number of model vertices is compressed in percentage in the step a, and redundant points are manually deleted under the condition that the model is not distorted and does not lose faces.
Further, the model data simplification process in the step B is as follows: and D, deleting the mapping coordinates, the vertex normal and the parameter space vertex of the model optimized in the step A, only keeping the geometric vertex coordinates, and then deriving the model into an obj data format.
Further, in the step C, the obj data format model is converted into a gltf format model, and then the gltf-pipeline is used to perform Draco gltf model compression on the gltf format model, so as to load the highly compressed gltf format model.
Compared with the prior art, the mass model loading method based on the high compression of the model data has the following advantages:
(1) The massive model loading method based on the model data high compression is based on model vertexes, adopts a compression method of three procedures of vertex clipping optimization, vertex model data simplification and model high compression based on a gltf-pipeline method, and simplifies the model under the condition of no distortion, so that the massive model loading under the network bandwidth limitation is better met, compared with the draco compression, the model singleization and material loading are better supported, and the gltf format can better support mainstream webgl three-dimensional rendering engines such as medium, threejs and the like;
(2) according to the massive model loading method based on the high compression of the model data, when a user only needs to load white mode data, unnecessary data such as vertex normal vectors, texture coordinates and the like in the obj format can be deleted through a second process (namely, other unnecessary data except geometric vertex data, such as mapping coordinate vertices, vertex normals and the like, are not needed in the embodiment, and certainly, the data of the mapping is not needed in the loading of the white mode data), so that the simplest data is achieved.
drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate an embodiment of the invention and, together with the description, serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a flowchart of a mass model loading method based on high compression of model data according to an embodiment of the present invention.
Detailed Description
it should be noted that the embodiments and features of the embodiments may be combined with each other without conflict.
the present invention will be described in detail below with reference to the embodiments with reference to the attached drawings.
As shown in fig. 1, a method for loading a mass model based on high compression of model data includes the following steps:
A. Optimizing the model vertex;
B. simplifying model data of the model optimized in the step A;
C. and C, performing model height compression on the simplified model in the step B.
And in the step A, a 3dmax vertex optimization function is adopted to carry out high-order compression on the model vertex, and the minimum number of vertices is ensured under the condition of no distortion.
In the step A, the number of model vertices is compressed in percentage, and under the condition that the model is not distorted and does not lose faces, redundant points are manually deleted, wherein partial vertices which do not influence the appearance structure and things which represent certain excessive details, such as textures of wall bricks, patterns of eave and the like, are deleted, and the number of faces and the size of data are reduced by deleting the points.
The model data simplification process in the step B comprises the following steps: and C, deleting mapping coordinates, vertex normals and parameter space vertexes of the model optimized in the step A, only keeping geometric vertex coordinates, then exporting the model into an obj data format, or opening the obj data format model through a text editor, manually deleting vertex normal vectors, and deleting texture coordinates if necessary.
in the step C, the obj data format model is converted into a gltf format model, and then the gltf-pipeline is used to perform Draco gltf model compression on the gltf format model, so as to load the highly compressed gltf format model. Specifically, the obj data format model is converted into the gltf format model through an open source tool obj2gltf tool, and then the gltf-pipeline tool provided by the company outlet process makes the model in the gltf format model compressed based on the draco technology.
The specific process in the step C is as follows:
the obj data is converted into the gltf format by the open source tool obj2gltf tool, the conversion command line is exemplified as follows,
obj2gltf.exe-i./xxxx/xxxx/xxxx.obj-o xxxx.gltf
wherein-i is obj format data to be converted, and-o is output gltf format data;
The method is characterized in that a gltf-pipeline tool provided by the ceium is used for carrying out model compression on a gltf model based on a draco technology, and the method mainly comprises the following steps:
Installing gltf-pipeline;
The model in gltf format is converted to a Draco gltf model, with the command line as follows,
gltf-pipeline-i model.gltf-o modelDraco.gltf-d
wherein, -i is the data in the gltf format to be converted, -o is the compressed gltf data, -d is the level of performing draco compression, the range is 0-10, the larger the number is, the larger the compression ratio is, the worse the quality is, and the default condition is 7;
Loading a three-dimensional model, wherein the cecum loading mode is the same as the common gltf loading mode; the threejs loading mode mainly refers to two js files, namely GLTFLoader. js and Dracooloader. js, and the specific implementation codes are as follows:
the above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
Claims (5)
1. A mass model loading method based on model data high compression is characterized by comprising the following steps:
A. optimizing the model vertex;
B. Simplifying model data of the model optimized in the step A;
C. and C, performing model height compression on the simplified model in the step B.
2. the mass model loading method based on the high compression of the model data according to claim 1, characterized in that: and in the step A, a 3dmax vertex optimization function is adopted to carry out high-order compression on the model vertex, and the minimum number of vertices is ensured under the condition of no distortion.
3. the mass model loading method based on the high compression of the model data according to claim 1, characterized in that: and B, performing percentage compression on the number of model vertices in the step A, and manually deleting redundant points under the condition that the model is not distorted and does not lose surfaces.
4. The mass model loading method based on model data high compression according to claim 1, wherein the model data simplification process in step B is as follows: and D, deleting the mapping coordinates, the vertex normal and the parameter space vertex of the model optimized in the step A, only keeping the geometric vertex coordinates, and then deriving the model into an obj data format.
5. the mass model loading method based on model data high compression according to claim 4, characterized in that: in the step C, the obj data format model is converted into a gltf format model, then the gltf-pipeline is used for carrying out Draco gltf model compression on the gltf format model, and the highly compressed gltf format model is loaded.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910823383.5A CN110570518A (en) | 2019-09-02 | 2019-09-02 | Mass model loading method based on high compression of model data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910823383.5A CN110570518A (en) | 2019-09-02 | 2019-09-02 | Mass model loading method based on high compression of model data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110570518A true CN110570518A (en) | 2019-12-13 |
Family
ID=68777431
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910823383.5A Pending CN110570518A (en) | 2019-09-02 | 2019-09-02 | Mass model loading method based on high compression of model data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110570518A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111352913A (en) * | 2020-03-30 | 2020-06-30 | 西安震有信通科技有限公司 | File compression method and device, storage medium and terminal equipment |
CN114140569A (en) * | 2022-01-27 | 2022-03-04 | 山东捷瑞数字科技股份有限公司 | Three-dimensional scene serialization compression method |
CN114895981A (en) * | 2022-05-10 | 2022-08-12 | 安徽云森物联网科技有限公司 | Method and system for increasing speed of loading 3D model on front-end page |
CN114943810A (en) * | 2022-07-26 | 2022-08-26 | 安徽继远软件有限公司 | Osgb-based optimization method, terminal, device and medium for oblique photography slice |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101119485A (en) * | 2007-08-06 | 2008-02-06 | 北京航空航天大学 | Characteristic reservation based three-dimensional model progressive transmission method |
CN101377857A (en) * | 2008-07-30 | 2009-03-04 | 电子科技大学 | Method for simplifying three-dimensional model based on octree space division and culmination deletion |
CN103632394A (en) * | 2013-12-02 | 2014-03-12 | 江苏科技大学 | Model simplification method with feature keeping function |
CN103763307A (en) * | 2013-12-30 | 2014-04-30 | 华中科技大学 | Bandwidth optimization method and system |
CN104199659A (en) * | 2014-08-28 | 2014-12-10 | 无锡梵天信息技术股份有限公司 | Method and device for exporting model information capable of being identified by 3DMAX |
CN105243280A (en) * | 2015-10-30 | 2016-01-13 | 西安电子科技大学 | Time domain physical optics algorithm based on CPU (Central Processing Unit) and GPU (Graphics Processing Unit) hybrid asynchronous parallel way |
CN106600679A (en) * | 2015-10-20 | 2017-04-26 | 星际空间(天津)科技发展有限公司 | Three-dimensional model data simplification method |
CN109413218A (en) * | 2019-01-14 | 2019-03-01 | 紫光云数科技有限公司 | Integrated information obtains system, method and son and obtains node system |
CN109448135A (en) * | 2018-09-26 | 2019-03-08 | 速度时空信息科技股份有限公司 | A method of the threedimensional model repairing based on multi-source data |
CN109472744A (en) * | 2018-10-29 | 2019-03-15 | 梦工场珠宝企业管理有限公司 | Threedimensional model reduces method |
CN109669961A (en) * | 2019-03-12 | 2019-04-23 | 紫光云数科技有限公司 | A kind of storage of multi-source vector data and iterative calculation method |
-
2019
- 2019-09-02 CN CN201910823383.5A patent/CN110570518A/en active Pending
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101119485A (en) * | 2007-08-06 | 2008-02-06 | 北京航空航天大学 | Characteristic reservation based three-dimensional model progressive transmission method |
CN101377857A (en) * | 2008-07-30 | 2009-03-04 | 电子科技大学 | Method for simplifying three-dimensional model based on octree space division and culmination deletion |
CN103632394A (en) * | 2013-12-02 | 2014-03-12 | 江苏科技大学 | Model simplification method with feature keeping function |
CN103763307A (en) * | 2013-12-30 | 2014-04-30 | 华中科技大学 | Bandwidth optimization method and system |
CN104199659A (en) * | 2014-08-28 | 2014-12-10 | 无锡梵天信息技术股份有限公司 | Method and device for exporting model information capable of being identified by 3DMAX |
CN106600679A (en) * | 2015-10-20 | 2017-04-26 | 星际空间(天津)科技发展有限公司 | Three-dimensional model data simplification method |
CN105243280A (en) * | 2015-10-30 | 2016-01-13 | 西安电子科技大学 | Time domain physical optics algorithm based on CPU (Central Processing Unit) and GPU (Graphics Processing Unit) hybrid asynchronous parallel way |
CN109448135A (en) * | 2018-09-26 | 2019-03-08 | 速度时空信息科技股份有限公司 | A method of the threedimensional model repairing based on multi-source data |
CN109472744A (en) * | 2018-10-29 | 2019-03-15 | 梦工场珠宝企业管理有限公司 | Threedimensional model reduces method |
CN109413218A (en) * | 2019-01-14 | 2019-03-01 | 紫光云数科技有限公司 | Integrated information obtains system, method and son and obtains node system |
CN109669961A (en) * | 2019-03-12 | 2019-04-23 | 紫光云数科技有限公司 | A kind of storage of multi-source vector data and iterative calculation method |
Non-Patent Citations (2)
Title |
---|
我木有钱: "obj文件转gltf并压缩", 《HTTPS://WWW.JIANSHU.COM/P/B20466C4AA0A》 * |
杨军等: "《新兴产业和高新技术现状与前景研究丛书 数字影视和动漫技术现状与应用前景》", 31 May 2015, 广东经济出版社 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111352913A (en) * | 2020-03-30 | 2020-06-30 | 西安震有信通科技有限公司 | File compression method and device, storage medium and terminal equipment |
CN114140569A (en) * | 2022-01-27 | 2022-03-04 | 山东捷瑞数字科技股份有限公司 | Three-dimensional scene serialization compression method |
CN114895981A (en) * | 2022-05-10 | 2022-08-12 | 安徽云森物联网科技有限公司 | Method and system for increasing speed of loading 3D model on front-end page |
CN114943810A (en) * | 2022-07-26 | 2022-08-26 | 安徽继远软件有限公司 | Osgb-based optimization method, terminal, device and medium for oblique photography slice |
CN114943810B (en) * | 2022-07-26 | 2022-09-30 | 安徽继远软件有限公司 | Osgb-based optimization method, terminal, device and medium for oblique photography slice |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110570518A (en) | Mass model loading method based on high compression of model data | |
WO2021098189A1 (en) | Three-dimensional model and material merging method and device, terminal, storage medium, and rendering method | |
JP4467267B2 (en) | Image processing method, image processing apparatus, and image processing system | |
US7643033B2 (en) | Multi-dimensional texture mapping apparatus, method and program | |
US8040355B2 (en) | Three-dimensional location-based texture transfers | |
US7948488B2 (en) | Shape preserving mappings to a surface | |
CN106600700B (en) | Three-dimensional model data processing system | |
KR100503789B1 (en) | A rendering system, rendering method, and recording medium therefor | |
WO2019050519A1 (en) | Systems and methods for lightweight precise 3d visual format | |
CN111581776A (en) | Geometric reconstruction model-based isogeometric analysis method | |
JP2021519533A (en) | A method for encoding the depth value of a set of 3D points that are once orthogonally projected onto at least one image area of the projection plane. | |
JP2003109031A (en) | Device and method for processing image rendering, recording medium recorded with image rendering processing program and image rendering processing program | |
JP4224093B2 (en) | Texture filtering apparatus, texture mapping apparatus, method and program | |
CN113781642A (en) | Three-dimensional model multi-level LOD generation method based on face reduction algorithm | |
CN105160705A (en) | Processing method of mobile terminal three dimensional image data based on three dimensional engine | |
CN109925715B (en) | Virtual water area generation method and device and terminal | |
CN110827367A (en) | Mass model loading method based on high compression of model data | |
CN111581233A (en) | Real-time slicing method and storage medium for vector graphic data of power grid equipment | |
CN116485980A (en) | Virtual object rendering method, device, equipment and storage medium | |
CN115937392A (en) | Rendering method and device of three-dimensional model | |
CN113888701A (en) | Method and system for converting curved surface 3D model into mesh 3D model in Obj format | |
KR20170005033A (en) | Techniques for reduced pixel shading | |
JP4896237B2 (en) | Image processing method, image processing apparatus, and image processing system | |
CN111260780B (en) | Real-time terrain modification method based on elevation of altitude map | |
CN115033546A (en) | Digital model universal format, conversion method, system, terminal and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191213 |
|
RJ01 | Rejection of invention patent application after publication |