CN114253724A - BIM (building information modeling) model rendering method and system - Google Patents

BIM (building information modeling) model rendering method and system Download PDF

Info

Publication number
CN114253724A
CN114253724A CN202111561468.4A CN202111561468A CN114253724A CN 114253724 A CN114253724 A CN 114253724A CN 202111561468 A CN202111561468 A CN 202111561468A CN 114253724 A CN114253724 A CN 114253724A
Authority
CN
China
Prior art keywords
rendering
bim model
data
bim
processing
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.)
Granted
Application number
CN202111561468.4A
Other languages
Chinese (zh)
Other versions
CN114253724B (en
Inventor
马骁
叶宇飞
郝方位
雷卓其
杨泽畔
陈雷行
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CCTEG Chongqing Engineering Group Co Ltd
Original Assignee
CCTEG Chongqing Engineering Group Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by CCTEG Chongqing Engineering Group Co Ltd filed Critical CCTEG Chongqing Engineering Group Co Ltd
Priority to CN202111561468.4A priority Critical patent/CN114253724B/en
Publication of CN114253724A publication Critical patent/CN114253724A/en
Application granted granted Critical
Publication of CN114253724B publication Critical patent/CN114253724B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/13Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/10Geometric effects
    • G06T15/20Perspective computation
    • G06T15/205Image-based rendering

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Civil Engineering (AREA)
  • Architecture (AREA)
  • Structural Engineering (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • Computer Graphics (AREA)
  • Computing Systems (AREA)
  • Image Generation (AREA)

Abstract

The invention relates to the technical field of communication, and discloses a BIM (building information modeling) model rendering method and a BIM model rendering system, which comprise a processor module, and a data transmission module, a cloud server module and a display module which are respectively connected with the processor module, wherein a glTF (global tf) file of a BIM model after lightweight processing is acquired through the data transmission module and is sent to the processor module for rendering, and the processor module utilizes merge technology and instance technology to efficiently render the glTF file, so that the BIM model with a high frame rate is finally obtained. The method has the advantages of effectively improving the rendering effect of the BIM model, improving the GPU utilization rate and reducing the utilization rates of the memory and the video memory.

Description

BIM (building information modeling) model rendering method and system
Technical Field
The invention relates to the technical field of communication, in particular to a BIM rendering method and system.
Background
With the development of digital technology, many leading-edge technologies are developed in the field of electronic information and the field of communication technology, and especially, more and more design tools are used in the design scheme creation process, for example, Sketchup (Chinese name: sketchman) is a design tool directly oriented to the design scheme creation process, and is often used for modeling work at the early stage of a scheme, and the results of the design completion cannot be directly browsed at a webpage end because the results can only be displayed in Sketchup software, so that the application of the Sketchup results in the internet field, such as a smart park, smart operation and maintenance, smart cities and the like, is limited. However, the current 3D rendering engine WebGL of the browser does not support reading of the Sketchup file, and for the problem that the Sketchup design file can only be viewed in the software, several solutions have appeared at present, such as Sketchup-stl provided by the Sketchup software official, plug-in based glTF export tool, and using intermediate format conversion.
Although the problems of BIM model display can be solved by the solutions, the solutions have other problems more or less, when a glTF file subjected to lightweight processing on a BIM model is displayed on a browser, rendering processing is performed first, and if the final display effect is ensured to be good by the existing technical means, the data volume subjected to rendering processing is very large, a processor is blocked, the display effect of a display end is blocked, and the display effect is seriously affected; if the rendering process needs to be efficient, the final rendering effect is poor, and the display effect of the BIM model is not ideal.
Disclosure of Invention
The invention aims to provide a BIM rendering method and a BIM rendering system, so as to solve the technical problem that the derived BIM has an unsatisfactory rendering effect on a webpage side.
In order to solve the problems, the invention adopts the following technical scheme: a BIM model rendering method comprises the following steps:
step S1, building a rendering platform by using a ThreeJS framework based on WebGL;
step S2, importing a glTF file of the original BIM after lightweight processing, and rendering according to a preset rendering strategy;
and step S3, after the rendering processing is finished, displaying the rendered BIM model on the browser end in real time.
The principle and the advantages of the scheme are as follows: during actual application, a rendering platform is built by using a WebGL-based ThreeJS framework, a lightweight BIM model is rendered, the processing mode of Mesh data is adjusted according to the number Count of vertexes of Mesh nodes in a glTF file derived from the BIM model and the number N of times of quoting, the data is classified and then differentially rendered and displayed, efficient rendering of the BIM model is achieved, and the rendering effect of the BIM model is effectively improved. Compared with the prior art, the method has the advantages that the vertex number Count of the Mesh nodes in the glTF file and the reasonable analysis and utilization of the quoted times N are achieved, the calculation capacity of the GPU and the CPU are fully considered, the best rendering display effect is provided on the premise that the data volume is relatively small, the rendering effect of the BIM is greatly improved, meanwhile, the utilization rate of the memory and the video memory can be effectively reduced, and therefore the rendering efficiency of the BIM is effectively improved.
Preferably, as an improvement, the preset rendering strategy includes the following contents:
retrieving the vertex number Count and the number N of quoted times of each Mesh node in the glTF file;
performing rendering frame rate processing on the Mesh node by utilizing the size relation between the product of the number of times N to be quoted and the number of vertexes Count and the threshold value epsilon and combining the merge technology and the instance technology;
and after finishing the rendering frame rate processing of each Mesh node in the glTF file, outputting a processed rendering BIM.
By the rendering strategy, the rendering effect of the glTF file can be effectively improved, the simplification of data is realized on the basis of ensuring the rendering effect, the degree of frame rate rendering is improved, and the problem that a large amount of memory is occupied by the data is solved.
Preferably, as an improvement, the rendering frame rate of the Mesh node is processed in such a way that if the product of the number of times N that is quoted and the number of vertices Count is greater than the threshold epsilon, the Mesh node performs frame rate rendering by using instance technology, and otherwise, performs frame rate rendering by using merge technology.
The merge technology and the instance technology are adjusted and used by setting a threshold value, the rendering effect and the rendering efficiency of the glTF file can be improved, and the final BIM model can meet the display requirement and can effectively save the memory size occupied by the BIM model.
Preferably, as an improvement, the threshold value epsilon is also dynamically adjusted according to different Mesh nodes in the rendering process.
By dynamically adjusting the threshold value, the rendering mode of the Mesh node is changed, the matching use mode of the merge technology and the instance technology is more variable, the rendering strategy can be adjusted according to different glTF files, and the optimal rendering effect can be achieved on the basis of ensuring the rendering efficiency.
Preferably, as an improvement, the frame rate rendering is performed by using an instance technology, that is, an instance is first performed on a Mesh node at the bottom layer of the glTF, a plurality of Mesh nodes with the same geometry are combined into an instance Mesh, and each instance Mesh node is independently sent to the GPU for processing.
If the data volume is large, the Mesh node data in the glTF file is processed for multiple times, the data volume processed each time is reduced, rendering blockage caused by overlarge data volume is avoided, the processing speed of the system is reduced, and therefore data processing efficiency and rendering efficiency are guaranteed.
Preferably, as an improvement, the merge technology is used for performing frame rate rendering, that is, all Mesh node data in the glTF file are merged and then simultaneously sent to the GPU for processing.
If the number of the references of the Mesh objects processed at this time is small and the vertex data amount is small, the data are merged and then processed in the process of reuse, the utilization rate of the GPU can be effectively improved, the rendering frame rate is greatly improved, and the rendering effect of the glTF file is guaranteed.
The invention also provides a BIM rendering system, which comprises a processor module, and a data transmission module, a cloud server module and a display module which are respectively connected with the processor module;
the data transmission module is used for acquiring the glTF file of the BIM after the lightweight processing to form a first data set and sending the first data set to the processor module;
the processor module comprises a data storage unit and a data processing unit, wherein the data storage unit is used for storing a first data set; the data processing unit is used for rendering the first data set according to a preset rendering strategy, obtaining a processed BIM model and then sending the BIM model to the cloud server module and the display module;
the cloud server module is used for storing the processed BIM model in a cloud mode;
and the display module is used for displaying the rendered BIM model in real time.
According to the BIM rendering method, the data transmission module is used for acquiring the glTF file of the BIM after lightweight processing, the glTF file is sent to the processing module for rendering, the data processing unit of the processor module is used by matching of merge technology and instance technology, and the transmission mode of Mesh data is dynamically adjusted, so that the GPU utilization rate and the rendering frame rate are effectively improved, meanwhile, the utilization rates of memory and video memory are reduced, the whole rendering effect is better, the rendering process is more efficient, and finally the rendered BIM is uploaded to the cloud server for storage and displayed through the display module.
Preferably, as an improvement, when obtaining the glTF file after the weight reduction process of the BIM model, only one copy of the same geometric data is kept in the glTF file.
By means of specific setting in a data obtaining mode, the existence of the same geometric data is automatically detected in the process of obtaining the glTF file, if the same geometric data exists, repeated parts are automatically removed, only one part of the same data is reserved, the data can be effectively simplified, accordingly, the occupied space of a memory of a GPU is reduced, and the operation speed is improved.
Preferably, as an improvement, after the data transmission module acquires the glTF file, the data transmission module firstly transmits the glTF file data to the cloud server module for storage, and the data transmission module transmits the data to the processor module for subsequent rendering.
The cloud server module is used for storing and transferring data, the work of the GPU and the CPU can be liberated to a great extent, reliable condition guarantee is provided for subsequent rendering work, the rendering effect of the BIM model is guaranteed, and therefore the BIM model can be displayed on a browser end more clearly and smoothly.
Drawings
Fig. 1 is a schematic view of a rendering process of a BIM model rendering method and system according to a first embodiment of the present invention.
Fig. 2 is a system diagram of a first embodiment of a BIM model rendering method and system according to the present invention.
Fig. 3 is a schematic diagram of an automatic upshift according to a third embodiment of a BIM model rendering method and system of the present invention.
Fig. 4 is a schematic diagram of an automatic downshift according to a third embodiment of the BIM model rendering method and system of the present invention.
Fig. 5 is a schematic diagram of an automatic upshift according to a fourth embodiment of the BIM model rendering method and system of the present invention.
Fig. 6 is a schematic diagram of an automatic downshift according to a fourth embodiment of the BIM model rendering method and system of the present invention.
Detailed Description
The following is further detailed by way of specific embodiments:
the reference numbers in the drawings of the specification include: the system comprises a processor module 1, a data transmission module 2, a cloud server module 3, a display module 4, a data storage unit 5 and a data processing unit 6.
The first embodiment is as follows:
this embodiment is substantially as shown in figure 1: a BIM model rendering method comprises the following steps:
step S1, building a rendering platform by using a ThreeJS (namely 3 DJavaSocript library) framework based on WebGL (a 3D drawing protocol);
step S2, importing a glTF file (the glTF is an asset format in the WebGL operation and is a format free of royalties) of an original BIM (building information model) after lightweight processing, and performing rendering processing according to a preset rendering strategy, wherein the glTF is used for efficiently transmitting and loading a three-dimensional scene and a model through an application program;
retrieving vertex types contained in each Mesh node in the glTF file, the number of vertexes contained in each class and the number N of times of being referred;
the vertex types comprise four types of common vertexes, textured vertexes, normal vector vertexes and textured and normal vector vertexes, a vertex factor Ti (1 is not less than i and not more than 4) is respectively set for representing the four types of vertexes, wherein the common vertex factor value is 1, the textured vertex factor value is 1.7, the normal vector vertex factor value is 2, the texture and normal vector vertex factor value is 2.7, Di (1 is not less than i and not more than 4) is respectively set for representing the number of the four types of vertexes, the total quantity of vertexes contained in the Mesh object is sigma Ti Di, the rendering frame rate processing of the Mesh node is carried out by utilizing the magnitude relation of the product of the number of quoted times N and the number of vertexes and a preset threshold value in combination with the merge use of merge technology and the instance technology, if the product of the number of quoted times N and the number of vertexes is more than the threshold value, the Mesh node carries out frame rate rendering by utilizing the instance technology, and merges the Mesh of the bottom layer of the glTF firstly, merging a plurality of mesh with the same geometry into an instance mesh, and independently sending each instance mesh to a GPU for processing; otherwise, performing frame rate rendering by using merge technology, and simultaneously sending all Mesh data in the glTF file to a GPU for processing after merging;
after each Mesh node in the glTF file completes rendering frame rate processing, outputting a processed rendering BIM model;
and step S3, after the rendering processing is finished, displaying the rendered BIM model on the browser end in real time.
As shown in fig. 2, the present disclosure further provides a BIM model rendering system, which applies the BIM model rendering method described above, and includes a processor module 1, and a data transmission module 2, a cloud server module 3, and a display module 4 respectively connected to the processor module 1;
the data transmission module 2 is used for acquiring the glTF file of the BIM after the lightweight processing to form a first data set and sending the first data set to the processor module 1;
the processor module 1 comprises a data storage unit 5 and a data processing unit 6, wherein the data storage unit 5 is used for storing a first data set; the data processing unit 6 is configured to perform rendering processing on the first data set according to a preset rendering strategy, obtain a processed BIM model, and send the BIM model to the cloud server module 3 and the display module 4;
the cloud server module 3 is used for storing the processed BIM model in a cloud mode;
and the display module 4 is used for displaying the rendered BIM model in real time.
The specific implementation process of this embodiment is as follows:
firstly, a rendering platform is built by using a WebGL-based ThreeJS framework, then a data transmission module 2 is used for acquiring a glTF file of a BIM model after lightweight processing, if the acquired glTF file has the same geometric data, only one part of the data is reserved, and then the glTF file is sent to a processor module 1.
And secondly, the data storage unit 5 of the processor module 1 receives and stores the glTF file, then the data processing unit 6 performs rendering processing on the glTF file according to a preset rendering strategy, firstly, the vertex number Count and the referred number N of each Mesh node in the glTF file are retrieved, and then the rendering frame rate processing of the Mesh nodes is performed by using the size relationship between the product of the referred number N and the vertex number Count and the threshold epsilon in combination with the collocation use of merge technology and instance technology.
Thirdly, if the product of the number of times N of reference and the number of vertexes Count is larger than a threshold value epsilon, the Mesh node uses an instance technology to perform frame rate rendering, and Mesh data in the glTF file are sent to a GPU for processing for multiple times; and otherwise, performing frame rate rendering by using merge technology, and simultaneously sending all Mesh data in the glTF file to the GPU for processing after merging.
And fourthly, after finishing the rendering frame rate processing of each Mesh node in the glTF file, outputting a processed rendering BIM, displaying the BIM in real time by using a browser end through a display module 4, and uploading the BIM to a cloud server module 3 for storage.
Many works in many industries involve the design of models, and conventional design software such as Sketchup software can only be displayed in Sketchup software, but cannot be directly displayed in other places, for example, cannot be directly browsed in a browser, because the 3D rendering engine WebGL at the browser end does not support the reading of Sketchup files, great inconvenience is brought to the display and application of the design results, and the application of the design results of the Sketchup software in the internet field is limited.
The traditional Sketchup model derivation scheme comprises an official Sketchup-STL tool, a plug-in-based glTF derivation tool and an intermediate format conversion tool, wherein the official Sketchup-STL tool only can describe the geometric shape of a model, has no attributes such as color, material texture and the like, and is low in applicability.
In the scheme, a rendering platform is built by utilizing a ThreeJS framework based on WebGL, then, the BIM model after the lightweight processing is collected for rendering processing, the vertex number Count of each Mesh node in the glTF file after the BIM model is exported is retrieved, and the number of times N of being quoted, the processing mode of the Mesh data is adjusted by utilizing the magnitude relation between the product of the number of times N of being quoted and the number of vertexes Count and the threshold epsilon and combining the merge technology and the instance technology, the data are classified and then are differentially rendered and displayed, the high frame rate rendering of the BIM model is realized, the computing power of a GPU and a CPU is fully considered, the utilization rate of a memory and a video memory is effectively reduced, the rendering efficiency and the display smoothness are ensured, and the dynamic data transmission mode is realized for rendering according to the difference of data quantity, therefore, the rendering effect of the BIM model is ensured, and the BIM model can be better displayed at a browser end.
Example two:
this embodiment is basically the same as the first embodiment, except that: after the data transmission module 2 acquires the glTF file, the data of the glTF file is sent to the cloud server module 3 for storage, and the data of the glTF file is sent to the processor module 1 by the cloud server module 3 for subsequent rendering.
The specific implementation process of this embodiment is the same as that of the first embodiment, except that:
firstly, a rendering platform is built by using a WebGL-based ThreeJS framework, then a data transmission module 2 is used for acquiring a glTF file of a BIM model after lightweight processing, if the acquired glTF file has the same geometric data, only one part of the data is reserved, then the glTF file data is firstly sent to a cloud server module 3 for storage, and the glTF file data is sent to a processor module 1 by the cloud server module 3 for subsequent rendering work.
In order to reduce the storage and calculation loads of the GPU and the CPU on data, the cloud server module 3 is used for storing and transferring the glTF file data, so that the working intensity of the GPU and the CPU can be greatly reduced, reliable condition guarantee is provided for subsequent rendering work, the rendering effect of the BIM model is guaranteed, and the BIM model can be displayed on a browser end more clearly and smoothly.
Example three:
this embodiment is basically the same as the first embodiment, except that: after a page is loaded with a glTF file, a rendering frame rate can be specified, the rendering frame rate is preset to be lambda, the default value is 30, the threshold value epsilon is divided into M gears, the first gear is e, the second gear is 2e, the third gear is 3e, and the M gear is Me.
As shown in fig. 3, if the current user operation is in an idle state, it is first determined whether the current frame rate is less than 0.8 λ, if the current frame rate is greater than 0.8 λ, the automatic upshift operation is directly ended, if the current frame rate is less than 0.8 λ, β ═ epsilon + e is set, a Mesh object satisfying ∈ N × Count ≦ β in the instance is checked, then it is calculated whether the memory occupied by the Mesh object satisfying the condition is less than the current available memory, if the memory occupied by the Mesh object is greater than the current available memory, the automatic upshift operation is directly ended, if the memory occupied by the Mesh object is less than the current available memory, the Mesh object data is merged into a merge queue, then the current threshold value ∈ β is set, and finally the above operation steps are repeated.
As shown in fig. 4, if the current user operation is in an idle state, it is first determined whether the frame rate is greater than 1.5 λ or the frame rate is greater than 60, if neither is satisfied, the process is directly ended, if the frame rate is greater than 1.5 λ or greater than 60, α ═ e is set, and meanwhile, a Mesh object satisfying α ≦ N × Count ≦ e in instance is checked, then the last added data in the merge queue is cleared, and after the current value of ≦ α is set, the operation is returned to the operation of determining the frame rate size to continue repeating the above operation until the frame rate is less than 1.5 λ or less than 60. Through the default value 30 of the frame rate, the frame rate which is less than 1.5 times of the default value or less than 60 frames is set, so that the rendering effect of the glTF file can be guaranteed, the frame rate can be limited through the set specific value, the unnecessary processing process of the system is reduced, the rendering efficiency is improved, the overall rendering effect is finally guaranteed, and the display effect of the BIM model at the browser end is improved.
The specific implementation process of this embodiment is the same as that of the first embodiment, except that:
thirdly, a preset threshold epsilon totally has M gears, a preset rendering frame rate is lambda, a default value is 30, when a glTF file is initially loaded on a page, epsilon is e, an instance queue and a merge queue process a Mesh node object in the glTF file according to the epsilon, when user operation is in an idle state, the epsilon value is dynamically adjusted by adopting two types of operations of automatic upshifting and automatic downshifting according to the page frame rate, in the upshifting operation, part of Mesh node data larger than the threshold epsilon is added to the tail of the merge queue, the Mesh node data are merged and simultaneously sent to a GPU for processing, and the utilization rate of the GPU is improved; and in the downshift operation, releasing part of Mesh node data of which the tail of the merge queue is smaller than a threshold epsilon, and reducing the utilization rate of the memory and the video memory.
According to the set value of the user, resources such as a memory and a video memory can be flexibly and automatically allocated, and the value of the threshold value epsilon is dynamically adjusted according to the page frame rate, so that the rendering process of the glTF file is more delicate, the threshold value can be accurately adjusted according to the requirement, the technology adopted by the rendering is dynamically adjusted, the rendering requirement of the user is met, and the rendering effect of the BIM model is ensured.
Example four:
this embodiment is basically the same as the first embodiment, except that: the frame rate range is preset to be 30-60 frames, when a glTF file is initially loaded on a page, all the Mesh objects are stored in an instance queue, total Mesh node objects are set, and the product fi of the number of vertexes of each Mesh node object and the number of reference times is Ni Ci (i is more than or equal to 0 and less than total), wherein Ni represents the number of reference times of the Mesh node object, and Ci represents the number of vertexes of the Mesh node object. And F is stored in an array F and sorted from small to large. And setting epsilon to represent the position of the currently pointed F array, wherein epsilon is-1 initially, and when the page is in an idle state, dynamically adjusting the epsilon value according to the page frame rate, wherein the adjustment is divided into two types of operation, namely automatic upshift and automatic downshift.
As shown in fig. 5, if the current page operation is in the idle state, it is determined whether the current frame rate is less than 30, if the current frame rate is less than 30, the process is ended directly, if the current frame rate is greater than 30, β ═ e +1 is set, and if β is greater than 30, β ═ e +1 is set>total, which indicates that all Mesh node objects use merge technology, and the execution is finished if beta<total, then calculate FβIf the occupied internal memory quantity is less than the current available internal memory quantity, directly ending the operation if the occupied internal memory quantity is greater than the current available internal memory quantity, otherwise, FβAnd merging the pointed Mesh object data into the merge queue, setting the current epsilon as beta, returning to judge the frame rate, and repeating the operation.
Automatic downshift operation as shown in fig. 6, if the current page is operatedIf the current frame rate is greater than 60, if the current frame rate is less than 60, the operation is ended directly, if the current frame rate is greater than 60, alpha is equal to epsilon-1, and if alpha is greater than 60, the operation is ended directly<0, indicating that all the Mesh objects use the instance technology, ending the execution, otherwise clearing F in the merge queueαAnd pointing to Mesh node object data, setting the current epsilon as alpha, returning to judge the frame rate size, and repeating the operation. The frame rate is fixedly set within the range of 30-60 frames, and the files beyond the range are subjected to gear lifting operation, so that the final frame rate requirement is met, the rendering effect within the range can be ensured, the file processing speed within the range is effectively increased, the rendering effect of the system is improved, the workload of a processor is reduced, and the rendering effect is ensured while the working efficiency is ensured.
The specific implementation process of this embodiment is the same as that of the first embodiment, except that:
thirdly, presetting the frame rate range to 30-60, when the glTF file is initially loaded on the page, storing all the Mesh objects into an instance queue, and designing total Mesh node objects, wherein the product fi of the number of vertexes of each Mesh node object and the number of times of reference is Ni Ci (i is more than or equal to 0)<total), where Ni represents the number of references of the Mesh node object and Ci represents the number of vertices of the Mesh node object. And F is stored in an array F and sorted from small to large. Setting epsilon to represent the position of the F array pointed at currently, initially setting epsilon to-1, dynamically adjusting the epsilon value by adopting two types of operations of automatic upshift and automatic downshift according to the page frame rate when the page is in an idle state, and during the upshift operation, setting F to be the position of the F array pointed at currentlyα+1Adding corresponding Mesh node data to the tail of the merge queue, merging the Mesh node data and sending the merged Mesh node data to the GPU for processing, and improving the utilization rate of the GPU; in the downshift operation, F in merge queue is releasedαAnd the corresponding Mesh node data reduces the utilization rate of the memory and the video memory. And by controlling the addition and deletion of a single Mesh object in the merge queue each time, the finer-grained resource management is realized.
Frame rate and epsilon value all need not user manual setting, reduce user operation step, make the system can allocate resources such as memory, video memory more fine-grained simultaneously through this kind of mode, improve the efficiency of rendering up to preset frame rate scope can satisfy the demand of user to the effect of rendering up, only through the operation process who increases automatic adjustment, realize the high efficiency of BIM model and render up, improve the effect of rendering up of BIM model, guarantee the bandwagon effect of BIM model at the browser end.
The foregoing is merely an example of the present invention and common general knowledge in the art of designing and/or characterizing particular aspects and/or features is not described in any greater detail herein. It should be noted that, for those skilled in the art, without departing from the technical solution of the present invention, several variations and modifications can be made, which should also be regarded as the protection scope of the present invention, and these will not affect the effect of the implementation of the present invention and the practicability of the patent. The scope of the claims of the present application shall be determined by the contents of the claims, and the description of the embodiments and the like in the specification shall be used to explain the contents of the claims.

Claims (9)

1. A BIM model rendering method is characterized in that: the method comprises the following steps:
step S1, building a rendering platform by using a ThreeJS framework based on WebGL;
step S2, importing a glTF file of the original BIM after lightweight processing, and rendering according to a preset rendering strategy;
and step S3, after the rendering processing is finished, displaying the rendered BIM model on the browser end in real time.
2. The BIM model rendering method of claim 1, wherein: the preset rendering strategy comprises the following contents:
retrieving the vertex number Count and the number N of quoted times of each Mesh node in the glTF file;
performing rendering frame rate processing on the Mesh node by using the size relationship between the product of the number of times N to be quoted and the number of vertices Count and a preset threshold value and combining the merge technology and the instance technology;
and after finishing the rendering frame rate processing of each Mesh node in the glTF file, outputting a processed rendering BIM.
3. The BIM model rendering method of claim 2, wherein: the processing of the rendering frame rate of the Mesh node is that if the product of the number of times of reference N and the number of vertices Count is greater than the threshold epsilon, the Mesh node performs frame rate rendering by using an instance technology, otherwise, the Mesh node performs frame rate rendering by using a merge technology.
4. The BIM model rendering method of claim 2, wherein: the threshold epsilon is also dynamically adjusted according to different Mesh nodes in the rendering process.
5. The BIM model rendering method of claim 3, wherein: the frame rate rendering by using the instance technology comprises the steps of firstly performing instance merging on a Mesh node at the bottom layer of the glTF, merging a plurality of Mesh nodes with the same geometry into an instance Mesh node, and independently sending each instance Mesh node to a GPU for processing.
6. The BIM model rendering system of claim 3, wherein: the frame rate rendering by using the merge technology is that all Mesh node data in the glTF file are merged and then simultaneously sent to the GPU for processing.
7. A BIM model rendering system, characterized by: the cloud server comprises a processor module, and a data transmission module, a cloud server module and a display module which are respectively connected with the processor module;
the data transmission module is used for acquiring the glTF file of the BIM after the lightweight processing to form a first data set and sending the first data set to the processor module;
the processor module comprises a data storage unit and a data processing unit, wherein the data storage unit is used for storing a first data set; the data processing unit is used for rendering the first data set according to a preset rendering strategy, obtaining a processed BIM model and then sending the BIM model to the cloud server module and the display module;
the cloud server module is used for storing the processed BIM model in a cloud mode;
and the display module is used for displaying the BIM after the rendering processing in real time.
8. The BIM model rendering system of claim 7, wherein: and when the glTF file of the BIM subjected to the lightweight processing is obtained, only one part of the same geometric data is reserved in the glTF file.
9. The BIM model rendering system of claim 7, wherein: after the data transmission module acquires the glTF file, the data of the glTF file is sent to the cloud server module for storage, and the data of the glTF file is sent to the processor module by the cloud server module for subsequent rendering.
CN202111561468.4A 2021-12-15 2021-12-15 BIM model rendering method and system Active CN114253724B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111561468.4A CN114253724B (en) 2021-12-15 2021-12-15 BIM model rendering method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111561468.4A CN114253724B (en) 2021-12-15 2021-12-15 BIM model rendering method and system

Publications (2)

Publication Number Publication Date
CN114253724A true CN114253724A (en) 2022-03-29
CN114253724B CN114253724B (en) 2023-10-13

Family

ID=80795939

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111561468.4A Active CN114253724B (en) 2021-12-15 2021-12-15 BIM model rendering method and system

Country Status (1)

Country Link
CN (1) CN114253724B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114912050A (en) * 2022-05-17 2022-08-16 万间网络科技(天津)有限公司 BIM (building information modeling) collaborative engine platform of real-time cloud computing architecture and implementation method
CN116090072A (en) * 2023-02-17 2023-05-09 广东省水利水电第三工程局有限公司 Engineering construction model export system based on BIM technology
CN116149866A (en) * 2023-04-14 2023-05-23 深圳市明源云科技有限公司 Working space adaptive rendering method, device, equipment and readable storage medium
CN116597067A (en) * 2023-05-16 2023-08-15 泰瑞数创科技(北京)股份有限公司 BIM dynamic rendering method and system thereof
CN117435521A (en) * 2023-12-21 2024-01-23 西安芯云半导体技术有限公司 Texture video memory mapping method, device and medium based on GPU rendering

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1997006512A2 (en) * 1995-08-04 1997-02-20 Microsoft Corporation Method and system for rendering graphical objects to image chunks and combining image layers into a display image
US20110271179A1 (en) * 2010-04-28 2011-11-03 Peter Jasko Methods and systems for graphically visualizing text documents
CN112465958A (en) * 2020-12-16 2021-03-09 中国电建集团昆明勘测设计研究院有限公司 WebGL-based BIM model lightweight display method
CN112862939A (en) * 2021-02-23 2021-05-28 广东博智林机器人有限公司 GLTF processing method and device for display optimization, electronic equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1997006512A2 (en) * 1995-08-04 1997-02-20 Microsoft Corporation Method and system for rendering graphical objects to image chunks and combining image layers into a display image
US20110271179A1 (en) * 2010-04-28 2011-11-03 Peter Jasko Methods and systems for graphically visualizing text documents
CN112465958A (en) * 2020-12-16 2021-03-09 中国电建集团昆明勘测设计研究院有限公司 WebGL-based BIM model lightweight display method
CN112862939A (en) * 2021-02-23 2021-05-28 广东博智林机器人有限公司 GLTF processing method and device for display optimization, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吕婧 等: "glTF在BIM模型轻量化中的应用", no. 6, pages 174 - 176 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114912050A (en) * 2022-05-17 2022-08-16 万间网络科技(天津)有限公司 BIM (building information modeling) collaborative engine platform of real-time cloud computing architecture and implementation method
CN116090072A (en) * 2023-02-17 2023-05-09 广东省水利水电第三工程局有限公司 Engineering construction model export system based on BIM technology
CN116090072B (en) * 2023-02-17 2023-10-03 广东省水利水电第三工程局有限公司 Engineering construction model export system based on BIM technology
CN116149866A (en) * 2023-04-14 2023-05-23 深圳市明源云科技有限公司 Working space adaptive rendering method, device, equipment and readable storage medium
CN116149866B (en) * 2023-04-14 2023-08-04 深圳市明源云科技有限公司 Working space adaptive rendering method, device, equipment and readable storage medium
CN116597067A (en) * 2023-05-16 2023-08-15 泰瑞数创科技(北京)股份有限公司 BIM dynamic rendering method and system thereof
CN116597067B (en) * 2023-05-16 2023-11-28 泰瑞数创科技(北京)股份有限公司 BIM dynamic rendering method and system thereof
CN117435521A (en) * 2023-12-21 2024-01-23 西安芯云半导体技术有限公司 Texture video memory mapping method, device and medium based on GPU rendering
CN117435521B (en) * 2023-12-21 2024-03-22 西安芯云半导体技术有限公司 Texture video memory mapping method, device and medium based on GPU rendering

Also Published As

Publication number Publication date
CN114253724B (en) 2023-10-13

Similar Documents

Publication Publication Date Title
CN114253724A (en) BIM (building information modeling) model rendering method and system
CN110070613B (en) Large three-dimensional scene webpage display method based on model compression and asynchronous loading
CN107193911B (en) BIM model-based three-dimensional visualization engine and WEB application program calling method
CN110706341B (en) High-performance rendering method and device of city information model and storage medium
US8725466B2 (en) System and method for hybrid solid and surface modeling for computer-aided design environments
CN106934058B (en) Vector data reading method and system and vector data visualization method and system
CN101119485A (en) Characteristic reservation based three-dimensional model progressive transmission method
CN103810669A (en) Caching Of Adaptively Sized Cache Tiles In A Unified L2 Cache With Surface Compression
CN112862942B (en) Physical special effect simulation method, device, electronic equipment and storage medium
US20140168230A1 (en) Asynchronous compute integrated into large-scale data rendering using dedicated, separate computing and rendering clusters
WO2023123919A1 (en) Data processing circuit, data processing method, and related product
CN116502303B (en) BIM model visualization method based on scene hierarchy instance information enhancement
WO2023169095A1 (en) Data processing method and apparatus, device, and medium
CN115457226A (en) Vector map generation method and device, electronic equipment and readable storage medium
WO2023045446A1 (en) Computing apparatus, data processing method, and related product
CN112799599A (en) Data storage method, computing core, chip and electronic equipment
CN115187445A (en) Visualization method and device based on Unity engine loading model
CN115238345A (en) BIM (building information modeling) model processing method and device, storage medium and electronic device
CN114201793A (en) Sketchup-based BIM model lightweight method and system
CN107170017A (en) The quick storage method of remotely-sensed data of processing is cooperateed with based on CPU/GPU
CN117372662A (en) Three-dimensional model light weight method based on complex equipment
CN115238659A (en) Report data processing method and device
CN113888701A (en) Method and system for converting curved surface 3D model into mesh 3D model in Obj format
CN111046214B (en) Method for dynamically processing model
DE102021121302A1 (en) GRAPHICS PROCESSING UNIT WITH DELEGATOR AND METHOD OF OPERATING THEREOR

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Ma Xiao

Inventor after: Ye Yufei

Inventor after: Hao Fangwei

Inventor after: Lei Zhuoqi

Inventor after: Yang Zepan

Inventor after: Chen Leixing

Inventor before: Ma Xiao

Inventor before: Ye Yufei

Inventor before: Hao Fangwei

Inventor before: Lei Zhuoqi

Inventor before: Yang Zepan

Inventor before: Chen Leixing

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant