Rule Structure BIM Model Animation Generation Method, Device, and Storage Medium

By building a regular structure BIM model and using shader technology to generate texture maps, the dynamic combination and visual display of BIM model and business data is realized, and the problems of static information storage and single physical appearance visualization in the existing technology are solved, providing a richer visual information display.

CN116152397BActive Publication Date: 2025-07-25POWERCHINA ZHONGNAN ENG
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310194947.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-28
Publication Date
2025-07-25
Estimated Expiration
2043-02-28

AI Technical Summary

Technical Problem

The existing BIM technology mainly stores static information, lacks rich visual information to interact with the information database through component ID, and the real-time rendering of the BIM model mainly visualizes the physical appearance, lacks richer visual information display.

Method used

By building a regular structure BIM model, exporting the graphic engine-compatible format files, compiling shaders and importing them into the graphic engine, obtaining monitoring data in real time to generate texture maps, using shaders to normalize model points and associate them with texture maps, and implementing model deformation to generate animation effects.

Benefits of technology

It realizes the dynamic combination and visual display of BIM model and business data. It has the advantages of good animation effect, fast response speed, strong data compatibility and friendly interaction methods. It is suitable for dynamic visual application scenarios of rule structures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116152397B_ABST
    Figure CN116152397B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device and storage medium for generating an animation of a regular structure BIM model. The method includes constructing a regular structure BIM model, exporting the BIM model and converting it into a format file compatible with a graphics engine; programming a shader, and importing the format file and the shader into the graphics engine; obtaining monitoring data of the regular structure; generating a texture map according to the monitoring data, and importing the texture map into the graphics engine; using the shader to normalize the coordinate values of each point in the regular structure model to obtain the UV values of the corresponding points; associating the UV values of each point in the regular structure model with the RGB values of each pixel point in the texture map; adding the RGB values associated with the coordinate values of each point in the regular structure model and rendering in the graphics engine to realize the deformation of the regular structure model, and further realizing the model animation effect. The present invention can realize the dynamic combination and visual display of the BIM model and business data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of BIM graphics, and particularly relates to a method, device, and storage medium for generating an animation of a regular structure BIM model driven by real-time service data, so as to realize the dynamic combination and visual display of the regular structure BIM model and service data. Background Art

[0002] With the increasing digital business demands in the engineering construction industry, it is urgent to optimize the dynamic real-time performance and visualization degree of BIM display data. The main limitations of existing BIM display information technologies include:

[0003] 1) Mainly store static design information;

[0004] 2) Interaction with the information database can be achieved by using the component ID as an index, but the vertex data, texture maps, and other model assets of the model are not fully utilized to carry information;

[0005] 3) The offline rendering and real-time rendering of BIM models mainly visualize the physical appearance, and there are limitations in presenting richer visualization information. Summary of the Invention

[0006] The purpose of the present invention is to provide a method, device, and storage medium for generating an animation of a regular structure BIM model, so as to solve the problems in the application of traditional BIM technologies, such as only storing static information, interacting with the information database by using the component ID as an index to carry information, mainly visualizing the physical appearance, and lacking richer visualization information.

[0007] The present invention solves the above technical problems through the following technical solutions: A method for generating an animation of a regular structure BIM model, the method comprising the following steps:

[0008] Step 1: Construct a regular structure BIM model, export the regular structure BIM model, and convert it into a format file compatible with the graphics engine;

[0009] Compile a shader, and import the format file and the shader into the graphics engine;

[0010] Step 2: Obtain the monitoring data of the regular structure in the current sampling period in real time;

[0011] Step 3: Generate a texture map according to the monitoring data, and import the texture map into the graphics engine; or, import the monitoring data into the graphics engine, and generate a texture map according to the monitoring data;

[0012] Step 4: Normalize the x and y values of each point in the regular structure model using the shader to obtain the UV values of the corresponding points; associate the UV values of each point in the regular structure model with the RGB values of each pixel point in the texture map; add the x, y, and z values of each point in the regular structure model to the associated RGB values and render in the graphics engine to achieve the deformation of the regular structure model.

[0013] Step 5: Obtain the monitoring data of the regular structure in the next sampling period in real time, and repeat Steps 3 to 5 to achieve the animation generation of the regular structure model.

[0014] Further, the regular structure includes bridges, roads, slopes, regular structural surfaces, and the slab, beam, and column of buildings.

[0015] Further, the graphics engine is a WebGL graphics engine or an OpenGL engine.

[0016] Further, the shader includes a vertex shader and a pixel shader; the vertex shader is used to normalize the x and y values of each point in the regular structure model to obtain the UV values of the corresponding points, associate the UV values of each point in the regular structure model with the RGB values of each pixel point in the texture map, and add the x, y, and z values of each point in the regular structure model to the associated RGB values to obtain an offset regular structure model; the pixel shader is used to render the offset regular structure model.

[0017] Further, the specific implementation process of generating the texture map according to the monitoring data is as follows:

[0018] Group the monitoring points that are consistent with the regular structure trend and parallel to each other under the same vibration mode, and generate a monitoring curve for each group according to the positions of the monitoring points in each group and their monitoring data;

[0019] Create a blank texture map, project the points on each monitoring curve into the blank texture map, and perform interpolation processing on the projected texture map to generate the texture map for the current sampling period.

[0020] Further, the monitoring data is displacement data or deformation data.

[0021] Based on the same concept, the present invention provides an electronic device, including:

[0022] A memory for storing a computer program;

[0023] A processor for implementing the method for generating an animation of a regular structure BIM model as described above when executing the computer program.

[0024] Based on the same concept, the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned regular structure BIM model animation generation method is implemented.

[0025] Beneficial Effects

[0026] Compared with the prior art, the advantages of the present invention are:

[0027] When the monitoring data of regular structure is imported in real time, the present invention generates a texture map corresponding to the monitoring data, and then uses shader technology in the graphics engine to realize the association between the regular structure model and the texture map, and displays the monitoring data in a model deformation manner, thereby realizing the animation effect of the model and solving the problem of lack of visual information.

[0028] The present invention utilizes shaders to realize data reading of texture mapping and control of model animation, and can well realize the visual conversion of monitoring data to model deformation, and has the advantages of good animation effect, fast response speed, strong data compatibility and friendly interaction mode. The present invention can be applicable to application scenarios of dynamic visualization of BIM models with regular shapes such as roads, bridges, slopes, structural surfaces, or those that can be simplified into regular shapes, with a high degree of reuse, flexibility and scalability. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the technical solution of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only one embodiment of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0030] Figure 1 is a flow chart of a bridge BIM model animation generation method in an embodiment of the present invention;

[0031] Figure 2 is a schematic diagram of bridge monitoring point grouping in an embodiment of the present invention;

[0032] Figure 3 is a schematic diagram of vibration mode 1 in Table 1 in an embodiment of the present invention;

[0033] Figure 4 This is a schematic diagram of vibration mode 2 in Table 1 in the embodiment of the present invention.

[0034] Figure 5 Schematic diagram of monitoring curve generated by interpolation of monitoring data in an embodiment of the present invention;

[0035] Figure 6 is a mapping diagram of monitoring data to texture maps in an embodiment of the present invention;

[0036] Figure 7 It is a schematic diagram of texture map interpolation in an embodiment of the present invention;

[0037] Figure 8 It is a schematic diagram of point normalization processing in the bridge model in an embodiment of the present invention;

[0038] Figure 9 It is a mapping diagram between the bridge model and the texture map in an embodiment of the present invention;

[0039] Figure 10 It is a schematic diagram of the graphic engine control principle in an embodiment of the present invention;

[0040] Figure 11 It is an effect diagram of the bridge without vibration mode in an embodiment of the present invention;

[0041] Figure 12 It is an effect diagram of the bridge vibration mode 1 in an embodiment of the present invention;

[0042] Figure 13 It is an effect diagram of the bridge vibration mode 2 in an embodiment of the present invention. Specific implementation manners

[0043] Next, in combination with the accompanying drawings in the embodiments of the present invention, the technical solutions in the present invention will be clearly and completely described. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by those of ordinary skill in the art without making creative efforts belong to the scope of protection of the present invention.

[0044] Next, the technical solutions of the present application will be described in detail with specific embodiments. The following several specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.

[0045] Taking a bridge with a regular structure as an example, as Figure 1 shown, a method for generating an animation of a bridge BIM model provided by an embodiment of the present invention includes the following steps:

[0046] Step S101: Construct a bridge BIM model, export the bridge BIM model and convert it into a format file compatible with the graphic engine. According to business requirements, construct a BIM model that can reflect the physical appearance of the bridge. The construction of the bridge BIM model is a prior art. Since the animation generation needs to be implemented in the graphic engine, it is necessary to export the bridge BIM model and then convert it into a format file that the graphic engine can be compatible with or recognize. The format file contains the coordinate values of each point in the bridge BIM model, and the coordinate values (x, y, z) of each point are based on the coordinate system when the BIM model is constructed.

[0047] In this embodiment, the graphics engine is a WebGL graphics engine or an OpenGL engine. When the graphics engine is a WebGL graphics engine, the format file corresponding to the bridge BIM model is in the WebGL format.

[0048] Step S102: Compile the shader

[0049] The shader is used to implement image rendering and includes a vertex shader and a pixel shader. In this embodiment, the vertex shader is used to parse the model vertices, that is, to normalize the x and y values of each point in the bridge model to obtain the UV values of the corresponding points, associate the UV values of each point in the bridge model with the RGB values of each pixel point in the texture map, add the x, y, and z values of each point in the bridge model to the RGB value associated with that point to obtain the offset bridge model, and then perform a projection transformation on the offset bridge model and pass it into the pixel shader; the pixel shader is used to render the bridge model to realize the deformation visualization of the bridge model.

[0050] The UV value is the coordinate value in the UV coordinate system. The UV coordinate system refers to the percentage coordinates of the image, with the horizontal direction being the U coordinate and the vertical direction being the V coordinate. Then, the x value of each point after normalization corresponds to the U value of that point, and the y value of each point after normalization corresponds to the V value of that point.

[0051] Step S103: Import the format file and the shader into the graphics engine

[0052] After importing the format file of the bridge BIM model into the graphics engine, a bridge model is obtained; after importing the compiled shader into the graphics engine, the shader can be used in the graphics engine to realize the association between the bridge model and the texture map. When real-time monitoring data is scrolled into the graphics engine or the monitoring data is generated into a texture map and then scrolled into the graphics engine, the visualization of the monitoring data on the bridge model can be realized.

[0053] Step S104: Real-time obtain the monitoring data of the bridge in the current sampling period

[0054] After the monitoring device is arranged on the bridge, the monitoring data can be obtained in each sampling period according to the set sampling period.

[0055] Exemplarily, according to the bridge monitoring requirements, displacement sensors are evenly arranged on both sides of the bridge deck along the bridge alignment to monitor the deformation of the bridge. The displacement sensors on both sides of the bridge deck are symmetrically arranged. In this example, there are 26 displacement sensors, 13 on each side of the bridge deck, numbered 0 to 25. Each displacement sensor corresponds to a monitoring point, such as Figure 2As shown, at each second, 26 displacement sensors collect monitoring data once, generate a texture map based on the monitoring data, and transmit the texture map into the graphics engine; or directly transmit the monitoring data into the graphics engine, generate a texture map in the graphics engine, and then use a shader for association.

[0056] Table 1 Monitoring data of 26 displacement sensors in a certain sampling period under different vibration modes

[0057]

[0058]

[0059] Table 1 shows the monitoring data of 26 displacement sensors in a certain sampling period under different vibration modes. Since the displacement sensors on both sides of the bridge deck are symmetrically arranged, for simplicity, the monitoring data of two symmetric displacement sensors are averaged, and a coordinate system is constructed with the distance of the displacement sensor from a certain side of the bridge (such as the left side) as the abscissa and the monitoring data (displacement or deformation amount) collected by the displacement sensor as the ordinate, as Figure 2 shown. Different states, categories, or working conditions of the bridge correspond to different vibration modes or modes.

[0060] Vibration mode 1 in Table 1 is as Figure 3 shown, and vibration mode 2 in Table 1 is as Figure 4 shown, where positive and negative represent the displacement upward or downward.

[0061] Step S105: Generate a texture map

[0062] Generate a texture map based on the monitoring data, and then use shader technology to associate or map the bridge model with the texture map. The displacement sensors collect monitoring data once in each acquisition period, and the monitoring data collected in each sampling period corresponds to a texture map. According to the time interval (i.e., the sampling period), the shader associates the bridge model with different texture maps and renders them in the graphics engine, thus realizing the animation effect of the deformation of the bridge model.

[0063] The present invention can first generate a texture map according to the monitoring data and then import the texture map into the graphics engine, or directly import the monitoring data into the graphics engine and generate a texture map based on the monitoring data in the graphics engine.

[0064] In this embodiment, the specific implementation process of generating the texture map is as follows:

[0065] (1) Group the monitoring points that are consistent with the bridge direction and parallel to each other under the same vibration mode, and generate a monitoring curve for each group according to the positions of the monitoring points in each group and their monitoring data.

[0066] Exemplarily, the 26 displacement sensors on the bridge deck are divided into two groups. Among them, the displacement sensors numbered 0 to 12 are the first group, and the displacement sensors numbered 13 to 25 are the second group. 13 discrete points are obtained according to the distance of the displacement sensors from one side of the bridge (i.e., the position of the sensors) and the displacement amounts collected by the displacement sensors. Taking the distance of the displacement sensors from one side of the bridge (such as the left side) as the abscissa and the monitoring data (displacement amount or deformation amount) collected by the displacement sensors as the ordinate to construct a coordinate system, and plot the 13 discrete points of each group under the same vibration mode in this coordinate system. Then, based on the 13 discrete points, interpolation method is used to generate the monitoring curves of each group, as Figure 2 and 5 shown. Usually, the monitoring points parallel to the bridge alignment are used for division.

[0067] (2) Create a blank texture map, project the points on each group of monitoring curves onto the blank texture map, and perform interpolation processing on the projected texture map to generate the texture map of the current sampling period.

[0068] The specific implementation process of projecting the points on each group of monitoring curves onto the blank texture map is as follows: Each pixel point in the first row of the texture map corresponds to the monitoring curve of the first group (that is, according to the pixel points in the first row of the texture map, find the corresponding points on the monitoring curve of the first group, and store the Y value of the corresponding points in the G channel of this pixel point). Store the Y value (i.e., the monitoring data of this point, such as displacement amount or deformation amount) of the corresponding points on the monitoring curve of the first group in the G channel of the corresponding pixel points in the first row of the texture map, as Figure 6 shown; Similarly, each pixel point in the last row of the texture map corresponds to the monitoring curve of the second group, and store the Y value of the corresponding points on the monitoring curve of the second group in the G channel of the corresponding pixel points in the last row of the texture map.

[0069] The X axis of the coordinate system where the monitoring curve is located is the distance between the monitoring point and one side of the bridge, and the Y axis is the monitoring data corresponding to the monitoring point. The XYZ axes of the coordinate system correspond to the RGB channels of the texture map respectively, that is, the X axis corresponds to the R channel, the Y axis corresponds to the G channel, and the Z axis corresponds to the B channel. Since the bridge model animation is driven by simplified monitoring data or business data, only by mapping the Y value reflecting the monitoring data or business data to the G value of the texture map, the mapping between the position of the pixel points in the texture map and the position of the monitoring points in the bridge model is realized.

[0070] After projecting all groups of monitoring data onto the texture map, there are still some blank pixel points in the texture map (i.e., the RGB values of the pixel points are 0). Interpolate the RGB values of the blank pixel points according to the RGB values of the non-blank pixel points, and then the texture map for the current sampling period is obtained. For example, after projecting the first group of monitoring data onto the first row of the texture map and the second group of monitoring data onto the last row (the Nth row) of the texture map, the pixel points in the middle rows (the 2nd row to the N - 1th row) are blank pixel points. Interpolate the RGB values of the blank pixel points (i.e., the pixel points to be interpolated) in the 2nd row to the N - 1th row according to the RGB values of the pixel points in the first row and the Nth row (i.e., the original data pixel points), and a texture map with continuous displacement data is obtained, as Figure 7 shown, to store the bridge displacement data into the RGB channels of the texture map.

[0071] Step S106: Map between the bridge model and the texture map, and add the x, y, and z values of each point in the bridge model to the associated RGB value and then render in the graphics engine to realize the deformation visualization of the bridge model

[0072] In the graphics engine, using a shader, each point on the bridge model can be mapped or associated with each pixel point in the texture map. Determine the position offset of the bridge model through the RGB values of each pixel point in the texture map, so as to achieve the visual mapping of the monitoring data to the bridge model. The specific implementation process is as follows:

[0073] (1) Normalize the x and y values of each point in the bridge model using a shader, and the normalized values are used as the U and V values of the corresponding point in the bridge model, as Figure 8 shown.

[0074] (2) Associate the UV values of each point in the bridge model with the RGB values of each pixel point in the texture map obtained in step S105, and obtain the RGB values of the corresponding pixel points in the texture map through the coordinates of each point in the bridge model, that is, obtain the monitoring data.

[0075] Exemplarily, as Figure 9 shown, the shader associates the point with UV values of (0.2, 0.5) in the bridge model with the pixel point (102, 128) of a texture map with a size of 512 * 256. The monitoring data of the pixel point (102, 128) is stored in the RGB channels, where R, G, and B respectively represent the offset amounts in the x, y, and z directions, to realize the mapping from the entity bridge deck position to the texture map.

[0076] (3) Add the x, y, and z values of each point in the bridge model to the associated RGB value and then render in the graphics engine to realize the deformation visualization of the bridge model, as Figure 3 and 4The vibration mode diagram shown

[0077] Exemplarily, after adding the y value of the points with the UV value of the bridge model being (0.2, 0.5) to the G value of the pixel point (102, 128), it is re-rendered in the graphics engine.

[0078] Step S107: Real-time obtain the monitoring data of the bridge in the next sampling period, and repeat steps S105 - S107 to realize the animation generation of the bridge model, as Figure 10 shown.

[0079] Since the displacement sensor collects monitoring data in each sampling period, the monitoring data is transmitted into the graphics engine in real time to generate a texture map. The shader realizes the mapping between the bridge model and the texture map according to the time interval (i.e., the sampling period). After adding the RGB values of the texture map associated with each point in the bridge model to the x and y values of each point, it is rendered in the graphics engine. That is, by switching different texture maps according to the time interval, the switching of monitoring data between different vibration modes can be realized, thereby realizing the animation effect of the bridge model, as Figures 11 to 13 , which shows the deformation effect after magnifying the monitoring data by 50 times.

[0080] The present invention can be applied to the application scenarios of dynamic visualization of BIM models with regular shapes such as roads, bridges, slopes, structural surfaces, or those that can be simplified into regular shapes, which is helpful for the safety detection and diagnosis of regular structures, has a high degree of reuse, and combines flexibility and scalability.

[0081] In the components of the data intelligent detection safety and diagnosis system of a certain cross-sea bridge, the present invention supports the deformation visual animation effect of more than 1000 groups of vortex-induced vibration monitoring data of the single cable-stayed bridge of this bridge project, the vibration mode visual animation effect of the double cable-stayed bridge, and the vibration effect of the bridge cables. The present invention provides sufficient power for the control functions such as bridge data analysis and digital model fusion of this bridge.

[0082] The present invention can also be applied to the deformation animations of BIM models of various regular structural surfaces in the engineering construction industry, and supports the fusion of real-time three-dimensional data of multiple structural surfaces (such as rock mass structural surfaces and foundation structural surfaces) with BIM models. For example, in the foundation structure analysis of large buildings, the present invention can realize the visualization of foundation settlement to assist in design and enhance the visual effect; in the slope stability analysis, the present invention can realize the visualization of the elastoplastic deformation of the slope before cracking to realize the visualization of slope monitoring data; in the analysis of different stress states of the slab-beam-column structure of a building, the present invention can also visualize the specific deformation conditions before the structure fails to support the design work of the building.

[0083] The above disclosure is only the specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention can easily think of changes or variations, which should all be covered within the protection scope of the present invention.

Claims

1. A method for generating an animation of a regular structure BIM model, characterized in that, The method includes the following steps: Step 1: Construct a regular structure BIM model, export the regular structure BIM model and convert it into a format file compatible with the graphics engine; Prepare a shader, and import the format file and the shader into the graphics engine; Step 2: Obtain the monitoring data of the regular structure in the current sampling period in real time; Step 3: Generate a texture map according to the monitoring data and import the texture map into the graphics engine; or, import the monitoring data into the graphics engine and generate a texture map according to the monitoring data; Step 4: Use the shader to normalize the x , y values of each point in the regular structure model to obtain the UV values of the corresponding points; associate the UV values of each point in the regular structure model with the RGB values of each pixel point in the texture map; add the x , y , z values of each point in the regular structure model to the associated RGB values and then render in the graphics engine to achieve the deformation of the regular structure model; Step 5: Obtain the monitoring data of the regular structure in the next sampling period in real time, and repeat Steps 3 to 5 to realize the animation generation of the regular structure model; Among them, the specific implementation process of generating a texture map according to the monitoring data is: Group the monitoring points that are consistent with the trend of the regular structure and parallel to each other under the same vibration mode, and generate a monitoring curve for each group according to the positions of the monitoring points in each group and their monitoring data; Create a blank texture map, project the points on each monitoring curve onto the blank texture map, and perform interpolation processing on the projected texture map to generate the texture map for the current sampling period.

2. The method for generating an animation of a rule-based BIM model according to claim 1, wherein The regular structure includes bridges, roads, slopes, regular structure surfaces, and the slab, beam, and column of a building.

3. The method for generating an animation of a rule-based BIM model according to claim 1, characterized in that, The graphics engine is a WebGL graphics engine or an OpenGL engine.

4. The method for generating a rule-based BIM model animation according to claim 1, wherein The shader includes a vertex shader and a pixel shader; the vertex shader is used to normalize the x , y values of each point in the regular structure model to obtain the UV values of the corresponding points, associate the UV values of each point in the regular structure model with the RGB values of each pixel point in the texture map, and add the x , y , z values of each point in the regular structure model to the associated RGB values to obtain an offset regular structure model; the pixel shader is used to render the offset regular structure model.

5. The method for generating an animated BIM model of a regular structure according to any one of claims 1 to 4, characterized in that, The monitoring data is displacement data or deformation data.

6. An electronic device, characterized in that, The device includes: A memory for storing a computer program; A processor for implementing the method for generating an animation of a regular structure BIM model as described in any one of claims 1 to 5 when executing the computer program.

7. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the method for generating an animation of a regular structure BIM model as described in any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • BIM visualizing system and method using web environment

    KR102467152B1

  • Visual shader designer

    US20130063460A1