Building growth visualization method and system suitable for digital twin system
By grouping and UV texture processing the building models, the low efficiency and low precision problems of building growth animation in the existing technology are solved, high-performance building growth visualization is achieved, and flexible control of animation is supported.
Patent Information
- Application Number
- CN202510699833.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-28
- Publication Date
- 2025-09-09
AI Technical Summary
When implementing building growth animation in a digital twin system, existing technologies have problems such as large production workload, difficulty in accurately reflecting construction logic, high performance overhead, and inability to finely control the growth process of individual components.
By grouping the building models, obtaining the pivot points and total height of the grouped models, baking them into UV textures, and combining them with the construction time, construction status judgment and spatial height cropping are performed to achieve building growth visualization.
It achieves refined control over the building growth process, improves growth accuracy, reduces the computational burden on the CPU and GPU, reduces data storage, and supports flexible control of animation.
Smart Images

Figure CN120612404A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of building growth visualization, and in particular to a building growth visualization method and system suitable for a digital twin system. Background Art
[0002] Visualizing the growth process of a building in a digital twin system is of great significance for project management, progress monitoring, and public display. Currently, the methods for implementing building growth animation mainly focus on the following aspects:
[0003] (1) Component-by-component keyframe animation: By setting keyframes for each component of the building model (such as beams, columns, plates, etc.) at different time nodes, recording its properties such as position, size or visibility, and then playing these keyframes in chronological order in the animation, a growth effect is achieved. Its main drawbacks include: the workload of animation production is huge, and keyframes need to be set and managed separately for each component, which is extremely inefficient, especially for building models with a large number of components; it is difficult to accurately reflect the construction logic, and the growth order and time of components are often difficult to fully match the actual construction process; the model data volume is large, and each keyframe needs to store the status information of the component, resulting in a high storage space usage.
[0004] (2) Skeleton-based animation or deformation animation: By adding bones to the building model or using deformation technology, the movement of the bones or the deformation of the model's vertices are controlled in the animation to achieve a growth effect. Its drawbacks include: for complex building structures, the setting and control of bones and deformation are very complex and require professional skills; it is difficult to truly reflect the growth logic of the building, such as the process of step-by-step construction according to the construction sequence; the performance overhead is large, especially when the number of model components is large, the real-time rendering performance will be significantly affected.
[0005] (3) Dynamic generation of geometric shaders: The geometry of the building model is dynamically generated on the GPU side using geometric shaders, usually based on predefined growth rules and time parameters. Its defects include: not taking into account the construction grouping logic, and being unable to control according to the actual construction stage (for example, by construction section or floor). For example, patent application CN116883575A discloses a building complex rendering method, device, computer equipment and storage medium. This method fills a portion of the physical texture map corresponding to the target pixel point into the virtual texture map, samples the texture pixels that match the virtual texture coordinates corresponding to the target pixel point from the virtual texture map, and renders at least one target building block model based on the texture pixels that match the virtual texture coordinates corresponding to each target pixel point. This method only achieves the growth effect of the entire building, and cannot finely control the growth process of a single component, and lacks realism. Summary of the Invention
[0006] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and to provide a building growth visualization method and system suitable for a digital twin system, thereby improving the performance and accuracy of building growth visualization.
[0007] The purpose of the present invention can be achieved by the following technical solutions:
[0008] A building growth visualization method applicable to a digital twin system includes the following steps:
[0009] Acquire an architectural model of a target building, and group the architectural models to obtain a plurality of grouped models;
[0010] Merging all components in the plurality of grouped models to obtain a merged model, and sequentially performing UV mapping on all vertices in the merged model according to the order of the grouped models to which they belong;
[0011] Get the pivot point and total height of each grouped model, bake the pivot point position and total height map into the UV texture; get the construction time of each grouped model, bake the construction time map into the UV texture;
[0012] Processing the coordinates of the vertices at the current time to identify the corresponding group model, and reading the pivot point position, total height and construction time of the corresponding group model from the UV texture;
[0013] The construction status is judged according to the current time and the construction time of the corresponding group model to obtain the construction status judgment result;
[0014] Performing spatial height cropping on the corresponding group model according to a preset cropping condition to obtain a spatial height cropping result;
[0015] The construction status judgment result and the spatial height clipping result are masked and mixed to obtain the building growth visualization result of the corresponding group model at the current time.
[0016] Furthermore, the building models are grouped according to a building growth level, where the building growth level includes construction sections or floors.
[0017] Furthermore, the pivot point is the bottom center point of the group model, and the total height is the total height of the group model along the Z-axis direction of the pivot point.
[0018] Furthermore, the specific steps of baking the pivot point position and total height map into the UV texture are:
[0019] The coordinates of each grouped model's pivot point in model space are baked into the Red, Green, and Blue channels of the texture at the pixel at the grouped model's position using an RGBA32 floating point texture format, and the total height of the grouped model is baked into the Alpha channel of the same pixel.
[0020] Furthermore, the construction time includes the construction start time and the construction end time. The specific steps of baking the construction time map into the UV texture are:
[0021] The normalized construction start time and construction end time are baked into the Red and Green channels of the pixels at the corresponding grouped model positions in the texture.
[0022] Furthermore, the specific steps of determining the construction status according to the current time are:
[0023] If the current time is less than or equal to the construction start time, the pixel will not be displayed;
[0024] If the current time is between the construction start time and the construction end time, calculate the construction completion ratio and the growth target height at the current time;
[0025] If the current time is greater than or equal to the construction end time, the pixel is fully displayed.
[0026] Furthermore, the construction completion ratio is:
[0027]
[0028] Where progress is the construction completion rate, T current is the current time, T start is the construction start time, T end The construction completion time.
[0029] Furthermore, the growth target height is:
[0030] H target =P Z +H total progress
[0031] Where H target is the target height of growth, P Z is the Z coordinate of the pivot point, H total is the total height.
[0032] Furthermore, the preset clipping condition is: for each pixel on the grouped model, obtain its Z coordinate in the model space; if the Z coordinate is greater than the growth target height at the current time, set the opacity of the pixel to 0; if the Z coordinate is less than or equal to the growth target height at the current time, set the opacity of the pixel to 1.
[0033] According to another aspect of the present invention, a building growth visualization system applicable to a digital twin system is provided, comprising:
[0034] A model grouping module is used to obtain an architectural model of a target building and group the architectural model to obtain a plurality of grouped models;
[0035] A model merging module is used to merge all components in the plurality of group models to obtain a merged model, and perform UV mapping on all vertices in the merged model in the order of the group models to which they belong;
[0036] The texture generation module is used to obtain the pivot point and total height of each grouped model, bake the pivot point position and total height map into the UV texture, obtain the construction time of each grouped model, and bake the construction time map into the UV texture;
[0037] A data reading module, configured to process the coordinates of the vertices at the current time to determine the corresponding group model, and read the pivot point position, total height and construction time of the corresponding group model from the UV texture;
[0038] A construction status judgment module is used to judge the construction status based on the current time and the construction time of the corresponding grouping model to obtain a construction status judgment result;
[0039] A spatial height clipping module, configured to perform spatial height clipping on the corresponding group model according to a preset clipping condition to obtain a spatial height clipping result;
[0040] The mask blending module is used to perform mask blending on the construction status judgment result and the spatial height clipping result to obtain the building growth visualization result of the corresponding group model at the current time.
[0041] Compared with the prior art, the present invention has the following beneficial effects:
[0042] 1. The present invention groups the architectural models of the target building according to the level of building growth, merges all components in multiple grouped models, performs UV mapping on the merged models, independently sets a pivot point and construction time for each grouped model, performs construction status judgment to obtain a construction status judgment result, performs spatial height cropping on the corresponding grouped models to obtain a spatial height cropping result, masks and mixes the construction status judgment result and the spatial height cropping result to obtain a visualization result of building growth at the current time, thereby achieving refined control of the building growth process and improving the accuracy of building growth.
[0043] 2. The present invention obtains the pivot point and total height of the grouped models, bakes the pivot point position and total height map into the UV texture, obtains the construction time of the grouped models, bakes the construction time map into the UV texture, and transfers the complex growth logic to the texture map. In the rendering stage, only simple texture sampling and opacity calculation are required to realize the growth animation, thereby greatly reducing the computational burden of the CPU and GPU, achieving high-performance real-time rendering, and improving the visualization performance of building growth.
[0044] 3. The present invention only needs to store one merged building model and two texture maps. Compared with storing models of multiple growth stages or a large amount of key frame data, the amount of data is significantly reduced, which reduces the storage cost. At the same time, by simply changing the input time variable, the growth progress of the building can be controlled, and the animation functions such as playback, pause, fast forward and rewind can be easily realized. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 This is a flow chart of a building growth visualization method applicable to a digital twin system proposed in the present invention;
[0046] Figure 2 This is a structural schematic diagram of a building growth visualization system suitable for a digital twin system proposed in the present invention. DETAILED DESCRIPTION
[0047] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments. This embodiment is implemented based on the technical solution of the present invention, and provides a detailed implementation method and specific operation process, but the protection scope of the present invention is not limited to the following embodiments.
[0048] Abbreviations involved:
[0049] Example 1
[0050] This embodiment provides a building growth visualization method applicable to a digital twin system. Figure 1 As shown, the following steps are included:
[0051] S1. Obtain an architectural model of a target building, and group the architectural models to obtain multiple group models.
[0052] Import the complete building model of the target building through Building Information Modeling (BIM) software (such as Revit, ArchiCAD, etc.) or from existing 3D building model files (such as FBX, OBJ, IFC formats).
[0053] Group building models according to the level of building growth, which includes construction sections or floors.
[0054] Construction segment grouping: Divide the building model into different construction segments according to the construction schedule. Each construction segment contains all components completed within that stage.
[0055] Floor Grouping: Divide the building model into different floor groups according to the building's floor structure. Each floor group contains all components within that floor.
[0056] Assign a unique identifier (such as group serial number) to each group model and record its corresponding hierarchical information (construction section number or floor number).
[0057] S2. Merge all components in the multiple group models to obtain a merged model, and perform UV mapping on all vertices in the merged model in sequence according to the order of the group models to which they belong.
[0058] Traverse all grouped models and merge all components in each grouped model into a complete merged model. During the merging process, ensure that the component geometry information (such as vertices, edges, and faces) is correctly integrated to avoid duplicate or conflicting geometric elements. Preserve the identification information of the grouped model to which each vertex belongs for subsequent UV mapping operations.
[0059] Map all vertices of the merged model to the discrete positions of UV channel 2 in the order of their groups. For example, if there are N groups, the UV space can be divided into a suitable grid (such as or other arrangements), and then translate the UV coordinates of the vertices of each group to the corresponding cells in the grid. Traverse all the vertices in the merged model, and translate the UV coordinates of the vertices to the corresponding grid cells in the UV space according to the order of the grouped models to which they belong. For example, for the vertex in the i-th grouped model, map its UV coordinates to the i-th grid cell in the UV space. The specific mapping method can be to align the UV coordinates of the vertex with the boundary of the grid cell, or perform appropriate scaling and translation operations as needed, while ensuring that the UV coordinates of the vertices of each group are reasonably distributed in the corresponding grid cells to avoid overlapping or exceeding the cell range.
[0060] S3. Get the pivot point and total height of each grouped model, bake the pivot point position and total height map into the UV texture, get the construction time of each grouped model, and bake the construction time map into the UV texture.
[0061] The pivot point is the bottom center point of the grouped model, and the total height is the total height of the grouped model along the Z-axis direction of the pivot point.
[0062] The specific steps for baking the pivot point position and total height map into the UV texture are:
[0063] The coordinates of each grouped model's pivot point in model space are baked into the Red, Green, and Blue channels of the texture at the pixel at the grouped model's position using the RGBA32 floating point texture format, and the total height of the grouped model is baked into the Alpha channel of the same pixel. For example, if there are 75 grouped models, the UV2 texture can be treated as a 25x3 pixel grid, with the data for the i-th group written to the i-th pixel.
[0064] The construction time includes the construction start time and the construction end time. The specific steps to bake the construction time map into the UV texture are:
[0065] The normalized construction start time and construction end time are baked into the red and green channels of the pixels at the corresponding grouped model positions in the texture using the RGBA32 floating point texture format.
[0066] S4. Confirm the corresponding group model according to the coordinates of the processed vertices at the current time, and read the pivot point position, total height and construction time of the corresponding group model from the UV texture.
[0067] In Shader, according to the current time, the UV mapping relationship is used to determine the group model to which each vertex belongs, and the corresponding pixel position in the UV texture is found through the UV coordinates (UV2 channel) of the vertex to determine the group model to which it belongs.
[0068] Read the pivot point position and height map of the UV2 channel and the construction time map in the Shader.
[0069] S5. Determine the construction status based on the current time and the construction time of the corresponding group model to obtain a construction status determination result.
[0070] The specific steps for judging the construction status based on the current time are as follows:
[0071] If the current time is less than or equal to the construction start time, and construction has not started, the pixel will not be displayed and its opacity Alpha will be set to 0;
[0072] If the current time is between the construction start time and the construction end time, and the construction is in progress, then calculate the construction completion ratio and the growth target height at the current time;
[0073] The construction completion ratio is:
[0074]
[0075] Where progress is the construction completion rate, T current is the current time, T start is the construction start time, T end The construction completion time.
[0076] The growth target height is:
[0077] H target =P Z +H total progress
[0078] Where H target is the target height of growth, P Z is the Z coordinate of the pivot point, H total is the total height.
[0079] If the current time is greater than or equal to the construction end time, the construction is completed, and the pixel is fully displayed, and its opacity Alpha is set to 1.
[0080] S6. Perform spatial height cropping on the corresponding grouped models according to the preset cropping conditions to obtain a spatial height cropping result.
[0081] For each pixel on the grouped model, read its Z coordinate in model space from the pivot point position in the UV texture and the total height map.
[0082] The preset clipping conditions are: if the Z coordinate of the grouped model in the model space is greater than the growth target height at the current time, the opacity of the pixel is set to Alpha = 0; if the Z coordinate of the grouped model in the model space is less than or equal to the growth target height at the current time, the opacity of the pixel is set to Alpha = 1.
[0083] S7. Mask and mix the construction status judgment result and the spatial height clipping result to obtain a building growth visualization result of the corresponding group model at the current time.
[0084] The final pixel opacity is generated by the superposition of the results of construction status judgment and spatial height clipping, ensuring that the model gradually appears from bottom to top. In order to obtain a smoother edge effect, spatial gradient anti-aliasing can be applied at the clipping boundary.
[0085] For pixels close to the growth target height, the opacity is calculated by linear interpolation based on how close they are to the target height:
[0086]
[0087] Where Alpha smooth The opacity after smoothing, Alpha final is the opacity of the final pixel, Z pixel is the Z coordinate of the grouped model in the model space, H target is the growth target height, Range smoothing The preset smoothing range value.
[0088] Based on the final pixel opacity, the color value of each pixel is updated to ensure that the model gradually appears from bottom to top. The processed pixel data is rendered to the screen to generate a building growth visualization result for the corresponding group model at the current time.
[0089] Steps S5 (construction status determination), S6 (spatial height clipping), and S7 (mask blending and result generation) are repeatedly executed based on the input time. Each time the input time changes, the construction status, target growth height, and pixel opacity of each grouped model are recalculated. This provides real-time visual feedback, allowing users to intuitively observe the dynamic changes in building growth. It also allows users to control the animation's playback, pause, fast forward, and rewind using keyboard shortcuts or gestures, enhancing the interactive experience.
[0090] Example 2
[0091] This embodiment provides a building growth visualization system suitable for a digital twin system, such as Figure 2 Shown, including:
[0092] A model grouping module is used to obtain the architectural model of the target building and group the architectural models to obtain multiple group models;
[0093] A model merging module is used to merge all components in multiple group models to obtain a merged model, and UV map all vertices in the merged model in the order of the group models to which they belong;
[0094] The texture generation module is used to obtain the pivot point and total height of each grouped model, bake the pivot point position and total height map into the UV texture, obtain the construction time of each grouped model, and bake the construction time map into the UV texture;
[0095] The data reading module is used to process the coordinates of the vertices at the current time to confirm the corresponding group model, and read the pivot point position, total height and construction time of the corresponding group model in the UV texture;
[0096] A construction status judgment module is used to judge the construction status based on the current time and the construction time of the corresponding grouping model to obtain a construction status judgment result;
[0097] The spatial height clipping module performs spatial height clipping on the corresponding group model according to the preset clipping conditions to obtain the spatial height clipping result;
[0098] The mask blending module is used to perform mask blending on the construction status judgment results and the spatial height clipping results to obtain the building growth visualization results of the corresponding group model at the current time.
[0099] The rest is the same as in Example 1.
[0100] The above describes in detail the preferred embodiments of the present invention. It should be understood that those skilled in the art can make numerous modifications and variations based on the concepts of the present invention without inventive effort. Therefore, any technical solutions that can be derived by those skilled in the art through logical analysis, reasoning, or limited experimentation based on the concepts of the present invention and the prior art should be within the scope of protection defined by the claims.
Claims
1. A building growth visualization method suitable for a digital twin system, characterized in that: The following steps are involved: Acquire an architectural model of a target building, and group the architectural models to obtain a plurality of grouped models; Merging all components in the plurality of grouped models to obtain a merged model, and sequentially performing UV mapping on all vertices in the merged model according to the order of the grouped models to which they belong; Get the pivot point and total height of each grouped model, bake the pivot point position and total height map into the UV texture; get the construction time of each grouped model, bake the construction time map into the UV texture; Processing the coordinates of the vertices at the current time to identify the corresponding group model, and reading the pivot point position, total height and construction time of the corresponding group model from the UV texture; The construction status is judged according to the current time and the construction time of the corresponding group model to obtain the construction status judgment result; Performing spatial height cropping on the corresponding group model according to a preset cropping condition to obtain a spatial height cropping result; The construction status judgment result and the spatial height clipping result are masked and mixed to obtain the building growth visualization result of the corresponding group model at the current time.
2. The building growth visualization method applicable to the digital twin system according to claim 1, characterized in that: The building models are grouped according to a hierarchy of building growth, which includes construction sections or floors.
3. The building growth visualization method applicable to the digital twin system according to claim 1, characterized in that: The pivot point is the bottom center point of the group model, and the total height is the total height of the group model along the Z-axis direction of the pivot point.
4. The building growth visualization method applicable to the digital twin system according to claim 1, characterized in that: The specific steps for baking the pivot point position and total height map into the UV texture are: The coordinates of each grouped model's pivot point in model space are baked into the Red, Green, and Blue channels of the texture at the pixel at the grouped model's position using an RGBA32 floating point texture format, and the total height of the grouped model is baked into the Alpha channel of the same pixel.
5. The building growth visualization method applicable to the digital twin system according to claim 1, characterized in that: The construction time includes the construction start time and the construction end time. The specific steps of baking the construction time map into the UV texture are: The normalized construction start time and construction end time are baked into the Red and Green channels of the pixels at the corresponding grouped model positions in the texture.
6. The building growth visualization method applicable to the digital twin system according to claim 5, characterized in that: The specific steps of determining the construction status according to the current time are as follows: If the current time is less than or equal to the construction start time, the pixel will not be displayed; If the current time is between the construction start time and the construction end time, calculate the construction completion ratio and the growth target height at the current time; If the current time is greater than or equal to the construction end time, the pixel is fully displayed.
7. The building growth visualization method applicable to the digital twin system according to claim 6, characterized in that: The construction completion ratio is: Where progress is the construction completion rate, T current is the current time, T start is the construction start time, T end The construction completion time.
8. The building growth visualization method applicable to the digital twin system according to claim 6, characterized in that: The growth target height is: H target =P Z +H total ·progress Where H target is the target height of growth, P Z is the Z coordinate of the pivot point, H total is the total height.
9. The building growth visualization method applicable to the digital twin system according to claim 1, characterized in that: The preset clipping condition is: for each pixel on the grouped model, obtain its Z coordinate in the model space; if the Z coordinate is greater than the growth target height at the current time, set the opacity of the pixel to 0; if the Z coordinate is less than or equal to the growth target height at the current time, set the opacity of the pixel to 1.
10. A building growth visualization system suitable for a digital twin system, characterized in that: include: A model grouping module is used to obtain an architectural model of a target building and group the architectural model to obtain a plurality of grouped models; A model merging module is used to merge all components in the plurality of grouped models to obtain a merged model, and to perform UV mapping on all vertices in the merged model in the order of the grouped models to which they belong; The texture generation module is used to obtain the pivot point and total height of each grouped model, bake the pivot point position and total height map into the UV texture, obtain the construction time of each grouped model, and bake the construction time map into the UV texture; A data reading module, configured to process the coordinates of the vertices at the current time to determine the corresponding group model, and read the pivot point position, total height and construction time of the corresponding group model from the UV texture; A construction status judgment module is used to judge the construction status based on the current time and the construction time of the corresponding grouping model to obtain a construction status judgment result; The spatial height clipping module performs spatial height clipping on the corresponding group model according to a preset clipping condition to obtain a spatial height clipping result; The mask blending module is used to perform mask blending on the construction status judgment result and the spatial height clipping result to obtain the building growth visualization result of the corresponding group model at the current time.
Citation Information
Patent Citations
Building group rendering method and device, computer equipment and storage medium
CN116883575A