CN111402382B - Classification optimization method for improving data rendering efficiency of layered and partitioned three-dimensional model - Google Patents
Classification optimization method for improving data rendering efficiency of layered and partitioned three-dimensional model Download PDFInfo
- Publication number
- CN111402382B CN111402382B CN202010189319.9A CN202010189319A CN111402382B CN 111402382 B CN111402382 B CN 111402382B CN 202010189319 A CN202010189319 A CN 202010189319A CN 111402382 B CN111402382 B CN 111402382B
- Authority
- CN
- China
- Prior art keywords
- dimensional model
- model data
- layered
- nodes
- level
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T15/00—3D [Three Dimensional] image rendering
- G06T15/005—General purpose rendering architectures
Landscapes
- Engineering & Computer Science (AREA)
- Computer Graphics (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Image Generation (AREA)
Abstract
The invention provides a classification optimization method for improving the rendering efficiency of layered block three-dimensional model data, which solves the problems that the existing layered block three-dimensional model is blocked and does not support multi-terminal adaptive display during rendering. The method comprises the following steps: s1, determining types to be classified and optimized and a threshold corresponding to each type according to a three-dimensional scene of a layered block three-dimensional model to be classified and optimized; s2, determining the types of all level nodes in the layered and partitioned three-dimensional model data and corresponding threshold values; s3, deleting the references of all nodes and child nodes of the hierarchical blocked three-dimensional model data, wherein the hierarchical levels of all the nodes and child nodes are higher than the corresponding threshold value; and S4, calling the updated hierarchical blocked three-dimensional model data index file by the front end to realize the improvement of the rendering efficiency. The method has the advantages that the three-dimensional model data are not deleted actually, the classification optimization can be carried out according to different types, and the rendering efficiency is improved.
Description
Technical Field
The invention relates to the technical field of data processing, in particular to a classification optimization method for improving the rendering efficiency of layered and partitioned three-dimensional model data.
Background
Hierarchical chunking is a common data structure for three-dimensional oblique photography models, and the main purpose of the hierarchical chunking is to improve the streaming and rendering performance of large-scale heterogeneous data sets. Its basis is a spatial data structure that supports hierarchical level of detail (HLOD). Therefore, the hierarchical blocking three-dimensional model format is often applied to WEB-side large-scale three-dimensional scene display, such as a 3D stage format.
However, due to the huge data volume of the layered block three-dimensional model, the problems of slow loading, unsmooth rendering and large flow consumption exist in some terminals (such as smart phones) with insufficient performance. In addition, in the hierarchical block three-dimensional model scene, important objects and non-important objects exist simultaneously, and the latter has a large amount of redundant data. Meanwhile, since the layered block three-dimensional model data must support both a high-performance terminal (such as a desktop terminal) and a low-performance terminal (such as a mobile phone), it must be ensured that all level node data in the layered block three-dimensional model are not actually deleted.
Therefore, a classification optimization method capable of improving the model rendering efficiency without actually deleting layered and partitioned three-dimensional model data is needed.
Disclosure of Invention
In view of this, the invention provides a classification optimization method for improving the rendering efficiency of layered block three-dimensional model data, and aims to greatly improve the rendering efficiency of a layered block three-dimensional model without actually deleting model data.
In order to achieve the purpose, the invention adopts the following technical scheme:
a classification optimization method for improving the rendering efficiency of layered block three-dimensional model data is characterized by comprising the following steps:
step S1: determining types to be classified and optimized and a threshold corresponding to each type according to a three-dimensional scene of a layered block three-dimensional model to be classified and optimized;
step S2: determining the types of all level nodes in the layered block three-dimensional model data and corresponding thresholds;
and step S3: deleting references of all nodes and child nodes of the hierarchical blocked three-dimensional model data, wherein the hierarchy levels of all the nodes and child nodes are higher than the corresponding threshold values of the nodes;
and step S4: and calling the updated hierarchical blocked three-dimensional model data index file by the front end to realize the improvement of rendering efficiency.
In a possible design, the effective value of the threshold in step S1 is greater than or equal to the top-most level of the layered block three-dimensional model data and less than or equal to the bottom-most level of the layered block three-dimensional model data.
In a possible design, when the number of types in step S1 is greater than 1, the step of determining the types and the threshold values of all the hierarchy nodes in step S2 is: traversing all level nodes of the layered block three-dimensional model data from top to bottom, determining the type of each node through a recognition technology, and designating a corresponding threshold.
In one possible design, the top-down traversal is terminated by traversing to a user-specified level or traversing all levels.
In a possible design, in the top-down traversal, when a currently processed certain level node is identified as one type in step S1, the identification of all the sub-nodes of the lower level thereof may be stopped, and all the sub-nodes of the lower level are given the same type as the current level node.
In one possible design, the user specifies a hierarchy having an effective number greater than or equal to the top-most level of the hierarchically partitioned three-dimensional model data and less than or equal to the bottom-most level of the hierarchically partitioned three-dimensional model data.
In one possible design, the identification technology includes two-dimensional image-based identification technology, three-dimensional elevation-based identification technology, point cloud-based identification technology, and three-dimensional morphology-based identification technology, and one or more of the above identification technologies are combined.
In one possible design, the type of each node is determined according to the type of subject represented by the global characteristics of the node.
In one possible design, when the number of types in step S1 is equal to 1, the types of all level nodes in the hierarchically partitioned three-dimensional model data are the same, and the corresponding thresholds are also the same.
The method can greatly improve the rendering efficiency of the layered and partitioned three-dimensional model under the condition of not deleting model data actually, and supports multi-terminal self-adaptive display.
Drawings
Fig. 1 is a schematic flow chart of a classification optimization method for improving rendering efficiency of layered block three-dimensional model data according to an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be further described below by using preferred embodiments of the present invention and referring to the drawings, but the present invention is not limited to these embodiments.
Example 1
Referring to fig. 1, a classification optimization method for improving rendering efficiency of layered block three-dimensional model data according to an embodiment of the present invention includes the following steps:
step S1: according to the three-dimensional scene of the hierarchical block three-dimensional model to be classified and optimized, the types to be classified and optimized and the threshold corresponding to each type are determined. In this embodiment, in order to enable the ground features in the layered block three-dimensional model data to be fully optimized according to different importance degrees, the types to be classified and optimized are determined to be four types, namely residential areas, agricultural and forestry land, water areas and the like according to the layered block three-dimensional model scene to be classified and optimized. The threshold value corresponding to the designated residential point is 20, the threshold value corresponding to the agriculture and forestry land is 19, the threshold value corresponding to the water area is 18, and the threshold values corresponding to other areas are 17. The larger the threshold value is, the lower the optimization degree is, the more the loaded node detail degree is, the smaller the threshold value is, the higher the optimization degree is, and the less the loaded node detail degree is;
step S2: determining the types of all level nodes in the layered block three-dimensional model data and corresponding thresholds;
and step S3: in an index file of hierarchically partitioned three-dimensional model data, references to all nodes and their child nodes whose levels are higher than their corresponding thresholds are deleted. In the embodiment, in the index file in the JSON format of the layered block three-dimensional model data, the references of all nodes and their child nodes belonging to the residential area class and having a hierarchy higher than 20 are deleted, the references of all nodes and their child nodes belonging to the agricultural land class and having a hierarchy higher than 19 are deleted, the references of all nodes and their child nodes belonging to the water area class and having a hierarchy higher than 18 are deleted, and the references of all nodes and their child nodes belonging to other classes and having a hierarchy higher than 17 are deleted;
and step S4: and calling the updated hierarchical blocked three-dimensional model data index file by the front end to realize the improvement of rendering efficiency. In this embodiment, the front end calls the updated index file in the JSON format of the layered block three-dimensional model, and because a large number of nodes with levels higher than the threshold are deleted from the index file, the terminal is prevented from loading child nodes with high detail degrees, thereby realizing the improvement of rendering efficiency.
In this embodiment, the threshold values in step S1 are 20, 19, 18, and 17, respectively, and the effective values thereof are greater than or equal to the top-most level 16 of the layered block three-dimensional model data and less than or equal to the bottom-most level 24 of the layered block three-dimensional model data. If the threshold is greater than 24, in this embodiment, indexes of nodes of a hierarchy level that is not higher than 24 levels are deleted, and an optimization effect is not achieved; if the threshold is less than 16, in this embodiment, all indexes of the level nodes are deleted, and the model will not be loaded.
In this embodiment, the number of types in step S1 is equal to 4 and greater than 1, so the step of determining the types and the thresholds of all the hierarchy nodes in step S2 is: traversing all level nodes of the layered block three-dimensional model data from top to bottom, determining the type of each node through a recognition technology, and designating a corresponding threshold.
In this embodiment, the top-down traversal is terminated by traversing all levels.
In this embodiment, the top-down traversal may stop identifying all the sub-nodes of the lower layer when a certain level node currently processed is identified as one type in step S1, and assign all the sub-nodes of the lower layer with the same type as the current level node. For example, when the 17 th level node currently processed is identified as the residential point class in step S1, the identification of the sub-nodes of the 18 th to 24 th levels therebelow may be stopped, and all the sub-nodes of the 18 th to 24 th levels may be assigned the residential point types. The method aims to reduce the identification times and improve the whole optimization efficiency.
In this embodiment, the identification technology adopts an AI identification technology based on a combination of two-dimensional images and three-dimensional morphology.
In this embodiment, the type of each node is determined according to the type of the subject represented by the overall characteristics of the node.
Example 2
Referring to fig. 1, a classification optimization method for improving the rendering efficiency of layered block three-dimensional model data according to an embodiment of the present invention includes the following steps:
step S1: according to the three-dimensional scene of the hierarchical block three-dimensional model to be classified and optimized, the types to be classified and optimized and the threshold corresponding to each type are determined. In this embodiment, to implement fast optimization, the types to be classified and optimized are determined as one type, named as X type, according to the layered block three-dimensional model scene to be classified and optimized. Only one type is adopted, which shows that the ground feature type is not required to be considered, and the unified optimization degree is adopted. The threshold corresponding to class X is designated as 19. In general: the threshold value 20 is a good value of a detail and performance platform and is suitable for places with more buildings; the threshold value is 18-19, the details are slightly less, the fuzzy effect is slight, and the method is suitable for agriculture and forestry land; the threshold value is 16-17, the details are too few to be identified, and the method can be used for ground features with few characteristics such as water bodies; the threshold is less than 16, and the geometric and texture characteristics are insufficient, so that the use is not recommended;
step S2: the types of all level nodes in the layered partitioned three-dimensional model data and corresponding threshold values are determined. In this embodiment, it is determined that the classification optimization types of all level nodes in the layered partitioned three-dimensional model data are X types, and the corresponding threshold values are 19;
and step S3: in an index file of hierarchically partitioned three-dimensional model data, references to all nodes and their child nodes whose levels are higher than their corresponding thresholds are deleted. In the embodiment, in a JSON format index file of the layered block three-dimensional model data, the references of all nodes with the level higher than 19 in the X class and the child nodes thereof are deleted;
and step S4: and calling the updated hierarchical blocked three-dimensional model data index file by the front end to realize the improvement of rendering efficiency. In this embodiment, the front end calls the updated index file in the JSON format of the layered block three-dimensional model data, and because the index file deletes all nodes and child nodes with a level higher than 19, the front end is prevented from loading child node data with a level higher than 19, thereby improving rendering efficiency.
In this embodiment, the threshold in step S1 is 19, and its effective value is greater than or equal to the top-most level 15 of the layered block three-dimensional model data and less than or equal to the bottom-most level 23 of the layered block three-dimensional model data. If the threshold is greater than 23, in this embodiment, indexes of nodes of a hierarchy level that is not higher than 23 levels are deleted, and an optimization effect is not achieved; if the threshold is less than 15, in this embodiment, all indexes of the level nodes are deleted, and the model will not be loaded.
In this embodiment, the number of types in step S1 is equal to 1, the types of all the hierarchy nodes in the layered partitioned three-dimensional model data are the same and are all X types, and the corresponding thresholds are also the same and are all 19.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (9)
1. A classification optimization method for improving the rendering efficiency of layered block three-dimensional model data is characterized by comprising the following steps:
step S1: determining types to be classified and optimized and a threshold corresponding to each type according to a three-dimensional scene of a layered block three-dimensional model to be classified and optimized;
step S2: determining the types of all level nodes in the layered block three-dimensional model data and corresponding thresholds;
and step S3: deleting references of all nodes and sub-nodes thereof with the layer level higher than the corresponding threshold value in an index file of the layered blocking three-dimensional model data;
and step S4: and calling the updated hierarchical blocked three-dimensional model data index file by the front end to realize the improvement of rendering efficiency.
2. The classification optimization method for improving the rendering efficiency of the layered block three-dimensional model data according to claim 1, wherein the effective value of the threshold in the step S1 is greater than or equal to the top-most progression of the layered block three-dimensional model data and less than or equal to the bottom-most progression of the layered block three-dimensional model data.
3. The classification optimization method for improving the rendering efficiency of the layered block three-dimensional model data according to claim 1, wherein when the number of types in step S1 is greater than 1, the step of determining the types and the threshold values of all level nodes in step S2 is: traversing all level nodes of the layered block three-dimensional model data from top to bottom, determining the type of each node through a recognition technology, and designating a corresponding threshold.
4. The classification optimization method for improving the rendering efficiency of the layered block three-dimensional model data according to claim 3, wherein the top-down traversal is terminated by traversing to a user-specified level or traversing all levels.
5. The classification optimization method for improving the rendering efficiency of the layered and partitioned three-dimensional model data according to claim 3, wherein the top-down traversal is performed, when a node of a current processing level is identified as a type in step S1, the identification of all sub-nodes of the lower level thereof is stopped, and all sub-nodes of the lower level are assigned with the same type as the node of the current level.
6. The classification optimization method for improving the rendering efficiency of the layered block three-dimensional model data according to claim 4, wherein the effective numerical value of the user-specified level is greater than or equal to the top level of the layered block three-dimensional model data and less than or equal to the bottom level of the layered block three-dimensional model data.
7. The classification optimization method for improving the rendering efficiency of the layered blocking three-dimensional model data according to claim 3, wherein the identification technology comprises two-dimensional image-based identification technology, three-dimensional elevation-based identification technology, point cloud-based identification technology, three-dimensional morphology-based identification technology, and any one or more of the above identification technologies are combined.
8. The classification optimization method for improving the rendering efficiency of the layered block three-dimensional model data according to claim 3, wherein the type of each node is determined according to a subject type represented by the overall characteristics of the node.
9. The classification optimization method for improving the rendering efficiency of the layered block three-dimensional model data according to claim 1, wherein when the number of types in step S1 is equal to 1, the types of all level nodes in the layered block three-dimensional model data are the same, and the corresponding thresholds are also the same.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010189319.9A CN111402382B (en) | 2020-03-18 | 2020-03-18 | Classification optimization method for improving data rendering efficiency of layered and partitioned three-dimensional model |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010189319.9A CN111402382B (en) | 2020-03-18 | 2020-03-18 | Classification optimization method for improving data rendering efficiency of layered and partitioned three-dimensional model |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111402382A CN111402382A (en) | 2020-07-10 |
| CN111402382B true CN111402382B (en) | 2023-04-07 |
Family
ID=71413408
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010189319.9A Active CN111402382B (en) | 2020-03-18 | 2020-03-18 | Classification optimization method for improving data rendering efficiency of layered and partitioned three-dimensional model |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111402382B (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113570712B (en) * | 2021-09-23 | 2022-02-15 | 南京烽火星空通信发展有限公司 | 3D modeling optimization method based on GCN |
| CN114549761B (en) * | 2022-02-25 | 2025-06-06 | 睿宇时空科技(重庆)股份有限公司 | Real scene 3D model layered rendering optimization method and system based on distributed storage, and storage medium |
| CN115170968A (en) * | 2022-07-26 | 2022-10-11 | 苏州中科天启遥感科技有限公司 | Remote sensing extraction method and device for complex scene plot, computer equipment and storage medium |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103544727A (en) * | 2013-06-26 | 2014-01-29 | Tcl集团股份有限公司 | Scenario rendering and optimizing method, system and mobile terminal based on predict braches |
| CN104217456A (en) * | 2013-05-31 | 2014-12-17 | 高德信息技术有限公司 | Three-dimensional model data loading method and device |
| CN105022758A (en) * | 2014-04-29 | 2015-11-04 | 高德信息技术有限公司 | Character texture management method and device |
| CN105912638A (en) * | 2016-04-08 | 2016-08-31 | 苏州中科图新网络科技有限公司 | Oblique photograph data storage and scheduling method and apparatus |
| WO2017092303A1 (en) * | 2015-12-01 | 2017-06-08 | 乐视控股(北京)有限公司 | Virtual reality scenario model establishing method and device |
| CN110738721A (en) * | 2019-10-12 | 2020-01-31 | 四川航天神坤科技有限公司 | 3D scene rendering acceleration method and system based on video geometric analysis |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4447865B2 (en) * | 2003-08-01 | 2010-04-07 | ソニー株式会社 | Map display system, map data processing device, map display device, and map display method |
-
2020
- 2020-03-18 CN CN202010189319.9A patent/CN111402382B/en active Active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104217456A (en) * | 2013-05-31 | 2014-12-17 | 高德信息技术有限公司 | Three-dimensional model data loading method and device |
| CN103544727A (en) * | 2013-06-26 | 2014-01-29 | Tcl集团股份有限公司 | Scenario rendering and optimizing method, system and mobile terminal based on predict braches |
| CN105022758A (en) * | 2014-04-29 | 2015-11-04 | 高德信息技术有限公司 | Character texture management method and device |
| WO2017092303A1 (en) * | 2015-12-01 | 2017-06-08 | 乐视控股(北京)有限公司 | Virtual reality scenario model establishing method and device |
| CN105912638A (en) * | 2016-04-08 | 2016-08-31 | 苏州中科图新网络科技有限公司 | Oblique photograph data storage and scheduling method and apparatus |
| CN110738721A (en) * | 2019-10-12 | 2020-01-31 | 四川航天神坤科技有限公司 | 3D scene rendering acceleration method and system based on video geometric analysis |
Non-Patent Citations (2)
| Title |
|---|
| 戴运波.基于对象重要性的三维城市模型数据组织方法.《中国优秀硕士学位论文全文数据库 基础科学辑》.2018,(第undefined期),全文. * |
| 牟琳.地质体多属性对象的三维可视化技术研究与实现.《中国优秀硕士学位论文全文数据库 信息科技辑》.2013,(第undefined期),全文. * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111402382A (en) | 2020-07-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112287138B (en) | Organization scheduling method, device and equipment of city information model | |
| CN111402382B (en) | Classification optimization method for improving data rendering efficiency of layered and partitioned three-dimensional model | |
| CN110633262B (en) | Spark-based map intersection area calculation method and system | |
| CN113870402B (en) | A real-time layered rendering method for massive point clouds based on octree indexing | |
| CN105787977B (en) | The method that building vector boundary simplifies | |
| CN115408382B (en) | Vector space information grid storage and management method for large-scale satellite data | |
| CN112785710B (en) | OSGB three-dimensional model building rapid singulation method, system, memory and equipment | |
| CN111862292A (en) | Data rendering method, device and computer equipment for transmission line corridor | |
| CN110717967A (en) | Large-scene-model-oriented web-side dynamic rendering LOD processing method | |
| CN116502303A (en) | A BIM model visualization method based on scene-level instance information enhancement | |
| CN108920574B (en) | Efficient neighborhood searching method for large-scale three-dimensional point cloud data | |
| CN106204719A (en) | Magnanimity model real-time scheduling method in three-dimensional scenic based on two-dimensional neighbourhood retrieval | |
| CN111415406B (en) | Hierarchical and blocking three-dimensional model data classification compression method | |
| CN110084355A (en) | The mesh scale optimization method of a large amount of interacting particles dynamic simulation systems | |
| CN120012026B (en) | Parallel fusion method, system, terminal and storage medium for multi-mode data of urban stock space | |
| CN119723389B (en) | Methods, devices, computer equipment, and storage media for identifying contamination in glass insulators | |
| CN120374439A (en) | Large-scale point cloud denoising method based on longitudinal interlayer density and space connectivity constraint | |
| CN114332322A (en) | Big data rendering method of monomer model in three-dimensional scene | |
| CN117237503B (en) | Geographic element data accelerated rendering and device | |
| WO2020238749A1 (en) | Raster data access method and apparatus, electronic device, and computer storage medium | |
| CN118898671A (en) | Method and system for realizing seamless roaming of all scenic spots based on street view map | |
| CN117857476A (en) | QoS dynamic allocation resource strategy based on mean shift clustering algorithm | |
| CN104658041A (en) | Dynamic scheduling method for entity models in distributed three-dimensional virtual environment | |
| CN112258661B (en) | An octree-based power grid equipment model slicing method | |
| CN116561364A (en) | A pattern retrieval method based on multi-feature fusion |
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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |