Model file exporting method and device, equipment and storage medium

By obtaining the mapping relationship between model and texture data in Unreal Engine, model files with texture information can be generated and exported, solving the problem of manually linking textures after exporting model files in game production, thus improving production efficiency and accuracy.

CN115779437BActive Publication Date: 2026-06-02NETEASE (HANGZHOU) NETWORK CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
NETEASE (HANGZHOU) NETWORK CO LTD
Filing Date
2022-11-04
Publication Date
2026-06-02

AI Technical Summary

Technical Problem

In the current game development process, after the model files are exported from Unreal Engine, textures need to be manually linked in DCC software, which leads to scene errors and low production efficiency.

Method used

In Unreal Engine, obtain the mapping relationship between model and texture data, generate model and texture files in a specified format, write the texture files into the model files, and export the model files with texture information.

Benefits of technology

This solves the problem of models exported from Unreal Engine not having texture links, improving the efficiency and accuracy of game production and reducing rework in later stages.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115779437B_ABST
    Figure CN115779437B_ABST
Patent Text Reader

Abstract

This invention provides a method, apparatus, device, and storage medium for exporting model files. The method includes: acquiring model data and material data corresponding to a target model, wherein the material data includes at least: texture data corresponding to the target model and a mapping relationship between the texture data and the model data; generating a model file in a specified format corresponding to the target model based on the model data; generating a texture file in a specified format corresponding to the target model based on the texture data; and generating and exporting the model file of the target model in the specified format based on the model file, texture file, and mapping relationship. In this method, by writing the texture file of the model in Unreal Engine into a model file to generate a new model file, the model in Unreal Engine with texture information is imported into a digital content generation platform, facilitating the re-editing of UX assets and solving the problem that models exported from Unreal Engine do not have texture links and need to be linked again in the target software.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of game technology, and in particular to a method, apparatus, device, and storage medium for exporting model files. Background Technology

[0002] In current game development processes, many scenes and models are directly assembled using UE (Unreal Engine) or downloaded UE project assets. In order to perform secondary editing in DCC (Digital Content Creation) software such as Maya and Blender, it is necessary to export the model textures from UE and then import them into DCC software, such as Maya. Then, the artists manually connect the textures in Maya one by one.

[0003] However, during game development, a single scene typically involves dozens or even hundreds of textures, taking several hours to complete. Furthermore, due to the sheer number of textures, there may be errors in their connection, potentially leading to scene errors and subsequent rework. This reduces game development efficiency and delays game release. Summary of the Invention

[0004] The main objective of this invention is to solve the technical problem that existing game production processes require exporting models and their textures and then connecting them in DCC software, which leads to scene errors.

[0005] The first aspect of this invention provides a method for exporting model files, the method comprising:

[0006] Define the target model in Unreal Engine;

[0007] In response to a model file export command for the target model, the system obtains model data and material data corresponding to the target model; wherein the material data includes at least: texture data corresponding to the target model and a mapping relationship between the texture data and the model data;

[0008] Based on the model data, generate a model file in a specified format corresponding to the target model;

[0009] Based on the texture data, generate a texture file in a specified format corresponding to the target model;

[0010] Based on the mapping relationship between the model file, the texture file, the texture data, and the model data, a model file of the target model is generated and exported in the specified format; wherein, the specified format includes at least the FBX format.

[0011] A second aspect of the present invention provides a model file exporting apparatus, comprising:

[0012] The model determination module is used to determine the target model in Unreal Engine;

[0013] The acquisition module is used to respond to a model file export command for the target model and acquire model data and material data corresponding to the target model; wherein, the material data includes at least: texture data corresponding to the target model and a mapping relationship between the texture data and the model data;

[0014] The model file generation module is used to generate a model file in a specified format corresponding to the target model based on the model data.

[0015] The texture file generation module is used to generate a texture file in a specified format corresponding to the target model based on the texture data;

[0016] The export module is used to generate and export the model file of the target model in the specified format based on the model file, the texture file, the mapping relationship between the texture data and the model data; wherein the specified format includes at least the FBX format.

[0017] A third aspect of the present invention provides a model file exporting apparatus, comprising: a memory and at least one processor, wherein the memory stores instructions, and the memory and the at least one processor are interconnected via a circuit; the at least one processor invokes the instructions in the memory to cause the model file exporting apparatus to perform the steps of the model file exporting method described above.

[0018] A fourth aspect of the present invention provides a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the steps of the above-described model file export method.

[0019] The aforementioned method, apparatus, device, and storage medium for exporting model files involves: determining a target model in Unreal Engine; responding to a model file export command for the target model; acquiring model data and material data corresponding to the target model; wherein the material data includes at least: texture data corresponding to the target model and a mapping relationship between the texture data and the model data; generating a model file of a specified format corresponding to the target model based on the model data; generating a texture file of a specified format corresponding to the target model based on the texture data; and generating and exporting a model file of the target model in the specified format based on the model file, the texture file, the mapping relationship between the texture data and the model data; wherein the specified format includes at least FBX format. In this method, by writing the texture file of the model in Unreal Engine into a model file to generate a new model file, the model in Unreal Engine with texture information is imported into a digital content generation platform, facilitating the re-editing of UE assets and solving the problem that models exported from Unreal Engine do not have texture links and need to be linked again in the target software.

[0020] Other features and advantages of the invention will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention are realized and obtained in accordance with the structures particularly pointed out in the description, claims and drawings.

[0021] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description

[0022] Figure 1 This is a schematic diagram of the first embodiment of the model file export method in this invention;

[0023] Figure 2 This is a schematic diagram of a second embodiment of the model file export method in this invention;

[0024] Figure 3 This is a schematic diagram of one embodiment of the model file export device in this invention;

[0025] Figure 4 This is a schematic diagram of another embodiment of the model file export device in this invention;

[0026] Figure 5 This is a schematic diagram of one embodiment of the model file export device in this invention. Detailed Implementation

[0027] This invention provides a method, apparatus, device, and storage medium for exporting model files. The method involves: determining a target model in Unreal Engine; responding to a model file export command for the target model; acquiring model data and material data corresponding to the target model; wherein the material data includes at least: texture data corresponding to the target model and a mapping relationship between the texture data and the model data; generating a model file of a specified format corresponding to the target model based on the model data; generating a texture file of a specified format corresponding to the target model based on the texture data; and generating and exporting a model file of the target model in the specified format based on the model file, the texture file, the mapping relationship between the texture data and the model data; wherein the specified format includes at least FBX format. In this method, by writing the texture file of the model in Unreal Engine into a model file to generate a new model file, the model in Unreal Engine with texture information is imported into a digital content generation platform, facilitating the re-editing of UE assets and solving the problem that models exported from Unreal Engine do not have texture links and need to be linked again in the target software.

[0028] The terms "first," "second," "third," "fourth," etc. (if present) in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" or "having" and any variations thereof are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0029] For ease of understanding, the specific process of the embodiments of the present invention is described below. Please refer to [link / reference]. Figure 1 The first embodiment of the model file export method in this invention includes:

[0030] 101. Define the target model in Unreal Engine;

[0031] It is understood that the executing entity of this invention can be a model file export device, a terminal, or a server; no specific limitation is made here. This embodiment of the invention will be described using a server as an example.

[0032] In practical applications, 3ds Max can generally be directly exported to other DCC software. In this example, the export is primarily for Ultimate Environment (UE). This is because the UE project might be obtained from another studio or downloaded externally, lacking a 3ds Max source file. Alternatively, it might have a 3ds Max source file, but after being modified in UE, the information is inconsistent with the original 3ds Max file, necessitating export from UE. When a 3ds Max source file exists, the 3D modeling work is mainly done by artists in 3ds Max, and then the model is exported from 3ds Max to UE. This is still the mainstream approach used in current game development. The model is manually exported from 3ds Max and then manually imported into Unreal Engine. In Unreal Engine, the relative positions of the model are then manually aligned and restored. After assembling the imported model into a scene, it needs to be exported to DCC such as Maya and Blender for secondary editing. In this embodiment, the target model in Unreal Engine is obtained by the artist modeling in 3ds Max and then importing it into Unreal Engine. In addition, when there is no 3ds Max source file, the target model in Unreal Engine is obtained from other studios or downloaded from external sources. This application does not limit the source of the target model in Unreal Engine.

[0033] In this embodiment, texture files for each target model are pre-determined using texture painting software, such as Substance Painter or Photoshop, which can import model files into the software. For each target model, the server responds to texture painting instructions for the model file and generates several texture files within the texture painting software. These texture files can possess one or more attributes, such as inherent color, roughness, metallicity, and normals, depending on the desired display effect of the target model. Texture painting instructions instruct the texture painting software to generate the corresponding texture files. The texture painting software can generate texture files that meet the PBR (Physically-Based Rendering) standard, facilitating export as 3D model assets and import into the rendering engine. This significantly reduces the time cost of subsequent rendering to obtain a virtual scene. After obtaining the model file and its corresponding texture files in 3ds Max, the server can import each model file and its corresponding texture files into Unreal Engine.

[0034] In this embodiment, a model selection instruction is generated through the API and export interface settings in Unreal Engine. The server responds to the model selection instruction, determines all target models corresponding to the model selection instruction, obtains the material information of the target model through the function mesh.static_mesh_component.get_materials, and obtains the texture file of the target model based on the material information through the function material.texture_parameter_valUEs.

[0035] 102. Respond to the model file export command for the target model, and obtain the model data and material data corresponding to the target model; wherein, the material data includes at least: the texture data corresponding to the target model, and the mapping relationship between the texture data and the model data;

[0036] In this embodiment, responding to the model file export command for the target model and obtaining the model data and material data corresponding to the target model includes: responding to the model file export command for the target model, obtaining the model data corresponding to the target model, and obtaining the material information of the target model based on a preset function in the Unreal Engine; obtaining the texture data of the target model and the mapping relationship between the texture data and the model data according to the material information.

[0037] 103. Based on the model data, generate a model file in the specified format corresponding to the target model;

[0038] In this embodiment, the specified format is mainly a 3D general model file format, which can contain information such as animation, material properties, textures, skeletal animation, lighting, and camera. The model data is exported as an FBX format file using the Unreal Engine plugin AssetExportTask. Since this is a standard export, the model file does not contain texture information.

[0039] 104. Based on the texture data, generate a texture file in the specified format corresponding to the target model;

[0040] In this embodiment, all texture files of the target model are exported in batches using the Unreal Engine plugin AssetExportTask. The main export is in TGA format. TGA format has a relatively simple structure and is a general format for graphics and image data. It has a great influence in the multimedia field and is a preferred format for converting computer-generated images to television.

[0041] 105. Based on the mapping relationship between model files, texture files, texture data and model data, generate and export model files of the target model in a specified format; wherein, the specified format includes at least FBX format.

[0042] In this embodiment, the corresponding texture file is written into the model file generated from the model data by using the preset mapping relationship between the texture data and the model data of the FBX plugin fbx.FbxFileTexture, thus generating a new model file.

[0043] In this embodiment, before generating and exporting the model file of the target model in the specified format based on the mapping relationship between the model file, the texture file, the texture data and the model data, the method further includes: zeroing the coordinates of the target model.

[0044] Specifically, in some DCC software, the default calculation of the model is based on the origin. Zeroing the model's coordinates helps reduce the software's memory usage. If a model is imported, its position and size may not be in the ideal state after import. Zeroing the coordinates helps to quickly find the model.

[0045] In this embodiment, after generating and exporting the model file of the target model in the specified format based on the mapping relationship between the model file, the texture file, the texture data, and the model data, the method further includes: responding to a file import instruction for the model file exported in the specified format, determining a digital content generation platform that needs to import the model file exported in the specified format; and renaming the texture file in the model file exported in the specified format according to the platform type of the digital content generation platform.

[0046] Specifically, in practical applications, there are different DCC software, such as Maya, 3ds Max, and Houdini. Different DCC software have their own naming conventions for texture files. Before importing model files into DCC software, the model file names should be renamed in advance to ensure that the model files conform to the texture naming conventions of the DCC software to be imported.

[0047] In this embodiment, after generating and exporting the model file of the target model in the specified format based on the mapping relationship between the model file, the texture file, the texture data, and the model data, the method further includes: importing the model file exported in the specified format into the digital content generation platform; converting the model file exported in the specified format into editable data through the digital content generation platform; and displaying the texture information in the editable data through the digital content generation platform.

[0048] In this embodiment, other DCC software supports FBX format files. Directly importing an FBX file into DCC software will automatically parse it into editable DCC data. In Maya and 3ds Max, clicking the "Show Texture" button on the view will display the texture. In Blender, switching to Shading mode will allow you to see the texture and perform secondary editing.

[0049] In this embodiment, a target model is determined in Unreal Engine; in response to a model file export command for the target model, model data and material data corresponding to the target model are obtained; wherein, the material data includes at least: texture data corresponding to the target model and a mapping relationship between the texture data and the model data; based on the model data, a model file of a specified format corresponding to the target model is generated; based on the texture data, a texture file of a specified format corresponding to the target model is generated; based on the texture data, a texture file of a specified format corresponding to the target model is generated; based on the model file, the texture file, and the mapping relationship between the texture data and the model data, a model file of the target model is generated and exported in the specified format; wherein, the specified format includes at least FBX format. In this method, by writing the texture file of the model in Unreal Engine into a model file to generate a new model file, the model in Unreal Engine with texture information is imported into the digital content generation platform, which facilitates the re-editing of UE assets and solves the problem that the model exported from Unreal Engine does not have texture links and needs to be linked again in the target software.

[0050] Please see Figure 2 The second embodiment of the model file export method in this invention includes:

[0051] 201. Define the target model in Unreal Engine;

[0052] 202. Respond to the model file export command for the target model and obtain the model data corresponding to the target model;

[0053] 203. Call the mesh variable in Unreal Engine and obtain the model instance of the target model based on the mesh variable;

[0054] 204. Determine the static mesh component in the mesh variable, and obtain the material information of the model instance as the material information of the target model through the material acquisition function in the static mesh component;

[0055] In this embodiment, the material acquisition function is mainly the `mesh.static_mesh_component.get_materials` function in Unreal Engine. This function retrieves the material information of the target model. `mesh.static_mesh_component.get_materials` is a function from the Python API built into UE. Here, `mesh` is a variable representing the UE model instance, and it has an attribute `static_mesh_component`, which is its component used for applying materials. It has a dedicated function, `get_materials`, which retrieves the materials assigned to the current model.

[0056] 205. Call the Unreal Engine's material variables and obtain the material instance with material information based on the material variables;

[0057] 206. Obtain the texture data of the material instance as the texture data of the target model based on the texture parameter function of the material variable, and generate the mapping relationship between the texture data and the model data;

[0058] In this embodiment, the texture parameter function is mainly the material.texture_parameter_valUEs function in Unreal Engine. The texture parameter function is used to obtain texture data. material.texture_parameter_valUEs is a function of the Python API that comes with UE. material is a variable of the material instance of UE obtained by the get_materials method above. It has a dedicated function called texture_parameter_valUEs, which can obtain the texture data of all textures of the current material.

[0059] 207. Based on the model data, generate a model file in the specified format corresponding to the target model;

[0060] 208. Based on the texture data, generate a texture file in the specified format corresponding to the target model;

[0061] 209. Based on the mapping relationship between model files, texture files, texture data and model data, generate and export model files of the target model in a specified format; wherein, the specified format includes at least FBX format.

[0062] In this embodiment, generating and exporting the model file of the target model in the specified format based on the mapping relationship between the model file, the texture file, the texture data, and the model data includes: batch exporting the model file and the texture file respectively; and writing the exported texture file into the corresponding exported model file according to the mapping relationship through a preset file writing interface to generate the model file of the target model in the specified format.

[0063] Furthermore, the step of writing the exported texture file into the corresponding exported model file according to the mapping relationship through a preset file writing interface to generate a model file of the target model in a specified format includes: generating material nodes corresponding to the material information of the exported model file and texture nodes corresponding to the texture file through the preset file writing interface; linking the texture nodes to the material nodes through a preset link function and the mapping relationship, so that the texture file is written into the exported model file; and saving the model file with the written texture file through a preset save function to generate a model file of the target model in a specified format.

[0064] Specifically, based on the material information and texture files obtained above, first, the corresponding material node is accessed using the `scene.GetMaterial` method of the `fbxpythonapi`. Then, the texture node is created using the `fbx.FbxFileTexture.Create` function of the `fbxpythonapi`. Next, the texture is linked to the material using the `ConnectSrcObject` method of the material node, thus writing the texture file into the model file. Finally, the `FbxCommon.SaveScene` function of the `fbxpythonapi` saves the model file in FBX format, resulting in a new model file. Because the exported FBX model and materials are already linked, only the texture file needs to be written.

[0065] In this embodiment, after exporting the second FBX file, the method further includes: importing the exported second FBX file into DCC software, converting the second FBX file into editable data using the DCC software, and displaying the texture information in the editable data using the DCC software.

[0066] Specifically, importing FBX files directly into DCC software will automatically parse them into editable DCC data. In Maya and 3ds Max, clicking the "Show Textures" button in the viewport will display the textures, and switching to Shading mode in Blender will allow you to see the textures.

[0067] This embodiment, based on the previous embodiment, describes in detail the process of obtaining the model data and material data corresponding to the target model. It obtains the model data corresponding to the target model and acquires the material information of the target model based on a preset function in the Unreal Engine. Based on the material information, it acquires the texture data of the target model and the mapping relationship between the texture data and the model data. In this method, by writing the texture files of the model in the Unreal Engine into a model file to generate a new model file, the model in the Unreal Engine with texture information is imported into the digital content generation platform, facilitating the re-editing of UE assets and solving the problem that models exported from the Unreal Engine do not have texture links and need to be linked again in the target software.

[0068] The method for exporting model files in the embodiments of the present invention has been described above. The apparatus for exporting model files in the embodiments of the present invention will be described below. Please refer to [link / reference]. Figure 3 One embodiment of the model file export device in this invention includes:

[0069] Model determination module 301 is used to determine the target model in Unreal Engine;

[0070] The acquisition module 302 is used to respond to a model file export command for the target model and acquire model data and material data corresponding to the target model; wherein, the material data includes at least: texture data corresponding to the target model and a mapping relationship between the texture data and the model data;

[0071] The model file generation module 303 is used to generate a model file in a specified format corresponding to the target model based on the model data.

[0072] Texture file generation module 304 is used to generate a texture file in a specified format corresponding to the target model based on the texture data;

[0073] The export module 305 is used to generate and export the model file of the target model in the specified format based on the model file, the texture file, the mapping relationship between the texture data and the model data; wherein the specified format includes at least the FBX format.

[0074] In this embodiment of the invention, the model file exporting device runs the above-described model file exporting method. The model file exporting device determines a target model in Unreal Engine; responds to a model file export command for the target model, and obtains model data and material data corresponding to the target model. The material data includes at least: texture data corresponding to the target model and a mapping relationship between the texture data and the model data. Based on the model data, a model file of a specified format corresponding to the target model is generated; based on the texture data, a texture file of a specified format corresponding to the target model is generated; based on the model file, the texture file, and the mapping relationship between the texture data and the model data, a model file of the target model is generated and exported in the specified format. The specified format includes at least the FBX format. In this method, by writing the texture file of the model in Unreal Engine into a model file to generate a new model file, the model in Unreal Engine with texture information is imported into the digital content generation platform, facilitating the re-editing of UE assets and solving the problem that models exported from Unreal Engine do not have texture links and need to be linked again in the target software.

[0075] Please see Figure 4 A second embodiment of the model file export device in this invention includes:

[0076] Model determination module 301 is used to determine the target model in Unreal Engine;

[0077] The acquisition module 302 is used to respond to a model file export command for the target model and acquire model data and material data corresponding to the target model; wherein, the material data includes at least: texture data corresponding to the target model and a mapping relationship between the texture data and the model data;

[0078] The model file generation module 303 is used to generate a model file in a specified format corresponding to the target model based on the model data.

[0079] Texture file generation module 304 is used to generate a texture file in a specified format corresponding to the target model based on the texture data;

[0080] The export module 305 is used to generate and export the model file of the target model in the specified format based on the model file, the texture file, the mapping relationship between the texture data and the model data; wherein the specified format includes at least the FBX format.

[0081] In this embodiment, the acquisition module 302 includes:

[0082] The material data acquisition unit 3021 is used to respond to the model file export command for the target model, acquire the model data corresponding to the target model, and acquire the material information of the target model based on the preset function in the Unreal Engine;

[0083] The texture data acquisition unit 3022 is used to acquire the texture data of the target model and the mapping relationship between the texture data and the model data based on the material information.

[0084] In this embodiment, the material data acquisition unit 3021 is specifically used for:

[0085] Obtain the model data corresponding to the target model;

[0086] Call the mesh variable in the Unreal Engine and obtain the model instance of the target model based on the mesh variable;

[0087] The static mesh component in the mesh variable is determined, and the material information of the model instance is obtained through the material acquisition function in the static mesh component as the material information of the target model.

[0088] In this embodiment, the texture data acquisition unit 3022 is specifically used for:

[0089] Call the material variables of the Unreal Engine, and obtain the material instance of the material information based on the material variables;

[0090] The texture data of the material instance is obtained based on the texture parameter function of the material variable, and the texture file of the target model is generated.

[0091] In this embodiment, the export module 305 specifically includes:

[0092] Batch export unit 3051 is used to batch export the model file and the texture file respectively;

[0093] The writing unit 3052 is used to write the exported texture file into the corresponding exported model file according to the mapping relationship through a preset file writing interface, so as to generate a model file of the specified format of the target model.

[0094] In this embodiment, the writing unit 3052 is specifically used for:

[0095] The material nodes corresponding to the material information of the exported model file and the texture nodes corresponding to the texture file are generated respectively through the preset file writing interface.

[0096] By using a preset link function and the mapping relationship, the texture node is linked to the material node, so that the texture file is written to the exported model file;

[0097] The model file written to the texture file is saved using a preset save function, generating a model file of the target model in the specified format.

[0098] In this embodiment, the model file export device further includes a coordinate zeroing module 306, which is specifically used for:

[0099] The coordinates of the target model are zeroed out.

[0100] In this embodiment, the model file export device further includes a renaming module 307, which is specifically used for:

[0101] In response to a file import instruction for a model file exported in the specified format, determine the digital content generation platform that needs to import the model file exported in the specified format;

[0102] Rename the texture files in the model files exported in the specified format according to the platform type of the digital content generation platform.

[0103] In this embodiment, the model file export device further includes an import module 308, which is specifically used for:

[0104] The model file exported in the specified format is imported into the digital content generation platform, and the model file exported in the specified format is converted into editable data through the digital content generation platform;

[0105] The digital content generation platform displays the texture information in the editable data.

[0106] This embodiment, based on the previous embodiment, describes in detail the specific functions of each module and the unit composition of some modules. By writing the texture files of the model in Unreal Engine into the model file, a new model file is generated. The model in Unreal Engine with texture information is imported into the digital content generation platform, which facilitates the re-editing of UE assets and solves the problem that the model exported from Unreal Engine does not have texture links and needs to be linked again in the target software.

[0107] above Figure 4 and Figure 5 The model file exporting device in this embodiment of the invention is described in detail from the perspective of modular functional entities. The model file exporting device in this embodiment of the invention is described in detail from the perspective of hardware processing.

[0108] Figure 5 This is a schematic diagram of a model file export device provided in an embodiment of the present invention. The model file export device 500 can vary significantly due to different configurations or performance characteristics. It may include one or more central processing units (CPUs) 510 (e.g., one or more processors) and a memory 520, and one or more storage media 530 (e.g., one or more mass storage devices) for storing application programs 533 or data 532. The memory 520 and storage media 530 can be temporary or persistent storage. The program stored in the storage media 530 may include one or more modules (not shown in the diagram), each module including a series of instruction operations on the model file export device 500. Furthermore, the processor 510 may be configured to communicate with the storage media 530 and execute the series of instruction operations in the storage media 530 on the model file export device 500 to implement the steps of the above-described model file export method.

[0109] The model file export device 500 may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input / output interfaces 560, and / or one or more operating systems 531, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc. Those skilled in the art will understand that... Figure 5 The illustrated export device structure for model files does not constitute a limitation on the export device for model files provided by this invention. It may include more or fewer components than illustrated, or combine certain components, or have different component arrangements.

[0110] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium, wherein the computer-readable storage medium stores instructions that, when executed on a computer, cause the computer to perform the steps of the model file export method.

[0111] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system, device, or unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0112] 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 technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0113] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for exporting model files, characterized in that, When applied to Unreal Engine, the export method includes: Define the target model in Unreal Engine; In response to a model file export command for the target model, the system obtains model data and material data corresponding to the target model; wherein the material data includes at least: texture data corresponding to the target model and a mapping relationship between the texture data and the model data; Based on the model data, generate a model file in a specified format corresponding to the target model; Based on the texture data, generate a texture file in a specified format corresponding to the target model; Based on the mapping relationship between the model file, the texture file, the texture data, and the model data, a model file of the target model is generated and exported in the specified format; wherein, the specified format includes at least the FBX format; The process of generating and exporting the model file of the target model in the specified format based on the mapping relationship between the model file, the texture file, the texture data, and the model data includes: Export the model files and texture files in batches, respectively; Based on the mapping relationship, the exported texture file is written to the corresponding model file through a preset file writing interface to generate a model file in the specified format of the target model.

2. The method for exporting model files according to claim 1, characterized in that, The response to the model file export command for the target model, obtaining the model data and material data corresponding to the target model, includes: In response to the model file export command for the target model, obtain the model data corresponding to the target model, and obtain the material information of the target model based on the preset function in the Unreal Engine; Based on the material information, obtain the texture data of the target model and the mapping relationship between the texture data and the model data.

3. The method for exporting model files according to claim 2, characterized in that, The step of obtaining the model data corresponding to the target model and obtaining the material information of the target model based on the preset function in the Unreal Engine includes: Obtain the model data corresponding to the target model; Call the mesh variable in the Unreal Engine and obtain the model instance of the target model based on the mesh variable; The static mesh component in the mesh variable is determined, and the material information of the model instance is obtained through the material acquisition function in the static mesh component as the material information of the target model.

4. The method for exporting model files according to claim 2, characterized in that, The step of obtaining the texture data of the target model based on the material information and the mapping relationship between the texture data and the model data includes: Call the material variables of the Unreal Engine, and obtain the material instance of the material information based on the material variables; The texture data of the material instance is obtained as the texture data of the target model based on the texture parameter function of the material variable, and a mapping relationship between the texture data and the model data is generated.

5. The method for exporting model files according to claim 1, characterized in that, The step of writing the exported texture file into the corresponding exported model file according to the mapping relationship through a preset file writing interface to generate the model file of the target model in a specified format includes: The material nodes corresponding to the material information of the exported model file and the texture nodes corresponding to the texture file are generated respectively through the preset file writing interface. By using a preset link function and the mapping relationship, the texture node is linked to the material node, so that the texture file is written to the exported model file; The model file written to the texture file is saved using a preset save function, generating a model file of the target model in the specified format.

6. The export method according to claim 1, characterized in that, Before generating and exporting the model file of the target model in the specified format based on the mapping relationship between the model file, the texture file, the texture data, and the model data, the method further includes: The coordinates of the target model are zeroed out.

7. The derivation method according to any one of claims 1-6, characterized in that, After generating and exporting the model file of the target model in the specified format based on the mapping relationship between the model file, the texture file, the texture data, and the model data, the method further includes: In response to a file import instruction for a model file exported in the specified format, determine the digital content generation platform that needs to import the model file exported in the specified format; Rename the texture files in the model files exported in the specified format according to the platform type of the digital content generation platform.

8. The export method according to claim 7, characterized in that, After generating and exporting the model file of the target model in the specified format based on the mapping relationship between the model file, the texture file, the texture data, and the model data, the method further includes: The model file exported in the specified format is imported into the digital content generation platform, and the model file exported in the specified format is converted into editable data through the digital content generation platform; The digital content generation platform displays the texture information in the editable data.

9. A device for exporting model files, characterized in that, The device for exporting the model file includes: The model determination module is used to determine the target model in Unreal Engine; The acquisition module is used to respond to a model file export command for the target model and acquire model data and material data corresponding to the target model; wherein, the material data includes at least: texture data corresponding to the target model and a mapping relationship between the texture data and the model data; The model file generation module is used to generate a model file in a specified format corresponding to the target model based on the model data. The texture file generation module is used to generate a texture file in a specified format corresponding to the target model based on the texture data; The export module is used to generate and export the model file of the target model in the specified format based on the model file, the texture file, the mapping relationship between the texture data and the model data; wherein the specified format includes at least the FBX format; The export module specifically includes: A batch export unit is used to export the model file and the texture file in batches, respectively. The writing unit is used to write the exported texture file into the corresponding model file through a preset file writing interface according to the mapping relationship, so as to generate a model file of the specified format of the target model.

10. A device for exporting model files, characterized in that, The device for exporting the model file includes: a memory and at least one processor, wherein the memory stores instructions; The at least one processor invokes the instructions in the memory to cause the model file exporting device to perform the steps of the model file exporting method as described in any one of claims 1-8.

11. A computer-readable storage medium storing instructions thereon, characterized in that, When the instruction is executed by the processor, it implements the steps of the model file export method as described in any one of claims 1-8.