Three-dimensional scene file processing method and device and electronic equipment

By converting scene elements of 3D design software that cannot be recognized by UE5 Unreal Engine into rendering elements supported by the target renderer and exporting them into recognized file formats, the problems of information loss and effect not being retained during import of 3D scene files are solved, and the problem of information loss and effect not being retained during importing of 3D scene files is improved. Scene conversion efficiency and picture quality.

CN119206012APending Publication Date: 2024-12-27湖南亚信软件有限公司
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411422560.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-12
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

When importing 3D scene files built by 3D design software into UE5 Unreal Engine, important scene element information is often lost, resulting in the inability to restore the 3D scene effects with high fidelity, affecting the image quality and development efficiency of the application scenarios.

Method used

By obtaining scene elements that are not recognized by UE5 Unreal Engine, converting them to render elements supported by the target renderer, and exporting them into recognized target file formats, such as USD format, ensure that UE5 Unreal Engine can effectively recognize and use these elements.

Benefits of technology

It greatly improves the information retention rate and rendering effect conversion rate of 3D scene conversion, reduces the workload of repeated construction and lighting arrangement in UE5, and improves the work efficiency of scene artists.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119206012A_ABST
    Figure CN119206012A_ABST
Patent Text Reader

Abstract

The invention provides a three-dimensional scene file processing method and device and electronic equipment, and aims to solve the technical problems that model information is single, a scene rendering effect cannot be reserved, modification and maintenance are tedious and the like in a processing method for directly importing all 3D scene files (generally FBX format files) constructed by 3D design software into a UE5 unreal engine. According to the application, after each 3D scene file constructed for the developed application is obtained, scene elements which cannot be recognized by a UE5 unreal engine are converted into rendering elements supported by a target renderer, and then each required scene element is selected to be processed into a target scene file in a target file format which can be recognized by the UE5 unreal engine to be exported; the method is used for inputting a UE5 unreal engine to reliably obtain corresponding scene resources, the information retention rate of 3D scene conversion and the scene rendering effect conversion rate are greatly improved, and the image quality of an application scene output by subsequent service execution is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of application development, and more specifically to a three-dimensional scene file processing method, device and electronic equipment. Background Art

[0002] In the process of developing applications such as games, 3D design software such as 3Dmax, Maya or Blender is usually used to build models, materials, textures, lights and other scene elements of various application scenes, and the corresponding 3D scene files are imported into the UE5 (Unreal Engine 5) Unreal Engine to render the corresponding application scenes.

[0003] However, in the process of importing various 3D scene files into the UE5 Unreal Engine, important scene element information is often lost, making it impossible for the UE5 Unreal Engine to restore the application scene effects represented by the 3D scene files with high fidelity. Unrecognizable scene resources will reduce the image quality of the application scene and affect subsequent development business. Summary of the invention

[0004] In view of the above problems, this application provides the following solutions:

[0005] In a first aspect, the present application provides a three-dimensional scene file processing method, the three-dimensional scene file processing method comprising:

[0006] Obtain each 3D scene file constructed for the developed application;

[0007] In response to a data conversion operation on a first scene file, scene elements of the first scene file are converted into rendering elements supported by a target renderer; the first scene file at least includes the three-dimensional scene file corresponding to at least one of the scene elements among each model material and each scene light that cannot be recognized by the Unreal Engine;

[0008] In response to selecting an export operation for the scene elements of the second scene file, processing the selected scene elements into target scene files in a target file format for export, so as to import the target scene files into the Unreal Engine to obtain corresponding scene resources for the developed application;

[0009] Wherein, the scene element of the second scene file includes the rendering element converted from the first scene file;

[0010] The target scene file in the target file format can be recognized by the Unreal Engine.

[0011] In a possible implementation, in response to the data conversion operation on the first scene file, converting the scene elements of the first scene file into rendering elements supported by the target renderer includes at least one of the following:

[0012] In response to the model material conversion operation in each of the three-dimensional scene files, the physical property parameters configured for the model material in the corresponding first scene file are updated to material rendering parameters supported by the target renderer to obtain a rendering material supported by the target renderer;

[0013] In response to the scene light conversion operation in each of the three-dimensional scene files, the light rendering parameters supported by the target renderer are configured according to the light parameters for the scene light in the corresponding first scene file to obtain the rendering light supported by the target renderer.

[0014] In a possible implementation, in response to the scene light conversion operation in each of the three-dimensional scene files, configuring the light rendering parameters supported by the target renderer according to the light parameters for the scene light in the corresponding first scene file includes:

[0015] In response to the scene light selection operation in each of the three-dimensional scene files, determining the scene light to be converted in the corresponding at least one first scene file;

[0016] In response to a light parameter copying operation on at least one of the scene lights to be converted, obtaining light parameters of the corresponding scene lights to be converted;

[0017] In response to a rendering light configuration operation supported by the target renderer, configuring light rendering parameters of the rendering light using light parameters corresponding to the scene light to be converted;

[0018] The scene light to be converted includes one or more of target parallel light, ambient sky light, point light source emission light and photometric light;

[0019] The rendering light includes one or more of the rendering sunlight light converted from the target parallel light, the rendering sky light converted from the ambient sky light, the rendering spherical light converted from the point light source emission light, and the rendering photometric light converted from the photometric light.

[0020] In a possible implementation, in response to the model material conversion operation in each of the three-dimensional scene files, updating the physical property parameters configured for the model material in the corresponding first scene file to material rendering parameters supported by the target renderer includes:

[0021] In response to the selection operation of the model material to be converted in each of the three-dimensional scene files, a model material conversion configuration interface is output, and the physical property parameters of each model material to be converted are displayed on the model material conversion configuration interface; each model material to be converted includes a line scan material and various physical materials;

[0022] In response to the conversion input operation of the physical property parameters of each model material to be converted, the corresponding material rendering parameters are obtained.

[0023] In a possible implementation, the three-dimensional scene file processing further includes:

[0024] In response to the static mesh conversion operation in each of the three-dimensional scene files, the static mesh model to be converted in the corresponding first scene file is collapsed, and the processed editable quadrilateral mesh is converted into a rendering mesh supported by the target renderer; the rendering mesh is a triangular mesh.

[0025] In a possible implementation, in response to the scene element selection export operation for the second scene file, processing the selected scene elements into target scene files in a target file format for export includes:

[0026] In response to a trigger operation for exporting scene elements of a second scene file, a scene element export interface is output, and each scene element corresponding to the developed application is displayed on the scene element export interface; the second scene file includes the first scene file and the other three-dimensional scene files;

[0027] In response to the selection and export operation of the scene elements, it is determined that the file export mode is in the rendering element export mode, and each of the selected scene elements is processed into a target scene file in a target file format for export; wherein each of the scene elements selected for export includes the converted rendering element.

[0028] In a possible implementation, in response to the scene element selection export operation for the second scene file, processing the selected scene elements into target scene files in a target file format for export includes any of the following implementations:

[0029] In response to the selection and export operation based on the scene element type, determining the scene elements contained in each second scene file corresponding to the selected scene element type, processing the scene elements into a target scene file in a target file format and exporting;

[0030] In response to the scene element export operation, all scene elements of the developed application are processed into a target scene file in a target file format and exported; all scene elements include the converted rendering element.

[0031] In a possible implementation, the three-dimensional scene file processing method further includes:

[0032] In response to the scene file import operation of the Unreal Engine, the target scene file in the selected target file format is imported into the corresponding level configured for the developed application to obtain a corresponding level scene resource;

[0033] In response to a business development instruction for the developed application, encapsulate the corresponding level scene resources into a resource file to implement the corresponding development business;

[0034] The target file format refers to the universal scene description USD format.

[0035] A second aspect of the present application provides a three-dimensional scene file processing device, the three-dimensional scene file processing device comprising:

[0036] A 3D scene file acquisition module is used to acquire each 3D scene file constructed for the developed application;

[0037] A scene element conversion module, configured to convert the scene elements of the first scene file into rendering elements supported by a target renderer in response to a data conversion operation on the first scene file; the first scene file at least includes the three-dimensional scene file corresponding to at least one of the scene elements among each model material and each scene light that cannot be recognized by the Unreal Engine;

[0038] A scene element exporting module, configured to, in response to a scene element exporting operation selected for the second scene file, process each scene element selected for export into a target scene file in a target file format, so as to import the target scene file into the Unreal Engine to obtain the corresponding scene resource of the developed application;

[0039] Wherein, the scene element of the second scene file includes the rendering element converted from the first scene file;

[0040] The target scene file in the target file format can be recognized by the Unreal Engine.

[0041] A third aspect of the present application provides an electronic device, the electronic device comprising: at least one memory and at least one processor, wherein:

[0042] The memory is used to store the 3D design software and the corresponding version of the renderer plug-in installed therein and the scene file conversion plug-in in the target file format, as well as the program codes corresponding to the Unreal Engine being developed and applied;

[0043] The processor is used to load and execute the plurality of computer-readable instructions stored in the memory, call the corresponding program code, and implement the following steps:

[0044] Obtain each 3D scene file constructed for the developed application;

[0045] In response to a data conversion operation on a first scene file, scene elements of the first scene file are converted into rendering elements supported by a target renderer; the first scene file is the three-dimensional scene file corresponding to at least one of the scene elements, including a static mesh model, a model material, and a scene light, which cannot be recognized by the Unreal Engine;

[0046] In response to the scene element export operation selected for the second scene file, each scene element selected for export is processed into a target scene file in a target file format, so as to be imported into the Unreal Engine to obtain the corresponding scene resource of the developed application;

[0047] Wherein, the scene element of the second scene file includes the rendering element converted from the first scene file;

[0048] The target scene file in the target file format can be recognized by the Unreal Engine.

[0049] It can be seen that in the three-dimensional scene file processing method provided by the present application, in order to solve the technical problems of the processing method of directly importing various 3D scene files (usually FBX format files) constructed by 3D design software into the UE5 Unreal Engine, such as single model information, failure to retain scene rendering effects, and cumbersome modification and maintenance, the present application obtains various 3D scene files constructed for the developed application, and then converts the scene elements that cannot be recognized by the UE5 Unreal Engine into rendering elements supported by the target renderer, and then selects the required scene elements to be processed into target scene files in the target file format that can be recognized by the UE5 Unreal Engine for export, so as to input the UE5 Unreal Engine to reliably obtain the corresponding scene resources, which greatly improves the information retention rate and scene rendering effect conversion rate of the 3D scene conversion, and ensures the image quality of the application scene output by subsequent business execution. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0051] Figure 1 A schematic diagram of the process of the three-dimensional scene file processing method proposed in the first embodiment of the present application;

[0052] Figure 2 A schematic diagram of the process of the three-dimensional scene file processing method proposed in the second embodiment of the present application;

[0053] Figure 3 This is a flow chart of a three-dimensional scene file processing method proposed in Embodiment 3 of the present application;

[0054] Figure 4 A flowchart of a three-dimensional scene file processing method proposed in Embodiment 4 of the present application;

[0055] Figure 5 This is a flowchart of a three-dimensional scene file processing method proposed in Embodiment 5 of the present application;

[0056] Figure 6 A schematic diagram of the structure of a three-dimensional scene file processing device proposed in an embodiment of the present application;

[0057] Figure 7 A schematic diagram of the hardware structure of an electronic device proposed in an embodiment of the present application. DETAILED DESCRIPTION

[0058] The embodiments of the present application are described below in conjunction with the drawings in the embodiments of the present application. The terms used in the implementation mode of the present application are only used to explain the specific embodiments of the present application and are not intended to limit the present application. The embodiments of the present application are described below in conjunction with the drawings. It is known to those of ordinary skill in the art that with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0059] The terms "first", "second" etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable in appropriate circumstances, and this is only to describe the distinction mode adopted by the objects of the same attributes when describing in the embodiments of the present application. "If" can be interpreted as "at the time of" or "when" or "in response to determining" etc., and can be understood according to the context. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0060] Regarding the description of the background technology, the 3D scene files usually in FBX (Filmbox) format constructed by various 3D design software are directly imported into the UE5 Unreal Engine. Usually, only some scene elements (such as 3D scene files) such as the mesh information, material information, and animation information of the model can be successfully imported into the UE5 Unreal Engine. For other scene elements such as static mesh models, physical materials, and scene lights, it is impossible to effectively convert them into scene resources directly available to the UE5 Unreal Engine, resulting in the UE5 Unreal Engine being unable to obtain the available complete 3D scene information, so that the application scene obtained by using rendering technology cannot achieve the application scene effect constructed by the 3D design software. In order to solve the technical problem that the 3D scene files between the 3D design software and the UE5 Unreal Engine cannot be completely and effectively converted, the present application proposes to convert this part of the scene elements recognized by the UE5 Unreal Engine into a target scene file in a recognizable target file format, and then import it into the UE5 Unreal Engine, so that it can obtain effective and complete application scene resources for the level base in the UE5 Unreal Engine, and ensure the image quality of the application scene. The following will be combined with the accompanying drawings to introduce the three-dimensional scene file processing method of the embodiment of the present application in detail.

[0061] This application can be applied to any application development field with a three-dimensional scene. The following is an introduction using a game development scenario as an example (i.e., the application being developed is a game, and this application is not limited to the type of game). The three-dimensional scene file processing methods for other types of developed applications (such as virtual teaching applications, smart medical applications, or digital city development applications, etc.) are similar, and this application does not give detailed examples one by one.

[0062] Reference Figure 1 , is a flow chart of a three-dimensional scene file processing method proposed in the first embodiment of the present application, which method can be applied to electronic devices such as Figure 1 As shown, the 3D scene file processing method may include but is not limited to the following steps:

[0063] Step S11, obtaining each 3D scene file constructed for the developed application;

[0064] In the embodiments of the present application, for the development and design requirements of applications (such as games), one or more 3D design software can be used to construct corresponding three-dimensional scene files (i.e., 3D scene files). For example, 3DS max modeling software is used to model each game level scene to obtain corresponding 3DS max scene files (i.e., .max format files) to record scene element information such as objects, attributes, materials, textures, animation information, and lighting in the corresponding scene. Other 3D design software such as Maya and Blender can also be used to model each game level scene to obtain 3D scene files corresponding to each required scene element. The present application does not limit the implementation method of how each 3D design software constructs the 3D scene files corresponding to each scene element required for the developed application, and the content contained in each 3D scene file, which can be determined according to the circumstances.

[0065] Step S12, in response to the data conversion operation on the first scene file, converting the scene elements of the first scene file into rendering elements supported by the target renderer; the first scene file at least includes a three-dimensional scene file corresponding to at least one scene element among each model material and each scene light that cannot be recognized by the Unreal Engine;

[0066] Combined with the above description of the technical solution of this application, since the UE5 Unreal Engine (which can become a game engine in the game development scenario) used to process scene files uses its own rendering technology and model format standards, the various 3D scene files constructed by the 3D design software cannot be successfully imported into the UE5 Unreal Engine, making it impossible for the UE5 Unreal Engine to restore the designed 3D scene effects with high fidelity. Therefore, for the 3D scene files that cannot be directly successfully imported into the UE5 Unreal Engine, such as the 3D scene files corresponding to at least one scene element among the model material and scene lighting, they can be recorded as the first scene file.

[0067] Before importing the first scene file into the UE5 Unreal Engine, according to the three-dimensional scene file processing method proposed in the embodiment of the present application, the scene elements in the first scene file are first converted so that the converted information can be exported to a target scene file in a target file format that can be recognized by the UE5 Unreal Engine. Therefore, during the data conversion process, the present application converts the scene elements in each first scene file into rendering elements supported by the target renderer, such as Vray rendering elements. The corresponding scene elements can be converted into rendering elements of the same type by reconfiguring Vray rendering element information for each scene element to be converted, or converting the original scene element information into rendering element information supported by the target renderer (such as Vray renderer). The present application does not limit the data conversion implementation process.

[0068] In combination with the scene element types to be converted described above, the model materials and scene lights in the constructed first scene file can be converted into material rendering elements (such as Vray Mtl) and light rendering elements (such as Vray light) of the same type supported by the target renderer. When the target renderer is a Vray renderer, a Vray plug-in of the corresponding version (such as VRay6.1 and above) can be installed in the 3D design software to call the Vray plug-in to implement the data conversion operation. The implementation process is not described in detail in this application.

[0069] It should be noted that in order to achieve information intercommunication between different 3D design software or UE5 Unreal Engine, each static mesh can also be converted. Therefore, this application can also determine the 3D scene file corresponding to the static mesh model as the first scene file. Similarly, the 3D scene files corresponding to other scene elements that need to be converted can also be determined as the first scene file. This application does not limit the content of each first scene file and its determination method.

[0070] Step S13, in response to the scene element export operation selected for the second scene file, processing each scene element selected for export into a target scene file in a target file format, so as to import the target scene file into the Unreal Engine to obtain the corresponding scene resource of the developed application;

[0071] After the data conversion process of the scene elements described above, for each scene element designed for the developed application, at least part of the scene elements can be selected for export according to the development business needs. The selected scene elements can include the above-mentioned converted rendering elements, such as physical materials, scene lights, etc., and can also include scene elements such as animation information and mesh information of the model as needed. Some or all of the scene elements designed for the developed application can be flexibly selected according to actual needs, such as one or more types or all of the game scene elements, and the 3D scene file containing the scene elements to be exported is recorded as the second scene file. It can be seen that the second scene file can include the first scene file after the scene element conversion, or the first scene file and at least part of other 3D scene files (which can be recorded as the third scene file, and the total number of files of the third scene file and the first scene file can be equal to the total number of files of each constructed 3D scene file).

[0072] Afterwards, in the process of exporting the scene elements in each selected second scene file (which may include the rendering elements converted from the first scene file), they can be processed into a target scene file in a target file format recognizable by the UE5 Unreal Engine, such as a 3D scene file in the USD (Universal Scene Description) format, for importing into the UE5 Unreal Engine so that it can effectively identify the corresponding scene resources of the developed application. This application does not elaborate on the import process of how to import 3D scene files into the UE5 Unreal Engine.

[0073] It can be seen that in order to solve the technical problems of directly importing various 3D scene files (usually FBX format files) constructed by 3D design software into UE5 Unreal Engine, such as single model information, failure to retain scene rendering effects, and cumbersome modification and maintenance, this application converts scene elements that cannot be recognized by UE5 Unreal Engine into rendering elements supported by the target renderer, and then selects the required scene elements to be processed into target scene files in the target file format that can be recognized by UE5 Unreal Engine for export, which are used to input UE5 Unreal Engine to reliably obtain corresponding scene resources, greatly improving the information retention rate and scene rendering effect conversion rate of 3D scene conversion, and ensuring the image quality of application scenes output by subsequent business execution.

[0074] Reference Figure 2 , is a flow chart of the three-dimensional scene file processing method proposed in the second embodiment of the present application. This embodiment can describe a possible detailed implementation of the three-dimensional scene file processing method described above, such as Figure 2 As shown, the detailed implementation may include:

[0075] Step S21, obtaining each 3D scene file constructed for the developed application;

[0076] In combination with the above description of the corresponding part of step S11, the electronic device can call at least one three-dimensional design software to construct various three-dimensional scene files for the developed application, such as modeling various game scenes designed for the developed game, and obtain a 3D scene file that matches the format of the called three-dimensional design software. The modeling process is not described in detail in this application.

[0077] Step S22, in response to the static mesh conversion operation in each three-dimensional scene file, collapse the static mesh model to be converted in the corresponding first scene file to obtain an editable quadrilateral mesh;

[0078] Step S23, converting the editable quadrilateral mesh into a rendering mesh supported by the target renderer; the rendering mesh is a triangular mesh;

[0079] In the actual application of this application, the static mesh model can refer to any hard surface static mesh model, such as a table, a house, a stone, etc., which can be determined according to the design requirements of the application being developed. This application does not impose any restrictions on the types of static mesh models.

[0080] Since the models in the three-dimensional scene may be built using different 3D design software, different 3D design software use different modeling tools and modeling methods, which are often not interchangeable with each other and cannot even be directly used by the UE5 Unreal Engine. It is necessary to collapse the mesh of each model before it can be used for information exchange in different 3D design software or the UE5 Unreal Engine.

[0081] Based on this, as described in steps S22 and S23 above, each static mesh model is collapsed and converted into an editable mesh, ensuring that the modifier provided by the 3D design software (such as 3Ds max software) is used to convert each static mesh model into a general mesh model. After that, the quadrilateral model that has been converted into an editable mesh (i.e., a quadrilateral mesh) can be converted into a triangular mesh. This application does not describe the conversion process in detail.

[0082] Step S24, in response to the model material conversion operation in each 3D scene file, the physical property parameters configured for the model material in the corresponding first scene file are updated to material rendering parameters supported by the target renderer, so as to obtain a rendering material supported by the target renderer;

[0083] For all model materials in the three-dimensional scene, such as line scan materials, Arnold materials, physical materials, etc., they are converted into Vray materials manually or in the form of plug-ins, that is, rendering materials supported by Vray renderer (a target renderer). According to the functions of the file format recognized by the UE5 Unreal Engine, they can also be converted into rendering materials supported by other types of renderers. The conversion process of the model material can be achieved by adjusting its physical property parameters. This application does not limit the conversion implementation method of the model material.

[0084] Step S25, in response to the scene light conversion operation in each three-dimensional scene file, configuring the light rendering parameters supported by the target renderer according to the light parameters for the scene light in the corresponding first scene file, so as to obtain the rendering light supported by the target renderer;

[0085] For the three-dimensional scene files, the scene lights constructed using 3D design software cannot be used directly by the UE5 Unreal Engine. If the three-dimensional scene files corresponding to each scene light (which can be recorded as the first scene file to distinguish it from other three-dimensional scene files that do not need to convert scene element information) are directly imported into the UE5 Unreal Engine, the scene light information will be lost because the UE5 Unreal Engine cannot recognize it, which will cause the scene picture finally rendered by the UE5 Unreal Engine to fail to achieve the designed 3D scene effect, reducing the authenticity of the rendered scene picture. In order to solve this technical problem, this application proposes that before exporting the first scene file corresponding to the scene light to the 3D design software, each scene light should be converted first to obtain the rendering light supported by the target renderer, and then perform subsequent export operations.

[0086] The types of scene lights that need to be converted can be determined according to the scene design requirements of the developed application. For example, for different game scenes, and the types of lights required and their uses in different environments of the same game scene, corresponding scene lights are designed and constructed. This application does not limit the light source type of each scene light.

[0087] In the embodiment of the present application, the corresponding values ​​of one or more lighting parameters of the scene lights can be converted, such as by adjusting the target renderer (such as Vray renderer, which can be installed as a plug-in in 3D design software), entering the rendering lighting configuration interface corresponding to each type of scene light to be converted, and inputting the lighting rendering parameters of the corresponding rendering light according to the lighting parameters of the corresponding type of scene light to realize the conversion of the scene lights and obtain the corresponding rendering lights. However, it is not limited to the scene light conversion implementation method described in the present application.

[0088] Step S26, in response to the scene element export operation, all scene elements corresponding to the developed application are processed into a target scene file in USD format and exported; all scene elements at least include rendering meshes, rendering materials, and rendering lights;

[0089] According to but not limited to the method described above, the target renderer plug-in installed by the 3D design software is called, and after the scene elements constructed using the 3D design software are converted into rendering elements supported by the target renderer, the scene elements need to be exported before they can be imported into the UE5 Unreal Engine for use. In combination with the scene element exporting method described in the corresponding part of the above embodiment, such as the description corresponding to step S13, the scene elements to be exported can be flexibly or sequentially selected according to actual needs, and exported to the scene file in the target file format, such as the USD format file. This application does not limit the selection implementation method of exporting scene elements.

[0090] In a possible implementation, during the scene element export process, each 3D design software can export each scene element belonging to the scene element type in the form of a USD format file according to the selected one or more scene element types. Based on this, the electronic device responds to the selected export operation based on the scene element type, determines the scene elements contained in each second scene file corresponding to the selected scene element type, and processes the scene element into a target scene file in a target file format for export. The second scene file can be a three-dimensional scene file corresponding to the scene element selected for export.

[0091] Among them, in order to accurately and conveniently select the second scene file corresponding to the scene element to be exported, the element identifier of the corresponding scene element (such as the scene element name) or the type identifier of the scene element type to which it belongs (such as the scene element type name, such as lighting, material, skeletal animation, and camera, etc.) can be configured for each constructed three-dimensional scene file. In this way, the three-dimensional scene files of each scene element type or their corresponding scene elements or their names or type identifiers of the scene element types can be presented in the scene element export interface. The user can select the second scene file corresponding to the scene element to be exported this time, and then click the export button or execute a pre-defined export operation (such as exporting voice commands or physical buttons or specifying input patterns, etc.) to export the selected scene elements in USD file format. The export process is not described in detail in this application.

[0092] It should be noted that in order to ensure that the converted rendering elements are successfully / effectively exported, before performing the scene element export operation, you can first determine whether the file export mode of the 3D design software is in the rendering element export mode. The rendering element export mode refers to the mode of exporting the converted rendering elements. Taking the Vray rendering element as an example, the rendering element information such as each Vray rendering material and each Vray rendering light is completely exported to the target scene file (i.e., USD format file) in USD format (i.e., a target file format). You can first switch the "Plug-in Configuration" item (plug-in configuration item, for the conventional scene file export mode, that is, the mode of exporting the three-dimensional scene file directly constructed by the 3D design software) in the USD format file export setting box to the "Vray" item (which corresponds to the rendering element export mode). This application does not limit the implementation method of the option switching of the setting box.

[0093] Optionally, various options (including but not limited to the two items listed in this embodiment) can be displayed in the USD format file export setting box, and the required export mode can be selected from them according to the actual export requirements, such as selecting the displayed "Vray" item. During the scene element export process, the USD format file export step is implemented according to the export mode represented by the selected option. If the "Vray" item is not selected, but the "Plug-in Configuration" item or other options are selected, in response to the scene element export operation, the converted Vray rendering elements cannot be effectively exported, and the high-fidelity restoration of the 3D scene effect cannot be achieved later.

[0094] In another possible implementation, in response to the triggering operation of exporting the scene elements of the second scene file, a scene element export interface is output, and each scene element corresponding to the developed application is displayed on the scene element export interface; the second scene file may include the first scene file and other three-dimensional scene files, and the number of files of the second scene file may be the same as the number of files of each constructed three-dimensional scene file. Afterwards, the user may select one or more scene elements to export from the scene element export interface according to the actual situation, that is, in response to the operation of selecting and exporting the scene elements, determine that the file export mode is in the rendering element export mode, and process each selected scene element into a target scene file of the target file format (such as USD format) for export; wherein each scene element selected for export may include the converted rendering elements, and may also include other scene elements that need to be converted, such as static mesh models, scene lights, cameras, skeletal animations, etc.

[0095] In another possible implementation, such as the implementation described in step S26, all scene elements can be selected for export with one click, that is, each of the above-mentioned converted rendering elements and other scene elements that do not need to be converted are processed one by one into a target scene file in USD format for export. The present application does not limit the implementation method of exporting the USD format file. Optionally, one-click export operations such as inputting export voice instructions, triggering a specified physical button, or triggering an export mark can be performed to export all scene elements for the developed application according to the method described in step S26, which improves the efficiency of scene element export relative to selecting export according to scene element type. It should be understood that in the export process, the original scene elements that have been converted into rendering elements do not need to be exported, and can be directly deleted or stored as historical data after determining that the export is successful.

[0096] Step S27, in response to the scene file import operation of the Unreal Engine, the selected target scene file in USD format is imported into the corresponding level configured for the developed application to obtain the corresponding level scene resource;

[0097] Step S28, in response to the business development instruction for the developed application, the corresponding level scene resources are encapsulated into a resource file to implement the corresponding development business.

[0098] This application does not limit the implementation process of how to import the exported USD format file into the UE5 Unreal Engine. It only takes the method described in this embodiment as an example for explanation. Based on the three-dimensional scene file processing method described in each embodiment of this application, the implementation method of importing the scene file into UE5 described in step S27 can be used but is not limited to it. After exporting each target scene file from the 3D design software, the UE5 Unreal Engine can be called up and the "USD Importer (Universal Scene Description Importer)" plug-in can be opened in its plug-in panel to realize the import of the target scene file in USD format.

[0099] In a possible implementation, after starting the UE5 Unreal Engine, the application identifier or voice start command of the UE5 Unreal Engine or a predefined start button / pattern can be triggered, and the plug-in panel can be output in response to the plug-in configuration operation, or the plug-in panel can be directly output, and various plug-ins installed in the UE5 Unreal Engine can be presented in the plug-in panel, and the required scene file import plug-in (this application refers to the USD Importer plug-in) can be selected from it. After the plug-in selection operation, the UE5 Unreal Engine is restarted to complete the target scene file import process according to the selected USD Importer plug-in.

[0100] Of course, the above-mentioned plug-in selection operation can also be used to instruct the restarted UE5 Unreal Engine to execute the USD format file import process. You can select the virtual scene production function or option in the UE5 Unreal Engine output window to enter the virtual scene production interface, and perform the USD format file import operation on the virtual scene production interface, such as triggering the scene file import button presented on the virtual scene production interface. Since this application has enabled the USD Importer plug-in, it will directly import the target scene file in USD format exported by the electronic device from the 3D design software. Optionally, if the virtual scene production interface presents multiple scene file import buttons, you can select the USD scene file import button to perform subsequent operations. This application does not limit the implementation method of how to trigger the UE5 Unreal Engine to import the target scene file in USD format.

[0101] For level-breaking games, in the process of game scene design, it is necessary to design each game scene required for each level of the game, use 3D design software to model each game scene, and obtain multiple three-dimensional scene files corresponding to each game scene. After the processing described above, the exported USD format game scene files are imported into the UE5 Unreal Engine. According to the design instructions of the game level and the various game scenes contained in it, the imported UE5 Unreal Engine's USD format game scene files can be imported into the corresponding level to obtain the complete scene resources required for rendering all game scenes of each game level (that is, the game scene element information contained in the corresponding game scene file, and the required hardware / software configuration resources, etc.).

[0102] For other types of games or non-game applications, multiple application scenarios are usually designed during the design phase. Each application scenario contains various scene elements. The processing method described above can still be used to import the various target scene files required for rendering the complete and realistic virtual scene of the application into the UE5 Unreal Engine. The UE5 Unreal Engine can then assign each target scene file to the corresponding application scene to be rendered (which can be implemented according to the design instructions) to restore the high-fidelity virtual scene. It should be noted that in the process of importing each target scene file into the corresponding level / application scene described in this application, the configuration process can also be completed manually in the output rendering configuration interface after all target scene files are successfully imported into the UE5 Unreal Engine, such as by dragging or selecting or inputting, etc., to configure each target scene file required for rendering for each level / application scene. The implementation process is not described in detail in this application.

[0103] In some other embodiments proposed in the present application, the level scene resources (or application scene resources) obtained by the UE5 Unreal Engine based on the imported target scene files, or the directly imported target scene files, can also be applied to other development businesses. For example, the rendered high-fidelity scene can be used for one or more simulation game programs, digital twin programs, and video roaming recording programs. According to the actual development business needs, the required one or more target scene files or corresponding scene resources can be packaged into business files in the required format, such as .pak format files, and sent to the corresponding development business platform or program (which can be an application / game supported by the UE5 Unreal Engine) for loading and execution to realize the corresponding development business. The implementation process is not described in detail in this application.

[0104] In summary, for each 3D scene file built for the same application using one or more 3D design software, since it is usually in FBX format, calling it as a model asset by UE5 cannot form a complete 3D scene for UE5 to use directly, and the 3D scene rendering effect cannot be fully preserved. If it is modified manually, the workload will be large and cumbersome, reducing the work efficiency of scene artists. Figure 3 As shown in the flowchart, the present application proposes to perform high-fidelity conversion processing on each scene element in each 3D scene file that cannot be effectively recognized by UE5, and maximize the restoration of the scene rendering effects and elements of the 3D design software-target renderer (such as 3Ds max-Vray renderer), including but not limited to model position, camera, physical material effects, lighting effects and animation effects, etc., and export them as target scene files in USD format to ensure that UE5 successfully recognizes all information in the scene and there is no missing scene information, thereby improving the information retention rate and effect conversion rate of 3D scene conversion, greatly saving the workload of repeated construction and lighting arrangement of 3D scenes in UE5, and improving the work efficiency of scene artists, that is, improving the efficiency of application scene construction.

[0105] Reference Figure 4 , is a flow chart of the 3D scene file processing method proposed in the fourth embodiment of the present application. This embodiment can describe a possible detailed implementation method of how to implement the scene element light conversion process in the 3D scene file processing method described above. For other processing steps of the 3D scene file processing method, please refer to the description of the corresponding part of the above embodiment, which will not be described in detail in this embodiment. Figure 4 As shown, the refinement implementation method may include:

[0106] Step S41, in response to the scene light selection operation in each three-dimensional scene file, determining the scene light to be converted in the corresponding at least one first scene file;

[0107] In the embodiment of the present application, the scene light to be converted may include but is not limited to: one or more of: target directional light (Target Directional Light), ambient sky light (Sky Light), point light source emission light (Omni Light, i.e. omnidirectional light) and photometric light (Tphotometric Light), etc. The type of each light source can be determined according to the lighting purpose and characteristics required for the three-dimensional scene being developed and designed, so as to select the corresponding type of scene light.

[0108] Exemplarily, a scene element selection interface may be output, in which all types of scene elements contained in all 3D scene files are displayed, and the scene element type of scene light is selected, and all scene lights and their light parameters contained in the 3D scene file are output, and then one or more scene lights to be converted may be selected, and the corresponding 3D scene file is determined as the first scene file, but it is not limited to the implementation method of selecting scene lights to be converted described in this embodiment. Among them, the light parameters of the scene light may include but are not limited to basic information such as color temperature, lighting intensity, and influence range radius, and may also include parameters specific to the corresponding scene light type.

[0109] Step S42, in response to the light parameter copying operation of at least one scene light to be converted, obtaining the light parameters of the corresponding scene light to be converted;

[0110] Step S43, in response to the rendering light configuration operation supported by the target renderer, configure the light rendering parameters of the rendering light using the light parameters corresponding to the scene light to be converted.

[0111] In the embodiment of the present application, it is necessary to convert the scene lights that cannot be effectively recognized by UE5 into recognizable rendering lights. In combination with the various scene lights to be converted listed above, when the corresponding type of rendering lights are obtained, the light parameters of the scene lights to be converted can be directly determined as the light rendering parameters of the rendering lights to complete the conversion process of the scene lights. For example, the three parameters of a scene light intensity parameter of 100lm (lumens), color temperature of 6500K, and influence range of 5m (meters) are manually copied to the Vray light parameters of the corresponding Vray light.

[0112] Based on this, the target directional light to be converted can be converted into a rendered sunlight (Vray Sun) similar to the sun. According to the method described above, the intensity multiplier value and color value parameters of the target directional light can be copied to the corresponding parameter values ​​of the rendered sunlight; for the ambient sky light to be converted, it can be converted into a rendered sky light (Vray Light) that simulates the illumination of the sky and provides soft ambient light. At this time, the intensity multiplier value and color value parameters of Sky Light can be copied to the corresponding parameter values ​​of VrayLight; for the point light source emission light (Omni Light) to be converted, it can be converted into a rendered spherical light (VrayLight- sphere) that simulates a light source that emits light in all directions. At this time, the intensity multiplier value, influence range value, and color value parameters of Omni Light can be copied to the corresponding parameter values ​​of VrayLight- sphere; for the photometric light (Tphotometric Light) to be converted, it can be converted into a rendered photometric light (VrayIES) that simulates the lighting equipment in the real world. At this time, Tphotometric The corresponding values ​​of Light intensity multiplier, photometric source file (IES file), and color value parameters are copied to the relevant parameter values ​​of VrayIES.

[0113] It can be seen that for one or more selected scene lights to be converted, according to the corresponding processing methods described above, the corresponding types of rendering lights and their light rendering parameters can be obtained. The types of lights required by the scene are different, and the selected scene lights to be converted and the rendered lights obtained by conversion are different. For example, an outdoor daytime scene may use target directional light to simulate the sun, and the scene lights to be converted include Target Directional Light; an indoor scene may use omnidirectional light to provide more detailed lighting control, and the scene lights to be converted include Omni Light; photogrammetric light sources (i.e. photometric lights, Tphotometric Light) can be used when it is necessary to accurately simulate specific lighting equipment.

[0114] It should be noted that in the embodiment of the present application, as described above, the lighting parameters of the scene light to be converted can be directly determined as the lighting rendering parameters of the converted rendering light. In order to render the desired type of real lighting effect, the corresponding lighting parameters can be converted according to the characteristics of the scene light before and after the conversion to obtain the lighting rendering parameters of the converted rendering light. The present application does not limit the conversion process. According to the design experience and the lighting parameters of the scene light to be converted, the lighting rendering parameters of the corresponding rendering light can be input, or the corresponding conversion rules can be called to process the lighting parameters to obtain the corresponding lighting rendering parameters, etc.

[0115] In the 3D scene file processing method described in the above embodiment, the conversion process of each scene material can be implemented according to but not limited to the method described below, such as Figure 5 As shown, optional implementation methods of the model material process may include:

[0116] Step S51, in response to the selection operation of the model material to be converted in each 3D scene file, outputting a model material conversion configuration interface, and displaying the physical property parameters of each model material to be converted on the model material conversion configuration interface;

[0117] Step S52, in response to the conversion input operation of the physical property parameters of each model material to be converted, obtain the material rendering parameters of the corresponding rendering material.

[0118] It can be seen that the embodiments of the present application can manually modify the scene materials to be converted, such as line scan materials and various physical materials (such as Arnold materials and physical materials) and other common materials into rendering materials supported by the target renderer, such as Vray materials, and can obtain the material rendering parameters of the corresponding rendering materials by manually assigning and converting the physical property parameters such as material texture, reflection, highlight, bump, roughness and other physical property values. Combined with the manual processing method of other scene element information described above, a parameter configuration interface for the rendering material can be output, and various material rendering parameters listed above can be input in the parameter configuration interface. This can be completed based on the physical property parameters of the corresponding model material to be converted and design experience, but is not limited to this manual conversion method.

[0119] In another possible implementation, the present application may also call the corresponding material conversion plug-in, input the physical property parameters of the model material to be converted, and convert them to obtain the material rendering parameters of the corresponding rendering material. The model parameter conversion processing may be automatically implemented according to the material parameter conversion processing rules pre-configured by the material conversion plug-in. The implementation process will not be described in detail in this application.

[0120] The above describes the three-dimensional scene file processing method provided in the embodiment of the present application. The following describes a device for executing the three-dimensional scene file processing method.

[0121] Reference Figure 6 , is a schematic diagram of the structure of the three-dimensional scene file processing device proposed in the embodiment of the present application, such as Figure 6 As shown, the three-dimensional scene file processing device may include:

[0122] The 3D scene file acquisition module 610 is used to acquire each 3D scene file constructed for the developed application;

[0123] The scene element conversion module 620 is used to convert the scene elements of the first scene file into rendering elements supported by the target renderer in response to the data conversion operation on the first scene file; the first scene file at least includes the three-dimensional scene file corresponding to at least one of the scene elements among each model material and each scene light that cannot be recognized by the Unreal Engine;

[0124] The scene element export module 630 is used for processing each scene element selected for export into a target scene file in a target file format in response to the scene element export operation selected for the second scene file, so as to import the target scene file into the Unreal Engine to obtain the corresponding scene resource of the developed application;

[0125] The scene elements of the second scene file include the rendering elements converted from the first scene file; and the target scene file in the target file format can be recognized by the Unreal Engine.

[0126] In some embodiments, the scene element conversion module 620 may include at least one of the following conversion units:

[0127] A model material conversion unit, configured to update the physical property parameters configured for the model material in the corresponding first scene file to material rendering parameters supported by the target renderer in response to the model material conversion operation in each of the three-dimensional scene files, so as to obtain a rendering material supported by the target renderer;

[0128] A scene light conversion unit is used to respond to the scene light conversion operation in each of the three-dimensional scene files, configure the light rendering parameters supported by the target renderer according to the light parameters for the scene light in the corresponding first scene file, so as to obtain the rendering light supported by the target renderer.

[0129] In a possible implementation, the scene light conversion unit may include:

[0130] A scene light to be converted determining unit, configured to determine the scene light to be converted in the corresponding at least one first scene file in response to the scene light selection operation in each of the three-dimensional scene files;

[0131] A lighting parameter obtaining unit, configured to obtain lighting parameters of the corresponding scene light to be converted in response to a lighting parameter copying operation on at least one of the scene lights to be converted;

[0132] A light rendering parameter configuration unit, configured to configure the light rendering parameters of the rendering light using the light parameters corresponding to the scene light to be converted in response to the rendering light configuration operation supported by the target renderer;

[0133] Among them, the scene lights to be converted include one or more of target parallel light, ambient sky light, point light source emission light and photometric light; the rendering lights include one or more of rendering sunlight converted from the target parallel light, rendering sky light converted from the ambient sky light, rendering spherical light converted from the point light source emission light, and rendering photometric light converted from the photometric light.

[0134] In a possible implementation, the model material conversion unit may include:

[0135] A physical property parameter display unit, for outputting a model material conversion configuration interface in response to a selection operation of a model material to be converted in each of the three-dimensional scene files, and displaying physical property parameters of each model material to be converted on the model material conversion configuration interface; each model material to be converted includes a line scan material and various physical materials;

[0136] The material rendering parameter obtaining unit is used to obtain corresponding material rendering parameters in response to the conversion input operation of the physical property parameters of each model material to be converted.

[0137] In some further embodiments, the above-mentioned 3D model file processing device may further include:

[0138] A static mesh conversion module is used to respond to the static mesh conversion operation in each of the three-dimensional scene files, collapse the static mesh model to be converted in the corresponding first scene file, and convert the processed editable quadrilateral mesh into a rendering mesh supported by the target renderer; the rendering mesh is a triangular mesh.

[0139] Optionally, the scene element exporting module 630 may include:

[0140] A scene element display unit, configured to output a scene element export interface in response to a scene element export triggering operation on a second scene file, and display each scene element corresponding to the developed application on the scene element export interface; the second scene file includes the first scene file and the other three-dimensional scene files;

[0141] The target scene file export unit is used to respond to the selection and export operation of the scene element, determine that the file export mode is in the rendering element export mode, and process the selected scene elements into the target scene file in the target file format for export; wherein the selected exported scene elements include the converted rendering elements.

[0142] In a possible implementation, the scene element exporting module 630 may include any of the following exporting units:

[0143] A first exporting unit is used for, in response to a selection exporting operation based on a scene element type, determining scene elements included in each second scene file corresponding to the selected scene element type, processing the scene elements into a target scene file in a target file format for export;

[0144] The second exporting unit is used for exporting a target scene file processed into a target file format corresponding to all scene elements of the developed application in response to the scene element exporting operation; the all scene elements include the converted rendering elements.

[0145] In summary, the above-mentioned 3D model file processing device may further include:

[0146] A target scene file importing module, configured to import the selected target scene file in the target file format into a corresponding level configured for the developed application in response to a scene file importing operation on the Unreal Engine, to obtain a corresponding level scene resource;

[0147] A resource file packaging module, used for packaging the corresponding level scene resources into resource files in response to the business development instruction for the developed application, so as to realize the corresponding development business;

[0148] The target file format refers to the universal scene description USD format.

[0149] An embodiment of the present application also provides a computer program product including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements any of the three-dimensional scene file processing methods provided in the embodiments of the present application.

[0150] A computer-readable storage medium is also provided in an embodiment of the present application. The storage medium carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement any three-dimensional scene file processing method provided in an embodiment of the present application.

[0151] The computer-readable storage medium may be any available medium that can be stored by a computer or a data storage device such as a training device or a data center that includes one or more available media. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state disk (SSD)).

[0152] The above introduces the 3D scene file processing method provided by the embodiment of the present application. The following will introduce in detail the electronic device applicable to the 3D scene file processing method proposed in the present application in conjunction with the accompanying drawings.

[0153] Reference Figure 7 , is a schematic diagram of the hardware structure of an electronic device proposed in an embodiment of the present application, and the electronic device may be a user terminal such as a mobile phone, a tablet computer, a wearable device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, a netbook or a robot, such as Figure 7 As shown, the electronic device may include at least one memory 710 and at least one processor 720, wherein:

[0154] At least one memory 710 and at least one processor 720 can communicate with each other via a bus. The bus can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one bidirectional line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0155] The memory 710 can be used to store computer instructions and data, and may include an instruction storage area and a data storage area. The data storage area can store various data, such as three-dimensional scene files, target scene files, and various intermediate data generated during the execution of the three-dimensional scene file processing method; the instruction storage area can store software units such as computer instructions required for an operating system, an application, and at least one function (such as a model element conversion function). In an embodiment of the present application, the memory 710 can provide the processor 720 with multiple computer-readable instructions for implementing the three-dimensional scene file processing method of the embodiment of the present application, as well as data or other software and hardware resources required during the execution of the three-dimensional scene file processing method.

[0156] In conjunction with the above description of the 3D scene file processing method of the embodiment of the present application, the memory 710 can store the 3D design software and the corresponding version of the renderer plug-in installed therein and the scene file conversion plug-in in the target file format, as well as the program codes corresponding to the Unreal Engine being developed and applied, etc. The acquisition method and storage method of each program code and computer-readable instruction of the present application are not limited.

[0157] The processor 720, as the control center of the electronic device, can use various interfaces and lines to connect various parts of the entire electronic device, and implement the various steps of the three-dimensional scene file processing method proposed in the embodiment of the present application by loading and executing multiple computer-readable instructions of the memory 710. The implementation process can refer to the description of the corresponding part of the method embodiment above. Other components of the electronic device (such as communication elements, one or more input components and output components, etc.) can also be called to implement corresponding functions.

[0158] In the embodiment of the present application, the memory 710 may include a volatile memory (volatile memory), such as a random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as a read-only memory (ROM), a flash memory, a hard drive drive (HDD) or a solid state drive (SSD), etc. The processor 720 may include any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), a digital signal processor (DSP), an application specific integrated circuit (ASIC) or a field-programmable gate array (FPGA).

[0159] In actual applications, the electronic device may also include a first communication element for realizing communication between various components inside the electronic device, which may include but is not limited to: a general-purpose input / output (GPIO) interface, a USB interface, a universal asynchronous receiver / transmitter (UART) interface, etc.; it may also include a second communication element for realizing communication between the electronic device and an external device (such as an external display device or a server, etc.), which may include but is not limited to: a wireless communication element that supports wireless communication methods such as wifi, 5G / 6G, Global System of Mobile communication (GSM), General Packet Radio Service (GPRS) and / or near-field channel methods.

[0160] In addition, the electronic device may also include a display screen for displaying various pages / interfaces, such as the above-mentioned model material conversion configuration interface, scene element export interface, etc. The display screen may be a touch screen or a non-touch screen. In the case where the display screen is a touch screen, the user may use an input device (such as one or more of fingers, joints, stylus or operating rod) to perform operations on or near the touch screen. Of course, according to actual needs, other input devices such as mouse keys, function keys (such as volume control keys or power keys, etc.), trackballs, etc. may also be used to perform input operations on the electronic device, which may be determined based on actual conditions, and this application will not be described in detail here.

[0161] It should be understood that Figure 7 The structure of the electronic device shown does not constitute a limitation on the electronic device in the embodiment of the present application. In practical applications, the electronic device may include Figure 7 More or fewer components than those shown, or combinations of certain components, such as various sensors, audio players, audio collectors, power supply components, antennas, etc., are not listed one by one in this application.

[0162] It should also be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the device embodiments provided by the present application, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines.

[0163] Through the description of the above implementation mode, the technicians in the field can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present application, software program implementation is a better implementation mode in more cases. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a ROM, a RAM, a disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a training device, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0164] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loading and executing computer program instructions on a computer, the process or function described in accordance with the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable devices. The computer instruction can be stored in a computer-readable storage medium, or transmitted from a computer-readable storage medium to another computer-readable storage medium, for example, the computer instruction can be transmitted from a website site, a computer, a training device or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, training device or data center.

Claims

1. A three-dimensional scene file processing method, characterized in that: The three-dimensional scene file processing method comprises: Obtain each 3D scene file constructed for the developed application; In response to a data conversion operation on a first scene file, scene elements of the first scene file are converted into rendering elements supported by a target renderer; the first scene file at least includes the three-dimensional scene file corresponding to at least one of the scene elements among each model material and each scene light that cannot be recognized by the Unreal Engine; In response to selecting an export operation for the scene elements of the second scene file, processing the selected scene elements into target scene files in a target file format for export, so as to import the target scene files into the Unreal Engine to obtain corresponding scene resources for the developed application; Wherein, the scene element of the second scene file includes the rendering element converted from the first scene file; The target scene file in the target file format can be recognized by the Unreal Engine.

2. The three-dimensional scene file processing method according to claim 1, characterized in that: In response to the data conversion operation on the first scene file, converting the scene elements of the first scene file into rendering elements supported by the target renderer includes at least one of the following: In response to the model material conversion operation in each of the three-dimensional scene files, the physical property parameters configured for the model material in the corresponding first scene file are updated to material rendering parameters supported by the target renderer to obtain a rendering material supported by the target renderer; In response to the scene light conversion operation in each of the three-dimensional scene files, the light rendering parameters supported by the target renderer are configured according to the light parameters for the scene light in the corresponding first scene file to obtain the rendering light supported by the target renderer.

3. The three-dimensional scene file processing method according to claim 2, characterized in that: In response to the scene light conversion operation in each of the three-dimensional scene files, configuring the light rendering parameters supported by the target renderer according to the light parameters for the scene light in the corresponding first scene file, includes: In response to the scene light selection operation in each of the three-dimensional scene files, determining the scene light to be converted in the corresponding at least one first scene file; In response to a light parameter copying operation on at least one of the scene lights to be converted, obtaining light parameters of the corresponding scene lights to be converted; In response to a rendering light configuration operation supported by the target renderer, configuring light rendering parameters of the rendering light using light parameters corresponding to the scene light to be converted; The scene light to be converted includes one or more of target parallel light, ambient sky light, point light source emission light and photometric light; The rendering light includes one or more of the rendering sunlight light converted from the target parallel light, the rendering sky light converted from the ambient sky light, the rendering spherical light converted from the point light source emission light, and the rendering photometric light converted from the photometric light.

4. The three-dimensional scene file processing method according to claim 2, characterized in that: In response to the model material conversion operation in each of the three-dimensional scene files, updating the physical property parameters configured for the model material in the corresponding first scene file to material rendering parameters supported by the target renderer includes: In response to the selection operation of the model material to be converted in each of the three-dimensional scene files, a model material conversion configuration interface is output, and the physical property parameters of each model material to be converted are displayed on the model material conversion configuration interface; each model material to be converted includes a line scan material and various physical materials; In response to the conversion input operation of the physical property parameters of each model material to be converted, the corresponding material rendering parameters are obtained.

5. The three-dimensional scene file processing method according to any one of claims 1 to 4, characterized in that: The three-dimensional scene file processing also includes: In response to the static mesh conversion operation in each of the three-dimensional scene files, the static mesh model to be converted in the corresponding first scene file is collapsed, and the processed editable quadrilateral mesh is converted into a rendering mesh supported by the target renderer; the rendering mesh is a triangular mesh.

6. The three-dimensional scene file processing method according to claim 5, characterized in that: In response to the scene element selection export operation for the second scene file, processing each selected scene element into a target scene file in a target file format and exporting the target scene file includes: In response to a trigger operation for exporting scene elements of a second scene file, a scene element export interface is output, and each scene element corresponding to the developed application is displayed on the scene element export interface; the second scene file includes the first scene file and the other three-dimensional scene files; In response to the selection and export operation of the scene elements, it is determined that the file export mode is in the rendering element export mode, and each of the selected scene elements is processed into a target scene file in a target file format for export; wherein each of the scene elements selected for export includes the converted rendering element.

7. The three-dimensional scene file processing method according to claim 5, characterized in that: In response to the scene element selection export operation for the second scene file, processing the selected scene elements into target scene files in a target file format and exporting them includes any of the following implementations: In response to the selection and export operation based on the scene element type, determining the scene elements contained in each second scene file corresponding to the selected scene element type, processing the scene elements into a target scene file in a target file format and exporting; In response to the scene element export operation, all scene elements of the developed application are processed into a target scene file in a target file format and exported; The all scene elements include the converted rendering element.

8. The three-dimensional scene file processing method according to any one of claims 1 to 4, characterized in that: The three-dimensional scene file processing method also includes: In response to the scene file import operation of the Unreal Engine, the target scene file in the selected target file format is imported into the corresponding level configured for the developed application to obtain a corresponding level scene resource; In response to a business development instruction for the developed application, encapsulate the corresponding level scene resources into a resource file to implement the corresponding development business; The target file format refers to the universal scene description USD format.

9. A three-dimensional scene file processing device, characterized in that: The three-dimensional scene file processing device comprises: A 3D scene file acquisition module is used to acquire each 3D scene file constructed for the developed application; A scene element conversion module, configured to convert the scene elements of the first scene file into rendering elements supported by a target renderer in response to a data conversion operation on the first scene file; the first scene file at least includes the three-dimensional scene file corresponding to at least one of the scene elements among each model material and each scene light that cannot be recognized by the Unreal Engine; A scene element exporting module, configured to, in response to a scene element exporting operation selected for the second scene file, process each scene element selected for export into a target scene file in a target file format, so as to import the target scene file into the Unreal Engine to obtain the corresponding scene resource of the developed application; Wherein, the scene element of the second scene file includes the rendering element converted from the first scene file; The target scene file in the target file format can be recognized by the Unreal Engine.

10. An electronic device, characterized in that: The electronic device comprises: at least one memory and at least one processor, wherein: The memory is used to store the 3D design software and the corresponding version of the renderer plug-in installed therein and the scene file conversion plug-in in the target file format, as well as the program codes corresponding to the Unreal Engine being developed and applied; The processor is used to load and execute the plurality of computer-readable instructions stored in the memory, call the corresponding program code, and implement the following steps: Obtain each 3D scene file constructed for the developed application; In response to a data conversion operation on a first scene file, scene elements of the first scene file are converted into rendering elements supported by a target renderer; the first scene file is the three-dimensional scene file corresponding to at least one of the scene elements, including a static mesh model, a model material, and a scene light, which cannot be recognized by the Unreal Engine; In response to the scene element export operation selected for the second scene file, each scene element selected for export is processed into a target scene file in a target file format, so as to be imported into the Unreal Engine to obtain the corresponding scene resource of the developed application; Wherein, the scene element of the second scene file includes the rendering element converted from the first scene file; The target scene file in the target file format can be recognized by the Unreal Engine.

Citation Information

Cited By

  • Method for generating scene atmosphere graph and three-dimensional model and constructing scene atmosphere graph and three-dimensional model in unreal engine

    CN120451351A