Search

CN-122023687-A - BIM model and oblique photography live-action three-dimensional model fusion display method and device based on GPU

CN122023687ACN 122023687 ACN122023687 ACN 122023687ACN-122023687-A

Abstract

The invention provides a method and a device for fusion display of a BIM model and a tilted photography live-action three-dimensional model based on a GPU. The method comprises the steps of extracting boundary contour information according to a BIM model, generating BIM model vertexes and establishing BIM model contour boundaries, extracting geometric vertex data of all levels according to a three-dimensional oblique photography live-action model, generating a Geode node sequence, calculating the distance between the BIM model vertexes and the BIM model contour boundaries by using a BIM model shader, modifying the color transparency of the BIM model vertexes according to the distance, synchronously calculating the distance between the three-dimensional oblique photography live-action model vertexes and the BIM model contour boundaries by using the three-dimensional oblique photography live-action model shader, modifying the height and the color transparency of the three-dimensional oblique photography live-action model vertexes according to the distance, modifying and fusing the BIM model vertexes and the three-dimensional oblique photography live-action model vertexes in geometry and color, and drawing fused vertex data by using a GPU. The model generated by the invention contains more building geometric details.

Inventors

  • LI FENG
  • XU ZHENG
  • CHEN GANG
  • LI KE
  • CHEN SIYE
  • Lu Xuanbei

Assignees

  • 中国人民解放军网络空间部队信息工程大学

Dates

Publication Date
20260512
Application Date
20251225

Claims (10)

  1. 1. The fusion display method of the BIM model and the oblique photography live-action three-dimensional model based on the GPU is characterized by comprising the following steps of: Step 1, extracting boundary contour information according to a BIM model, generating BIM model vertexes and establishing a BIM model contour boundary; step 2, extracting geometric vertex data of all levels according to the oblique photography live-action three-dimensional model to generate a Geode node sequence, wherein the Geode node sequence comprises all oblique photography live-action three-dimensional model vertices; step 3, calculating the distance between the BIM model vertex and the BIM model contour boundary by using a BIM model shader, and modifying the color transparency of the BIM model vertex according to the distance; step 4, synchronizing with the step 3, calculating the distance between the vertex of the three-dimensional model of the oblique photography real scene and the outline boundary of the BIM by using an oblique photography real scene three-dimensional model shader, and modifying the height and color transparency of the vertex of the three-dimensional model of the oblique photography real scene according to the distance; And 5, modifying and fusing the BIM model vertexes and the oblique photography live-action three-dimensional model vertexes in geometry and color, and drawing fused vertex data by using the GPU.
  2. 2. The method for fusion display of a BIM model and a oblique photography live-action three-dimensional model based on a GPU according to claim 1, wherein the step 1 specifically comprises: Extracting boundary contour information according to the BIM model, and generating BIM model contour polygon data; Converting BIM model outline polygon data into a station core coordinate system of the oblique photography live-action three-dimensional model, and generating BIM model outline polygon vertexes; BIM model contour boundaries are established from BIM model contour polygon vertices.
  3. 3. The method for fusion display of a BIM model and a oblique photography live-action three-dimensional model based on a GPU according to claim 1, wherein the step 2 specifically comprises: Obtaining PagedLod nodes according to the oblique photography live-action three-dimensional model; Traversing PagedLod child nodes of all levels under PagedLod root nodes by using an accessor; and obtaining vertex data in all PagedLod child nodes to generate a Geode node sequence.
  4. 4. The method for fusion display of a BIM model and a oblique photography live-action three-dimensional model based on a GPU according to claim 1, wherein the step 3 specifically comprises: For each BIM model vertex, inputting vertex coordinates to a BIM model vertex shader to calculate a nearest distance d between the BIM model vertex and a BIM model contour boundary, inputting vertex colors to a BIM model voxel shader to determine a maximum buffer range based on the nearest distance d The color transparency of the vertex is modified by the numerical value of the vertex, and the color information of the BIM model vertex after modification is saved.
  5. 5. The method for fusion display of a BIM model and a oblique photography live-action three-dimensional model based on a GPU according to claim 1, wherein the step 4 specifically comprises: For each oblique photography live-action three-dimensional model vertex, inputting vertex coordinates to an oblique photography live-action three-dimensional model vertex shader so as to calculate a nearest distance d between the oblique photography live-action three-dimensional model vertex and a BIM model contour boundary, and modifying the vertex height according to the nearest distance d The color transparency of the vertex is modified by the numerical value of the vertex, and the color information of the vertex of the modified oblique photography live-action three-dimensional model is saved.
  6. 6. The method for fusion display of a BIM model and a live-action three-dimensional model for oblique photography based on GPU according to claim 4, wherein the method is characterized in that the method comprises the following steps of To modify the color transparency of the vertex, specifically including: For a buffer range that is inside the BIM profile polygon but greater than the maximum buffer range Without modifying the color transparency of the vertices, for vertices inside the BIM contour polygon but less than the maximum buffer range The transparency of which is modified proportionally as follows: Wherein, the Representing the transparency of the BIM outline polygon, Representing the color transparency of the vertices of the oblique photography real scene three-dimensional model prior to modification, Representing the color transparency of the modified vertex.
  7. 7. The method for fusion display of a BIM model and a live-action three-dimensional model for oblique photography as claimed in claim 5, wherein the method is characterized in that according to the nearest distance d and the maximum buffer range To modify the color transparency of the vertex, specifically including: For a buffer range outside the BIM profile polygon but greater than the maximum buffer range Without modifying the color transparency of the vertices, for vertices outside the BIM contour polygon but less than the maximum buffer range The transparency of which is modified proportionally as follows: Wherein, the Representing the transparency of the BIM outline polygon, Representing the color transparency of the vertices of the oblique photography real scene three-dimensional model prior to modification, Representing the color transparency of the modified vertex.
  8. 8. The method for fusion display of a BIM model and a three-dimensional model of a live-action of oblique photography based on a GPU according to claim 5, wherein the vertex height is modified according to the nearest distance d, specifically comprising: For vertices inside the BIM contour polygon, its height value is directly modified to be the BIM contour polygon height, for vertices outside the BIM contour polygon but below the maximum buffer range The height of which is modified proportionally as follows: Wherein, the Representing the height of the BIM outline polygon, Representing the height of the vertices of the oblique photography-live-action three-dimensional model prior to modification, Representing the height of the modified vertex.
  9. 9. The utility model provides a BIM model and three-dimensional model fusion display device of oblique photography live-action based on GPU which characterized in that includes: the BIM model vertex and boundary determining module is used for extracting boundary contour information according to the BIM model, generating the BIM model vertex and establishing a BIM model contour boundary; The oblique photography live-action three-dimensional model vertex extraction module is used for extracting geometric vertex data of all levels according to the oblique photography live-action three-dimensional model to generate a Geode node sequence, wherein the Geode node sequence comprises all oblique photography live-action three-dimensional model vertices; The BIM model vertex modification module is used for calculating the distance between the BIM model vertex and the BIM model contour boundary by utilizing the BIM model shader and modifying the color transparency of the BIM model vertex according to the distance; The oblique photography real scene three-dimensional model vertex modification module is used for calculating the distance between the oblique photography real scene three-dimensional model vertex and the BIM model contour boundary by utilizing the oblique photography real scene three-dimensional model shader and modifying the height and color transparency of the oblique photography real scene three-dimensional model vertex according to the distance; And the vertex fusion module is used for carrying out modification fusion on the BIM model vertex and the oblique photography live-action three-dimensional model vertex in geometry and color, and drawing fused vertex data by utilizing the GPU.
  10. 10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 8 when the program is executed by the processor.

Description

BIM model and oblique photography live-action three-dimensional model fusion display method and device based on GPU Technical Field The invention relates to the technical field of geospatial visualization, in particular to a method and a device for fusion display of a BIM model and an oblique photography live-action three-dimensional model based on a GPU in virtual geographic environment visual simulation. Background The oblique photography live-action three-dimensional model is three-dimensional model data obtained by three-dimensional reconstruction of unmanned aerial vehicle multi-lens shooting data, and has the advantages of high precision, abundant information, visual and vivid effect, quick acquisition and the like. However, because the three-dimensional model is completely a live-action photo during shooting, the generated three-dimensional model is 'excessively real', people, vehicles and temporary facilities irrelevant to the environment during shooting are built in the three-dimensional model, and the disordered interference information influences the application effect, so that fusion display of the three-dimensional model generated by the BIM technology and the live-action three-dimensional model generated by the oblique photogrammetry is urgently needed to make up for the defects of the oblique photography live-action three-dimensional model. The ideal fusion display method of the BIM model and the oblique photography live-action three-dimensional model is to fuse and model the geometric and texture information of the BIM model in the oblique photography three-dimensional modeling stage, but because the current BIM model generation and the oblique photography live-action three-dimensional model production are usually the work of different business departments, the processing is difficult in the production stage, and the processing can only be carried out in the later application stage. Disclosure of Invention Aiming at the problem that the display effect is affected by disordered interference information in the existing oblique photography live-action three-dimensional model, according to the outline boundary information of the BIM, the vertex shader and the fragment shader of the GPU are used for calculation in the three-dimensional drawing process of the BIM model and the oblique photography live-action three-dimensional model respectively, the color transparency of the vertex is modified according to the distance between the vertex and the outline boundary of the BIM model, the height of the overlapping part of the oblique photography live-action three-dimensional model and the outline of the BIM model is modified, and the fusion display of the BIM model and the oblique photography live-action three-dimensional model on the geometry and the color of the combining part is realized. In a first aspect, the present invention provides a method for fusion display of a BIM model and a live-action three-dimensional model for oblique photography based on a GPU, comprising: Step 1, extracting boundary contour information according to a BIM model, generating BIM model vertexes and establishing a BIM model contour boundary; step 2, extracting geometric vertex data of all levels according to the oblique photography live-action three-dimensional model to generate a Geode node sequence, wherein the Geode node sequence comprises all oblique photography live-action three-dimensional model vertices; step 3, calculating the distance between the BIM model vertex and the BIM model contour boundary by using a BIM model shader, and modifying the color transparency of the BIM model vertex according to the distance; step 4, synchronizing with the step 3, calculating the distance between the vertex of the three-dimensional model of the oblique photography real scene and the outline boundary of the BIM by using an oblique photography real scene three-dimensional model shader, and modifying the height and color transparency of the vertex of the three-dimensional model of the oblique photography real scene according to the distance; And 5, modifying and fusing the BIM model vertexes and the oblique photography live-action three-dimensional model vertexes in geometry and color, and drawing fused vertex data by using the GPU. Further, the step 1 specifically includes: Extracting boundary contour information according to the BIM model, and generating BIM model contour polygon data; Converting BIM model outline polygon data into a station core coordinate system of the oblique photography live-action three-dimensional model, and generating BIM model outline polygon vertexes; BIM model contour boundaries are established from BIM model contour polygon vertices. Further, step2 specifically includes: Obtaining PagedLod nodes according to the oblique photography live-action three-dimensional model; Traversing PagedLod child nodes of all levels under PagedLod root nodes by using an accessor; and obtaining vertex data in all PagedL