Conversion optimization processing method, system, equipment and medium for large passenger station model

By optimizing component naming, resource sharing and UV processing in UE4, the problem of difficult display and searching of large-scale guest station models in UE4 is solved, efficient resource utilization and visual expression are achieved, and system performance is improved.

CN115221588BActive Publication Date: 2025-08-08CHINA RAILWAY DESIGN GRP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210857595.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-20
Publication Date
2025-08-08
Estimated Expiration
2042-07-20

AI Technical Summary

Technical Problem

The prior art is difficult to efficiently display and find hundreds of thousands of components of large-scale passenger station buildings in UE4, and there is no unified rule for component naming, waste of resource occupation, and improper UV processing lead to difficulty in visual expression, affecting system operation efficiency.

Method used

By using the development resource replacement program in UE4, the ID encoding in the component name is obtained, the spatial data ratio is calculated, multiple component instance objects are converted into shared resources, and angle rotation and material assignment are performed, naming encoding and UV settings are optimized, and redundant resources are cleaned.

Benefits of technology

It has achieved smooth display of hundreds of thousands of components in the same level, reducing resource occupation, improving system development efficiency, meeting visual expression needs, and providing a basis for quickly finding designated components.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115221588B_ABST
    Figure CN115221588B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of data identification technology, and discloses a conversion optimization processing method, system, device and medium for a large passenger station model. The processing method includes: in UE4, using a development resource replacement program to obtain the ID code in the component name, and searching the corresponding ID row in the data table, obtaining the spatial data of the row, calculating the relationship with the spatial data of the shared resource component, and changing the spatial parameters of the component instance object to realize the conversion of multiple component instance objects into instance objects of shared resources; rotating the instance objects of shared resources at an angle to be consistent with the orientation of the original component. The present invention converts a one-to-one resource instantiation component into a one-to-many instantiation component, and programmatically sets the LOD of shared resources in batches, thereby maximizing the optimization of resource occupancy and optimizing the efficiency of the development program; and solving the visual expression of referenced objects through the UV setting of shared resources, thereby improving the efficiency of system development.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of data recognition technology, and in particular relates to a conversion optimization processing method, system, equipment and medium for a large passenger station model. Background Art

[0002] Using the UE4 open source graphics engine to express architectural BIM, and to simultaneously load and display all components of large-scale passenger station buildings in UE4, and run them efficiently, with component naming and coding meeting the requirements of program development and optimization, to achieve a one-to-one digital passenger station is a technical problem that needs to be solved in this field.

[0003] There are currently two common methods for importing BIM models into UE4. One is to directly use the conversion plug-in DataSmith to export the BIM model directly into a proprietary format acceptable to UE4, and then import it into UE4. The characteristics of this method are: ① The model pivot point is located in the center of the model package box; ② Model naming is composed of "component type + family name + family type + serial number" in the BIM software, and spaces are converted to "_", for example "Structural Column_Concrete-Rectangular-Column_Column_240x240_mm_9"; ③ Parameter information is displayed in metadata mode in the asset user data item in the component details; ④ The proportion of component resource objects instantiated is low; ⑤ The component uses the UV set by the BIM software.

[0004] The shortcomings of this technical approach include: ① The naming of converted models lacks a unified coding system, resulting in confusing rules and a lack of unique codes for program identification, making it difficult to quickly find a specific component among hundreds of thousands of components; ② The large amount of redundant and useless parameter information makes it difficult to use and wastes computer resources; ③ Assets for components with identical or similar spatial geometries are not optimized and integrated, resulting in wasted computer resources and a large amount of resources can easily cause runtime lags; ④ UVs are not processed, making it difficult to distinguish between multiple materials, which can easily lead to confusing lighting and construction effects, making it difficult to achieve the desired material effects.

[0005] Another method is to export the BIM model as an FBX format file and then directly import it into UE4 for use. The characteristics of this method are: ① Model pivot point, the pivot point of all components is located at the coordinate origin (0, 0, 0); ② Model naming, consisting of "file name + family name + family type + ID", such as "XANSN-CD-JG-Underground First Floor Structure Test-3D View-Column_Concrete-Rectangle-Column_Column_1000x1000_mm__2824521_"; ③ Parameter information, none; ④ Asset resources correspond to component objects one by one, without any integration optimization; ⑤ Use the UV set in the BIM software.

[0006] The above two methods, while suitable for small-scale passenger station construction projects with fewer than tens of thousands of building components, will not experience any runtime lag without optimization. However, for large-scale projects with hundreds of thousands or more components, smooth operation and display of the entire building components at the same level are difficult to achieve without optimization, making them unsuitable as a foundation for information system development. Furthermore, component naming is not standardized, making it difficult to quickly and accurately locate a specific component among hundreds of thousands of components using rule-based algorithms. Unprocessed UVs also make it difficult to achieve optimal visual expression, and the processing workload is enormous. Therefore, both methods fail to meet the requirements of digital architecture.

[0007] Through the above analysis, the problems and defects of the existing technology are as follows:

[0008] (1) For large passenger stations, it is impossible to use existing BIM model conversion technology to display hundreds of thousands of components at the same time in the same level of UE4, and to efficiently find the specified components and their attached valid information, as well as the requirements for high-quality visual expression of components.

[0009] (2) With the existing conversion technology, the names of the converted components continue to follow the names of the BIM models. There is no unified rule for naming professional models, and there is a lack of key parameter information, which makes program development in UE4 difficult and requires re-naming and encoding of the model.

[0010] (3) Existing conversion technologies contain a lot of redundant and useless parameter information, or even no information at all, making program application difficult.

[0011] (4) The existing conversion technology does not optimize and integrate the resources referenced by the spatial components with similar spatial topological structures, resulting in a waste of computer resources and affecting the system operation efficiency.

[0012] (5) Existing conversion technology requires manual LOD settings for assets with a large number of triangles. Since the resources are not integrated and optimized, the workload is huge and the program development efficiency is low.

[0013] (6) In the existing conversion technology, the UV mapping coordinates inherit the settings of the BIM software, the multiple material expressions of the components are missing, and the UV mapping coordinates overlap, which can easily cause confusion in the lighting construction in UE4. Manual processing in UE4 is difficult and the program development efficiency is low. Summary of the Invention

[0014] To overcome the problems in related technologies, the present invention discloses a method, system, device, and medium for optimizing the conversion of large passenger station models. Specifically, it relates to an optimization method for converting a large passenger station BIM model to a UE4 model.

[0015] The technical solution is as follows: A conversion optimization processing method for a large passenger station BIM to a UE4 model includes: in the UE4 model, using a data table to store spatial dimension parameters of components, developing a resource replacement program, obtaining an ID code in a component name, and searching the corresponding ID row in the data table to obtain the spatial dimension data of the row, calculating a proportional relationship with the spatial dimension data of a shared resource component, and replacing referenced resources of multiple component instance objects with shared resources by changing the spatial parameters of the component instance objects;

[0016] Rotate the instance object of the shared resource to make it consistent with the original component orientation, then clean up invalid resources, set LOD, and assign materials;

[0017] In the UE4 model, before using the development resource replacement program to obtain the ID code in the component name and retrieve the corresponding ID row in the data table, you need to do the following:

[0018] BIM model simplification, ID information writing, information filtering and detailed list generation, type-based model view generation, Excel reading detailed lists, adding coding items, component combination naming and coding, generating shared resource replacement reference table CSV, importing BIM files, model name only retaining ID processing, model programmatic renaming, shared model UV setting and optimization, DataSmith plug-in output model, importing DataSmith files, importing CSV files to generate structural data table resources, and selecting models of the same category that can be optimized.

[0019] In one embodiment, during information screening and detail list generation, corresponding component detail lists are generated for different types of components, including data on identification information ID values, design family, type, design number, space information, engineering information, and manufacturer product information.

[0020] In one embodiment, in the component combination naming code, based on the ID, the component professional system code and source file code are added to form a new unique identification code for the component, and spatial dimensions and feature information are added to the component naming for feature information extraction.

[0021] In one embodiment, when generating the shared resource replacement reference table CSV, the ID, X size value, Y size value, and Z size value are retained, and the file is imported into the UE4 model in a CSV format plain text file.

[0022] In one embodiment, during the programmatic renaming of the model, the component ID name is automatically identified and replaced with the corresponding name containing the combination code to form a new component name.

[0023] In one embodiment, in the shared model UV setting and optimization, UV mapping unfolding setting and triangle face smoothing group setting are performed on the component as the shared resource in 3dmax.

[0024] In one embodiment, when importing a CSV file to generate a structural data table resource and selecting an optimizable model of the same category, a replacement reference data table structure is constructed, and the generated shared resource replacement reference CSV file is imported into the data table structure to generate a corresponding replacement reference data table.

[0025] Another object of the present invention is to provide a large passenger station BIM to UE4 model conversion optimization processing system that implements the large passenger station BIM to UE4 model conversion optimization processing method, the large passenger station BIM to UE4 model conversion optimization processing system comprising:

[0026] BIM file preparation process module, used for BIM model simplification, ID information writing, information screening and detail table generation, as well as type-based model view generation;

[0027] The information table editing process module is used to read the detailed list from Excel, add coding items, name and code component combinations, and generate shared resource replacement reference tables;

[0028] 3Dmax intermediate conversion process module, used for importing BIM files, retaining only ID processing of model names, programmatic renaming of models, shared model UV settings and optimization, and DataSmith plug-in output models;

[0029] UE4 optimization process module, used to import DataSmith files, import CSV files to generate data table resources, select models of the same category that can be optimized, use the developed resource replacement program for batch processing, rotate the spatial component objects after replacing referenced resources, delete invalid resources, resource LOD settings, resource material blueprints, and assign scene component instance materials.

[0030] Another object of the present invention is to provide a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the conversion optimization processing method of the large passenger station BIM to the UE4 model.

[0031] Another object of the present invention is to provide a computer-readable storage medium storing a computer program, which, when executed by a processor, enables the processor to execute the conversion optimization processing method of the large passenger station BIM to the UE4 model.

[0032] Combining all the above technical solutions, the advantages and positive effects of the present invention are as follows:

[0033] First, in view of the technical problems existing in the above-mentioned prior art and the difficulty of solving these problems, this paper closely combines the technical solutions to be protected by the present invention and the results and data during the research and development process, and analyzes in detail and in depth how the technical solutions of the present invention solve the technical problems and some creative technical effects brought about by solving the problems. The specific description is as follows:

[0034] The present invention provides a large-scale passenger station BIM to UE4 model conversion optimization processing method, which realizes batch replacement of component names according to specified parameters through coding rule formulation and development program, and the naming code contains the extraction information required for program development; through algorithm research, the development program realizes resource sharing of similar components, maximizes the ratio of the number of resource instantiation objects, and programmatically sets the LOD of shared resources in batches, maximizes the optimization of resource occupancy, and optimizes the efficiency of the development program; through the UV setting of shared resources, the visual expression requirements of the referenced objects are met, and the efficiency of system development is improved.

[0035] Practical verification has shown that the technical process formed by this approach can reduce the number of referenced assets by over 90%, enabling the simultaneous display of hundreds of thousands of components within a single level scene, while also effectively running on computers with average hardware performance. Furthermore, standardized naming allows developers to quickly retrieve a specific component from among hundreds of thousands by specifying parameters, providing a foundational digital model for implementing a more versatile "digital passenger station."

[0036] Second, considering the technical solution as a whole or from the perspective of the product, the technical effects and advantages of the technical solution to be protected by the present invention are described in detail as follows:

[0037] To address the challenges of existing technologies, the present invention utilizes methods different from those in existing technologies to process models, naming, information, and UVs within the model conversion optimization process. This method proposes an algorithm to optimize the resources occupied by spatial components, thereby improving the performance of the development system. Furthermore, through the development of a model optimization software processing program, component naming and coding are programmed, enabling keyword searches for specific objects. This allows components with specified parameters to be selected from hundreds of thousands of spatial objects or resources. This also enables the development of a resource replacement reference program, improving system development efficiency. Therefore, the conversion optimization processing method for large passenger station BIM models to UE4 models provided by the present invention has practical application value.

[0038] The core of the solution of the present invention is a deep understanding of the principles of component description of the UE4 system, as well as a deep understanding of the relationship between BIM, 3dmax and UE4, and is formed after practice, comparison and analysis with other solutions.

[0039] This invention has achieved a breakthrough in that hundreds of thousands of professional components of a large-scale passenger station can be displayed and operated as a whole in the same level scene.

[0040] This algorithm enables multiple components to reference the same shared resources, maximizing the ratio of references to instantiated component objects and eliminating redundant resources. This reduces computer resource usage, lowers the graphics platform's computational load, and improves development system performance. This breakthrough enabled the complete expression of large-scale passenger stations using UE4, something difficult to achieve using other methods.

[0041] Practice has proven that in the UE4 editor, having one million identical component objects referencing one million resources each is more efficient than having one million component objects referencing the same resource. This proves that the system optimization approach of using shared resource components is correct, and how to achieve this is the solution that this technology needs to solve.

[0042] A real-world project verified that a large passenger station with 560,000 components could be expressed using this technology with just over 20,000 resource components. Furthermore, it ran smoothly on a laptop with average performance, including an Intel Core i7 6820HQ CPU, 64GB of DDR4 memory, and an NVIDIA M2000M graphics card. Furthermore, the system utilized UE4's real-time lighting, interactive browsing, and information query capabilities, demonstrating the effectiveness of this technical approach. However, when this approach was not used, the UE4 system failed to load and crashed. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0044] Figure 1 This is a flow chart of the conversion optimization processing method for a large passenger station BIM to UE4 model provided in Example 1 of the present invention;

[0045] Figure 2 This is a flow chart of a conversion optimization processing method for a large passenger station BIM to a UE4 model provided in Example 2 of the present invention;

[0046] Figure 3 This is a component naming structure diagram provided by Example 2 of the present invention;

[0047] Figure 4 is a schematic diagram of a renaming program provided in Example 2 of the present invention;

[0048] Figure 5 This is a flowchart of the replacement reference algorithm and program implementation provided in Example 2 of the present invention;

[0049] Figure 6 This is an example rendering of loading 558,311 components provided by an embodiment of the present invention;

[0050] Figure 7 This is a diagram showing the LOD (parameter) setting effect interface of a water pump model in a comparison diagram of component LOD settings and triangle data after settings provided by an embodiment of the present invention;

[0051] Figure 8 Schematic diagram of a conversion optimization processing system for a large passenger station BIM to UE4 model provided by Example 4 of the present invention;

[0052] In the figure: 1. BIM file preparation process module; 2. Information table editing process module; 3. 3Dmax intermediate conversion process module; 4. UE4 optimization process module. DETAILED DESCRIPTION

[0053] To make the above-mentioned objects, features, and advantages of the present invention more readily apparent, specific embodiments of the present invention are described in detail below with reference to the accompanying drawings. The following description sets forth numerous specific details to facilitate a full understanding of the present invention. However, the present invention can be implemented in many other ways than those described herein, and those skilled in the art may make similar modifications without departing from the scope of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0054] 1. Explanation of the embodiment:

[0055] An embodiment of the present invention provides a large-scale passenger station BIM to UE4 model conversion optimization processing method comprising:

[0056] In UE4, the development resource replacement program is used to obtain the ID code in the component name, and the corresponding ID row in the data table is retrieved to obtain the spatial data of the row. The relationship with the spatial data of the shared resource component is calculated, and the spatial parameters of the component instance object are changed to realize the conversion of multiple component instance objects into shared resource instance objects.

[0057] Rotate the instance object of the shared resource to make it consistent with the orientation of the original component, then clean up invalid resources, set LOD, and assign materials.

[0058] Example 1

[0059] like Figure 1 As shown, an embodiment of the present invention provides a conversion optimization processing method for a large passenger station BIM to UE4 model, including:

[0060] S101, BIM model conversion and information screening and output, model naming and coding, material UV setting, preliminary graphics optimization, programmed batch naming, etc.

[0061] S102, then input into UE4, and through algorithm development, programmatically reference shared resources for components with the same spatial structure but different sizes, and transform them into instance components of the shared resources;

[0062] S103: Convert one-to-one resource instantiation to one-to-many instantiation, eliminate invalid redundant resources, and perform programmatic one-click LOD setting for shared resources with a large number of graphic faces, thereby optimizing resource usage and ensuring that material settings meet visual expression requirements, effectively improving the performance of the development system.

[0063] S104, by separating and outputting the BIM information and the model, and by associating the coding key fields, the conditions for re-association of the information and the model are provided for program development in UE4.

[0064] Example 2

[0065] like Figure 2 As shown, further, an embodiment of the present invention provides a conversion optimization processing method for a large passenger station BIM to a UE4 model, comprising the following steps:

[0066] 1. BIM model simplification. The main principle of the preliminary processing of the BIM model is to convert arcs into polygons, retaining only the main components; and assigning multiple material information.

[0067] 2. ID information writing: through program development, the ID value in the background database is written into the shared parameters of the component.

[0068] 3. Information screening and detailed list generation: For different types of components, generate corresponding component detailed lists in accordance with the requirements of the development system information query, including but not limited to identification information (ID value), design information (family, type, design number), space information (size, elevation and offset, area), project information, manufacturer product information, etc.

[0069] 4. Generate model views by type, grouping different types of models into independent 3D views, which facilitates the unified selection of components and the assignment of parameter information, and also facilitates the output of model types in the later stage.

[0070] 5. Read the detailed list through Excel software, and perform preliminary error correction and unified coding rule editing.

[0071] 6. Add coding items. In the Excel file, add component category code and file code.

[0072] 7. Component combination naming coding. Different components in different BIM files may have the same ID. Using only the ID in the component name cannot meet the object uniqueness requirement. Therefore, it is necessary to combine and code the component names. The main principle of coding is to use the ID as the basis, add the professional system to which the component belongs, and the source file code to form a new unique identification code for the component. And add spatial dimensions and feature information to the component name to facilitate the development program to extract feature information. The component naming structure diagram is as follows Figure 3 shown.

[0073] Among them: Component category code, encodes the BIM model according to the building professional system, and the code value can be 001-999;

[0074] File code, encode the BIM source file, the encoding value can be 001-999;

[0075] System name: the professional system to which the component belongs, using Chinese names, such as wall system, door system, air supply system, etc.

[0076] Component name, Chinese name, expresses the name of the component, can be accompanied by characteristic information, and is linked with a hyphen "-", such as fan coil unit, butterfly valve-flange, etc.

[0077] Component size / characteristic units, such as 3500x1200x300;

[0078] Unit, size unit or characteristic unit, such as mm, set, set, etc.;

[0079] Component ID, the ID value assigned to the component by the BIM software, such as 3500246;

[0080] Each piece of information is connected by an underscore "_";

[0081] Example of naming of overall components,

[0082] 065_091_PF Exhaust System_Axial Flow Fan-Round_300x250x250_mm_2945039

[0083] The unique identification code value of the component obtained through the program is 0650912945039.

[0084] The output is a CSV format plain text ID list and an overall encoding naming list file, named "old.txt" and "new.txt" respectively, for use in step 11.

[0085] 8. Generate a shared resource replacement reference table that only retains the ID, X, Y, and Z dimension values, and output it as a CSV format plain text file for step 16.

[0086] 9. Import the BIM file, use 3dmax software to open the BIM file (Revit), rebuild the components in the BIM 3D view, and automatically inherit the BIM model name, which consists of family, type and ID value, for example "S_Flange-Clamp-Flexible Cast Iron Standard [3749305]".

[0087] 10. Only retain the ID value of the model name, and only retain the ID value of the 3dmax model as the component name. For example, "2825661".

[0088] 11. Model programmatic renaming: Use the developed program to automatically identify the component ID value and replace it with the corresponding combination code name to form a new component name, for example "060_091_TQ ventilation system_flange-clamp-TQ_DN100-DN100_mm_3749305".

[0089] The renaming procedure works like this Figure 4 As shown. Includes:

[0090] The model's original name text file only saves the ID value. Rename the program, loop to get the value and row number of each row, loop to match the model name (ID value) with the value in the original name text, get the matching row number, rename the program, get the value of the same row number in the model's new name text file (multi-field combination name), assign the model the new model name, and end.

[0091] 12. Shared model UV settings and optimization: In 3ds Max, perform UV mapping setup and triangle smoothing group setup for the components used as shared resources. Initially optimize components with large triangle counts, minimizing the number of triangles in the output components to avoid significant changes in their appearance or breakage.

[0092] 13.DataSmith plug-in outputs the model. In 3dmax, use the UE4 max plug-in DataSmith tool to output the model into a format conversion file supported by UE4.

[0093] 14. Import the DataSmith file and use the UE4 editor to import the model conversion file. This will rebuild all component objects in the current level and save the reference resources of these objects in the Content Browser. At this time, the number of reference resources is huge and needs to be optimized and streamlined.

[0094] 15. Import the CSV file to generate a structural data table resource. In UE4, generate a reference to replace the data table structure, and import the shared resource generated in step 8 to replace the reference CSV file into the data table structure to generate the corresponding data details table.

[0095] 16. Select models of the same category that can be optimized. In the level scene, select component objects of the same type but different sizes based on the component object name.

[0096] 17. Use the developed resource replacement program for batch processing. In UE4, use the algorithm to develop a resource replacement program to obtain the ID code in the component name, retrieve the corresponding ID row in the data table, obtain the spatial data of the row, calculate the relationship with the spatial data of the shared resource component, and change the spatial parameters of the component instance object to realize the conversion of multiple component instance objects into shared resource instance objects. Among them, the program for obtaining the ID value in the clicked object name includes: through "Get Selected Actor" and "For Each Loop", looping operations are performed on the selected scene component objects. The operation content is to obtain the name of the component object and decompose it into an array, obtain the value of sequence number 6 in the array, which is the ID value, and assign the value to the variable ID. Using the "Get Data Table Row" module, the value of the ID variable is compared with the data table row, and the found row is output.

[0097] The procedure for replacing the clicked object with a shared resource and scaling the resource in X, Y, and Z includes: decomposing the values of each field in the row found in the data table, outputting the values of the B, L, and H fields, and performing proportional calculations with the X, Y, and Z values of the shared resource (the values are known constants and can also be input using variables), writing the obtained proportional values into the x, y, and z spatial parameters of the component object actor, and assigning the spatial rotation data of the original component object to the spatial data of the new component object.

[0098] 18. After replacing the referenced resource, rotate the spatial component object to make it consistent with the original component orientation. The replacement reference algorithm and program implementation process are as follows: Figure 5 shown.

[0099] 19. Delete invalid resources. In the content browser, delete all invalid resources and redirect them.

[0100] 20. Resource LOD setting: For resource components with a large number of triangle faces, use the developed program to set LOD with one click, which will affect all level component objects that reference the resource.

[0101] 21. Resource material blueprint, create generated materials, assign materials to shared resources, which will affect all component objects that reference the resource.

[0102] 22. Assign scene component materials. Replace the required materials for level component objects that reference the same resource but have different materials.

[0103] At this point, the scene optimization process including model conversion, optimization, resource cleanup, LOD setting, and material assignment is completed.

[0104] Example 3

[0105] In an embodiment of the present invention, an overall technical process is provided.

[0106] In the embodiment of the present invention, the ID value is used as a key parameter in 3dmax, and a developed script is used to implement a method for replacing names in batches.

[0107] In the embodiment of the present invention, the data table structure function containing ID, X, Y, and Z items in UE4 is utilized, and the X, Y, and Z length values of the spatial object are obtained through the developed program, so as to realize the method of replacing the original reference resource after the three-axis scaling and spatial rotation of the shared reference resource. This technical method is the core key and protection point.

[0108] In the embodiment of the present invention, a method for realizing a unique identification code is achieved by combining a category code and a file code.

[0109] In an embodiment of the present invention, a method for quickly selecting a spatial object is provided by utilizing the component name and spatial dimension information in the combined component name.

[0110] In the embodiment of the present invention, the present invention is composed of a series of operation processes, which utilize existing software and plug-in tools, and also independently develop some tools, but some process steps can be replaced by other methods.

[0111] For example: information screening and output, you can use BIM software SDK to develop and implement corresponding functions.

[0112] Named codes can use other feature codes to achieve unique codes.

[0113] Replace the reference program and use UE4's C language to develop and implement it.

[0114] Although some steps can be implemented alternatively, the overall technical idea is a relatively ideal process obtained through comparison of multiple methods.

[0115] Example 4

[0116] like Figure 8 As shown, an embodiment of the present invention provides a large passenger station BIM to UE4 model conversion optimization processing system, including:

[0117] BIM file preparation process module 1 is used for BIM model simplification, ID information writing, information screening and detailed list generation, as well as type-based model view generation;

[0118] Information table editing process module 2 is used to read the detailed list from Excel, add coding items, name and code component combinations, and generate a shared resource replacement reference table;

[0119] 3Dmax intermediate conversion process module 3, used for importing BIM files, retaining only ID processing of model names, programmatic renaming of models, shared model UV settings and optimization, and DataSmith plug-in output models;

[0120] UE4 optimization process module 4 is used to import DataSmith files, import CSV files to generate structural data table resources, select models of the same category that can be optimized, use the developed resource replacement program for batch processing, rotate the spatial component objects after replacing the referenced resources, delete invalid resources, resource LOD settings, resource material blueprints, and assign scene component materials.

[0121] The information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the embodiment of the method of the present invention. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0122] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0123] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.

[0124] 2. Application Examples

[0125] Application Example 1

[0126] The conversion optimization processing method for a large passenger station BIM to a UE4 model provided in the above embodiment of the present invention can be run on a computer device, which includes: at least one processor, a memory, and a computer program stored in the memory and runnable on the at least one processor. When the processor executes the computer program, the steps in any of the above method embodiments are implemented.

[0127] Application Example 2

[0128] The conversion optimization processing method for a large passenger station BIM to a UE4 model provided in the above embodiment of the present invention can be run on a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0129] Application Example 3

[0130] The conversion optimization processing method for a large passenger station BIM to a UE4 model provided in the above embodiment of the present invention can be run on an information data processing terminal. When the information data processing terminal is implemented on an electronic device, it provides a user input interface to implement the steps in the above method embodiments. The information data processing terminal is not limited to mobile phones, computers, and switches.

[0131] Application Example 4

[0132] The conversion optimization processing method for a large passenger station BIM to a UE4 model provided in the above embodiments of the present invention can be run on a server. When the server is implemented on an electronic device, it provides a user input interface to implement the steps in the above method embodiments.

[0133] Application Example 1

[0134] The conversion optimization processing method for a large passenger station BIM to a UE4 model provided in the above embodiment of the present invention can be run on a computer program product. When the computer program product runs on an electronic device, the electronic device can implement the steps in the above method embodiments when executing the computer program product.

[0135] III. Evidence of the relevant effects of the embodiments:

[0136] The core of the solution of the present invention is a deep understanding of the principle of component description of the UE4 system, as well as a deep understanding of the data conversion relationship between BIM, 3dmax and UE4, and is formed after practice, comparison and analysis with other solutions.

[0137] 1) First, a breakthrough was achieved in which hundreds of thousands of professional components of a large-scale passenger station could be displayed and operated as a whole in the same level scene.

[0138] This algorithm enables multiple components to share the same resources, transforming the one-to-one relationship between resources and component objects into a one-to-many relationship. This eliminates redundant resources, reduces computer resource usage, reduces the graphics platform's computing load, and improves development system performance. This breakthrough allows for the complete expression of large-scale passenger stations using UE4, something that would be difficult to achieve using other methods.

[0139] Practice has proven that in the UE4 editor, having one million identical component objects referencing one million resources each is more efficient than having one million component objects referencing the same resource. This proves that the system optimization approach of using shared resource components is correct, and how to achieve this is the solution that this technology needs to solve.

[0140] A real-world project verified that a large passenger station with 560,000 components could be expressed using this technology with just over 20,000 resource components. Furthermore, it ran smoothly on a laptop with average performance, including an Intel Core i7 6820HQ CPU, 64GB of DDR4 memory, and an NVIDIA M2000M graphics card. Furthermore, the system utilized UE4's real-time lighting, interactive browsing, and information query capabilities, demonstrating the effectiveness of this technical approach. However, when this approach was not used, the UE4 system failed to load and crashed.

[0141] Among them, the example diagram of loading 558311 components is as follows Figure 6 shown.

[0142] 2) The LOD setting for shared resources can affect all pointing space objects, quickly reducing the number of triangle calculation faces of the model in the visible range of the entire scene, improving operation efficiency, and at the same time improving the efficiency of system development.

[0143] By setting LOD, the number of triangle faces of complex components can be reduced from the original value to 20% according to the distance from the viewpoint, while still maintaining the visual integrity of the component. Taking the water pump model as an example, the comparison of its component LOD setting and the triangle data after setting is shown. Figure 7 Table 1 is the effect diagram of the LOD (parameter) setting of the water pump model.

[0144] Table 1 Comparison of triangle data after LOD setting of water pump model

[0145] LOD levels LOD0 LOD1 LOD2 LOD3 Number of triangle faces 19507 10560 6315 4017

[0146] 3) Based on the combined coding of ID values, the uniqueness of component object naming is achieved.

[0147] By combining the codes, the problem of different components with the same code that may exist when only the ID value is used as the unique identification code is solved, and no conflict occurs when constructing the data structure table.

[0148] Adding component names and spatial dimension parameters to component naming further increases the readability of spatial objects and resource components, and realizes the use of keywords to search for object groups. Components with specified parameters can be selected from hundreds of thousands of spatial objects or resources, facilitating the replacement of object materials and the operation of resource replacement reference programs, thereby improving the efficiency of system development.

[0149] The method of the present invention allows the digital twin system of a large passenger station to run on a medium-performance computer, further reducing the requirements for the operating environment resources of the digital twin passenger station, reducing user investment, and enabling the rapid development and promotion of business systems based on digital twin passenger stations, which generates enormous value and significance.

[0150] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention can implement all or part of the process of the above-mentioned method embodiment by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, it can implement the steps of each of the above-mentioned method embodiments. The computer program includes computer program code, which can be in source code form, object code form, executable file, or some intermediate form. The computer-readable medium can at least include: any entity or device capable of carrying computer program code to the camera / terminal device, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium. For example, a USB flash drive, a mobile hard drive, a magnetic disk, or an optical disk.

[0151] The above description is only a preferred specific implementation method of the present invention, but the scope of protection of the present invention is not limited thereto. Any modifications, equivalent substitutions and improvements made by any technician familiar with this technical field within the technical scope disclosed by the present invention and within the spirit and principles of the present invention should be covered by the scope of protection of the present invention.

Claims

1. A conversion optimization method for a large passenger station BIM to UE4 model, characterized in that: The method includes: In the UE4 model, a data table is used to save the spatial size parameters of the component. A resource replacement program is developed to obtain the ID code in the component name and retrieve the corresponding ID row in the data table to obtain the spatial size data of the row. The proportional relationship with the spatial size data of the shared resource component is calculated. By changing the spatial parameters of the component instance object, the referenced resources of multiple component instance objects can be replaced with shared resources. Rotate the instance object of the shared resource to make it consistent with the original component orientation, then clean up invalid resources, set LOD, and assign materials; In the UE4 model, before using the development resource replacement program to obtain the ID code in the component name and retrieve the corresponding ID row in the data table, you need to do the following: BIM model simplification, ID information writing, information filtering and detailed list generation, type-based model view generation, Excel reading detailed lists, adding coding items, component combination naming and coding, generating shared resource replacement reference table CSV, importing BIM files, model name only retaining ID processing, model programmatic renaming, shared model UV setting and optimization, DataSmith plug-in output model, importing DataSmith files, importing CSV files to generate structural data table resources, and selecting models of the same category that can be optimized.

2. The conversion optimization processing method of a large passenger station BIM to UE4 model according to claim 1 is characterized in that: During information screening and bill of materials generation, corresponding component bills are generated for different types of components, including data on identification information ID values, design family, type, design number, space information, engineering information, and manufacturer product information.

3. The conversion optimization processing method of a large passenger station BIM to UE4 model according to claim 1 is characterized in that: In the component combination naming code, based on the ID, the professional system code of the component and the source file code are added to form a new unique identification code for the component, and spatial dimensions and feature information are added to the component name for feature information extraction.

4. The conversion optimization processing method of a large passenger station BIM to UE4 model according to claim 1 is characterized in that: When generating a shared resource replacement reference table CSV, retain the ID, X size value, Y size value, and Z size value, and import it into the UE4 model in a CSV format plain text file.

5. The conversion optimization processing method of a large passenger station BIM to UE4 model according to claim 1 is characterized in that: In the programmatic renaming of the model, the component ID name is automatically identified and replaced with the corresponding name containing the combination code to form a new component name.

6. The conversion optimization processing method of a large passenger station BIM to UE4 model according to claim 1 is characterized in that: In the shared model UV setting and optimization, the UV map unfolding setting and the triangle face smoothing group setting are performed in 3dmax for the components used as shared resources.

7. The conversion optimization processing method of a large passenger station BIM to UE4 model according to claim 1 is characterized in that: When importing CSV files to generate structural data table resources and selecting models of the same category that can be optimized, build a replacement reference data table structure, and import the generated shared resource replacement reference CSV file into the data table structure to generate the corresponding replacement reference data table.

8. A large passenger station BIM to UE4 model conversion optimization processing system implementing the large passenger station BIM to UE4 model conversion optimization processing method according to any one of claims 1 to 7, characterized in that: The conversion optimization processing system of the large passenger station BIM to UE4 model includes: BIM file preparation process module (1), used for BIM model simplification, ID information writing, information screening and detailed list generation, as well as type-based model view generation; Information table editing process module (2), used for reading detailed tables from Excel, adding coding items, naming and coding component combinations, and generating shared resource replacement reference tables; 3Dmax intermediate conversion process module (3), used for importing BIM files, retaining only ID processing of model names, programmatic renaming of models, UV setting and optimization of shared models, and exporting models using the DataSmith plug-in; UE4 optimization process module (4) is used to import DataSmith files, import CSV files to generate data table resources, select models of the same category that can be optimized, use the developed resource replacement program for batch processing, rotate the spatial component objects after replacing the referenced resources, delete invalid resources, resource LOD settings, resource material blueprints, and assign scene component instance materials.

9. A computer device, characterized in that: The computer device includes a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the conversion optimization processing method from the large passenger station BIM to the UE4 model as described in any one of claims 1-7.

10. A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor executes the conversion optimization processing method for a large passenger station BIM to a UE4 model according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Method for automatically modeling by utilizing BIM data based on UE4

    CN112465981A

  • Digital sand table creating method and device, electronic equipment and storage medium

    CN114140588A