Automatic rendering method and device for 3D lightweight model

By obtaining the material information and surface treatment information in the parameter table of the 3D lightweight model, and using the preset color matching library for automatic rendering, the problem of not being able to automatically render the 3D lightweight model in the existing technology is solved, and efficient and realistic model rendering effect.

CN119444951APending Publication Date: 2025-02-14粤港澳大湾区(广东)国创中心

Patent Information

Application Number
CN202411429268.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-14
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

In the prior art, it is impossible to automatically render the 3D lightweight model, resulting in monotonous color of the model, making it difficult to distinguish the contact surfaces and characteristics of different parts, affecting the designer's appearance cognition.

Method used

By obtaining the material information and surface treatment information in the parameter table of the 3D lightweight model, and using the preset color matching library to match the corresponding RGB information, automatic rendering of model materials and surface treatment attributes is achieved.

Benefits of technology

It realizes automatic rendering of 3D lightweight models, reduces labor costs, improves rendering efficiency, and enhances the appearance authenticity and visualization of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119444951A_ABST
    Figure CN119444951A_ABST
Patent Text Reader

Abstract

The invention provides an automatic rendering method and device for a 3D lightweight model, and the method comprises the steps: obtaining a parameter table corresponding to an input 3D lightweight model, and obtaining the material information and surface processing information in the parameter table; outputting a first identification result based on the material information and the surface processing information; matching corresponding RGB information in a preset color matching library based on the first identification result, and outputting a second identification result according to a matching result of the RGB information; and performing automatic rendering of the material and the surface processing attribute on the 3D lightweight model based on the second identification result, thereby realizing automatic rendering of the 3D lightweight model, reducing the labor cost and improving the rendering efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of model rendering, and in particular relates to an automatic rendering method and device for a 3D lightweight model. Background Art

[0002] With the continuous development of the non-standard mechanical design industry, the selection and application of purchased parts in the manufacturing industry has become more and more extensive. At present, the mainstream method of selecting purchased parts in China is to search for suitable component parameter information and 3D model files on some industrial software platforms such as CADENAS, 3DSource, and Big Engineer. Current mainstream industrial software such as CADENAS and 3DSource have the function of lightweight display of component models. The lightweight display of 3D models is an entity that only retains the external structural features of the model. The lightweight display function of 3D models can directly browse the model without downloading the model file and opening it through other modeling and design software. Compared with product annotation drawings and physical product drawings, it can more intuitively reflect the structural characteristics of components, which is convenient for designers to quickly select.

[0003] The lightweight functions of current industrial software can realize functions such as dimension measurement, cross-section viewing, and exploded views, which is convenient for users to explore the model structure in depth. However, the lightweight appearance color display still has the following defects: 1. The color of the lightweight display of parts on the current industrial software platform is based on the color when the manufacturer builds the model. Through practical investigation, the color of most industrial purchased parts models in CADENAS is gray. The monotonous color often makes it impossible to simply distinguish the contact surfaces and various features between different parts of the component, which is not conducive to users having a more realistic appearance perception of the model; 2. The lightweight display of some industrial software has a one-click coloring function, which can randomly attach several different general colors to different parts of the component, but the random coloring effect is difficult to guarantee most of the time, and the renderings still need to be re-rendered by engineers. Summary of the invention

[0004] In order to overcome the deficiencies of the prior art, the present invention provides a method and device for automatically rendering a 3D lightweight model, so as to solve the problem that the prior art cannot automatically render a 3D lightweight model.

[0005] One embodiment of the present invention provides a method for automatically rendering a 3D lightweight model, comprising the following steps:

[0006] Obtain a parameter table corresponding to the input 3D lightweight model, and obtain material information and surface treatment information in the parameter table;

[0007] outputting a first recognition result based on the material information and the surface treatment information;

[0008] Matching corresponding RGB information in a preset color matching library based on the first recognition result, and outputting a second recognition result according to the matching result of the RGB information;

[0009] The material and surface treatment properties of the 3D lightweight model are automatically rendered based on the second recognition result.

[0010] In this embodiment, the present invention only recognizes the material information and surface treatment information in the parameter table corresponding to the 3D lightweight model, and matches the RGB information corresponding to the material information and the surface treatment information through a preset color matching library, thereby realizing automatic rendering of the material or surface treatment properties of the 3D lightweight model, reducing labor costs and improving the rendering efficiency of the 3D lightweight model.

[0011] In one embodiment, the obtaining of the material information and the surface treatment information in the parameter table is specifically any one of the following situations:

[0012] The parameter table includes the material information but does not include the surface treatment information;

[0013] The parameter table includes the material information and the surface treatment information;

[0014] The parameter table does not include the material information, but includes the surface treatment information;

[0015] The parameter table does not include the material information and does not include the surface treatment information.

[0016] In one embodiment, outputting a first recognition result based on the material information and the surface treatment information includes:

[0017] When the parameter table includes the material information but does not include the surface treatment information, the first recognition result is True and the material information;

[0018] When the parameter table includes the material information and the surface treatment information, the first recognition result is True and the surface treatment information;

[0019] When the parameter table does not include the material information but includes the surface treatment information, the first recognition result is True and the surface treatment information;

[0020] When the parameter table does not include the material information and does not include the surface treatment information, the first recognition result is False.

[0021] In one embodiment, matching corresponding RGB information in a preset color matching library based on the first recognition result includes:

[0022] When the first recognition result is True and the material information is obtained, matching the RGB information corresponding to the material information in the preset color matching library;

[0023] When the first recognition result is True and the surface treatment information is present, matching RGB information corresponding to the surface treatment information in the preset color matching library;

[0024] When the first recognition result is False, the RGB information is not matched in the preset color matching library.

[0025] In one embodiment, outputting a second recognition result according to the matching result of the RGB information includes:

[0026] When the RGB information corresponding to the material information is matched, the second recognition result is True and the RGB information corresponding to the material information;

[0027] When the RGB information corresponding to the surface treatment information is matched, the second recognition result is True and the RGB information corresponding to the surface treatment information;

[0028] When the RGB information is not matched, the second recognition result is False.

[0029] In one embodiment, automatically rendering the material and surface treatment properties of the 3D lightweight model based on the second recognition result includes:

[0030] When the second recognition result is True and the RGB information corresponding to the material information is selected, from the preset color library, a color corresponding to the RGB information corresponding to the material information is automatically rendered to the material of the 3D lightweight model;

[0031] When the second recognition result is True and the RGB information corresponding to the surface treatment information is present, a color corresponding to the RGB information corresponding to the surface treatment information is selected from the preset color library to automatically render the surface treatment properties of the 3D lightweight model;

[0032] When the second recognition result is False, the 3D lightweight model is not rendered.

[0033] In one embodiment, the method further comprises:

[0034] An association table is established between the material information and the surface treatment information and the RGB information in the preset color matching library, so that the RGB information corresponding to the material information or the surface treatment information is matched from the preset color matching library through the association table.

[0035] One embodiment of the present invention further provides an automatic rendering device for a 3D lightweight model, comprising:

[0036] A parameter table acquisition module is used to acquire a parameter table corresponding to an input 3D lightweight model, and to acquire material information and surface treatment information in the parameter table;

[0037] A first recognition module, configured to output a first recognition result based on the material information and the surface treatment information;

[0038] A second recognition module, used to match the corresponding RGB information in a preset color matching library based on the first recognition result, and output a second recognition result according to the matching result of the RGB information;

[0039] An automatic rendering module is used to automatically render the material and surface treatment properties of the 3D lightweight model based on the second recognition result.

[0040] In this embodiment, the advantages and beneficial effects of the automatic rendering method of the 3D lightweight model have been described above and will not be repeated here. Moreover, since the automatic rendering device of the 3D lightweight model uses the automatic rendering method of the 3D lightweight model, the automatic rendering device of the 3D lightweight model also has the same advantages and beneficial effects.

[0041] One of the embodiments of the present invention further provides a readable storage medium, in which a computer program is stored. The computer program includes program instructions. When the program instructions are executed by a processor of an electronic device, the processor executes the steps of the automatic rendering method of a 3D lightweight model as described above.

[0042] One of the embodiments of the present invention also provides an electronic device, including: a processor and a memory, the memory is used to store computer program code, the computer program code includes computer instructions, when the processor executes the computer instructions, the electronic device performs the steps of the automatic rendering method of the 3D lightweight model as described in any one of the above. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.

[0044] Figure 1 A schematic diagram of a flow chart of a method for automatically rendering a 3D lightweight model provided by one embodiment of the present invention;

[0045] Figure 2 Another schematic diagram of a flow chart of a method for automatically rendering a 3D lightweight model provided by one embodiment of the present invention;

[0046] Figure 3 A schematic diagram of outputting a first recognition result provided by one embodiment of the present invention;

[0047] Figure 4 A schematic diagram of outputting a second recognition result provided by one embodiment of the present invention;

[0048] Figure 5 A logical schematic diagram of model rendering according to a second recognition result provided in one embodiment of the present invention;

[0049] Figure 6 A schematic diagram of the working principle of an electronic device provided by one embodiment of the present invention. DETAILED DESCRIPTION

[0050] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0051] It should be noted that if the embodiments of the present invention involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components in a certain specific posture. If the specific posture changes, the directional indication will also change accordingly.

[0052] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features limited to "first" and "second" may explicitly or implicitly include at least one of the features. In addition, if "and / or" or "and / or" appears in the full text, its meaning includes three parallel solutions. Taking "A and / or B" as an example, it includes solution A, solution B, or solutions that satisfy both A and B. In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary technicians in this field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0053] See also Figure 1-Figure 6 One embodiment of the present invention provides a method for automatically rendering a 3D lightweight model, comprising the following steps:

[0054] S100: Obtain a parameter table corresponding to an input 3D lightweight model, and obtain material information and surface treatment information in the parameter table.

[0055] In this embodiment, the 3D lightweight model can be uploaded by the user in real time, or it can be uploaded in batches and input at a scheduled time. When the 3D lightweight model is input, a parameter table of the 3D lightweight model is also carried, and the parameter table includes material information and surface treatment information.

[0056] In one embodiment, the obtaining of the material information and the surface treatment information in the parameter table is specifically any one of the following situations:

[0057] The parameter table includes the material information but does not include the surface treatment information;

[0058] The parameter table includes the material information and the surface treatment information;

[0059] The parameter table does not include the material information, but includes the surface treatment information;

[0060] The parameter table does not include the material information and does not include the surface treatment information.

[0061] In this embodiment, if Figure 2 and Figure 3As shown, the parameter table carried by the 3D lightweight model may contain both material information and surface treatment information, or may not contain both material information and surface information. Obviously, only one of the material information and surface information may exist, which is related to the specific situation of the 3D lightweight model.

[0062] S200: output a first recognition result based on the material information and the surface treatment information.

[0063] In this embodiment, the corresponding first recognition result is output according to whether the material information and the surface treatment information exist, such as Figure 2 As shown, the present invention can be implemented by a system for automatically rendering a 3D lightweight model based on component material and surface treatment properties, and this step can be implemented by a component material and surface treatment identification module based on a parameter table to which the model belongs.

[0064] In one embodiment, outputting a first recognition result based on the material information and the surface treatment information includes:

[0065] When the parameter table includes the material information but does not include the surface treatment information, the first recognition result is True and the material information;

[0066] When the parameter table includes the material information and the surface treatment information, the first recognition result is True and the surface treatment information;

[0067] When the parameter table does not include the material information but includes the surface treatment information, the first recognition result is True and the surface treatment information;

[0068] When the parameter table does not include the material information and does not include the surface treatment information, the first recognition result is False.

[0069] In this embodiment, Figure 2 and 3 As shown, the first recognition result consists of two parts. The first part is True or False, and the second part is material information or surface treatment information. When both the material information and the surface treatment information in the parameter table do not exist, False is output, otherwise True is output. Correspondingly, when False is output, the second part does not exist. When True is output, material information is output only when material information exists in the parameter table but surface treatment information does not exist. In the other two cases, surface treatment information is output.

[0070] S300: Match corresponding RGB information in a preset color matching library based on the first recognition result, and output a second recognition result according to the matching result of the RGB information.

[0071] In this embodiment, Figure 2 and 4 As shown, according to the first recognition result, the RGB information corresponding to the material information or the surface treatment information is matched in the preset color matching library. RGB is a color standard in the industry. Various colors are obtained by changing the three color channels of red (R), green (G), and blue (B) and superimposing them on each other. RGB represents the colors of the three channels of red, green, and blue. This standard almost includes all colors that can be perceived by human vision and is one of the most widely used color systems. Therefore, by obtaining the corresponding RGB, it can be used for subsequent automatic rendering, and the corresponding second recognition result is output after obtaining the RGB information.

[0072] In one embodiment, matching corresponding RGB information in a preset color matching library based on the first recognition result includes:

[0073] When the first recognition result is True and the material information is obtained, matching the RGB information corresponding to the material information in the preset color matching library;

[0074] When the first recognition result is True and the surface treatment information is present, matching RGB information corresponding to the surface treatment information in the preset color matching library;

[0075] When the first recognition result is False, the RGB information is not matched in the preset color matching library.

[0076] In this embodiment, Figure 4 As shown, there are three cases for the second output result, including False, True+RGB information corresponding to material information, and True+RGB information corresponding to surface treatment information. This step can be completed by matching the corresponding color processing module based on the component material and surface treatment.

[0077] In one embodiment, outputting a second recognition result according to the matching result of the RGB information includes:

[0078] When the RGB information corresponding to the material information is matched, the second recognition result is True and the RGB information corresponding to the material information;

[0079] When the RGB information corresponding to the surface treatment information is matched, the second recognition result is True and the RGB information corresponding to the surface treatment information;

[0080] When the RGB information is not matched, the second recognition result is False.

[0081] S400: Automatically render material and surface treatment properties of the 3D lightweight model based on the second recognition result.

[0082] In one embodiment, automatically rendering the material and surface treatment properties of the 3D lightweight model based on the second recognition result includes:

[0083] When the second recognition result is True and the RGB information corresponds to the material information, a color corresponding to the RGB information corresponding to the material information is selected from the preset color library to automatically render the material of the 3D lightweight model;

[0084] When the second recognition result is True and the RGB information corresponding to the surface treatment information is present, a color corresponding to the RGB information corresponding to the surface treatment information is selected from the preset color library to automatically render the surface treatment attributes of the 3D lightweight model;

[0085] When the second recognition result is False, the 3D lightweight model is not rendered.

[0086] In this embodiment, Figure 5 As shown, when the second recognition result carries RGB information corresponding to the material information, the material is automatically rendered using the RGB information, otherwise, the surface treatment properties are automatically rendered.

[0087] In one embodiment, the method further comprises:

[0088] An association table is established between the material information and the surface treatment information and the RGB information in the preset color matching library, so that the RGB information corresponding to the material information or the surface treatment information is matched from the preset color matching library through the association table.

[0089] In this embodiment, the association table can be stored in the cloud, and can be called from the cloud by the corresponding color processing module based on component material and surface treatment matching during the automatic rendering process. It can also be directly stored in the corresponding color processing module based on component material and surface treatment matching to quickly respond to the RGB information matching process. At the same time, in order to improve the automatic rendering efficiency and accuracy of the 3D lightweight model, the association table is updated in real time or periodically.

[0090] One embodiment of the present invention further provides an automatic rendering device for a 3D lightweight model, comprising:

[0091] A parameter table acquisition module is used to acquire a parameter table corresponding to an input 3D lightweight model, and to acquire material information and surface treatment information in the parameter table;

[0092] A first recognition module, configured to output a first recognition result based on the material information and the surface treatment information;

[0093] A second recognition module, used to match the corresponding RGB information in a preset color matching library based on the first recognition result, and output a second recognition result according to the matching result of the RGB information;

[0094] An automatic rendering module is used to automatically render the material and surface treatment properties of the 3D lightweight model based on the second recognition result.

[0095] One of the embodiments of the present invention further provides a readable storage medium, in which a computer program is stored. The computer program includes program instructions. When the program instructions are executed by a processor of an electronic device, the processor executes the steps of the automatic rendering method of a 3D lightweight model as described above.

[0096] One of the embodiments of the present invention also provides an electronic device, including: a processor and a memory, the memory is used to store computer program code, the computer program code includes computer instructions, when the processor executes the computer instructions, the electronic device performs the steps of the automatic rendering method of the 3D lightweight model as described in any one of the above.

[0097] See also Figure 6 , Figure 6 A schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention.

[0098] The electronic device 2 includes a processor 21, a memory 22, an input device 23, and an output device 24. The processor 21, the memory 22, the input device 23, and the output device 24 are coupled via a connector, and the connector includes various interfaces, transmission lines, or buses, etc., which are not limited in the embodiments of the present invention. It should be understood that in various embodiments of the present invention, coupling refers to mutual connection in a specific manner, including direct connection or indirect connection through other devices, for example, through various interfaces, transmission lines, buses, etc.

[0099] The processor 21 may be one or more graphics processing units (GPUs). When the processor 21 is a GPU, the GPU may be a single-core GPU or a multi-core GPU. Optionally, the processor 21 may be a processor group consisting of multiple GPUs, and the multiple processors are coupled to each other via one or more buses. Optionally, the processor may also be other types of processors, etc., which are not limited in the embodiments of the present invention.

[0100] The memory 22 can be used to store computer program instructions and various computer program codes including program codes for executing the scheme of the present invention. Optionally, the memory includes but is not limited to random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM), or portable read only memory (CD-ROM), which is used for related instructions and data.

[0101] The input device 23 is used to input data and / or signals, and the output device 24 is used to output data and / or signals. The output device 23 and the input device 24 can be independent devices or an integrated device.

[0102] It is understandable that in the embodiment of the present invention, the memory 22 is not only used to store related instructions, and the embodiment of the present invention does not limit the specific data stored in the memory.

[0103] Understandably, Figure 6 Only a simplified design of an electronic device is shown. In practical applications, the electronic device may also include other necessary components, including but not limited to any number of input / output devices, processors, memories, etc., and all video analysis devices that can implement the embodiments of the present invention are within the protection scope of the present invention.

[0104] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0105] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. Those skilled in the art can also clearly understand that the descriptions of the various embodiments of the present invention have different focuses. For the convenience and brevity of description, the same or similar parts may not be repeated in different embodiments. Therefore, for parts not described or not described in detail in a certain embodiment, refer to the records of other embodiments.

[0106] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0107] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0108] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0109] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program to be sealed. The computer program to be sealed includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media integrations. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital versatile disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).

[0110] A person skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by a computer program to instruct the relevant hardware, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above-mentioned method embodiments. The aforementioned storage medium includes: a read-only memory (ROM) or a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0111] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. All equivalent structural changes made by using the contents of the present invention specification and drawings under the inventive concept of the present invention, or directly / indirectly applied in other related technical fields are included in the patent protection scope of the present invention.

Claims

1. A method for automatic rendering of a 3D lightweight model, characterized in that: The following steps are involved: Obtain a parameter table corresponding to the input 3D lightweight model, and obtain material information and surface treatment information in the parameter table; outputting a first recognition result based on the material information and the surface treatment information; Matching corresponding RGB information in a preset color matching library based on the first recognition result, and outputting a second recognition result according to the matching result of the RGB information; The material and surface treatment properties of the 3D lightweight model are automatically rendered based on the second recognition result.

2. The automatic rendering method of a 3D lightweight model according to claim 1, characterized in that: The obtaining of the material information and the surface treatment information in the parameter table is specifically any one of the following situations: The parameter table includes the material information but does not include the surface treatment information; The parameter table includes the material information and the surface treatment information; The parameter table does not include the material information, but includes the surface treatment information; The parameter table does not include the material information and does not include the surface treatment information.

3. The automatic rendering method of a 3D lightweight model according to claim 2, characterized in that: Outputting a first recognition result based on the material information and the surface treatment information includes: When the parameter table includes the material information but does not include the surface treatment information, the first recognition result is True and the material information; When the parameter table includes the material information and the surface treatment information, the first recognition result is True and the surface treatment information; When the parameter table does not include the material information but includes the surface treatment information, the first recognition result is True and the surface treatment information; When the parameter table does not include the material information and does not include the surface treatment information, the first recognition result is False.

4. The automatic rendering method of a 3D lightweight model according to claim 3, characterized in that: The matching corresponding RGB information in a preset color matching library based on the first recognition result includes: When the first recognition result is True and the material information is obtained, matching the RGB information corresponding to the material information in the preset color matching library; When the first recognition result is True and the surface treatment information is present, matching RGB information corresponding to the surface treatment information in the preset color matching library; When the first recognition result is False, the RGB information is not matched in the preset color matching library.

5. The automatic rendering method of a 3D lightweight model according to claim 4, characterized in that: Outputting a second recognition result according to the matching result of the RGB information includes: When the RGB information corresponding to the material information is matched, the second recognition result is True and the RGB information corresponding to the material information; When the RGB information corresponding to the surface treatment information is matched, the second recognition result is True and the RGB information corresponding to the surface treatment information; When the RGB information is not matched, the second recognition result is False.

6. The automatic rendering method of a 3D lightweight model according to claim 5, characterized in that: Automatically rendering the material and surface treatment properties of the 3D lightweight model based on the second recognition result includes: When the second recognition result is True and the RGB information corresponding to the material information is selected, from the preset color library, a color corresponding to the RGB information corresponding to the material information is automatically rendered to the material of the 3D lightweight model; When the second recognition result is True and the RGB information corresponding to the surface treatment information is present, a color corresponding to the RGB information corresponding to the surface treatment information is selected from the preset color library to automatically render the surface treatment properties of the 3D lightweight model; When the second recognition result is False, the 3D lightweight model is not rendered.

7. The automatic rendering method of a 3D lightweight model according to claim 1, characterized in that: The method further comprises: An association table is established between the material information and the surface treatment information and the RGB information in the preset color matching library, so that the RGB information corresponding to the material information or the surface treatment information is matched from the preset color matching library through the association table.

8. An automatic rendering device for a 3D lightweight model, characterized in that: include: A parameter table acquisition module is used to acquire a parameter table corresponding to an input 3D lightweight model, and to acquire material information and surface treatment information in the parameter table; A first recognition module, configured to output a first recognition result based on the material information and the surface treatment information; A second recognition module, used to match the corresponding RGB information in a preset color matching library based on the first recognition result, and output a second recognition result according to the matching result of the RGB information; An automatic rendering module is used to automatically render the material and surface treatment properties of the 3D lightweight model based on the second recognition result.

9. An electronic device, comprising: A processor and a memory, characterized in that the memory is used to store computer program codes, the computer program codes include computer instructions, and when the processor executes the computer instructions, the electronic device executes the steps of the automatic rendering method of the 3D lightweight model as described in any one of claims 1-7.

10. A readable storage medium having a computer program stored therein, characterized in that: The computer program includes program instructions, and when the program instructions are executed by a processor of an electronic device, the processor executes the steps of the automatic rendering method of a 3D lightweight model as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Model rendering method and device, electronic equipment and medium

    CN111292406A

  • Automatic model coloring method and device based on unreal engine and storage medium

    CN118429504A

Cited By

  • 3D lightweight model threaded hole feature identification method, device and system and medium

    CN120298747A

  • 3D lightweight model thread hole feature recognition method, device, system and medium

    CN120298747B