CN113688603B - Model file processing method and device, storage medium and electronic equipment - Google Patents

Model file processing method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN113688603B
CN113688603B CN202111059087.6A CN202111059087A CN113688603B CN 113688603 B CN113688603 B CN 113688603B CN 202111059087 A CN202111059087 A CN 202111059087A CN 113688603 B CN113688603 B CN 113688603B
Authority
CN
China
Prior art keywords
file
model
processing
model file
template
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111059087.6A
Other languages
Chinese (zh)
Other versions
CN113688603A (en
Inventor
请求不公布姓名
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Xumi Yuntu Space Technology Co Ltd
Original Assignee
Shenzhen Xumi Yuntu Space Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Xumi Yuntu Space Technology Co Ltd filed Critical Shenzhen Xumi Yuntu Space Technology Co Ltd
Priority to CN202111059087.6A priority Critical patent/CN113688603B/en
Publication of CN113688603A publication Critical patent/CN113688603A/en
Application granted granted Critical
Publication of CN113688603B publication Critical patent/CN113688603B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The disclosure belongs to the technical field of computers, and relates to a method and a device for processing a model file, a storage medium and electronic equipment. The method comprises the following steps: an original model file of the building information model is obtained, and model conversion processing is carried out on the original model file to obtain a loading model file; and carrying out secondary conversion processing on the loaded model file to obtain a model conversion file, and carrying out model analysis processing on the model conversion file to obtain a target file so as to derive the target file. According to the method and the device, the effect of converting the original model file into the target file can be automatically and intelligently achieved through twice model conversion processing and model analysis processing, the problems of high error rate and low standard degree caused by a manual conversion mode are solved, the efficiency and the accuracy of model file processing are improved, the application scene of a model file processing method is enriched, and the user experience is optimized.

Description

Model file processing method and device, storage medium and electronic equipment
Technical Field
The disclosure relates to the field of computer technology, and in particular, to a model file processing method, a model file processing device, a computer readable storage medium and an electronic device.
Background
UE4 (Unreal Engine, illusion engine 4) is the latest version of the illusion engine developed by the gaming company EPIC, is a complete game development platform for next generation gaming machines and DirectX 9 personal computers, providing a great deal of core technology, data generation tools and basic support required by game developers. Therefore, it is necessary to convert the built model into an asset that can be directly used by the UE 4. The three-dimensional model file (. Rvt) built by Revit cannot be directly loaded by the UE4, and is mostly operated manually. The Revit model is generally exported, imported into 3dmax for model and material optimization, and then imported into the UE4 for use.
However, there are some cases that the Revit three-dimensional model cannot be used correctly, for example, the model file is too large, so that the model can only be modeled by a mode of turning over the model again and then imported into the UE 4 for use. Such artificial conversion work may lower the work efficiency of workers, and the correctness and standardization of the optimization work cannot be ensured.
In view of this, there is a need in the art to develop a new model file processing method and apparatus.
It should be noted that the information disclosed in the above background section is only for enhancing understanding of the background of the present disclosure and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The present disclosure aims to provide a method for processing a model file, a device for processing a model file, a computer-readable storage medium, and an electronic device, so as to overcome at least to some extent the technical problems of low model processing efficiency and poor accuracy caused by the limitations of the related art.
Other features and advantages of the present disclosure will be apparent from the following detailed description, or may be learned in part by the practice of the disclosure.
According to a first aspect of an embodiment of the present invention, there is provided a method for processing a model file, the method including:
an original model file of a building information model is obtained, and model conversion processing is carried out on the original model file to obtain a loading model file;
And carrying out secondary conversion processing on the loaded model file to obtain a model conversion file, and carrying out model analysis processing on the model conversion file to obtain a target file so as to derive the target file.
In an exemplary embodiment of the invention, the method further comprises:
Performing material replacement processing on the loading model file to obtain a target file; or (b)
And carrying out material upgrading treatment on the loading model file to obtain a target file.
In an exemplary embodiment of the present invention, the performing a material replacement process on the loading model file to obtain a target file includes:
obtaining category information corresponding to the loading model file and a material mapping table corresponding to the category information, and determining a material template corresponding to the category information by using the material mapping table;
And carrying out material replacement processing on the loading model file according to the material template to obtain a target file.
In an exemplary embodiment of the present invention, the performing a material upgrade process on the loading model file to obtain a target file includes:
obtaining category information and attribute information corresponding to the loading model file, and obtaining a material mapping table corresponding to the category information;
And determining a material template corresponding to the category information by using the material mapping table, and carrying out material upgrading processing on the loading model file according to the material template and the attribute information to obtain a target file.
In an exemplary embodiment of the present invention, the performing a material upgrade process on the loading model file according to the material template and the attribute information to obtain a target file includes:
performing attribute control processing on the material template by utilizing the attribute information to obtain an updated material template;
and carrying out material upgrading treatment on the loading model file according to the updated material template to obtain a target file.
In an exemplary embodiment of the present invention, the original model file includes: rvt document.
In an exemplary embodiment of the present invention, the object file includes: uasset document.
According to a second aspect of the embodiment of the present invention, there is provided a processing apparatus for a model file, including:
the model conversion module is configured to acquire an original model file of the building information model, and perform model conversion processing on the original model file to obtain a loading model file;
And the file export module is configured to perform secondary conversion processing on the loaded model file to obtain a model conversion file, and perform model analysis processing on the model conversion file to obtain a target file so as to export the target file.
According to a third aspect of an embodiment of the present invention, there is provided an electronic apparatus including: a processor and a memory; wherein the memory has stored thereon computer readable instructions which, when executed by the processor, implement the method of processing a model file in any of the above-described exemplary embodiments.
According to a fourth aspect of embodiments of the present invention, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of processing a model file in any of the above-described exemplary embodiments.
As can be seen from the above technical solutions, the method for processing a model file, the device for processing a model file, the computer storage medium, and the electronic device in the exemplary embodiments of the present disclosure have at least the following advantages and positive effects:
In the method and the device provided by the exemplary embodiment of the disclosure, the effect of converting the original model file into the target file can be automatically and intelligently realized through the two model conversion processes and the model analysis process, the problems of high error rate and low standard degree caused by a manual conversion mode are solved, the efficiency and the accuracy of model file processing are improved, the application scene of the model file processing method is enriched, and the user experience is optimized.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure. It will be apparent to those of ordinary skill in the art that the drawings in the following description are merely examples of the disclosure and that other drawings may be derived from them without undue effort.
FIG. 1 schematically illustrates a flow diagram of a method of processing a model file in an exemplary embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow diagram of a method of performing a material replacement process or a material upgrade process in an exemplary embodiment of the present disclosure;
FIG. 3 schematically illustrates a flow diagram of a method of material replacement processing in an exemplary embodiment of the present disclosure;
FIG. 4 schematically illustrates a flow diagram of a method of a material upgrade process in an exemplary embodiment of the present disclosure;
FIG. 5 schematically illustrates a flow diagram of a method of further performing a material upgrade process in an exemplary embodiment of the present disclosure;
FIG. 6 schematically illustrates a system architecture diagram of a method for processing model files in an application scenario in an exemplary embodiment of the present disclosure;
Fig. 7 schematically illustrates a flowchart of a method of the secondary conversion process in an application scenario in an exemplary embodiment of the present disclosure;
FIG. 8 schematically illustrates a process diagram of a method for material replacement processing in an application scenario in an exemplary embodiment of the present disclosure;
FIG. 9 schematically illustrates a process diagram of a method for material upgrade processing in an application scenario in an exemplary embodiment of the present disclosure;
FIG. 10 schematically illustrates a schematic structure of a processing apparatus for model files in an exemplary embodiment of the present disclosure;
FIG. 11 schematically illustrates an electronic device for implementing a method of processing model files in an exemplary embodiment of the disclosure;
fig. 12 schematically illustrates a computer-readable storage medium for implementing a processing method of a model file in an exemplary embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the present disclosure. One skilled in the relevant art will recognize, however, that the aspects of the disclosure may be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
The terms "a," "an," "the," and "said" are used in this specification to denote the presence of one or more elements/components/etc.; the terms "comprising" and "having" are intended to be inclusive and mean that there may be additional elements/components/etc. in addition to the listed elements/components/etc.; the terms "first" and "second" and the like are used merely as labels, and are not intended to limit the number of their objects.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities.
UE4 is the latest version of the illusion engine developed by the gaming company EPIC, is a complete game development platform for the next generation gaming machines and DirectX 9 personal computers, providing a great deal of core technology, data generation tools and basic support required by game developers. Therefore, it is necessary to convert the built model into an asset that can be directly used by the UE 4. The three-dimensional model file (. Rvt) built by Revit cannot be directly loaded by the UE4, and is mostly operated manually. The Revit model is generally exported, imported into 3dmax for model and material optimization, and then imported into the UE4 for use.
However, there are some cases that the Revit three-dimensional model cannot be used correctly, for example, the model file is too large, so that the model can only be modeled by a mode of turning over the model again and then imported into the UE 4 for use. Such artificial conversion work may lower the work efficiency of workers, and the correctness and standardization of the optimization work cannot be ensured.
In view of the problems in the related art, the present disclosure proposes a method for processing a model file, and fig. 1 shows a flowchart of a method for processing a model file, where the method for processing a model file at least includes the following steps:
S110, obtaining an original model file of the building information model, and performing model conversion processing on the original model file to obtain a loading model file.
And S120, performing secondary conversion processing on the loaded model file to obtain a model conversion file, and performing model analysis processing on the model conversion file to obtain a target file so as to derive the target file.
In the exemplary embodiment of the disclosure, the effect of converting the original model file into the target file can be automatically and intelligently realized through the two model conversion processes and the model analysis process, the problems of high error rate and low standard degree caused by a manual conversion mode are solved, the efficiency and the accuracy of model file processing are improved, the application scene of the model file processing method is enriched, and the user experience is optimized.
The respective steps of the processing method of the model file are described in detail below.
In step S110, an original model file of the building information model is obtained, and a model conversion process is performed on the original model file to obtain a loaded model file.
In an exemplary embodiment of the present disclosure, the original model file may be a model file of a building information model (Building Information Modeling, BIM) built in Revit.
In an alternative embodiment, the original model file includes: rvt document.
Among them, revit is modeling software widely used in the construction industry. Revit is the name of a suite of software from Autodesk. The Revit series software is specially constructed for a Building Information Model (BIM), and can help building designers to design, build and maintain buildings with better quality and higher energy efficiency. AutodeskRevit is provided as an application that incorporates the functionality of AutodeskRevit Architecture, autodeskRevit MEP and AutodeskRevit Structure software.
Correspondingly, rvt is a model file generated by Revit.
After the original model file is obtained, model conversion processing can be performed on the original model file to obtain a loading model file.
Specifically, the model conversion processing can be performed on the original model file by using Plugin. Plugin is a Revit secondary development plug-in for converting. rvt files to. datasmith files. Thus, the load model file may be a datasmith file.
In step S120, the loaded model file is subjected to a second conversion process to obtain a model conversion file, and the model conversion file is subjected to a model analysis process to obtain a target file, so as to derive the target file.
In an exemplary embodiment of the present disclosure, after obtaining the loading model file, the loading model file may be further subjected to a secondary conversion process to obtain a corresponding model conversion file.
Specifically, the secondary conversion process may be to convert the loaded model file into a one-to-one. ua sset file. That is, each load model file corresponds to a. uasset file. For example, when the loaded model file is a model file of a chair, it may correspond to a uasset file of a chair.
Wherein, uasset file may be an asset file of UE4, and the asset file is a file that UE4 client can directly use.
Further, model analysis processing can be performed on the model conversion file to obtain a corresponding target file.
Because the gateway is also present in the UE4, and the gateway is a scene for placing various actors, and the actors are model carriers in the UE4 and correspond to one model, the automated conversion process of converting the rvt file into the uasset file can be completed by integrating all model conversion files, then integrating the model conversion files with the uasset file of the scene to obtain the target file, and exporting the target file.
In an alternative embodiment, the target file includes: uasset document.
Since the model conversion file is a. uasset file, the scene is also represented by a. uasset file, and thus the final target file is also a. uasset file, so as to derive the. uasset file for direct use by the UE 4.
In addition to converting the file of FIG. rvt to the file of FIG. uasset, optimization of material replacement and material upgrades may be added during the conversion process.
In an alternative embodiment, fig. 2 is a flow chart illustrating a method for performing a material replacement process or a material upgrade process, and as shown in fig. 2, the method at least includes the following steps: in step S210, a material replacement process is performed on the loaded model file to obtain a target file.
In an alternative embodiment, fig. 3 is a flow chart illustrating a method of material replacement processing, and as shown in fig. 3, the method at least includes the following steps: in step S310, category information corresponding to the loading model file and a material mapping table corresponding to the category information are acquired, and a material template corresponding to the category information is determined using the material mapping table.
The category information may be information that characterizes a category to which a material of the loading model file belongs, such as wood, metal, glass, and the like. The texture mapping table is a table describing the correspondence between the Revit texture and the UE4 texture template. Therefore, the material template corresponding to the category information of the loading model file can be queried through the material mapping table. UE4 texture parameters such as map type, roughness, and degree of reflection are described in the texture template.
In step S320, the loading model file is subjected to a material replacement process according to the material template to obtain a target file.
After the material template corresponding to the loading model file is obtained, the loading model file can be inherited to the UE4 material parameters in the material template, and a corresponding target file is generated according to the UE4 material parameters.
In the present exemplary embodiment, a method for obtaining a target file through material replacement processing is provided, an optimization mode is further provided for conversion of a model file, the automation degree and the accuracy are high, and the application scenario is quite abundant.
In step S220, a material upgrading process is performed on the loaded model file to obtain a target file.
In an alternative embodiment, fig. 4 is a flow chart illustrating a method of material upgrading, as shown in fig. 4, and the method at least includes the following steps: in step S410, category information and attribute information corresponding to the loaded model file are acquired, and a material mapping table corresponding to the category information is acquired.
The category information may be information characterizing a category to which a material of the loading model file belongs, for example, wood, metal, glass, and the like, and the attribute information may be a series of boolean values for controlling which attributes use default material attributes in the material template and which attributes inherit attributes in the Revit material.
The texture mapping table is a table describing the correspondence between the Revit texture and the UE4 texture template.
In step S420, a texture mapping table is used to determine a texture template corresponding to the category information, and texture upgrading processing is performed on the loading model file according to the texture template and the attribute information to obtain a target file.
And inquiring a material template corresponding to the category information of the loading model file through the material mapping table. UE4 texture parameters such as map type, roughness, and degree of reflection are described in the texture template.
In an alternative embodiment, fig. 5 is a flow chart illustrating a method for further performing a material upgrade process, and as shown in fig. 5, the method at least includes the following steps: in step S510, attribute control processing is performed on the material template using the attribute information to obtain an updated material template.
There are many properties in a material such as diffuse reflection mapping, transparent mapping, discovery mapping, color, roughness, metal, etc. Because the attribute information controls which attributes use default material attributes in the material template and which attributes inherit the attributes in the Revit material through a series of Boolean values, the part of the template material, which is to inherit the attributes in the Revit material, can be restored back through the attribute information, or the updated material template can be obtained without changing the part of the attributes from the beginning of using the template material.
In step S520, the material upgrading process is performed on the loading model file according to the updated material template to obtain the target file.
After the updated material template of the loading model file is obtained, the loading model file can be converted into a corresponding target file by using the UE4 parameters and the Revit attribute in the updated material template.
In the present exemplary embodiment, a method for obtaining a target file through material upgrading processing is provided, another optimization mode is further provided for conversion of a model file, the automation degree and the accuracy are high, and the application scenario is quite abundant.
The method for processing the model file in the embodiment of the present disclosure is described in detail below in connection with an application scenario.
Fig. 6 shows a system architecture diagram of a method for processing a model file in an application scenario, and as shown in fig. 6, a terminal using Revit, an OSS server, a UE4 conversion server, a Halo server, and a UE4 client may be included in the system.
The OSS server is a file storage server; the UE4 conversion server can replace and upgrade the model and the materials, and compress and upload the UE4 asset file; the Halo server is a file server; the UE4 client is a UE4 procedure to be used by the user.
It should be noted that, the various servers mentioned in the system frame represent various servers capable of implementing the same functions, and other servers capable of implementing the same functions may be used, which is not particularly limited in this exemplary embodiment.
Specifically, an original model file, i.e., model file, is built in Revit rvt. Furthermore, model conversion processing is carried out on the original model file through a Revit secondary development plug-in Plugin to obtain a loading model file, namely a datasmith file.
Then, the datasmith file is stored in the OSS file storage server while informing the Halo file server to record this upload process. The UE4 conversion server may download the file datasmith from the OSS server, then load the file datasmith, and perform a material replacement process or a material upgrade process on the file datasmith to obtain the UE4 asset file uasset.
Further, the object file is compressed to obtain a zip file, which is a compressed file format. And, the zip file may be transmitted back to the OSS server. The UE4 client may query all the uploaded records through the Halo server, then download the uploaded records from the OSS server to the zip file, and decompress the zip file locally, so that the user uses the optimized target file.
Fig. 7 is a flow chart illustrating a method of the secondary conversion process in the application scenario, as shown in fig. 7, in step S710, an Actor is generated.
After the loading model file is obtained, the loading model file can be further subjected to secondary conversion processing to obtain a corresponding model conversion file.
Specifically, the secondary conversion process may be to convert the loading model file into a ua sset file corresponding to one. That is, each load model file corresponds to a. uasset file. For example, when the loaded model file is a model file of a chair, it may correspond to a uasset file of a chair.
Wherein, uasset file may be an asset file of UE4, and the asset file is a file that UE4 client can directly use.
Further, model analysis processing can be performed on the model conversion file to obtain a corresponding target file.
Because the gateway is also present in the UE4, and the gateway is a scene for placing various actors, and the actors are model carriers in the UE4 and correspond to one model, the target file can be obtained by integrating all model conversion files and then integrating with the file uasset of the scene.
Since the model conversion file is a. uasset file, the scene is also represented by a. uasset file, and thus the final target file is also a. uasset file, so as to derive the. uasset file for direct use by the UE 4.
In step S720, export is performed.
After the target file is obtained, the target file can be exported, and the automatic conversion process of converting the rvt file into the uasset file can be completed.
Fig. 8 is a process diagram of a method for material replacement processing in an application scenario, where, as shown in fig. 8, category information corresponding to a loading model file and a material mapping table corresponding to the category information are obtained, and a material template corresponding to the category information is determined using the material mapping table.
The category information may be information that characterizes a category to which a material of the loading model file belongs, such as wood, metal, glass, and the like. The texture mapping table is a table describing the correspondence between the Revit texture and the UE4 texture template. Therefore, the material template corresponding to the category information of the loading model file can be queried through the material mapping table. UE4 texture parameters such as map type, roughness, and degree of reflection are described in the texture template.
It should be noted that, when the category information in the texture mapping table is one texture, a plurality of texture templates may be corresponding due to different settings of the UE4 texture parameters in the texture templates.
And carrying out material replacement processing on the loading model file according to the material template to obtain a target file.
After the material template corresponding to the loading model file is obtained, the loading model file can be inherited to the UE4 material parameters in the material template, and a corresponding target file is generated according to the UE4 material parameters.
Fig. 9 is a process diagram of a material upgrading method in an application scenario, where, as shown in fig. 9, category information and attribute information corresponding to a loading model file are obtained, and a material mapping table corresponding to the category information is obtained.
The category information may be information characterizing a category to which a material of the loading model file belongs, for example, wood, metal, glass, and the like, and the attribute information may be a series of boolean values for controlling which attributes use default material attributes in the material template and which attributes inherit attributes in the Revit material.
The texture mapping table is a table describing the correspondence between the Revit texture and the UE4 texture template.
And determining a material template corresponding to the category information by using the material mapping table, and carrying out material upgrading treatment on the loading model file according to the material template and the attribute information to obtain the target file.
And inquiring a material template corresponding to the category information of the loading model file through the material mapping table. UE4 texture parameters such as map type, roughness, and degree of reflection are described in the texture template.
And performing attribute control processing on the material template by utilizing the attribute information to obtain an updated material template.
There are many properties in a material such as diffuse reflection mapping, transparent mapping, discovery mapping, color, roughness, metal, etc. Because the attribute information controls which attributes use default material attributes in the material template and which attributes inherit the attributes in the Revit material through a series of Boolean values, the part of the template material, which is to inherit the attributes in the Revit material, can be restored back through the attribute information, or the updated material template can be obtained without changing the part of the attributes from the beginning of using the template material.
And carrying out material upgrading treatment on the loading model file according to the updated material template to obtain a target file.
After the updated material template of the loading model file is obtained, the loading model file can be converted into a corresponding target file by using the UE4 parameters and the Revit attribute in the updated material template.
According to the processing method of the model file in the application scene, the effect of converting the original model file into the target file can be automatically and intelligently realized through twice model conversion processing and model analysis processing, the problems of high error rate and low standard degree caused by a manual conversion mode are solved, the efficiency and the accuracy of model file processing are improved, the application scene of the model file processing method is enriched, and the user experience is optimized.
In addition, in an exemplary embodiment of the present disclosure, a processing apparatus for a model file is also provided. Fig. 10 shows a schematic structural diagram of a processing apparatus for a model file, and as shown in fig. 10, a processing apparatus 1000 for a model file may include: a model conversion module 1010 and a file export module 1020. Wherein:
The model conversion module 1010 is configured to obtain an original model file of the building information model, and perform model conversion processing on the original model file to obtain a loaded model file; the file export module 1020 is configured to perform a secondary conversion process on the loaded model file to obtain a model conversion file, and perform a model analysis process on the model conversion file to obtain a target file, so as to export the target file.
In an exemplary embodiment of the invention, the method further comprises:
Performing material replacement processing on the loading model file to obtain a target file; or (b)
And carrying out material upgrading treatment on the loading model file to obtain a target file.
In an exemplary embodiment of the present invention, the performing a material replacement process on the loading model file to obtain a target file includes:
obtaining category information corresponding to the loading model file and a material mapping table corresponding to the category information, and determining a material template corresponding to the category information by using the material mapping table;
And carrying out material replacement processing on the loading model file according to the material template to obtain a target file.
In an exemplary embodiment of the present invention, the performing a material upgrade process on the loading model file to obtain a target file includes:
obtaining category information and attribute information corresponding to the loading model file, and obtaining a material mapping table corresponding to the category information;
And determining a material template corresponding to the category information by using the material mapping table, and carrying out material upgrading processing on the loading model file according to the material template and the attribute information to obtain a target file.
In an exemplary embodiment of the present invention, the performing a material upgrade process on the loading model file according to the material template and the attribute information to obtain a target file includes:
performing attribute control processing on the material template by utilizing the attribute information to obtain an updated material template;
and carrying out material upgrading treatment on the loading model file according to the updated material template to obtain a target file.
In an exemplary embodiment of the present invention, the original model file includes: rvt document.
In an exemplary embodiment of the present invention, the object file includes: uasset document.
The details of the above model file processing apparatus 1000 are described in detail in the corresponding model file processing method, and thus are not described herein.
It should be noted that although in the above detailed description several modules or units of the processing device 1000 of the model file are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
In addition, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
An electronic device 1100 according to such an embodiment of the invention is described below with reference to fig. 11. The electronic device 1100 shown in fig. 11 is merely an example, and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 11, the electronic device 1100 is embodied in the form of a general purpose computing device. Components of electronic device 1100 may include, but are not limited to: the at least one processing unit 1110, the at least one memory unit 1120, a bus 1130 connecting the different system components (including the memory unit 1120 and the processing unit 1110), and a display unit 1140.
Wherein the storage unit stores program code that is executable by the processing unit 1110 such that the processing unit 1110 performs steps according to various exemplary embodiments of the present invention described in the above-described "exemplary methods" section of the present specification.
The storage unit 1120 may include a readable medium in the form of a volatile storage unit, such as a Random Access Memory (RAM) 1121 and/or a cache memory 1122, and may further include a Read Only Memory (ROM) 1123.
Storage unit 1120 may also include a program/utility 1124 having a set (at least one) of program modules 1125, such program modules 1125 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
The bus 1130 may be a local bus representing one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a bus using any of a variety of bus architectures.
The electronic device 1100 may also communicate with one or more external devices 1300 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 1100, and/or any device (e.g., router, modem, etc.) that enables the electronic device 1100 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 1150. Also, electronic device 1100 can communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 1160. As shown, the network adapter 1140 communicates with other modules of the electronic device 1100 via the bus 1130. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 1100, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, and includes several instructions to cause a computing device (may be a personal computer, a server, a terminal device, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, a computer-readable storage medium having stored thereon a program product capable of implementing the method described above in the present specification is also provided. In some possible embodiments, the various aspects of the invention may also be implemented in the form of a program product comprising program code for causing a terminal device to carry out the steps according to the various exemplary embodiments of the invention as described in the "exemplary methods" section of this specification, when said program product is run on the terminal device.
Referring to fig. 12, a program product 1200 for implementing the above-described method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (8)

1. A method for processing a model file, the method comprising:
an original model file of a building information model is obtained, and model conversion processing is carried out on the original model file to obtain a loading model file;
Performing secondary conversion processing on the loaded model file to obtain a model conversion file, and performing model analysis processing on the model conversion file to obtain a target file so as to derive the target file; the target file is an asset file of the UE4, the asset file is used for being provided for a client to directly use, a checkpoint in the UE4 is used for placing scenes of various actors, and model analysis refers to integrating all model conversion files and then re-integrating an integration result with the target file of the scene;
Wherein, still include:
obtaining category information and attribute information corresponding to the loading model file, and obtaining a material mapping table corresponding to the category information;
determining a material template corresponding to the category information by using the material mapping table;
performing attribute control processing on the material template by utilizing the attribute information to obtain an updated material template;
performing material upgrading treatment on the loading model file according to the updated material template to obtain a target file;
Wherein, the attribute information is utilized to perform attribute control processing on the material template to obtain an updated material template, which comprises the following steps: restoring the part to be inherited with the attribute in the Revit material in the material template by utilizing the attribute information to obtain an updated material template; the attribute information is further used for limiting a portion of the texture template to be used with default texture attributes.
2. The method for processing a model file according to claim 1, characterized in that the method further comprises:
And carrying out material replacement processing on the loading model file to obtain a target file.
3. The method for processing a model file according to claim 2, wherein the performing material replacement processing on the loaded model file to obtain a target file includes:
obtaining category information corresponding to the loading model file and a material mapping table corresponding to the category information, and determining a material template corresponding to the category information by using the material mapping table;
And carrying out material replacement processing on the loading model file according to the material template to obtain a target file.
4. The method for processing a model file according to claim 1, wherein the original model file comprises: rvt document.
5. The method for processing a model file according to claim 1, wherein the object file comprises: uasset document.
6. A processing apparatus for a model file, comprising:
the model conversion module is configured to acquire an original model file of the building information model, and perform model conversion processing on the original model file to obtain a loading model file;
The file export module is configured to perform secondary conversion processing on the loaded model file to obtain a model conversion file, and perform model analysis processing on the model conversion file to obtain a target file so as to export the target file; the target file is an asset file of the UE4, the asset file is used for being provided for a client to directly use, a checkpoint in the UE4 is used for placing scenes of various actors, and model analysis refers to integrating all model conversion files and then re-integrating an integration result with the target file of the scene;
Wherein the device is further for:
obtaining category information and attribute information corresponding to the loading model file, and obtaining a material mapping table corresponding to the category information;
determining a material template corresponding to the category information by using the material mapping table;
performing attribute control processing on the material template by utilizing the attribute information to obtain an updated material template;
performing material upgrading treatment on the loading model file according to the updated material template to obtain a target file;
Wherein, the attribute information is utilized to perform attribute control processing on the material template to obtain an updated material template, which comprises the following steps: restoring the part to be inherited with the attribute in the Revit material in the material template by utilizing the attribute information to obtain an updated material template; the attribute information is further used for limiting a portion of the texture template to be used with default texture attributes.
7. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the method of processing a model file according to any one of claims 1-5.
8. An electronic device, comprising:
a processor;
A memory for storing executable instructions of the processor;
Wherein the processor is configured to perform the method of processing a model file according to any of claims 1-5 via execution of the executable instructions.
CN202111059087.6A 2021-09-09 2021-09-09 Model file processing method and device, storage medium and electronic equipment Active CN113688603B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111059087.6A CN113688603B (en) 2021-09-09 2021-09-09 Model file processing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111059087.6A CN113688603B (en) 2021-09-09 2021-09-09 Model file processing method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN113688603A CN113688603A (en) 2021-11-23
CN113688603B true CN113688603B (en) 2024-06-04

Family

ID=78585912

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111059087.6A Active CN113688603B (en) 2021-09-09 2021-09-09 Model file processing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN113688603B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109598997A (en) * 2018-11-12 2019-04-09 中交公局桥隧工程有限公司 Construction safety training education system based on BIM in conjunction with VR
CN110111419A (en) * 2019-05-28 2019-08-09 中建七局建筑装饰工程有限公司 A kind of virtual construction method suitable for artistic palace class decorative engineering
CN111290758A (en) * 2018-12-10 2020-06-16 北京京东尚科信息技术有限公司 Module decoupling method and device, computer readable storage medium and electronic device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109598997A (en) * 2018-11-12 2019-04-09 中交公局桥隧工程有限公司 Construction safety training education system based on BIM in conjunction with VR
CN111290758A (en) * 2018-12-10 2020-06-16 北京京东尚科信息技术有限公司 Module decoupling method and device, computer readable storage medium and electronic device
CN110111419A (en) * 2019-05-28 2019-08-09 中建七局建筑装饰工程有限公司 A kind of virtual construction method suitable for artistic palace class decorative engineering

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张宝荣.《Unreal Engine4学习总动员.游戏开发》.中国铁道出版社有限公司,2019,(第1版),第1-3页. *

Also Published As

Publication number Publication date
CN113688603A (en) 2021-11-23

Similar Documents

Publication Publication Date Title
CN109918607B (en) Page construction method and device, medium and computing equipment
CN108786112B (en) Application scene configuration method, device and storage medium
US20110283194A1 (en) Deploying artifacts for packaged software application in cloud computing environment
US20100281463A1 (en) XML based scripting framework, and methods of providing automated interactions with remote systems
WO2021228118A1 (en) Central air conditioner intelligent design method, system and device
CN109636301A (en) Workflow configuration method, system, terminal and the readable storage medium storing program for executing of financial business
CN113505082B (en) Application program testing method and device
CN103914307A (en) Interactive-interface fast implementation method based on reusable library
CN112906206B (en) Digital twin model construction method and device
CN112052611B (en) Simulation method, device and storage medium of power equipment based on geometric model
CN115495069B (en) Model-driven coal industry software process implementation method, device and equipment
CN113835693A (en) Code generation method and device, electronic equipment and storage medium
CN111984300B (en) Code copying method and device, electronic equipment and computer readable storage medium
CN113688603B (en) Model file processing method and device, storage medium and electronic equipment
CN117632132A (en) Code generation method, device, electronic equipment and computer readable storage medium
CN112306622A (en) VNF template construction method and device
CN102270126B (en) Method and equipment for quickly determining interface code and test script parameter value
US9052906B2 (en) Modularized customization of a model in a model driven development environment
CN114356430A (en) DAG (demand oriented architecture) dependency configuration tool based on airflow scheduling system
CN114579120A (en) Application code processing method and device, electronic equipment and storage medium
CN114327709A (en) Control page generation method and device, intelligent device and storage medium
CN112698918A (en) Virtual machine file generation method and device based on construction environment
CN113704593B (en) Operation data processing method and related device
CN113806596B (en) Operation data management method and related device
CN116470968B (en) Ground test method and device for communication function of aerospace science system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant