Model data conversion method and device, electronic equipment, storage medium and product

By processing and converting the three-dimensional model data in the first system and making it suitable for the second system, the problem of data interoperability across the operating system is solved and the data multiplexing rate is improved.

CN119579838APending Publication Date: 2025-03-07BEIJING WODONG TIANJUN INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411795242.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-06
Publication Date
2025-03-07

AI Technical Summary

Technical Problem

The prior art cannot realize interoperable conversion between three-dimensional model data formats across operating systems, resulting in low data reuse rate of three-dimensional model.

Method used

By obtaining the pending model data of the three-dimensional model edited in the first system, processing is performed according to preset processing conditions, and converting the grid attribute data, the model data to be used suitable for the second system is obtained.

Benefits of technology

The interoperability conversion of three-dimensional model data across operating systems is realized, and the multiplexing rate of three-dimensional model data is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119579838A_ABST
    Figure CN119579838A_ABST
Patent Text Reader

Abstract

Embodiments of the invention disclose a model data conversion method and apparatus, an electronic device, a storage medium and a product. The method comprises the steps of obtaining to-be-processed model data of a to-be-converted three-dimensional model edited in a first system; wherein the to-be-converted three-dimensional model is composed of a plurality of grids, and the to-be-processed model data comprises grid attribute data corresponding to each grid; processing the to-be-processed model data according to a preset processing condition to obtain to-be-converted model data of the to-be-converted three-dimensional model; and performing conversion processing on the grid attribute data corresponding to each grid in the to-be-converted model data to obtain to-be-used model data suitable for the second system. According to the technical scheme, intercommunication and conversion of cross-operating-system three-dimensional model data are achieved, and the reuse rate of the three-dimensional model data is increased.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of information processing technology, and in particular, to a model data conversion method, device, electronic device, storage medium and product. Background Art

[0002] With the development of Internet technology, three-dimensional models corresponding to physical entities can be created on the three-dimensional model editing platform. These three-dimensional models can simulate real scenes and entities, thereby providing accurate and three-dimensional visual effects, helping designers to create, modify and adjust models more quickly.

[0003] Currently, there are multiple 3D model editing platforms, each with its own model format. For 3D models edited by different 3D model editing platforms, if the operating systems they rely on are the same, the data of these 3D models can be converted to different formats through the model data conversion algorithm.

[0004] When implementing the technical solution based on the above method, the inventor found the following problems:

[0005] The above method cannot realize the intercommunication conversion between 3D model data formats across operating systems, and there is a problem of low reuse rate of 3D model data. Summary of the invention

[0006] The present invention provides a model data conversion method, device, electronic device, storage medium and product to achieve intercommunication conversion of three-dimensional model data across operating systems and improve the reuse rate of three-dimensional model data.

[0007] In a first aspect, an embodiment of the present invention provides a model data conversion method, the method comprising:

[0008] Acquire the model data to be processed of the three-dimensional model to be converted edited in the first system; wherein the three-dimensional model to be converted is composed of a plurality of grids, and the model data to be processed includes grid attribute data corresponding to each grid;

[0009] Processing the model data to be processed according to preset processing conditions to obtain the model data to be converted of the three-dimensional model to be converted;

[0010] The grid attribute data corresponding to each grid in the model data to be converted is converted to obtain model data to be used in the second system.

[0011] Furthermore, the method further includes: the step of obtaining the model data to be processed of the three-dimensional model to be converted edited in the first system includes:

[0012] Based on the data conversion method integrated in the target conversion tool, the model data to be used of the three-dimensional model to be converted edited in the first system is converted into the model data to be processed.

[0013] Furthermore, before the to-be-processed model data is processed according to the preset processing conditions to obtain the to-be-converted model data of the to-be-converted three-dimensional model, the method further includes:

[0014] The model data to be processed is tested according to a preset test condition to obtain a target detection result corresponding to the preset test condition; wherein the preset test condition is a test condition set according to a preset test dimension;

[0015] When the target detection result is inconsistent with the preset detection result, the to-be-processed model data inconsistent with the preset detection result is processed based on the preset processing condition.

[0016] Further, the method also includes: the preset detection dimension includes at least one of a normative detection dimension, a grid quantity detection dimension, and a grid center detection dimension;

[0017] Correspondingly, the preset detection condition corresponding to the normative detection dimension includes: whether the length unit in the model data to be processed is a preset length unit; or whether the naming specification of the grid attribute data in the model data to be processed is a preset naming specification;

[0018] The preset detection condition corresponding to the grid quantity detection dimension includes: whether the grid quantity corresponding to the model data to be processed is greater than a preset quantity threshold;

[0019] The preset detection condition corresponding to the grid center detection dimension includes: whether the model center point constituted by the model data to be processed is a preset center point.

[0020] Furthermore, the method further includes: the preset processing condition includes at least one of the following:

[0021] Adjusting the length unit in the model data to be processed to the preset length unit;

[0022] Determine center point offset information according to the model center point and the preset center point, so as to perform offset processing on the model data to be processed based on the center point offset information;

[0023] Screening and processing the to-be-processed model data according to a data screening condition, wherein the data screening condition is a condition determined according to the second system and the first system;

[0024] updating the naming of the grid attribute data according to the preset naming specification;

[0025] The number of grids of the three-dimensional model to be converted is updated to adjust the model data to be processed based on the updated three-dimensional model to be converted.

[0026] Furthermore, the method further includes: the data conversion method includes a material type conversion method and a material attribute conversion method, and the mesh attribute data corresponding to each mesh in the model data to be converted is converted to obtain model data to be used in the second system, including:

[0027] Determine at least one target grid from a plurality of grids corresponding to the model data to be converted;

[0028] The mesh attribute data of the at least one target mesh is converted according to a preset material type conversion method and a material attribute conversion method to obtain the model data to be used of the at least one target mesh.

[0029] Furthermore, the method further includes: determining at least one target grid from the plurality of grids corresponding to the model data to be converted, comprising:

[0030] Display the material conversion interface;

[0031] The at least one target mesh is determined according to a triggering operation on at least one mesh node on the material conversion interface.

[0032] Further, the material attribute conversion method includes: the material type conversion method includes:

[0033] For the grid attribute data of the target grid, determining whether the field content corresponding to the first field of the grid attribute data is a preset content, wherein the preset content is used to indicate that a map identifier exists in the grid attribute data;

[0034] If it is the preset content, the material type of the grid attribute data is converted into a translucent material type.

[0035] Furthermore, the method further comprises:

[0036] If the field content is not the preset content, determining whether the color attribute corresponding to the field content is less than the preset color value;

[0037] If it is less than the preset color value, converting the material type of the grid attribute data into the translucent material type;

[0038] If it is not less than the preset color value, the material type in the grid attribute data is converted to a non-transparent material type.

[0039] Furthermore, the material attribute conversion method at least includes a parameter type conversion method and a texture content conversion method;

[0040] Among them, the parameter type conversion method is used to convert the first parameter type in the grid attribute data into a second parameter type, the first parameter type is related to the first system, and the second parameter type is related to the second system; the map content conversion method is used to convert the composite map corresponding to the first parameter type into a target map corresponding to the second parameter type.

[0041] Furthermore, processing the mesh attribute data based on the parameter type conversion method and the texture content conversion method includes:

[0042] Retrieving a plurality of first parameter types associated with the grid attribute data, and a composite map corresponding to the first parameter types;

[0043] According to the texture content conversion method corresponding to the first parameter type, a target texture corresponding to the composite texture is obtained, and according to the parameter type conversion method corresponding to the first parameter type, a second parameter type corresponding to the first parameter type is obtained.

[0044] Furthermore, the first parameter type includes at least one of a color value type, a reflection value type, a glossiness attribute type, a light intensity attribute type, and a coordinate position type, and the second parameter type includes a primary color type corresponding to the color value type, a metalness type corresponding to the reflection value type, a roughness attribute type corresponding to the glossiness attribute type, a self-luminous type corresponding to the light intensity attribute type, and at least one of a shadow attribute corresponding to the coordinate position type.

[0045] Furthermore, the image content conversion method includes at least one of the following:

[0046] In the case where the first parameter type is a color value type, the texture content conversion method is: determining a main color texture of the target grid based on a reflection value and a color value of the texture in the grid attribute data;

[0047] In the case where the first parameter type is a reflection value type, the texture content conversion method is: determining the metalness map of the target mesh based on the reflection value and the metalness map attribute in the mesh attribute data;

[0048] In the case where the first parameter type is a glossiness attribute type, the map content conversion method is: determining a roughness map of the target mesh based on a glossiness map attribute in the mesh attribute data;

[0049] In the case where the first parameter type is a light intensity attribute, the texture content conversion method is: determining a self-luminous texture of the target mesh based on the light intensity texture attribute in the mesh attribute data;

[0050] In the case where the first parameter type is a coordinate position type, the map content conversion method is: determining the occluded shadow map of the target mesh based on the coordinate information in the mesh attribute data.

[0051] Furthermore, after obtaining the model data to be used that is suitable for the second system, the method further includes:

[0052] reconstructing a target three-dimensional model in the second system based on the model data to be used;

[0053] In response to a trigger operation on the target three-dimensional model, a mesh to be previewed is determined, and a preview adjustment interface corresponding to the mesh to be previewed is displayed; wherein the preview adjustment interface includes a plurality of elements to be adjusted, and the elements to be adjusted include at least the current material of the mesh to be previewed, the main color map of the mesh to be previewed, the self-illumination map, the transparency map, the roughness map, and the metalness map;

[0054] In response to a triggering operation on the plurality of elements to be adjusted in the preview adjustment interface, the model data to be used of the grid to be previewed is adjusted.

[0055] Furthermore, after obtaining the model data to be used of the target grid, the method further includes:

[0056] In response to a triggering operation for displaying a preview adjustment interface, displaying a preview adjustment interface;

[0057] The preview adjustment interface includes a plurality of elements to be adjusted, and the elements to be adjusted include at least the current material of the mesh to be previewed, the main color map, the self-illumination map, the transparency map, the roughness map, and the metalness map of the mesh to be previewed;

[0058] In response to a triggering operation on the plurality of elements to be adjusted in the preview adjustment interface, the model data to be used of the target grid is adjusted.

[0059] In a second aspect, an embodiment of the present invention further provides a model data conversion device, the device comprising:

[0060] A model data acquisition module, used to acquire the model data to be processed of the three-dimensional model to be converted edited in the first system; wherein the three-dimensional model to be converted is composed of a plurality of grids, and the model data to be processed includes grid attribute data corresponding to each grid;

[0061] A model data processing module, used for processing the model data to be processed according to preset processing conditions to obtain the model data to be converted of the three-dimensional model to be converted;

[0062] The data conversion module is used to convert the grid attribute data corresponding to each grid in the model data to be converted to obtain the model data to be used in the second system.

[0063] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:

[0064] one or more processors;

[0065] a storage device for storing one or more programs,

[0066] When one or more programs are executed by one or more processors, the one or more processors implement the model data conversion method as described in any one of the embodiments of the present invention.

[0067] In a fourth aspect, an embodiment of the present invention further provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute a model data conversion method as described in any one of the embodiments of the present invention.

[0068] The technical solution of the embodiment of the present invention is to obtain the model data to be processed of the three-dimensional model to be converted edited in the first system, wherein the three-dimensional model to be converted is composed of multiple grids, and the model data to be processed includes grid attribute data corresponding to each grid, and then process the model data to be processed according to preset processing conditions to obtain the model data to be converted of the three-dimensional model to be converted, thereby converting and processing the grid attribute data corresponding to each grid in the model data to be converted to obtain the model data to be used in the second system. The technical solution of this embodiment processes the three-dimensional model data edited by the first system into data adapted to the second system through preset processing conditions and material conversion methods, thereby realizing the intercommunication conversion of three-dimensional model data across operating systems and improving the reuse rate of three-dimensional model data. BRIEF DESCRIPTION OF THE DRAWINGS

[0069] In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the following briefly introduces the drawings required to describe the embodiments. Obviously, the drawings introduced are only drawings of a part of the embodiments to be described in the present invention, rather than all the drawings. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0070] Figure 1 A flow chart of a model data conversion method provided by an embodiment of the present invention;

[0071] Figure 2 A schematic diagram of a grid involved in an embodiment of the present invention;

[0072] Figure 3 A flowchart of another model data conversion method provided by an embodiment of the present invention;

[0073] Figure 4 A schematic diagram of the relationship between the number of grids and error information of a three-dimensional model involved in an embodiment of the present invention;

[0074] Figure 5 A schematic diagram of a target detection result displayed on a current page according to an embodiment of the present invention;

[0075] Figure 6 A flowchart of another model data conversion method provided by an embodiment of the present invention;

[0076] Figure 7 A schematic diagram of the display process of the material conversion interface involved in an embodiment of the present invention;

[0077] Figure 8 A schematic diagram of the execution process of the material type conversion method involved in an embodiment of the present invention;

[0078] Fig. 9 This is a schematic diagram of data conversion from Vary format to PBR format involved in an embodiment of the present invention;

[0079] Fig.10 A flowchart of another model data conversion method provided by an embodiment of the present invention;

[0080] Fig.11 A schematic diagram of a preview adjustment interface according to an embodiment of the present invention;

[0081] Fig.12 A schematic diagram of a flow chart of a model data conversion method according to an embodiment of the present invention;

[0082] Fig.13 It is a schematic diagram of the interface display of each step of the model data conversion method involved in the embodiment of the present invention;

[0083] Fig.14 A schematic diagram of the structure of a model data conversion device provided by an embodiment of the present invention;

[0084] Fig.15 The present invention is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0085] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0086] Before introducing the technical solution, the application scenario of the embodiment of the present invention can be described first. The technical solution provided by the embodiment of the present invention can be applied to the scenario where the model data corresponding to the three-dimensional model generated in a certain system needs to be converted into a model data applicable to other systems.

[0087] Exemplarily, the first system is a software platform that can perform three-dimensional model editing and visualization display under a first operating system, and the second system is a software platform that can perform three-dimensional model editing and visualization display under a second operating system. Users can edit and display three-dimensional models in the first system, and can also edit and display three-dimensional models in the second system. However, there are differences in the operating systems, hardware devices, configuration information, etc. on which the first system and the second system rely, which makes the three-dimensional model edited in the first system not applicable to the second system. Based on this, the solution provided in an embodiment of the present invention aims to convert the three-dimensional model data edited and generated in the first system into data applicable to the second system, so that the three-dimensional model generated in the first system can be displayed or adjusted in the second system.

[0088] Figure 1 A flow chart of a model data conversion method provided in an embodiment of the present invention. This embodiment is applicable to situations where model data corresponding to a three-dimensional model generated in a certain system needs to be converted into data that can be applied to other systems. The method can be executed by a model data conversion device, which can be implemented in the form of software and / or hardware. The hardware can be an electronic device, such as a mobile terminal, a PC or a server.

[0089] like Figure 1 As shown, the model data conversion method includes:

[0090] S110, obtaining model data to be processed of the three-dimensional model to be converted edited in the first system, wherein the three-dimensional model to be converted is composed of a plurality of grids, and the model data to be processed includes grid attribute data corresponding to each grid.

[0091] Among them, the first system is a server that supports editing and visual display of three-dimensional models.

[0092] The 3D model to be converted is the 3D model on which data conversion is to be performed. The 3D model is composed of multiple grids, wherein each grid can be understood as a basic unit constituting the outer surface of the 3D model. The grid can be a surface composed of grid points and the connecting edges between the grid points. For example, the grid can be a triangle, a rhombus, or a rectangle. For example, the grid diagram can be Figure 2 , the mesh is triangular, Figure 2 The left side of the figure shows a 3D model with 150,000 grids. Figure 2 On the right is a schematic diagram of a three-dimensional model consisting of 80,000 grids.

[0093] Among them, the model data to be processed is the data representation corresponding to the three-dimensional model to be converted. More specifically, the model data to be processed is the mesh attribute data corresponding to each mesh in the three-dimensional model to be converted. Mesh attribute data refers to data defined on the mesh. For example, mesh attribute data may include: material data, color parameters, blur parameters, reflection parameters, composite map properties, etc. of a certain mesh. It should be particularly noted that the data content specifically included in the mesh attribute data will not be listed one by one here. As long as the data content that can be obtained after the three-dimensional model is edited in the first system, it is within the scope of the mesh attribute data.

[0094] Specifically, the user can edit at least one 3D model in the first system, and save the model data corresponding to each 3D model in the first system. When it is necessary to convert the model data of a 3D model, the model data to be processed corresponding to the 3D model selected by the user (i.e., the 3D model to be converted) can be obtained from the first system.

[0095] Exemplarily, the model data conversion method can be integrated into a conversion tool, and the conversion tool can be added to the first system. For example, when the user clicks the start control of the conversion tool in the first system, in response to the operation of opening the conversion tool, the main page of the conversion tool can be entered, and the main page may include a pre-set target control for selecting a certain three-dimensional model. Further, the user can trigger the target control and select a certain three-dimensional model (the three-dimensional model to be converted) from multiple three-dimensional models. At this time, in response to the operation of selecting the three-dimensional model to be converted, the model data to be processed corresponding to the three-dimensional model to be converted can be obtained. For another example, when the user clicks on a certain edited three-dimensional model in the first system, the clicked three-dimensional model can be determined as the three-dimensional model to be converted. Further, the user can click the start control of the conversion tool in the first system, and the model data to be processed corresponding to the three-dimensional model to be converted can be obtained.

[0096] S120 , processing the model data to be processed according to preset processing conditions to obtain the model data to be converted of the three-dimensional model to be converted.

[0097] In this embodiment, for the three-dimensional model to be converted, the corresponding model data to be processed includes a large amount of data content, including some data content that does not contribute to the model data conversion, some data content that cannot be directly used for subsequent data conversion operations due to data deviation, and some redundant data. Based on this, in order to eliminate the above problems in the model data to be processed, the model data to be processed can be preprocessed based on preset processing conditions to obtain the model data to be converted. In the subsequent steps, data conversion processing is performed based on the model data to be converted after preprocessing to improve the efficiency of model data conversion.

[0098] The preset processing condition is a pre-set data processing rule for processing the model data to be processed into the model data to be converted. Specifically, the preset processing condition may include at least one of the following:

[0099] (1) Adjust the length unit in the model data to be processed to the preset length unit.

[0100] The preset length unit is a pre-set length unit, for example, the preset length unit is “meter”.

[0101] In this embodiment, when editing the mesh attribute data corresponding to the 3D model to be converted, the user can edit the length information corresponding to each mesh. For example, the length information corresponding to a certain mesh can be "5 cm". In this case, the length unit in the model data to be processed is "cm", and the value and length unit of the length information can be adjusted as a whole, that is, "5 cm" can be adjusted to "0.05 m". By adjusting the length unit, it is ensured that the 3D model is not too large or too small during the view display process.

[0102] (2) Determine center point offset information according to the model center point and the preset center point, and perform offset processing on the model data to be processed based on the center point offset information.

[0103] The model center point is the coordinate information representing the actual center position of the 3D model to be converted. The preset center point is the coordinate information of the theoretical center position of the 3D model that is preset. The purpose of setting the preset center point is to move the actual center point of the 3D model to be converted to the preset center point so that the converted 3D model can be located at the center of the view, avoiding the situation where the model appears outside the user's field of view during application loading.

[0104] In this embodiment, the model center point of the three-dimensional model to be converted can be inferred according to the position coordinates of the grid points corresponding to each grid constituting the three-dimensional model to be converted. For example, the model center point can be expressed as (U1, V1) in the UV coordinate system. The preset center point can be expressed as (Uy, Vy), and the center point offset information can be expressed as ΔU=Uy-U1, ΔV=Vy-V1, so that each grid in the model data to be processed can be offset based on ΔU and ΔV.

[0105] (3) Screening the model data to be processed according to data screening conditions, wherein the data screening conditions are conditions determined according to the second system and the first system.

[0106] The data screening condition refers to data generated when the three-dimensional model is edited in the first system, but is not required when the three-dimensional model is rendered and displayed in the second system.

[0107] In this embodiment, the data content that meets the data screening condition in the model data to be processed is screened out. For example, the three-dimensional model edited in the first system may include non-grid point information, auxiliary volume data, camera data, and other model data that are not supported in the service of the second system, and these data may be screened out.

[0108] (4) Update the naming of grid attribute data according to the preset naming convention.

[0109] In this embodiment, the three-dimensional model to be converted may include multiple meshes, and the mesh attribute data corresponding to different meshes can be distinguished by different names. When naming the meshes, the naming of the meshes, material balls, and maps needs to meet certain specification requirements. Based on this, the naming specification can be set in advance. When a certain name does not meet the naming specification, some content in the name can be deleted or corrected. The preset naming specification can be: the name must not contain escape characters, spaces, special characters, etc. that affect data search and business development.

[0110] (5) Updating the number of grids of the three-dimensional model to be converted, so as to adjust the model data to be processed based on the updated three-dimensional model to be converted.

[0111] In this embodiment, by reducing the number of meshes of the three-dimensional model to be converted, it can be ensured that it can be quickly loaded and processed in the second system. Specifically, the specific implementation method of updating the number of meshes of the three-dimensional model to be converted may include: performing vertex clustering processing on multiple meshes of the three-dimensional model to be converted to update the number of meshes of the three-dimensional model to be converted; performing incremental extraction processing on multiple meshes of the three-dimensional model to be converted to update the number of meshes of the three-dimensional model to be converted; performing resampling processing on multiple meshes of the three-dimensional model to be converted to update the number of meshes of the three-dimensional model to be converted. After the three-dimensional model to be converted is subjected to face reduction processing, an updated three-dimensional model to be converted is obtained. Thus, the corresponding model data to be processed is adjusted according to the updated three-dimensional model to be converted.

[0112] Exemplarily, the specific implementation steps of vertex clustering processing of multiple meshes of the three-dimensional model to be converted may include: for each vertex in the mesh, using a clustering algorithm (such as the K-means clustering algorithm) to merge vertices that are close and have little difference in normal vectors, and the merged vertices are called representative vertices. Further, the original vertices are replaced with representative vertices to reduce the number of facets. The specific implementation method of incremental extraction processing of multiple meshes of the three-dimensional model to be converted may include: using the "optimization" modifier in the three-dimensional model processing platform to reduce the number of meshes and vertices in the three-dimensional model to be converted, and controlling the number of reduced faces through the parameter item "face threshold", the higher the parameter, the fewer the number of faces; the lower the parameter, the more the number of faces. The specific implementation method of resampling processing of multiple meshes of the three-dimensional model to be converted may include: re-determining a preset number of meshes that is less than the original number of meshes on the UV unfolded surface of the three-dimensional model to be converted.

[0113] In this embodiment, after the model data to be processed is processed based on at least one of the preset processing conditions, the obtained data is the model data to be converted corresponding to the three-dimensional model to be converted.

[0114] S130, converting the grid attribute data corresponding to each grid in the model data to be converted, to obtain model data to be used in the second system.

[0115] The model data to be used refers to three-dimensional model data that can be rendered and displayed in the second system.

[0116] In this embodiment, because the rendering methods of the first system and the second system are different, the data format corresponding to the three-dimensional model edited in the first system is different from the data format corresponding to the three-dimensional model edited in the second system. By automatically converting the format of the data of the first system, the model data to be used suitable for the second system is obtained, thereby expanding the scope of application of the three-dimensional model.

[0117] Specifically, the reason why the model data to be processed corresponding to the three-dimensional model to be converted edited in the first system cannot be applied to the second system is because the format of the material data is different. Based on this, the mesh attribute data corresponding to each mesh in the model data to be converted can be subjected to material conversion processing through a preset material conversion method. After the material conversion processing is completed, the model data to be used in the second system can be obtained. More specifically, the preset material conversion method may include: clustering material mapping conversion method, texture baking material conversion method, etc. The cluster mapping material conversion method refers to: clustering and remapping the commonly used material parameter attributes, and simulating them by function fitting. The texture baking material conversion method refers to: performing texture baking on the composite texture corresponding to the three-dimensional model edited in the first system to generate new texture data.

[0118] Exemplarily, the cluster mapping material conversion method can be used as an example to illustrate how to perform material conversion processing on mesh attribute data. Material conversion processing can include material type conversion processing and material attribute conversion processing. For example, the material type corresponding to the three-dimensional model to be converted edited in the first system may include: A1 material type, A2 material type, A3 material type, A4 material type or A5 material type, and the material type applicable to the second system includes: non-transparent material type and translucent material type. Based on this, for the mesh attribute data corresponding to each mesh in the model data to be converted, the target material type data corresponding to each mesh is determined according to the material type data in the mesh attribute data and the pre-set material type mapping method.

[0119] The material conversion process also includes material attribute conversion processing. For example, the material attributes corresponding to the three-dimensional model to be converted edited in the first system may include: value type parameters (B1 value type parameters, B2 value type parameters, B3 value type parameters, B4 value type parameters and / or B5 value type parameters), map type parameters (C1 map type parameters, C2 map type parameters, C3 map type parameters, C4 map type parameters and / or C5 map type parameters). The material attribute data applicable to the second system may include: value type parameters (primary color, metalness, roughness, self-luminous color, normal intensity, AO intensity), map type parameters (primary color map, metalness map, roughness map, self-luminous color map, normal map, AO map). Based on this, for the mesh attribute data corresponding to each mesh in the model data to be converted, the target material attribute data corresponding to each mesh is determined according to the material attribute data in the mesh attribute data and the pre-set material attribute mapping method.

[0120] It should be noted that the acquisition, storage, use, and processing of data in the technical solutions provided in the embodiments of the present invention are in compliance with the relevant provisions of national laws and regulations. For example, network requests are intercepted and processed with user authorization.

[0121] The technical solution of the embodiment of the present invention is to obtain the model data to be processed of the three-dimensional model to be converted edited in the first system, wherein the three-dimensional model to be converted is composed of multiple grids, and the model data to be processed includes grid attribute data corresponding to each grid, and then process the model data to be processed according to preset processing conditions to obtain the model data to be converted of the three-dimensional model to be converted, thereby converting and processing the grid attribute data corresponding to each grid in the model data to be converted to obtain the model data to be used in the second system. The technical solution of this embodiment processes the three-dimensional model data edited by the first system into data adapted to the second system through preset processing conditions and material conversion methods, thereby realizing the intercommunication conversion of three-dimensional model data across operating systems and improving the reuse rate of three-dimensional model data.

[0122] Figure 3 A schematic diagram of a model data conversion method provided by an embodiment of the present invention. Based on the above embodiment, this embodiment provides a detailed description of how to obtain the model data to be processed of the three-dimensional model to be converted edited in the first system, and performs abnormal data detection on the model data to be processed, so that when the target detection result is inconsistent with the preset detection result, the model to be processed that is inconsistent with the preset detection result is processed based on the preset processing conditions. The specific implementation method can refer to the technical solution of this embodiment. Among them, the technical terms that are the same or corresponding to the above embodiment are not repeated here.

[0123] like Figure 3 As shown, the method specifically comprises the following steps:

[0124] S210: Based on the data conversion method integrated in the target conversion tool, the model data to be used of the three-dimensional model to be converted edited in the first system is converted into model data to be processed.

[0125] In this embodiment, the model data conversion method can be integrated into a component, which can be called a target conversion tool. In this way, the model data conversion method can be efficiently reused, and the model data to be used corresponding to the three-dimensional model to be converted can be obtained by one-click operation without the user's complicated operation process.

[0126] Specifically, a target conversion tool integrated with the data conversion method can be added to the first system, and an icon control corresponding to the target conversion tool can be displayed in the display page of the first system. When the user triggers the icon control corresponding to the target conversion tool in the first system, the target conversion tool is in an enabled state. Further, the user can select a three-dimensional model to be converted from at least one three-dimensional model stored in the first system by selecting a trigger operation. Thus, the three-dimensional model to be converted can be added to the target conversion tool, and the target conversion tool performs model data conversion processing on the model data to be used according to the internally integrated data conversion method to obtain the final model data to be used.

[0127] S220 , detecting the model data to be processed according to preset detection conditions, and obtaining target detection results corresponding to the preset detection conditions.

[0128] Among them, the target detection result is used to indicate whether the model data to be processed has passed the detection, and the target detection result may include a normal detection result or an abnormal detection result. The normal detection result indicates that the model data can be used in the subsequent data conversion step without adjusting the model data. The abnormal detection result indicates that the model data cannot be used in the subsequent data conversion step and the model data needs to be adjusted.

[0129] Among them, the preset detection conditions refer to a series of parameters and standards set in advance during the detection process of the model data to be processed to ensure the legitimacy of the model data to be processed. In this embodiment, the preset detection conditions are detection conditions set according to the preset detection dimensions. The preset detection dimensions include at least one of the normative detection dimension, the grid quantity detection dimension, and the grid center detection dimension; accordingly, the preset detection conditions corresponding to the normative detection dimension include: whether the length unit in the model data to be processed is the preset length unit; or, whether the naming specification of the grid attribute data in the model data to be processed is the preset naming specification; the preset detection conditions corresponding to the grid quantity detection dimension include: whether the number of grids corresponding to the model data to be processed is greater than the preset number threshold; the preset detection conditions corresponding to the grid center detection dimension include: whether the model center point constituted by the model data to be processed is the preset center point.

[0130] Based on the above embodiments, the preset processing conditions include at least one of the following: adjusting the length unit in the model data to be processed to a preset length unit; determining the center point offset information based on the model center point and the preset center point, and performing offset processing on the model data to be processed based on the center point offset information; filtering the model data to be processed according to the data filtering conditions, wherein the data filtering conditions are conditions determined based on the second system and the first system; updating the naming of the grid attribute data according to the preset naming convention; updating the number of grids of the three-dimensional model to be converted, so as to adjust the model data to be processed based on the updated three-dimensional model to be converted.

[0131] In this embodiment, the model data to be processed can be detected in sequence according to at least one preset detection condition, so that the target detection result corresponding to the preset detection condition can be obtained. Optionally, the target detection result corresponding to each preset detection condition can be displayed separately in the current interface according to the preset format. Among them, the current interface refers to the screen or window that the user is currently interacting with. The preset format is a set of predefined display format settings. For example, if the target detection result of the model data to be processed is a normal detection result, the corresponding preset format is a green circular mark; if the target detection result of the model data to be processed is an abnormal detection result, the corresponding preset format is a red triangle mark.

[0132] S230: When the target detection result is inconsistent with the preset detection result, the to-be-processed model data that is inconsistent with the preset detection result is processed based on preset processing conditions.

[0133] The preset detection result is a pre-set detection result. Specifically, the preset detection result is an abnormal detection result.

[0134] In this embodiment, for normal detection results, no further data adjustment process is required; while for abnormal detection results, the problematic data in the to-be-processed model data can be adjusted according to preset processing conditions. The adjustment methods may include but are not limited to: deletion, addition, correction, etc.

[0135] Optionally, the preset format display corresponding to the abnormal detection result can be set as a preset control that can be triggered. For an abnormal detection result corresponding to a preset condition, when the user triggers the corresponding preset control, the problem data in the model data to be processed can be adjusted according to the preset processing condition.

[0136] Specifically, for the first preset detection condition corresponding to the normative detection dimension, if the length unit in the model data to be processed is not the preset length unit, the corresponding target detection result is an abnormal detection result; accordingly, when the user triggers the abnormal detection result corresponding to the first preset detection condition, the length unit in the model data to be processed can be adjusted to the preset length unit. For the second preset detection condition corresponding to the normative detection dimension, if the naming specification of the grid attribute data in the model data to be processed does not meet the preset naming specification, the corresponding target detection result is an abnormal detection result; accordingly, when the user triggers the abnormal detection result corresponding to the second preset detection condition, the naming of the grid attribute data can be updated according to the preset naming specification. For the three preset detection conditions corresponding to the grid quantity detection dimension, if the number of grids corresponding to the model data to be processed is greater than the preset number threshold, the corresponding target detection result is an abnormal detection result; accordingly, when the user triggers the abnormal detection result corresponding to the third preset detection condition, the number of grids of the three-dimensional model to be converted can be updated to adjust the model data to be processed based on the updated three-dimensional model to be converted. Generally speaking, the relationship between the number of grids and error information of a three-dimensional model can be seen in FIG. Figure 4 ,like Figure 4 As shown, for a certain three-dimensional model, the more grids there are, the smaller the error information of the three-dimensional model is. In any case, the fewer grids there are, the larger the error information of the three-dimensional model is. For the fourth preset detection condition corresponding to the grid center detection dimension, if the model center point constituted by the model data to be processed is not the preset center point, the corresponding target detection result is an abnormal detection result; accordingly, when the user triggers the abnormal detection result corresponding to the fourth preset detection condition, the center point offset information can be determined based on the model center point and the preset center point, so as to perform offset processing on the model data to be processed based on the center point offset information.

[0137] In addition, the preset processing conditions may also include filtering the model data to be processed according to the data filtering conditions, wherein the data filtering conditions are conditions determined according to the second system and the first system. For example, the data filtering conditions refer to data generated when the first system edits the three-dimensional model, but not required when the three-dimensional model is rendered and displayed in the second system, such as useless free points. By filtering out the data content that meets the data filtering conditions in the model data to be processed, the validity of the model data to be processed is improved.

[0138] In this embodiment, the model data to be processed is detected and processed through multiple data dimensions, and the data content corresponding to the abnormal detection results is adjusted and processed, which can improve the accuracy and rationality of the model data and provide a high-quality data foundation for subsequent data conversion operations.

[0139] For example, the target detection result shown in the current page is shown in Figure 5 .like Figure 5 As shown, in the process of the target conversion tool executing the model data conversion method, a total of three major steps are involved. The first step is "data detection", the second step is "material conversion", and the third step is "material preview". The current interface displays the results corresponding to the "data detection" step. The content displayed in the current interface indicates that the model size of the three-dimensional model to be converted is 3500mm*1200mm*24mm. The model data to be processed is detected through the first preset detection condition, and the target detection result obtained is an abnormal detection result. The target detection result corresponding to the first preset detection condition can be marked at the corresponding position as "not a preset length unit". Correspondingly, the "processing" control can be displayed. When the user triggers the control, the data processing operation of adjusting the length unit in the model data to be processed to the preset length unit can be executed. Similarly, the detection and processing process of each preset conversion condition. In Figure 5 In the example, the identification information corresponding to the model center point, free point detection, and mapping path is It represents the corresponding processing process that has been completed. After completing the data processing steps corresponding to each project, the user can trigger the "Re-test" control to re-test the processed model data. When the test results of each project are normal, the "Next" control can be triggered to execute the next major step, that is, (material conversion step).

[0140] S240. When the model data to be processed is processed according to the preset processing conditions, the model data to be converted of the three-dimensional model to be converted is obtained.

[0141] S250: converting the grid attribute data corresponding to each grid in the model data to be converted, to obtain model data to be used in the second system.

[0142] The technical solution of the embodiment of the present invention can convert the to-be-used model data of the to-be-converted three-dimensional model edited in the first system into to-be-processed model data based on the data conversion method integrated in the target conversion tool. By integrating the model data conversion method into the target conversion tool, the model data conversion method can be efficiently reused, without the need for complex operation procedures of the user, and the to-be-used model data corresponding to the to-be-converted three-dimensional model can be obtained by one-click operation. Furthermore, the to-be-processed model data is detected according to preset detection conditions to obtain target detection results corresponding to the preset detection conditions. When the target detection results are inconsistent with the preset detection results, the to-be-processed model data inconsistent with the preset detection results are processed based on the preset processing conditions. In this embodiment, the to-be-processed model data is detected and processed through multiple data dimensions, and the data content corresponding to the abnormal detection results is adjusted and processed, which can improve the accuracy and rationality of the model data and provide a high-quality data foundation for subsequent data conversion operations.

[0143] Figure 6 This is a schematic diagram of a model data conversion method provided by an embodiment of the present invention. On the basis of the above-mentioned embodiment, the material conversion processing of the grid attribute data corresponding to each grid in the model data to be converted is carried out to obtain the model data to be used in the second system. The specific implementation method can refer to the technical solution of this embodiment. Among them, the technical terms that are the same or corresponding to the above-mentioned embodiment are not repeated here.

[0144] like Figure 6 As shown, the method specifically comprises the following steps:

[0145] S310, obtaining the model data to be processed of the three-dimensional model to be converted edited in the first system, wherein the three-dimensional model to be converted is composed of a plurality of grids, and the model data to be processed includes grid attribute data corresponding to each grid.

[0146] S320, processing the model data to be processed according to preset processing conditions to obtain the model data to be converted of the three-dimensional model to be converted.

[0147] S330: Determine at least one target grid from a plurality of grids corresponding to the model data to be converted.

[0148] Optionally, a specific implementation method of determining at least one target grid from multiple grids corresponding to the model data to be converted may include: displaying a material conversion interface; and determining at least one target grid based on a triggering operation on at least one grid node on the material conversion interface.

[0149] The material conversion interface refers to a user interaction interface for converting one material format to another material format. The target mesh is the mesh to be subjected to material conversion.

[0150] In this embodiment, the target control may be automatically triggered after the model data to be processed is processed according to the preset processing conditions; or the target control may be triggered by the user after the model data to be processed is processed according to the preset processing conditions. Thus, when it is detected that the target control is triggered, the material conversion interface may be displayed in the current interface. Thus, a node selection control may be pre-configured in the material conversion interface. When the node selection control is triggered, the meshes to be converted in the 3D model to be converted may be determined, and these meshes are the target meshes.

[0151] For an exemplary display process diagram of the material conversion interface, see Figure 7 .when Figure 7 (a) When the "next step" in the corresponding data detection interface is triggered, the material conversion interface, i.e. 7(b), can be displayed. Figure 7 When the "Node Selection" control in (b) is triggered, one or more target grids can be determined. In particular, Figure 7 The rectangle below the "Node Control" in (b) can indicate the material conversion progress of certain target networks.

[0152] S340: Perform conversion processing on the mesh attribute data of at least one target mesh according to a preset material type conversion method and a material attribute conversion method to obtain model data to be used of at least one target mesh.

[0153] In this embodiment, the data conversion method for converting the mesh attribute data corresponding to each mesh in the model data to be converted includes a material type conversion method and a material attribute conversion method. Among them, the material type conversion method refers to a method for converting one material type to another material type during the three-dimensional model design and rendering process. The material attribute conversion method refers to a method for converting one material attribute data to another material attribute data. This usually involves mapping specific attributes of a certain material to another material to achieve consistency of visual effects or meet specific design requirements.

[0154] In the present embodiment, the processing process for each target network is the same. Any one of the target networks is taken as the current target network, and the current target network is used as an example for illustrative explanation. The current target network refers to the target mesh currently being processed. The mesh attribute data corresponding to the current target network is determined. Here, the mesh attribute data of the current target network is subjected to material conversion processing through a pre-determined material type conversion method and a preset material attribute conversion method, and the converted result is determined as the model data to be used of the current target mesh. In the present embodiment, through the pre-determined material type conversion method and material attribute conversion method, the data conversion processing operation of the material type and material attribute of the target mesh can be realized efficiently and accurately, thereby improving the adaptability and versatility of the three-dimensional model data.

[0155] Based on the above embodiment, the material type conversion method includes: for the grid attribute data of the target grid, determining whether the field content corresponding to the first field of the grid attribute data is the preset content; if it is the preset content, converting the material type of the grid attribute data into a translucent material type.

[0156] Among them, the first field is the preset field content, for example, the first field can be "refractive index map". The preset content is used to characterize the presence of a map identifier in the grid attribute data. There are two situations for the data content under the first field. One is the preset content, that is, there is a map identifier in the grid attribute data (indicating that the rendering process of the current target grid needs to use the map data content). For example, the map identifier can be the name or number information of a certain map; the other situation is the color attribute value (indicating that the rendering process of the current target grid needs to use color value information).

[0157] Specifically, the schematic diagram of the execution process of the material type conversion method can be found in Figure 8 .like Figure 8As shown, for the current target grid, first, the first field is searched from the grid attribute data corresponding to the current target network, and the field content under the first field is obtained; then, it is determined whether the field content is the preset content. If the field content is the preset content, the material type in the grid attribute data corresponding to the current target network is converted to a semi-transparent material type; if the field content is not the preset content, but the color attribute information, it is further determined whether the color attribute corresponding to the field content is less than the preset color value. For example, it can be determined whether the ReFraction color value rgb is less than 1; if it is less than the preset color value, the material type of the grid attribute data is converted to a semi-transparent material type; if it is not less than the preset color value, the material type in the grid attribute data is converted to a non-transparent material type. The purpose of this setting is to accurately map the material type information of the target grid to a semi-transparent material type or a non-transparent material type, thereby improving the conversion efficiency of the material type.

[0158] On the basis of the above embodiment, the material attribute conversion method includes: the material attribute conversion method at least includes a parameter type conversion method and a texture content conversion method;

[0159] Among them, the parameter type conversion method is used to convert the first parameter type in the grid attribute data into the second parameter type, the first parameter type is related to the first system, and the second parameter type is related to the second system; the map content conversion method is used to convert the composite map corresponding to the first parameter type into a target map corresponding to the second parameter type.

[0160] In this embodiment, the specific implementation method of processing mesh attribute data based on the parameter type conversion method and the map content conversion method may include: calling multiple first parameter types associated with the mesh attribute data, and a composite map corresponding to the first parameter type; obtaining a target map corresponding to the composite map according to the map content conversion method corresponding to the first parameter type, and obtaining a second parameter type corresponding to the first parameter type according to the parameter type conversion method corresponding to the first parameter type.

[0161] Among them, the first parameter type includes at least one of a color value type, a reflection value type, a glossiness attribute type, a light intensity attribute type, and a coordinate position type; the second parameter type includes at least one of a primary color type corresponding to the color value type, a metalness type corresponding to the reflection value type, a roughness attribute type corresponding to the glossiness attribute type, a self-luminous type corresponding to the light intensity attribute type, and a shadow attribute corresponding to the coordinate position type.

[0162] Specifically, the color value type usually refers to the numerical value used to define the color of the model surface, which is usually represented by the RGB color model. The RGB color model uses a combination of three colors: red (R), green (G), and blue (B) to generate various colors. Each color is represented by three values, which usually range from 0 to 255, representing the brightness of red, green, and blue respectively. The reflection value type refers to the ratio of the intensity of light reflected by the surface of an object after receiving light to the intensity of the incident light. Specifically, when the light is incident vertically on the surface of an object, the intensity of the reflected light is the largest, and the reflection value is also the largest at this time; when the light is incident obliquely, the intensity of the reflected light will decrease, and the reflection value will also decrease accordingly. The glossiness attribute type refers to the ability of the surface of an object to reflect light, which is specifically manifested as the degree of reflection on the surface of the object. It determines the way and degree of light reflection on the surface of the object. The higher the glossiness, the stronger the reflection of the surface of the object, and it looks smoother and brighter; the lower the glossiness, the rougher and duller the surface appears. The light intensity attribute type refers to the brightness of the light, which directly affects the visual effect of the scene and the lighting effect of the object. Generally speaking, the intensity of light can be adjusted by setting the parameters of the light. Lower values ​​will result in dimmer light, and higher values ​​will result in brighter light. The coordinate position type refers to the specific position of the model in three-dimensional space, usually determined by three coordinate axes: X, Y, and Z. These three coordinate axes represent the horizontal, vertical, and depth directions respectively, and together form a three-dimensional coordinate system.

[0163] The primary color type refers to the base color, which is used to specify the color of the surface of an object in the material system. It is usually used to represent the diffuse color of an object, that is, the ability of the surface of an object to reflect light. The metalness type defines whether the material is metal or non-metal (insulator). It is usually used to represent the metallic texture of the surface of an object. Metallic materials have specific reflection properties. They usually have higher reflectivity, and their reflections usually carry the color of the material itself. The roughness attribute type is used in the material system to specify the smoothness of the surface of an object. It affects the gloss and reflective properties of the material. The self-illumination type is used to define which parts of a 3D model will emit light like a light source. This type of map is usually used to create bright light effects that are not affected by scene lighting, such as display screens, indicator lights, or other light source effects. The shadow attribute is used to specify the color depth of the occluded shadow of the object surface under global ambient light. It is usually used to represent the shadow effect under the turning or gully of the object surface, that is, the degree of occlusion of the object surface under the ambient light.

[0164] In actual application, the specific values ​​corresponding to each first parameter type in the grid attribute data and the composite maps corresponding to each first parameter type can be retrieved. Furthermore, the parameter type conversion method corresponding to the first parameter type can be used to process the specific values ​​corresponding to each first parameter type to obtain the specific values ​​of the second parameter type corresponding to the first parameter type. The composite maps corresponding to each first parameter type are processed using the map content conversion method corresponding to the first parameter type to obtain the target map corresponding to the composite map.

[0165] In this embodiment, when the composite map in the first parameter type is effective, the data related to the composite map in the mesh attribute data can be converted to obtain the main color map, metal map, roughness map, self-luminous map and occlusion shadow map, and the target map corresponding to the composite map is obtained, and these target maps are determined as the model data to be used for the target mesh. When the composite map of the target mesh is not effective, the value type of the second parameter type is effective, and the specific value of the value type in the mesh attribute data can be converted to obtain the main color value, metal value, roughness value and self-luminous value, and the conversion results of these values ​​are determined as the model data to be used for the target mesh.

[0166] Specifically, the image content conversion method includes at least one of the following:

[0167] In the case where the first parameter type is a color value type, the texture content conversion method is: based on the reflection value and color value of the texture in the mesh attribute data, determining the main color texture of the target mesh.

[0168] Specifically, the reflection value and color value of the map in the mesh attribute data can be brought into the first preset conversion function to determine the main color map of the target mesh, wherein the first preset conversion function can be expressed as:

[0169] Main color map = mix{reflection value, color value, (1+reflection value-color value) / 2}

[0170] In particular, "mix" represents any mixed interpolation algorithm.

[0171] In the case where the first parameter type is a reflection value type, the texture content conversion method is: determining the metalness map of the target mesh based on the reflection value and the metalness map attribute in the mesh attribute data.

[0172] Specifically, the reflection value and the metalness map attribute in the mesh attribute data can be brought into the second preset conversion function to determine the metalness map of the target mesh, wherein the second preset conversion function can be expressed as:

[0173] Metalness map = max{reflection value,metalness map attribute}

[0174] In the case where the first parameter type is a glossiness attribute type, the map content conversion method is: determining a roughness map of the target mesh based on the glossiness map attribute in the mesh attribute data.

[0175] Specifically, the glossiness map attribute in the mesh attribute data can be brought into the third preset conversion function and the roughness map of the target mesh can be determined, wherein the third preset conversion function can be expressed as:

[0176] Roughness map = 1-glossiness map attribute

[0177] In the case where the first parameter type is a light intensity attribute, the texture content conversion method is: based on the light intensity texture attribute in the mesh attribute data, determining the self-illumination texture of the target mesh.

[0178] Specifically, the light intensity map attribute in the mesh attribute data can be determined as the self-illumination map of the target mesh.

[0179] In the case where the first parameter type is a coordinate position type, the map content conversion method is: based on the coordinate information in the mesh attribute data, determining the occluded shadow map of the target mesh.

[0180] Specifically, based on the coordinate information in the mesh attribute data, two sets of UVs can be automatically unfolded for the 3D model to be converted, and an ambient occlusion (AO) map can be generated (this process can be referred to as AO baking), thereby obtaining an occlusion shadow map of the target mesh. Figure 7 (b), 7(b) includes a “UV unfolding” control, an “AO baking” control, and an adjustment parameter control corresponding to the “AO baking”. The user can obtain the occluded shadow map of the target mesh by triggering these controls.

[0181] Based on this, the main color map, metalness map, roughness map, self-illumination map and occlusion shadow map can be determined as the model data to be used for the target mesh. In this embodiment, the map data in the mesh attribute data can be mapped to the corresponding target data dimensions respectively through a preset map conversion method, thereby improving the reliability of the data conversion of the three-dimensional model and further improving the data conversion efficiency of the three-dimensional model.

[0182] It can be understood that when the composite map of the target mesh is not effective, the specific value of the value type in the mesh attribute data can be converted to obtain the main color value, metalness value, roughness value and self-luminous value. The specific implementation process is consistent with the processing method of the map and will not be repeated here.

[0183] For example, the mesh attribute data corresponding to the 3D model to be converted edited in the first system is material data in Vary format, which can be converted into material data in PBR (Physically Based Rendering) format. For a schematic diagram of data conversion from Vary format to PBR format, see Fig. 9 .like Fig. 9 As shown, the material type and material attributes corresponding to the Vary format material data are different from the material type and material attributes corresponding to the Vary format material data and the PBR format material data. Based on this, a first mapping relationship between the Vray material data and the PBR material data in the material type dimension and a second mapping relationship in the material attribute dimension can be predetermined. Thus, the material data in the Vary format can be type converted and attribute converted according to the preset mapping relationship to obtain the material data in the PBR format.

[0184] The technical solution of the embodiment of the present invention is to convert the mesh attribute data corresponding to each mesh in the model data to be converted to obtain the model data to be used in the second system, and then display the material conversion interface in response to the second trigger operation of the target control in the current interface, and then, in response to the trigger operation of the node selection on the material conversion interface, determine the multiple target meshes to be material converted, so that for the multiple target meshes, the mesh attribute data of the target meshes are material converted according to the pre-set material type conversion method and material attribute conversion method to obtain the model data to be used of the target meshes. In this embodiment, through the pre-determined material type conversion method and material attribute conversion method, the data conversion processing of the material type and material attribute of the selected target mesh can be realized efficiently and accurately, thereby improving the adaptability and versatility of the three-dimensional model data.

[0185] Fig.10 A schematic diagram of a model data conversion method provided in an embodiment of the present invention. Based on the above embodiment, after obtaining the model data to be used in the second system, the target three-dimensional model can be reconstructed in the second system according to the model data to be used, and the adjustment operation of the target three-dimensional model can be performed in the second system; in addition, the operating environment of the second system can be simulated in the first system, and a preview adjustment interface can be displayed in the first system to adjust the model data to be used based on the triggering operation of the preview adjustment interface. The specific implementation method can refer to the technical solution of this embodiment. Among them, the technical terms that are the same or corresponding to the above embodiment are not repeated here.

[0186] like Fig.10 As shown, the method specifically comprises the following steps:

[0187] S410: Obtain model data to be processed of the three-dimensional model to be converted edited in the first system.

[0188] The three-dimensional model to be converted is composed of multiple grids, and the model data to be processed includes grid attribute data corresponding to each grid.

[0189] S420: Process the model data to be processed according to preset processing conditions to obtain the model data to be converted of the three-dimensional model to be converted.

[0190] S430: converting the grid attribute data corresponding to each grid in the model data to be converted, to obtain model data to be used in the second system.

[0191] In this embodiment, after obtaining the model data to be used that is suitable for the second system, the model data to be used can be further adjusted. One way is to reconstruct the target three-dimensional model in the second system according to the model data to be used, and perform the adjustment operation on the target three-dimensional model in the second system. The specific implementation process of this method can be referred to S4401-S4403. Another way is to simulate the operating system environment of the second system in the first system, and display the preview adjustment interface in the first system, so as to adjust the model data to be used based on the triggering operation of the preview adjustment interface. The specific implementation process of this method can be referred to S4501-S4502.

[0192] S4401. Reconstruct a target three-dimensional model in the second system based on the model data to be used.

[0193] The target 3D model refers to a 3D model generated by the second system according to the model data to be used. The target 3D model has the same display form as the 3D model to be converted. For example, if the 3D model to be converted is in the form of a toilet, then the target 3D model should also be in the form of a toilet.

[0194] In this embodiment, the model data to be used can be imported into the second system, so that the second system can reconstruct the target three-dimensional model according to the model data to be used.

[0195] S4402: In response to a triggering operation on the target three-dimensional model, determine a mesh to be previewed, and display a preview adjustment interface corresponding to the mesh to be previewed.

[0196] The mesh to be previewed is a mesh to be previewed and adjusted. The preview adjustment interface is an interactive interface with preview and mesh adjustment functions.

[0197] Among them, the preview adjustment interface includes multiple elements to be adjusted, and the elements to be adjusted include at least the current material of the mesh to be previewed, the main color map of the mesh to be previewed, the self-luminous map, the transparency map, the roughness map and the metalness map.

[0198] In this embodiment, after the second system reconstructs the target three-dimensional model, it can display the target three-dimensional model in the current display page. When the user clicks on at least one mesh of the target three-dimensional model, these meshes are the meshes to be previewed. At this time, the preview adjustment page corresponding to the meshes to be previewed can be displayed, so that the user can adaptively adjust the material information, main color information, self-luminous information, transparency information, roughness information and / or metalness information of the mesh to be previewed in the preview adjustment interface.

[0199] For example, the preview adjustment interface diagram is shown in Fig.11 .like Fig.11 As shown in the figure, the current node is "Mesh-889", indicating that the encoding information corresponding to the determined mesh to be previewed is "Mesh-889"; the current material is "YF-buyi-001", indicating that the material corresponding to the mesh to be previewed is YF-buyi-001 material, and the current material of the mesh to be previewed can be adjusted. The preview adjustment interface also includes the elements to be adjusted for adjusting the main color map, self-illumination map, transparency map, roughness map, and metalness map of the mesh to be previewed.

[0200] S4403: In response to a triggering operation on a plurality of elements to be adjusted in the preview adjustment interface, adjust the model data to be used of the grid to be previewed.

[0201] In this embodiment, when the user triggers a control corresponding to an element to be adjusted in the preview adjustment interface, the corresponding element can be adjusted. Fig.11 , the user can trigger the "Material Library" control and select the material they want to adjust from the library. The user can trigger the "Main Color" at the end of the rectangular box below the element to be adjusted. Controls to adjust the main color map. Users can trigger the "self-illumination" at the end of the rectangular box below the element to be adjusted. Controls to adjust the self-illumination map. Users can toggle the "Transparency" at the end of the rectangular box below the element to be adjusted. or The user can adjust the transparency map by toggling the "Roughness" at the end of the rectangle below the element to be adjusted. or The user can adjust the roughness map by toggling the Metalness at the end of the rectangle below the element to be adjusted. or Controls to reduce or increase the intensity of the metalness map.

[0202] S4501. In response to a triggering operation for displaying a preview adjustment interface, display a preview adjustment interface.

[0203] The target mesh is the mesh to be previewed and adjusted. The preview adjustment interface includes multiple elements to be adjusted, which at least include the current material of the mesh to be previewed, the main color map of the mesh to be previewed, the self-illumination map, the transparency map, the roughness map, and the metalness map.

[0204] In this embodiment, on the basis of obtaining the model data to be used, the operating system environment of the second system can also be simulated in the first system. When the user selects certain grids (i.e., target grids) in the first system and triggers the display controls of the preview adjustment interface, the preview adjustment interface can be displayed in the first system, and the material information corresponding to the target grid can be displayed in the preview adjustment interface.

[0205] S4502: In response to a triggering operation on a plurality of elements to be adjusted in the preview adjustment interface, adjust the model data to be used of the target grid.

[0206] In this embodiment, when the user triggers a control corresponding to an element to be adjusted in the preview adjustment interface, the corresponding element can be adjusted to achieve the purpose of adjusting the model data to be used in the target grid. The specific implementation method of this step is consistent with the specific implementation method of S4403, and can also be seen in Fig.11 , I will not go into details here.

[0207] In this embodiment, by setting the model preview adjustment function, the user is allowed to view the effect in the place where the model data to be used is effective before the model data of the three-dimensional model takes effect. If any problems are found, they can be modified in time until they are confirmed to be correct before formally applying them, so as to improve the availability of the model data to be used.

[0208] On the basis of the above embodiments, an image-based lighting method (abbreviated as IBL) can also be used to add lighting effect data to the model data to be used, which can mainly include the following steps: Step 1 is to obtain an environment map (Environment Map) by extracting pixels according to the reflection direction during rendering through the textureCube() function. This is because the idea of ​​IBL is to assume that the objects in the scene are surrounded by a closed cube, so the light directed to the objects in the scene must come from the six faces of this cube. Step 2 is to convert the convolution calculation of the incident light and the material into a dot product on the spherical harmonic function (SHF). This is because in order to reduce the cost of real-time calculation, the convolution calculation of the incident light and the material on the hemisphere is converted into a dot product on the spherical harmonic function basis, thereby reducing the complexity of real-time calculation and improving rendering efficiency. The spherical harmonic function is obtained by Monte Carlo integral pre-baking. Step 3 is to quickly reconstruct the irradiance and apply the lighting effect by using the normal as the index.

[0209] The technical solution of the embodiment of the present invention can reconstruct the target three-dimensional model in the second system according to the model data to be used after obtaining the model data to be used suitable for the second system, and perform adjustment operations on the target three-dimensional model in the second system; in addition, it can also simulate the operating environment of the second system in the first system, and display a preview adjustment interface in the first system, so as to adjust the model data to be used based on the triggering operation of the preview adjustment interface. In this embodiment, by setting the model preview adjustment function, the user can view the effect and modify it in real time at the place where the model data to be used takes effect before the model data of the three-dimensional model takes effect, thereby improving the availability of the model data to be used.

[0210] In the embodiment of the present invention, a model data conversion method is introduced in a specific implementation manner. Fig.12 , mainly including: 3D model preparation step, model data detection step, model data conversion step, and model data preview and export step. The interface display diagram of each step of the model data conversion method can be found in Fig.13 , which is introduced in detail as follows:

[0211] Three-dimensional model preparation steps: the user first opens the first system (the first system has added a target conversion tool that can execute the data conversion method), then opens the target conversion tool and logs in the user account information, and further selects the three-dimensional model to be converted from multiple pre-edited three-dimensional models.

[0212] Model data detection step: The user can trigger the detection operation control of the 3D model to be converted in the data detection interface of the target conversion tool. At this time, the model data to be processed will be detected according to the preset detection conditions, and the target detection results of the model data to be processed will be displayed in the current interface according to the preset format. If the target detection results are all normal detection results, proceed to the next step. If the target detection results are abnormal detection results, the model data to be processed will be processed according to the preset processing conditions until the target detection results are all normal detection results.

[0213] Model data conversion step: The user can determine at least one target grid to be material converted in the material conversion interface of the target conversion tool, and then perform material conversion processing on the grid attribute data of the target grid according to the preset material type conversion method and material attribute conversion method to obtain the model data to be used of the target grid.

[0214] Model data preview and export steps: The user can select the mesh to be previewed in the preview adjustment interface of the target conversion tool or on the reconstructed target 3D model, and adjust and preview the material information of the mesh to be previewed in the preview adjustment interface. After completing the adjustment and preview, the model data to be used in the second system is exported.

[0215] Fig.14 This is a schematic diagram of the structure of a model data conversion device provided by an embodiment of the present invention. The device includes: a model data acquisition module 510, a model data processing module 520 and a data conversion module 530.

[0216] The model data acquisition module 510 is used to acquire the model data to be processed of the three-dimensional model to be converted edited in the first system; wherein the three-dimensional model to be converted is composed of a plurality of grids, and the model data to be processed includes grid attribute data corresponding to each grid;

[0217] The model data processing module 520 is used to process the model data to be processed according to the preset processing conditions to obtain the model data to be converted of the three-dimensional model to be converted;

[0218] The data conversion module 530 is used to convert the grid attribute data corresponding to each grid in the model data to be converted to obtain the model data to be used in the second system.

[0219] On the basis of the above-mentioned device, optionally, the model data acquisition module 510 is specifically used to convert the model data to be used of the three-dimensional model to be converted edited in the first system into the model data to be processed based on the data conversion method integrated in the target conversion tool.

[0220] Based on the above device, optionally, the model data conversion device further includes: a model data processing module; the model data processing module includes:

[0221] A detection result display unit, used to detect the model data to be processed according to a preset detection condition, and obtain a target detection result corresponding to the preset detection condition; wherein the preset detection condition is a detection condition set according to a preset detection dimension;

[0222] The model data processing unit is used to process the to-be-processed model data inconsistent with the preset detection result based on the preset processing conditions when the target detection result is inconsistent with the preset detection result.

[0223] Based on the above device, optionally, the preset detection dimension includes at least one of a normative detection dimension, a grid quantity detection dimension, and a grid center detection dimension;

[0224] Correspondingly, the preset detection condition corresponding to the normative detection dimension includes: whether the length unit in the model data to be processed is a preset length unit; or whether the naming specification of the grid attribute data in the model data to be processed is a preset naming specification;

[0225] The preset detection condition corresponding to the grid quantity detection dimension includes: whether the grid quantity corresponding to the model data to be processed is greater than a preset quantity threshold;

[0226] The preset detection condition corresponding to the grid center detection dimension includes: whether the model center point constituted by the model data to be processed is a preset center point.

[0227] Based on the above-mentioned device, optionally, the preset processing conditions include at least one of the following: adjusting the length unit in the model data to be processed to a preset length unit; determining the center point offset information according to the model center point and the preset center point, and performing offset processing on the model data to be processed based on the center point offset information; filtering the model data to be processed according to the data filtering conditions, wherein the data filtering conditions are conditions determined based on the second system and the first system; updating the naming of the grid attribute data according to the preset naming convention; updating the number of grids of the three-dimensional model to be converted, so as to adjust the model data to be processed based on the updated three-dimensional model to be converted.

[0228] Based on the above device, optionally, the data conversion method includes a material type conversion method and a material attribute conversion method, and the data conversion module 530 includes:

[0229] A target grid determination unit, used to determine at least one target grid from a plurality of grids corresponding to the model data to be converted;

[0230] The data conversion unit is used to convert the mesh attribute data of the at least one target mesh according to a preset material type conversion method and a material attribute conversion method to obtain the model data to be used of the at least one target mesh.

[0231] Based on the above device, the target grid determination unit is specifically used to display the material conversion interface; according to the triggering operation of at least one grid node on the material conversion interface, the at least one target grid is determined.

[0232] On the basis of the above-mentioned device, optionally, the model data determination unit also includes a material type conversion subunit, which is specifically used to determine whether the field content corresponding to the first field of the grid attribute data of the target grid is a preset content, wherein the preset content is used to characterize the presence of a texture identifier in the grid attribute data; if it is the preset content, the material type of the grid attribute data is converted into a translucent material type.

[0233] Based on the above device, optionally, the material type conversion subunit is further used to determine whether the color attribute corresponding to the field content is less than the preset color value if the field content is not the preset content; if it is less than the preset color value, convert the material type of the grid attribute data to the semi-transparent material type; if it is not less than the preset color value, convert the material type in the grid attribute data to the non-transparent material type.

[0234] Based on the above device, optionally, the material attribute conversion method includes at least a parameter type conversion method and a texture content conversion method; wherein the parameter type conversion method is used to convert a first parameter type in the mesh attribute data into a second parameter type, the first parameter type is related to the first system, and the second parameter type is related to the second system; the texture content conversion method is used to convert a composite texture corresponding to the first parameter type into a target texture corresponding to the second parameter type. The model data determination unit also includes a material attribute conversion subunit, which is specifically used to call a plurality of first parameter types associated with the mesh attribute data, and a composite texture corresponding to the first parameter type; according to the texture content conversion method corresponding to the first parameter type, a target texture corresponding to the composite texture is obtained, and, according to the parameter type conversion method corresponding to the first parameter type, a second parameter type corresponding to the first parameter type is obtained.

[0235] Based on the above device, optionally, the first parameter type includes at least one of a color value type, a reflection value type, a glossiness attribute type, a light intensity attribute type, and a coordinate position type, and the second parameter type includes a primary color type corresponding to the color value type, a metalness type corresponding to the reflection value type, a roughness attribute type corresponding to the glossiness attribute type, a self-luminous type corresponding to the light intensity attribute type, and at least one of a shadow attribute corresponding to the coordinate position type.

[0236] Based on the above device, optionally, the sticker content conversion method includes at least one of the following:

[0237] In the case where the first parameter type is a color value type, the texture content conversion method is: determining a main color texture of the target grid based on a reflection value and a color value of the texture in the grid attribute data;

[0238] In the case where the first parameter type is a reflection value type, the texture content conversion method is: determining the metalness map of the target mesh based on the reflection value and the metalness map attribute in the mesh attribute data;

[0239] In the case where the first parameter type is a glossiness attribute type, the map content conversion method is: determining a roughness map of the target mesh based on a glossiness map attribute in the mesh attribute data;

[0240] In the case where the first parameter type is a light intensity attribute, the texture content conversion method is: determining a self-luminous texture of the target mesh based on the light intensity texture attribute in the mesh attribute data;

[0241] In the case where the first parameter type is a coordinate position type, the map content conversion method is: determining the occluded shadow map of the target mesh based on the coordinate information in the mesh attribute data.

[0242] On the basis of the above-mentioned device, optionally, the model data conversion device also includes: a model data adjustment module; a model data adjustment module, used to reconstruct a target three-dimensional model in a second system based on the model data to be used; in response to a trigger operation on the target three-dimensional model, determine a mesh to be previewed, and display a preview adjustment interface corresponding to the mesh to be previewed; wherein the preview adjustment interface includes a plurality of elements to be adjusted, and the elements to be adjusted include at least the current material of the mesh to be previewed, the main color map of the mesh to be previewed, the self-luminous map, the transparency map, the roughness map and the metalness map; in response to a trigger operation on a plurality of elements to be adjusted in the preview adjustment interface, adjust the model data to be used of the mesh to be previewed.

[0243] On the basis of the above-mentioned device, optionally, the model data adjustment module is also used to display a preview adjustment interface in response to a trigger operation for displaying the preview adjustment interface; wherein the preview adjustment interface includes multiple elements to be adjusted, and the elements to be adjusted include at least the current material of the mesh to be previewed, the main color map of the mesh to be previewed, the self-luminous map, the transparency map, the roughness map and the metalness map; in response to the trigger operation on the multiple elements to be adjusted in the preview adjustment interface, the model data to be used of the target mesh is adjusted.

[0244] The technical solution of the embodiment of the present invention is to obtain the model data to be processed of the three-dimensional model to be converted edited in the first system, wherein the three-dimensional model to be converted is composed of multiple grids, and the model data to be processed includes grid attribute data corresponding to each grid, and then, the model data to be processed is processed according to preset processing conditions to obtain the model data to be converted of the three-dimensional model to be converted, thereby, the grid attribute data corresponding to each grid in the model data to be converted is converted and processed to obtain the model data to be used suitable for the second system. The technical solution of this embodiment processes the three-dimensional model data edited by the first system into data adapted to the second system through preset processing conditions and material conversion methods, realizes the intercommunication conversion of three-dimensional model data across operating systems, and improves the reuse rate of three-dimensional model data.

[0245] The model data conversion device provided in the embodiment of the present invention can execute the model data conversion method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0246] It is worth noting that the various units and modules included in the above system are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present invention.

[0247] Fig.15 The present invention is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. Fig.15 A block diagram of an exemplary electronic device 60 suitable for implementing exemplary embodiments of the present invention is shown. Fig.15 The electronic device 60 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0248] like Fig.15 As shown, the electronic device 60 is in the form of a general computing device. The components of the electronic device 60 may include but are not limited to: one or more processors or processing units 601, a system memory 602, and a bus 603 connecting different system components (including the system memory 602 and the processing unit 601).

[0249] Bus 603 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnect (PCI) bus.

[0250] The electronic device 60 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 60, including volatile and non-volatile media, removable and non-removable media.

[0251] The system memory 602 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 604 and / or cache memory 605. The electronic device 60 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 606 may be used to read and write non-removable, non-volatile magnetic media ( Fig.15 not shown, usually called a "hard drive"). Although Fig.15 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 603 via one or more data medium interfaces. Memory 602 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of various embodiments of the present invention.

[0252] A program / utility 608 having a set (at least one) of program modules 607 may be stored, for example, in the memory 602, such program modules 607 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 607 generally perform the functions and / or methods of the embodiments described herein.

[0253] The electronic device 60 may also communicate with one or more external devices 609 (e.g., keyboards, pointing devices, displays 610, etc.), may communicate with one or more devices that enable a user to interact with the electronic device 60, and / or may communicate with any device that enables the electronic device 60 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface 611. Furthermore, the electronic device 60 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 612. As shown, the network adapter 612 communicates with other modules of the electronic device 60 via a bus 603. It should be understood that although Fig.15 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 60, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0254] The processing unit 601 executes various functional applications and page processing by running the programs stored in the system memory 602, such as implementing the model data conversion method provided in the embodiment of the present invention.

[0255] An embodiment of the present invention further provides a storage medium containing computer executable instructions, which are used to perform a model data conversion method when executed by a computer processor. The method includes:

[0256] Acquire the model data to be processed of the three-dimensional model to be converted edited in the first system; wherein the three-dimensional model to be converted is composed of a plurality of grids, and the model data to be processed includes grid attribute data corresponding to each grid;

[0257] Processing the model data to be processed according to preset processing conditions to obtain the model data to be converted of the three-dimensional model to be converted;

[0258] The grid attribute data corresponding to each grid in the model data to be converted is converted to obtain model data to be used in the second system.

[0259] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0260] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0261] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0262] Computer program code for performing the operation of embodiments of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0263] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A model data conversion method, characterized in that: include: Acquire the model data to be processed of the three-dimensional model to be converted edited in the first system; wherein the three-dimensional model to be converted is composed of a plurality of grids, and the model data to be processed includes grid attribute data corresponding to each grid; Processing the model data to be processed according to preset processing conditions to obtain the model data to be converted of the three-dimensional model to be converted; The grid attribute data corresponding to each grid in the model data to be converted is converted to obtain model data to be used in the second system.

2. The method according to claim 1, characterized in that The step of obtaining the model data to be processed of the three-dimensional model to be converted edited in the first system includes: Based on the data conversion method integrated in the target conversion tool, the model data to be used of the three-dimensional model to be converted edited in the first system is converted into the model data to be processed.

3. The method according to claim 1, characterized in that Before the to-be-processed model data is processed according to the preset processing conditions to obtain the to-be-converted model data of the to-be-converted three-dimensional model, the method further includes: The model data to be processed is tested according to a preset test condition to obtain a target detection result corresponding to the preset test condition; wherein the preset test condition is a test condition set according to a preset test dimension; When the target detection result is inconsistent with the preset detection result, the to-be-processed model data inconsistent with the preset detection result is processed based on the preset processing condition.

4. The method according to claim 3, characterized in that The preset detection dimension includes at least one of a normative detection dimension, a grid quantity detection dimension, and a grid center detection dimension; Correspondingly, the preset detection condition corresponding to the normative detection dimension includes: whether the length unit in the model data to be processed is a preset length unit; or whether the naming specification of the grid attribute data in the model data to be processed is a preset naming specification; The preset detection condition corresponding to the grid quantity detection dimension includes: whether the grid quantity corresponding to the model data to be processed is greater than a preset quantity threshold; The preset detection condition corresponding to the grid center detection dimension includes: whether the model center point constituted by the model data to be processed is a preset center point.

5. The method according to claim 3, characterized in that: The preset processing conditions include at least one of the following: Adjusting the length unit in the model data to be processed to the preset length unit; Determine center point offset information according to the model center point and the preset center point, so as to perform offset processing on the model data to be processed based on the center point offset information; Screening and processing the to-be-processed model data according to a data screening condition, wherein the data screening condition is a condition determined according to the second system and the first system; updating the naming of the grid attribute data according to the preset naming specification; The number of grids of the three-dimensional model to be converted is updated to adjust the model data to be processed based on the updated three-dimensional model to be converted.

6. The method according to claim 2, characterized in that The data conversion method includes a material type conversion method and a material attribute conversion method, wherein the mesh attribute data corresponding to each mesh in the model data to be converted is converted to obtain the model data to be used in the second system, including: Determine at least one target grid from a plurality of grids corresponding to the model data to be converted; The mesh attribute data of the at least one target mesh is converted according to a preset material type conversion method and a material attribute conversion method to obtain the model data to be used of the at least one target mesh.

7. The method according to claim 6, characterized in that The step of determining at least one target grid from a plurality of grids corresponding to the model data to be converted comprises: Display the material conversion interface; The at least one target mesh is determined according to a triggering operation on at least one mesh node on the material conversion interface.

8. The method according to claim 6, characterized in that The material type conversion method comprises: For the grid attribute data of the target grid, determining whether the field content corresponding to the first field of the grid attribute data is a preset content, wherein the preset content is used to indicate that a map identifier exists in the grid attribute data; If it is the preset content, the material type of the grid attribute data is converted into a translucent material type.

9. The method according to claim 8, characterized in that The method further comprises: If the field content is not the preset content, determining whether the color attribute corresponding to the field content is less than the preset color value; If it is less than the preset color value, converting the material type of the grid attribute data into the translucent material type; If it is not less than the preset color value, the material type in the grid attribute data is converted to a non-transparent material type.

10. The method according to claim 6, characterized in that The material attribute conversion method at least includes a parameter type conversion method and a texture content conversion method; Among them, the parameter type conversion method is used to convert the first parameter type in the grid attribute data into a second parameter type, the first parameter type is related to the first system, and the second parameter type is related to the second system; the map content conversion method is used to convert the composite map corresponding to the first parameter type into a target map corresponding to the second parameter type.

11. The method according to claim 10, characterized in that Processing mesh attribute data based on the parameter type conversion method and the texture content conversion method includes: Retrieving a plurality of first parameter types associated with the grid attribute data, and a composite map corresponding to the first parameter types; According to the texture content conversion method corresponding to the first parameter type, a target texture corresponding to the composite texture is obtained, and according to the parameter type conversion method corresponding to the first parameter type, a second parameter type corresponding to the first parameter type is obtained.

12. The method according to claim 11, characterized in that The first parameter type includes at least one of a color value type, a reflection value type, a glossiness attribute type, a light intensity attribute type, and a coordinate position type; the second parameter type includes at least one of a primary color type corresponding to the color value type, a metalness type corresponding to the reflection value type, a roughness attribute type corresponding to the glossiness attribute type, a self-illumination type corresponding to the light intensity attribute type, and a shadow attribute corresponding to the coordinate position type.

13. The method according to claim 12, characterized in that The method for converting the image content includes at least one of the following: In the case where the first parameter type is a color value type, the texture content conversion method is: determining a main color texture of the target grid based on a reflection value and a color value of the texture in the grid attribute data; In the case where the first parameter type is a reflection value type, the texture content conversion method is: determining the metalness map of the target mesh based on the reflection value and the metalness map attribute in the mesh attribute data; In the case where the first parameter type is a glossiness attribute type, the map content conversion method is: determining a roughness map of the target mesh based on a glossiness map attribute in the mesh attribute data; In the case where the first parameter type is a light intensity attribute, the texture content conversion method is: determining a self-luminous texture of the target mesh based on the light intensity texture attribute in the mesh attribute data; In the case where the first parameter type is a coordinate position type, the map content conversion method is: determining the occluded shadow map of the target mesh based on the coordinate information in the mesh attribute data.

14. The method according to claim 1, characterized in that After obtaining the to-be-used model data applicable to the second system, the method further includes: reconstructing a target three-dimensional model in the second system based on the model data to be used; In response to a trigger operation on the target three-dimensional model, a mesh to be previewed is determined, and a preview adjustment interface corresponding to the mesh to be previewed is displayed; wherein the preview adjustment interface includes a plurality of elements to be adjusted, and the elements to be adjusted include at least the current material of the mesh to be previewed, the main color map of the mesh to be previewed, the self-illumination map, the transparency map, the roughness map, and the metalness map; In response to a triggering operation on the plurality of elements to be adjusted in the preview adjustment interface, the model data to be used of the grid to be previewed is adjusted.

15. The method according to claim 1, characterized in that After obtaining the model data to be used of the target grid, the method further includes: In response to a triggering operation for displaying a preview adjustment interface, displaying a preview adjustment interface; The preview adjustment interface includes a plurality of elements to be adjusted, and the elements to be adjusted include at least the current material of the mesh to be previewed, the main color map, the self-illumination map, the transparency map, the roughness map, and the metalness map of the mesh to be previewed; In response to a triggering operation on the multiple elements to be adjusted in the preview adjustment interface, the model data to be used of the target grid is adjusted.

16. A model data conversion device, characterized in that: include: A model data acquisition module, used to acquire the model data to be processed of the three-dimensional model to be converted edited in the first system; wherein the three-dimensional model to be converted is composed of a plurality of grids, and the model data to be processed includes grid attribute data corresponding to each grid; A model data processing module, used for processing the model data to be processed according to preset processing conditions to obtain the model data to be converted of the three-dimensional model to be converted; The data conversion module is used to convert the grid attribute data corresponding to each grid in the model data to be converted to obtain the model data to be used in the second system.

17. A server, characterized in that: The server includes: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the model data conversion method as described in any one of claims 1-15.

18. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the model data conversion method as described in any one of claims 1 to 15 is implemented.

19. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the model data conversion method as described in any one of claims 1 to 15.