Interactive three-dimensional model material switching method and system based on data driving
By using a data-driven, interactive 3D model material switching method, material data is separated from program logic, solving the problems of high maintenance costs and inconvenient management under the hard-coded method, and realizing simplified management of material options and efficient team collaboration.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHANGHAI BUILDING DECORATION ENG GRP CO LTD
- Filing Date
- 2025-12-24
- Publication Date
- 2026-05-05
AI Technical Summary
The existing 3D model material switching function suffers from high maintenance costs, error-proneness, and inconvenient management due to its hard-coded approach, and is difficult to find and manage when there are a large number of material options.
A data-driven, interactive 3D model material switching method is adopted, which completely separates material data from program logic. Material options are managed by editing data tables, and material switching is performed using data structure definition modules, data asset storage modules, and 3D entity logic modules, simplifying the material management process.
It improved team collaboration efficiency, simplified the process of finding and maintaining material options, reduced maintenance costs, and improved the convenience and efficiency of management.
Smart Images

Figure CN121982246A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of decoration construction design technology, and in particular to a data-driven interactive three-dimensional model material switching method and system. Background Technology
[0002] In the design and construction of decoration projects, it is often necessary to match finishing materials to make a final decision on the overall visual aesthetics. Traditionally, relying on renderings is time-consuming, inefficient, and costly. Using Unreal Engine for dynamic, real-time material switching and matching solves the long-cycle problem of offline rendering. What you see is what you get, eliminating the pain point of waiting for rendering to finish before viewing, making it the current mainstream solution. However, this function, which allows users to dynamically change the materials of 3D models, still has the following drawbacks:
[0003] Hard-coding: Developers directly hard-code material asset references in the object's program code or Blueprint scripts, using arrays, lists, or enumerations. When adding, deleting, or modifying material options, the source code or scripts must be modified and recompiled, resulting in a cumbersome process, high maintenance costs, and a high risk of errors. Furthermore, when the number of material options is large, the hard-coded list becomes extremely bloated, making it difficult to find and manage. Additionally, loading and managing these hard-coded asset references at runtime can be inefficient. Summary of the Invention
[0004] In view of this, the purpose of this invention is to provide a data-driven interactive 3D model material switching method and system that completely separates material data from program logic. All material options can be managed by editing intuitive data tables, the search process is simple, maintenance and management are convenient, and there is no need to deal with complex code or blueprints, which greatly improves team collaboration efficiency.
[0005] This invention provides a data-driven interactive 3D model material switching system, comprising:
[0006] The data structure definition module is used to create custom data structures, wherein the data structure includes at least a material asset reference field and an association information field;
[0007] A data asset storage module is used to store the data structure to form several material options, wherein each material option corresponds to an identifier;
[0008] The 3D solid logic module is used to receive input information, reference the corresponding material in the material options according to the input information, and render the target using the referenced material.
[0009] In one embodiment, the three-dimensional entity logic module includes:
[0010] The reference submodule is used to call the corresponding material in the material options;
[0011] The material switching execution interface submodule is used to receive the input information, find the material corresponding to the material option according to the input information, call the found material through the reference submodule, and apply the called material to the target rendering submodule.
[0012] The target rendering submodule is used to perform rendering operations on the target.
[0013] In one embodiment, the data asset storage module includes:
[0014] The table construction submodule is used to create a data table based on the data structure, wherein each row in the data table corresponds to an independent material option;
[0015] The identifier is assigned to the submodule to assign a corresponding identifier to each material option.
[0016] In one embodiment, the data-driven interactive 3D model material switching system further includes:
[0017] The interaction module provides corresponding operation buttons and information display.
[0018] This invention also provides a data-driven interactive 3D model material switching method, implemented using the aforementioned data-driven interactive 3D model material switching system, comprising the following steps:
[0019] Create a custom data structure, wherein the data structure contains at least a material asset reference field and an association information field;
[0020] The data structure is stored to form a number of material options, wherein each material option corresponds to an identifier;
[0021] Receive input information, reference the corresponding material from the material options based on the input information, and render the target using the referenced material.
[0022] The present invention also provides a computer-readable storage medium having a computer program stored thereon, which performs the methods described above when executed by a processor.
[0023] The data-driven interactive 3D model material switching method and system provided by this invention completely separates material data from program logic. All material options can be managed by editing intuitive data tables. The search process is simple, maintenance and management are convenient, and there is no need to deal with complex code or blueprints, which greatly improves team collaboration efficiency. Attached Figure Description
[0024] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0025] Figure 1 The system block diagram of the data-driven interactive 3D model material switching system provided by the present invention. Detailed Implementation
[0026] The specific embodiments of the present invention will now be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are merely some, not all, of the embodiments of the present invention. Based on the description of the present invention, all other embodiments obtained by those skilled in the art without inventive effort are within the scope of protection of the present invention.
[0027] In the description of this invention, unless otherwise explicitly specified and limited, the terms "set," "install," "connect," etc., should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium. Those skilled in the art can understand the specific meaning of the above terms according to the specific circumstances.
[0028] The terms “upper,” “lower,” “left,” “right,” “front,” “back,” “top,” “bottom,” “inner,” and “outer,” etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings, or the orientation or positional relationship commonly used when the product of the invention is in use. They are only for the convenience of description and simplification, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the present invention.
[0029] The terms “first,” “second,” “third,” etc., are used merely to distinguish elements with similar properties, not to indicate or imply relative importance or a specific order.
[0030] The terms “include,” “comprising,” or any other variation thereof are intended to cover non-exclusive inclusion, which includes not only the elements listed but also other elements not expressly listed.
[0031] Example 1
[0032] Please see Figure 1The present invention provides a data-driven interactive 3D model material switching system, comprising:
[0033] Data structure definition module 1 is used to create custom data structures, wherein the data structure contains at least one material asset reference field and one associated information field.
[0034] Understandably, a structure named S_MaterialData can be created in the UI. This structure contains: a Material interface type variable Material, used to store the material asset, i.e., the material asset reference field; and an associated information field, which can include a 2D texture type variable Thumbnail and a text type variable DisplayName. The 2D texture type variable Thumbnail is used to store UI thumbnails, allowing users to easily view the preview image corresponding to the material asset reference field; and the text type variable DisplayName is used to store the display name, binding the material interface type and associated information field.
[0035] Data asset storage module 2 is used to store data structures to form several material options, where each material option corresponds to an identifier.
[0036] It is understood that the aforementioned data asset storage module 2 may further include:
[0037] The table construction submodule is used to create data tables based on data structures, where each row in the data table corresponds to an independent material option;
[0038] The identifier is assigned to the submodule to assign a corresponding identifier to each material option.
[0039] Understandably, based on the S MaterialData structure created above, a data table named DT_Materials can be created in the UE. Multiple rows of data can be added to this table, each representing a material option. For example, the row with the identifier (Row Name) Walnut_Wood has a Material field pointing to the walnut wood material, a Thumbnail field pointing to the walnut wood preview image, and a DisplayName of "Walnut Wood". Artists or designers can perform operations such as adding, deleting, modifying, and querying on this table independently of the program code.
[0040] The 3D solid logic module 3 is used to receive input information, reference the corresponding material in the material options according to the input information, and render the target using the referenced material.
[0041] It is understood that the aforementioned three-dimensional entity logic module 3 may further include:
[0042] Reference submodules are used to call the corresponding materials in the material options.
[0043] It is understandable that the referenced submodule can call the corresponding material in the data asset storage module based on the found material, and will only call the corresponding material.
[0044] The Material Switching Execution Interface submodule is used to receive input information, find the material corresponding to the material option based on the input information, call the found material through the Reference submodule, and apply the called material to the target rendering submodule.
[0045] The target rendering submodule is used to perform rendering operations on the target.
[0046] Understandably, an Actor Blueprint can be created in UE and named BP_InteractiveMesh. This Actor Blueprint contains a static mesh component TargetMesh and an editable variable of type DataTable (MaterialDataTable). A function SwitchMaterial(RowName) is created within this Actor Blueprint. Its logic is as follows: using the Get Data Table Row node, indexed by the input RowName (i.e., the identifier), it searches for data in the MaterialDataTable. If found, it retrieves the Material variable from the returned S_MaterialData structure and calls the SetMaterial function of TargetMesh to complete the material application.
[0047] This entity also listens for its own OnClicked event. When the event is triggered, the UI generation and interaction module creation process is executed.
[0048] In the UI, the interactive module is represented by a UMG control blueprint, WBP_MaterialPicker. When BP_InteractiveMesh is clicked, it creates an instance of WBP_MaterialPicker and passes itself and the MaterialDataTable variable to that instance.
[0049] After receiving data, WBP_MaterialPicker executes its core function, PopulateButtons:
[0050] Call the Get Data Table Row Names node to retrieve an array of all identifiers from the MaterialDataTable;
[0051] Iterate through this array, creating a separate button control instance, WBP_MaterialButton, for each RowName in the loop.
[0052] When creating the WBP_MaterialButton, pass it a reference to the current RowName and BP_InteractiveMesh.
[0053] At the same time, use Get Data Table Row again to retrieve the complete data corresponding to the RowName, and use Thumbnail and DisplayName to set the appearance of WBP_MaterialButton.
[0054] Add all the created buttons to the UI layout container.
[0055] The WBP_MaterialButton control listens for its own OnClicked event. When clicked, it calls the SwitchMaterial function on its stored BP_InteractiveMesh reference, passing its stored RowName as a parameter, thus triggering the material change process and completing the loop.
[0056] Example 2
[0057] This embodiment provides a data-driven interactive 3D model material switching method, implemented using the aforementioned data-driven interactive 3D model material switching system, and includes the following steps:
[0058] Create a custom data structure, which must contain at least one material asset reference field and one association information field;
[0059] The data structure is stored to form several material options, where each material option corresponds to an identifier;
[0060] Receive input information, reference the corresponding material from the material options based on the input information, and render the target using the referenced material.
[0061] It is understood that the real-time logic of this method can be described with reference to the description in Embodiment 1 above.
[0062] Example 3
[0063] This embodiment provides a computer-readable storage medium, a method, and a computer-readable storage medium having a computer program stored thereon, which is executed by a processor according to the above method.
[0064] As described above, the data-driven interactive 3D model material switching method and system provided by this invention completely separates material data from program logic. All material options can be managed by editing intuitive data tables. The search process is simple, maintenance and management are convenient, and there is no need to deal with complex code or blueprints, which greatly improves team collaboration efficiency.
[0065] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the appended claims.
Claims
1. A data-driven interactive 3D model material switching system, characterized in that, include: The data structure definition module is used to create custom data structures, wherein the data structure includes at least a material asset reference field and an association information field; A data asset storage module is used to store the data structure to form several material options, wherein each material option corresponds to an identifier; The 3D solid logic module is used to receive input information, reference the corresponding material in the material options according to the input information, and render the target using the referenced material.
2. The data-driven interactive 3D model material switching system as described in claim 1, characterized in that, The three-dimensional entity logic module includes: The reference submodule is used to call the corresponding material in the material options; The material switching execution interface submodule is used to receive the input information, find the material corresponding to the material option according to the input information, call the found material through the reference submodule, and apply the called material to the target rendering submodule. The target rendering submodule is used to perform rendering operations on the target.
3. The data-driven interactive 3D model material switching system as described in claim 1, characterized in that, The data asset storage module includes: The table construction submodule is used to create a data table based on the data structure, wherein each row in the data table corresponds to an independent material option; The identifier is assigned to the submodule to assign a corresponding identifier to each material option.
4. The data-driven interactive 3D model material switching system as described in claim 1, characterized in that, The data-driven interactive 3D model material switching system also includes: The interaction module provides corresponding operation buttons and information display.
5. A data-driven interactive 3D model material switching method, characterized in that, The implementation using the data-driven interactive 3D model material switching system of claims 1 to 4 includes the following steps: Create a custom data structure, wherein the data structure contains at least a material asset reference field and an association information field; The data structure is stored to form a number of material options, wherein each material option corresponds to an identifier; Receive input information, reference the corresponding material from the material options based on the input information, and render the target using the referenced material.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that, The program executes the method of claim 5 when it is executed by the processor.