A big data rendering method for a single model in a three-dimensional scene

By using the visual field dataset and tile grid segmentation technology in 3D scenes, the rendering model is updated in real time, and the problem of long processing time and insufficient fineness of big data rendering in 3D scenes is solved, and fast rendering and high precision are achieved effect.

CN114332322BActive Publication Date: 2024-11-26HEFEI MARS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111440579.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-30
Publication Date
2024-11-26
Estimated Expiration
2041-11-30

AI Technical Summary

Technical Problem

The prior art has a long processing time when rendering big data in three-dimensional scenarios, and the model accuracy and precision are insufficient, especially in geographic data processing, where loading speed is affected and lag is not affected.

Method used

The visual field data set in the three-dimensional scene module is used for rendering, and the coordinates and attribute data of the single model are obtained through tile mesh segmentation and multi-threading asynchronously, the rendering model is updated in real time, and the hierarchical division processing is abandoned to achieve rapid loading and rendering.

Benefits of technology

It shortens processing time, improves the accuracy and precision of the model, reduces lag, and achieves rapid rendering and high-precision effects in three-dimensional scenes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114332322B_ABST
    Figure CN114332322B_ABST
Patent Text Reader

Abstract

The invention relates to a big data rendering method for a monomer model in a three-dimensional scene, comprising the following steps: step 1), rendering model: firstly, all three-dimensional model data are collected, a visual domain data set in a current three-dimensional scene module is obtained, and data is rendered according to tile grids in the visual domain data set as units; step 2), according to a calculated tile grid set in the current visual domain, all tile grids are looped, and according to the x, y, z values ​​of each tile grid, all monomer model coordinates and attribute data in the tile grid are asynchronously obtained through multi-threaded reading or acquisition back-end interface; step 3), after obtaining the monomer model coordinate data of each tile grid, it is judged whether the visual domain in the three-dimensional scene module exceeds a limited level and whether it is not in the visual domain, if it exceeds the limited level or is not in the visual domain, it is directly removed from the rendering model storage module, that is, the model rendering is terminated; otherwise, it is added to the rendering model storage module.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of geographic information data processing, and in particular relates to a big data rendering method for a monomer model in a three-dimensional scene. Background Art

[0002] With the continuous deepening of the application of geographic data including infrastructure data, the scene information processing technology based on three-dimensional models needs to be continuously upgraded. For example, the Chinese patent "Indoor and outdoor integrated organization method of urban three-dimensional scene data" (application number 201410085589.X; application date 2014.03.10) discloses a solution for realizing the visualization of three-dimensional scene data. Although it publicly uses outdoor scene data to adopt a quadtree-based organization technology, specifically including the reconstruction of three-dimensional rendering scenes, rendering data updates and coordinate system conversion, and proposes a solution to improve the efficiency of three-dimensional visualization, this kind of data object is relatively simple, and the data processing method is also relatively simple. It is completely inapplicable to how to render and process such big data including geographic data. For another example, the Chinese patent "A transmission and rendering method and system for three-dimensional geographic data" (application number 202011014436.8; application date 2020.09.24) discloses a specific application of three-dimensional visualization of geographic information system based on three-dimensional data collection such as photographic modeling and laser point cloud (including data transmission and rendering). It discloses a scheme including obtaining three-dimensional geographic data to be rendered. Specifically, a multi-level detail division method is used to construct the three-dimensional geographic data into a set of scene trees with different display levels of model entities of each node from top to bottom. Each node in the scene tree includes a description file and a data file. Multiple display levels of model entities in the scene are created in the scene tree at the same time. Model entities displayed at different display levels have different numbers of faces and levels of detail, which are combined into leaf nodes of the scene tree. The division forms of quadtree, octree, KD tree, R tree or grid division are disclosed. Although preprocessing time is saved, this hierarchical logic scheme is hierarchical processing and then rendering, that is, after the model is rendered, it needs another division processing whether before or after. Regardless of the rendering effect, the processing pause point will still exist, and the loading speed will still be affected. Summary of the invention

[0003] The purpose of the present invention is to provide a big data rendering method for a monomer model in a three-dimensional scene, solve the problems in the background technology, shorten the processing time, increase the model accuracy, make the model more refined, and further improve the degree of refinement.

[0004] In order to achieve the above purpose, the technical solution adopted by the present invention is: a big data rendering method of a single model in a three-dimensional scene, comprising the following steps:

[0005] Step 1), rendering model: first collect all 3D model data, obtain the visual domain data set in the current 3D scene module, and render the data in units of tile grids in the visual domain data set;

[0006] Step 2), according to the calculated tile grid set in the current field of view, loop all tile grids, and asynchronously obtain all monomer model coordinates and attribute data in the tile grid through multi-threaded reading or acquisition backend interface according to the x, y, and z values ​​of each tile grid;

[0007] Step 3), after obtaining the coordinate data of the monomer model of each tile grid, determine whether the visible domain in the three-dimensional scene module exceeds the specified level and whether it is not in the visual domain. If it exceeds the specified level or is not in the visual domain, it is directly removed from the rendering model storage module, that is, the model rendering is terminated; otherwise, it is added to the rendering model storage module and the monomer model is rendered in the three-dimensional scene;

[0008] In step 4), when the visual domain changes, firstly, all the monomer models in the original rendering model storage module are marked with target data, and then the process returns to step 1) to recalculate the new tile grid set corresponding to the current visual domain;

[0009] Step 5), looping through the tile grid set after the view change, collecting the corresponding monomer model in the rendering model storage module through the grid tile unique identifier, deleting the target data to be marked, and judging whether the current monomer model already exists in the visual domain and has been displayed, if the monomer model already exists, updating the existing monomer model, if the monomer model does not exist, adding it to the rendering model storage module, and rendering the monomer model in the three-dimensional scene;

[0010] Step 6), loop through the tile grid set, if there is marked target data, directly remove it from the rendering model storage module, and end the model rendering.

[0011] Further, in step 1),

[0012] First, calculate the quadtree tile grid set in the current 3D scene visual field data set. Each tile grid consists of three parameters: x, y, and z. x, y, and z are calculated according to the following formula:

[0013]

[0014]

[0015] Where: lon: longitude, lat: latitude, z: tile level, an integer between 0 and 18, x: tile row number, y: tile column number;

[0016] Secondly, the calculated tile grid data is stored in the rendering model storage module.

[0017] Furthermore, the three-dimensional scene module is a three-dimensional scene camera.

[0018] Furthermore, the target data is marked as the target value with the data to be removed added thereto.

[0019] The technical effect of the present invention is that: the rendering model of the present invention screens all the collected visual domain data at one time based on the visual domain data set in the three-dimensional scene module to achieve fast processing, and continuously loads the visual domain data set into the cyclic tile grid set, abandoning the existing redivision processing, which not only shortens the processing time, but also makes the model more accurate and refined; based on the rendered single model, the rendering model with the visual domain data set is reloaded, and the real-time data is loaded into the tile grid in the visual domain to achieve fast loading, which not only reduces the jamming phenomenon, but also further improves the refinement based on the fast rendering model in this three-dimensional scene. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 is a flow chart of a specific embodiment of the present invention;

[0021] Figure 2 This is a rendering model diagram in a specific embodiment of the present invention. DETAILED DESCRIPTION

[0022] The following will be combined with the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0023] Referring to the accompanying drawings, a big data rendering method for a single model in a three-dimensional scene includes the following steps:

[0024] Step 1), rendering model: firstly, all 3D model data are collected, the (visible) field (data set) in the current 3D scene module (the 3D scene camera in the embodiment) is obtained, and the data is rendered in units of tile grids in the (visible) field (data set);

[0025] Specifically, first, calculate the quadtree tile grid set in the current 3D scene (visible) field (data set), each tile grid consists of 3 parameters x, y, z, where x, y, z are calculated according to the following formula:

[0026]

[0027]

[0028] Where: lon: longitude, lat: latitude, z: tile level, an integer between 0 and 18, x: tile row number, y: tile column number;

[0029] Secondly, the calculated (tile) grid data is stored in the rendering model storage module (rendering queue cache).

[0030] Example: Referring to the following set, we get Figure 2 Rendering model:

[0031]

[0032] Step 2), according to the calculated tile grid set in the current field of view, loop all (tile) grids, and asynchronously obtain all monomer model coordinates and attribute data in the (tile) grid through multi-threaded reading or acquisition backend interface according to the x, y, z values ​​of each (tile) grid;

[0033] Step 3), after obtaining the coordinate data of the monomer model of each (tile) grid, determine whether the (visible) field of view in the three-dimensional scene module (the three-dimensional scene camera in the embodiment) exceeds the limited level and is not within the field of view. If it exceeds the limited (level) or is not within the field of view, it is directly removed from the rendering model storage module (rendering queue), that is, the model rendering is terminated; otherwise, it is added to the rendering model storage module (rendering queue) and the monomer model is rendered in the three-dimensional scene;

[0034] Step 4), when the visible domain changes, first mark all the monomer models in the original rendering model storage module (rendering queue) as to be removed (can be in the form of additional data), [return to step 1)], and recalculate the new (tile) grid set corresponding to the current (visible) visual domain;

[0035] Step 5), looping the (tile) grid set after the view change, collecting the corresponding monomer model in the rendering model storage module (rendering queue) through the grid tile unique identifier, deleting the to-be-removed mark, and judging whether the current monomer model already exists in the (visible) view and has been displayed. If the (monomer) model already exists, then only the existing (monomer) model needs to be updated. If the (monomer) model does not exist, then it is added to the rendering model storage module (rendering queue) and the monomer model is rendered in the three-dimensional scene;

[0036] Step 6) Loop through the (tile) grid collection. If there is a mark to be removed, remove it directly from the rendering queue and end the model rendering.

[0037] The rendering model of the present invention screens all collected visual domain data at one time based on the visual domain data set in the three-dimensional scene module to achieve fast processing, and continuously loads the visual domain data set into the cyclic tile grid set, abandoning the existing redivision processing, which not only shortens the processing time, but also makes the model more accurate and refined; based on the rendered single model, the rendering model with the visual domain data set is reloaded, and the real-time data is correspondingly loaded into the tile grid in the visual domain to achieve fast loading, which not only reduces the jamming phenomenon, but also further improves the refinement based on the fast rendering model in this three-dimensional scene.

[0038] The above are the best specific embodiments of the present invention.

[0039] The following is also an embodiment utilizing the scheme of the present invention.

[0040] A big data rendering method for a single model in a three-dimensional scene comprises the following steps:

[0041] Step 1) Start rendering the model: first collect (analyze) all 3D model data, obtain the visual field (data set) within the current 3D scene camera, and calculate the tile grid set within the current 3D scene visual field, and store the calculated (tile) grid data in the rendering model storage module (rendering queue cache);

[0042] Step 2), when the visible domain (data set) changes, determine whether the visible domain within the 3D scene camera exceeds the limited level. If it exceeds the limited level, it is directly removed from the rendering model storage module (rendering queue), that is, the model rendering is terminated; if it does not exceed the level limit, the tile grid is loaded, all data in the (tile) grid is obtained, and the unique identifier of the (tile) grid is obtained; the (tile) grid (data) that exceeds the visible domain is removed;

[0043] Step 3), in order to enable subsequent execution from the rendering model storage module (rendering queue), the acquired (tile) grid data is stored in the rendering model storage module (rendering queue cache) for use when loading the model;

[0044] Step 4), determine whether the (tile) grid has been uninstalled. If the (tile) grid has been uninstalled, obtain the uninstalled (tile) grid through the unique identifier, and remove all monomer models in the (tile) grid according to the data in the (tile) grid of the rendering model storage module (rendering queue); if the (tile) grid has not been uninstalled, send the data to the (rendering) model rendering queue to wait for loading;

[0045] Step 5), determine whether the unique identifier can be identified, if not, directly remove the model from the rendering model storage module (rendering queue) to end the model rendering, if it can be identified, pass the unique identifier to obtain (render) the model;

[0046] Step 6) Obtain the corresponding monomer model through the unique identifier passed in, and determine whether the (current) monomer model already exists in the visual domain (data set) and has been displayed. If the (monomer) model already exists, update the existing model; if the model does not exist, create a new monomer model in the corresponding (tile) grid according to the obtained data;

[0047] Step 7), whether it is a newly created monomer or a re-updated model, after completing the model loading, re-update the rendering model storage module (rendering queue cache); end rendering.

[0048] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.

Claims

1. A big data rendering method for a single model in a three-dimensional scene, characterized in that: The following steps are involved: Step 1), rendering model: first collect all 3D model data, obtain the visual domain data set in the current 3D scene module, and render the data in units of tile grids in the visual domain data set; Step 2), according to the calculated tile grid set in the current field of view, loop all tile grids, and asynchronously obtain all monomer model coordinates and attribute data in the tile grid through multi-threaded reading or acquisition backend interface according to the x, y, and z values ​​of each tile grid; Step 3), after obtaining the coordinate data of the monomer model of each tile grid, determine whether the visible domain in the three-dimensional scene module exceeds the specified level and whether it is not in the visual domain. If it exceeds the specified level or is not in the visual domain, it is directly removed from the rendering model storage module, that is, the model rendering is terminated; otherwise, it is added to the rendering model storage module and the monomer model is rendered in the three-dimensional scene; In step 4), when the visual domain changes, firstly, all the monomer models in the original rendering model storage module are marked with target data, and then the process returns to step 1) to recalculate the new tile grid set corresponding to the current visual domain; Step 5), looping through the tile grid set after the view change, collecting the corresponding monomer model in the rendering model storage module through the grid tile unique identifier, deleting the target data to be marked, and judging whether the current monomer model already exists in the visual domain and has been displayed, if the monomer model already exists, updating the existing monomer model, if the monomer model does not exist, adding it to the rendering model storage module, and rendering the monomer model in the three-dimensional scene; Step 6), loop through the tile grid set, if there is marked target data, directly remove it from the rendering model storage module, and end the model rendering.

2. The big data rendering method of a monomer model in a three-dimensional scene according to claim 1, characterized in that: In step 1), First, calculate the quadtree tile grid set in the current 3D scene visual field data set. Each tile grid consists of three parameters: x, y, and z. x, y, and z are calculated according to the following formula: Where: lon: longitude, lat: latitude, z: tile level, an integer between 0 and 18, x: tile row number, y: tile column number; Secondly, the calculated tile grid data is stored in the rendering model storage module.

3. The big data rendering method of a monomer model in a three-dimensional scene according to claim 1, characterized in that: The three-dimensional scene module is a three-dimensional scene camera.

4. The big data rendering method of a monomer model in a three-dimensional scene according to claim 1, characterized in that: Mark the target data as the data to be removed added to the target value.