Low-surface-number three-dimensional model optimization method and device, medium and product

By optimizing the normal map of the three-dimensional model with low-face number, and using alpha materials to enhance detailed performance, the problem of difficulty in capturing details of three-dimensional scanning technology is solved, and the fineness and rendering effect of the model are improved.

CN120198561APending Publication Date: 2025-06-24三化一权产教技能服务(江苏)有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510258613.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-05
Publication Date
2025-06-24

AI Technical Summary

Technical Problem

Existing three-dimensional scanning technology is difficult to accurately capture the millimeter-level details of solid objects, resulting in a lack of detail texture and authenticity in computer rendering of 3D models.

Method used

By obtaining the low-face number three-dimensional model to be optimized and its corresponding color map and normal map, the normal map is optimized using alpha material, and the three-dimensional model is adjusted according to the optimized normal map to enhance its detailed performance.

Benefits of technology

It improves the fineness and detail texture of the low-face number three-dimensional model, and enhances its authenticity and simulation effect in computer rendering.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120198561A_ABST
    Figure CN120198561A_ABST
Patent Text Reader

Abstract

The invention discloses a low-surface-number three-dimensional model optimization method and device, a medium and a product, and relates to the field of three-dimensional modeling, and the method comprises the steps: obtaining a to-be-optimized low-surface-number three-dimensional model and a corresponding color map and a normal map; obtaining information of a color map and information of a normal map according to an actual object compared with the to-be-optimized low-surface-number three-dimensional model; an alpha material is determined according to the information of the color map; the information of the normal chartlet is optimized by means of an alpha material; and adjusting the to-be-optimized low-surface-number three-dimensional model according to the information of the optimized normal map and the real light and shadow change of the actual object to obtain an optimized low-surface-number three-dimensional model. According to the method and the device, the fineness of the low-surface-number three-dimensional model can be improved, so that the detail texture and authenticity of the low-surface-number three-dimensional model during computer rendering display are enhanced, and the simulated detail effect of an actual object is enhanced and achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of three-dimensional modeling, and in particular to a method, device, medium and product for optimizing a low-polygon three-dimensional model. Background Art

[0002] In today's era, the process of digitalization is like a surging wave, rolling forward with an overwhelming force, deeply penetrating into all walks of life in society, and widely touching all aspects of life, thus stimulating a large demand for 3D digital modeling of actual objects.

[0003] The current implementation method of realistic 3D modeling of physical objects is to use a 3D scanner to scan and model to obtain a 3D model, and to take a number of photos and use photo modeling software to perform 3D modeling to obtain a 3D model. Among them, scanning modeling cannot scan the real bumps of the actual object 100%, and the roughness and metalness, two maps that can make low-polygon three-dimensional models show light and shadow effects that simulate actual objects, cannot be generated through scanning modeling and photo modeling.

[0004] That is, the degree of concavity and convexity of the surface details of a low-polygon 3D model is determined by its normal map. In the reverse modeling process, the normal map is generated by the 3D scan model. Therefore, the fineness of the 3D scan model determines the fineness of the normal map, which in turn affects the fineness of the low-polygon 3D model. When using a 3D scanner to scan an object that needs to be modeled, due to technical defects such as the accuracy of the 3D scanner itself and algorithm defects in the 3D scanning imaging software, the scanned 3D model will lose the details of the original object, especially the small details at the millimeter level, which cannot be reflected using a 3D scanner.

[0005] Therefore, there is an urgent need to provide a new low-polygon 3D model optimization method to improve the fineness of the low-polygon 3D model and make up for the concave and convex details that cannot be achieved by 3D scanning, thereby enhancing the detail texture and realism of the low-polygon 3D model when it is rendered and displayed on the computer, and enhancing the realistic detail effect of achieving actual objects. Summary of the invention

[0006] The purpose of this application is to provide a low-polygon three-dimensional model optimization method, device, medium and product, which can improve the fineness of the low-polygon three-dimensional model, thereby enhancing the detail texture and realism of the low-polygon three-dimensional model when it is rendered and displayed by computer, and enhancing the realistic detail effect of the actual object.

[0007] To achieve the above objectives, this application provides the following solutions:

[0008] In a first aspect, the present application provides a low-polygon 3D model optimization method, the low-polygon 3D model optimization method comprising:

[0009] Obtain a low-polygon 3D model to be optimized, as well as the corresponding color map and normal map.

[0010] According to the actual object corresponding to the low-polygon 3D model to be optimized, obtain the information of the color map and the information of the normal map respectively.

[0011] Determine the alpha material according to the information of the color map.

[0012] Use the alpha material to optimize the information of the normal map.

[0013] Adjust the low-polygon 3D model to be optimized according to the information of the optimized normal map and the real light and shadow changes of the actual object, and obtain the optimized low-polygon 3D model.

[0014] Optionally, the step of obtaining the information of the color map and the information of the normal map respectively according to the actual object corresponding to the low-polygon 3D model to be optimized specifically includes:

[0015] Import the low-polygon 3D model to be optimized into a modeling software, and link the color map and the normal map.

[0016] Analyze the actual object corresponding to the low-polygon 3D model to be optimized and the normal map to obtain the information of the normal map; and mark the information of the normal map; the information of the normal map includes: the texture size, roughness change and density of the low-polygon 3D model and the actual object.

[0017] Analyze the actual object corresponding to the low-polygon 3D model to be optimized and the color map to obtain the information of the color map; and mark and supplement the information of the color map; the information of the color map includes: color information.

[0018] Use the marked and supplemented color map as Image A.

[0019] Optionally, the step of determining the alpha material according to the information of the color map specifically includes:

[0020] Use an image processing software to desaturate Image A, and use the Levels tool or the Curves tool to adjust the marks on the desaturated Image A to obtain the alpha material.

[0021] Optionally, the image processing software includes: Photoshop software.

[0022] Optionally, the step of using the alpha material to optimize the information of the normal map specifically includes:

[0023] Use a texture painting software to map the alpha material onto the normal map of the low-polygon 3D model.

[0024] Adjust the information of the normal map according to the details and concavities and convexities of the actual object until the information of the normal map of the low-polygon 3D model to be optimized matches that of the actual object.

[0025] Optionally, the texture painting software includes: Adobe Substance 3D Painter software.

[0026] In a second aspect, the present application provides a low-polygon 3D model optimization device, which includes:

[0027] A data acquisition module for acquiring a low-polygon 3D model to be optimized and corresponding color map and normal map;

[0028] An information acquisition module for respectively acquiring the information of the color map and the information of the normal map according to the actual object corresponding to the low-polygon 3D model to be optimized;

[0029] An alpha material determination module for determining an alpha material according to the information of the color map;

[0030] An information optimization module for optimizing the information of the normal map by using the alpha material;

[0031] A model adjustment module for adjusting the low-polygon 3D model to be optimized according to the optimized information of the normal map and the true light and shadow changes of the actual object to obtain an optimized low-polygon 3D model.

[0032] In a third aspect, the present application provides a computer device, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor executes the computer program to implement the low-polygon 3D model optimization method.

[0033] In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the low-polygon 3D model optimization method is implemented.

[0034] In a fifth aspect, the present application provides a computer program product, including a computer program, and when the computer program is executed by a processor, the low-polygon 3D model optimization method is implemented.

[0035] According to the specific embodiments provided by the present application, the present application has the following technical effects:

[0036] The present application provides a method, device, medium and product for optimizing a low-polygon 3D model. By obtaining the information of the color map and the normal map respectively according to the actual object corresponding to the low-polygon 3D model to be optimized; determining the alpha material according to the information of the color map; using the alpha material to optimize the information of the normal map; through the adjustment of the color map of the low-polygon 3D model, in a relatively fast and accurate manner, the details of the normal map are supplemented, the roughness and metallicity maps are produced, and the details of the actual object are more accurately simulated, enhancing the detail texture and authenticity of the low-polygon 3D model during computer rendering display, and enhancing the realistic detail effect of the actual object. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required to be used in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained according to these drawings.

[0038] Figure 1 It is a schematic flowchart of a method for optimizing a low-polygon 3D model in an embodiment of the present application;

[0039] Figure 2 It is a schematic diagram of the alpha material;

[0040] Figure 3 It is a schematic diagram showing that the information of the normal map of the low-polygon 3D model to be optimized is consistent with the actual object. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0041] The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some embodiments of the present application, rather than all embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts belong to the protection scope of the present application.

[0042] To make the above objects, features and advantages of the present application more obvious and understandable, the present application will be further described in detail below with reference to the drawings and specific embodiments.

[0043] In an exemplary embodiment, as Figure 1 shown, a method for optimizing a low-polygon 3D model is provided, and the method includes the following S101 to S105. Among them:

[0044] S101. Obtain the low-polygon 3D model to be optimized, as well as the corresponding color map and normal map. Among them, the low-polygon 3D model to be optimized is obtained through reverse modeling;

[0045] Compared with high-polygon models, low-polygon models are a type of low-polygon model method adopted when making models in order to enable 3D models to be loaded faster and consume less resources when used in scenes. Generally, the number of faces of a single model ranges from 100 to 30,000, and it needs to be obtained by reducing the number of faces based on the original high-polygon model. The faces of the model are triangular faces.

[0046] Essentially, a normal map is a texture image that changes the calculation method of surface lighting by encoding the normal direction information of each pixel, thereby enabling the model to present more detailed details than the actual geometric shape. In a 3D model, the normal is a vector perpendicular to the model surface and is used to determine how light interacts with the surface. The normal map deceives the renderer into thinking that the model surface has more bumpy details by storing the changes in surface normals.

[0047] S102. According to the actual object corresponding to the low-polygon 3D model to be optimized, obtain the information of the color map and the information of the normal map respectively;

[0048] S102 specifically includes:

[0049] S21. Import the low-polygon 3D model to be optimized into the modeling software and link the color map and the normal map. In order to visually understand the map, the linking method is a chart-based linking method.

[0050] S22. Analyze the actual object corresponding to the low-polygon 3D model to be optimized and the normal map to obtain the information of the normal map; and mark the information of the normal map. The information of the normal map includes: the texture size, roughness change, and density of the low-polygon 3D model to be optimized and the actual object;

[0051] S23. Analyze the actual object corresponding to the low-polygon 3D model to be optimized and the color map to obtain the information of the color map; and mark and supplement the information of the color map. The information of the color map includes: color information;

[0052] S24. Use the marked and supplemented color map as Image A.

[0053] S103. Determine the alpha material according to the information of the color map;

[0054] S103 specifically includes:

[0055] Use image processing software to desaturate Image A, and use the Levels tool or the Curves tool to adjust the markings on the desaturated Image A to obtain an alpha material. The image processing software includes, but is not limited to, Photoshop software.

[0056] The alpha material is black and white, where white represents completely opaque, black represents completely transparent, and gray represents semi-transparent to varying degrees, as Figure 2 shown;

[0057] As the color map baked from the actual image, it itself contains rich color and detail information. By adjusting and refining the parameters of the color map of the low-poly 3D model, a more realistic and natural effect is achieved, forming a black and white alpha material that fits the actual object. Using the selection and processing of the color map of the low-poly 3D model effectively reduces the workload of manual drawing. For some objects with complex textures and obvious color differences, the basic alpha material can be generated more quickly, and then minor adjustments can be made for use, greatly improving work efficiency. Since the color map is extracted from the photo of the actual object, the generated alpha material also conforms to the actual object, and a more natural and realistic effect can be achieved after the subsequent steps of processing.

[0058] Specifically, Realitycapure software is used for baking.

[0059] S104, optimize the information of the normal map using the alpha material;

[0060] S104 specifically includes:

[0061] S41, use texture painting software to map the alpha material onto the normal map of the low-poly 3D model; the texture painting software includes, but is not limited to, Adobe Substance 3D Painter software.

[0062] S42, adjust the information of the normal map according to the details and bumps of the actual object until the information of the normal map of the low-poly 3D model to be optimized conforms to the actual object, as Figure 3 shown.

[0063] S105, adjust the low-poly 3D model to be optimized according to the information of the optimized normal map and the real light and shadow changes of the actual object to obtain an optimized low-poly 3D model; in the process of adjusting the low-poly 3D model to be optimized, the entire low-poly 3D model becomes more realistic, enhancing the realism and texture of the low-poly 3D model during computer rendering and display.

[0064] This application can compensate for the concave and convex details that cannot be achieved by 3D scanning, thereby enhancing the realistic detail effect of the actual object.

[0065] Based on the same inventive concept, an embodiment of this application also provides a low-polygon 3D model optimization device for implementing the low-polygon 3D model optimization method involved above. The solution provided by this device to solve the problem is similar to the solution described in the above method. Therefore, the specific limitations in one or more embodiments of the low-polygon 3D model optimization device provided below can refer to the limitations on the low-polygon 3D model optimization method in the above text, and will not be elaborated here.

[0066] In an exemplary embodiment, a low-polygon 3D model optimization device is provided, including:

[0067] A data acquisition module, configured to acquire a low-polygon 3D model to be optimized and corresponding color texture maps and normal maps;

[0068] An information acquisition module, configured to respectively acquire the information of the color texture map and the information of the normal map according to the actual object corresponding to the low-polygon 3D model to be optimized;

[0069] An alpha material determination module, configured to determine an alpha material according to the information of the color texture map;

[0070] An information optimization module, configured to optimize the information of the normal map by using the alpha material;

[0071] A model adjustment module, configured to adjust the low-polygon 3D model to be optimized according to the information of the optimized normal map and the true light and shadow changes of the actual object, so as to obtain an optimized low-polygon 3D model.

[0072] In an exemplary embodiment, a computer device is provided. This computer device can be a server or a terminal. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O), and a communication interface. Among them, the processor, the memory, and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of this computer device is used to provide computing and control capabilities. The memory of this computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of this computer device is used to exchange information between the processor and external devices. The communication interface of this computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, it implements a low-polygon 3D model optimization method.

[0073] In an exemplary embodiment, a computer-readable storage medium is provided, storing a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.

[0074] In an exemplary embodiment, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.

[0075] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data need to comply with relevant regulations.

[0076] Those of ordinary skill in the art can understand that all or part of the processes in the above method embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the above method embodiments. Among them, any reference to a memory, database, or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memories. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.

[0077] In each of the embodiments provided in the present application, the database involved may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, etc. In each of the embodiments provided in the present application, the processor may be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., without limitation.

[0078] In this application, all actions of obtaining signals, information, or data are carried out on the premise of complying with the corresponding data protection regulations and policies of the country where the location is located and obtaining the authorization given by the owner of the corresponding device.

[0079] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered to be within the scope described in this specification.

[0080] In this article, specific examples are used to elaborate on the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application; at the same time, for those of ordinary skill in the art, according to the idea of the present application, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present application.

Claims

1. A low-polygon 3D model optimization method, characterized in that: The low-polygon three-dimensional model optimization method comprises: Obtain the low-polygon 3D model to be optimized and the corresponding color map and normal map; According to the actual object compared with the low-polygon 3D model to be optimized, the color map information and the normal map information are respectively obtained; Determine the alpha material based on the information in the color map; Use alpha material to optimize normal map information; The low-polygon 3D model to be optimized is adjusted according to the information of the optimized normal map and the real light and shadow changes of the actual object to obtain an optimized low-polygon 3D model.

2. The low-polygon 3D model optimization method according to claim 1, characterized in that: The step of obtaining the color map information and the normal map information respectively based on the actual object compared with the low-polygon 3D model to be optimized specifically includes: Import the low-polygon 3D model to be optimized into the modeling software and link the color map and normal map; Analyze the actual object and normal map of the low-polygon 3D model to be optimized to obtain the information of the normal map; and mark the information of the normal map; the information of the normal map includes: the texture size, roughness change and density of the low-polygon 3D model to be optimized and the actual object; Analyze the actual object and the color map compared with the low-polygon 3D model to be optimized to obtain the information of the color map; and mark and supplement the information of the color map; the information of the color map includes: color information; The labeled and complemented color map is taken as image A.

3. The low-polygon 3D model optimization method according to claim 2, characterized in that: Determining the alpha material according to the information of the color map specifically includes: Image A is desaturated using image processing software, and the mark on the desaturated image A is adjusted using a levels tool or a curve tool to obtain an alpha material.

4. The low-polygon 3D model optimization method according to claim 3, characterized in that: The image processing software includes: Photoshop software.

5. The low-polygon 3D model optimization method according to claim 1, characterized in that: The optimization of the normal map information by using the alpha material specifically includes: Use texture drawing software to map the alpha material to the normal map of the low-polygon 3D model; The normal map information is adjusted according to the details and bumps of the actual object until the normal map information of the low-polygon 3D model to be optimized is consistent with the actual object.

6. The low-polygon 3D model optimization method according to claim 5, characterized in that: The texture drawing software includes: Adobe Substance 3D Painter software.

7. A low-polygon 3D model optimization device, characterized in that: The low-polygon three-dimensional model optimization device comprises: A data acquisition module, used to acquire a low-polygon 3D model to be optimized and corresponding color maps and normal maps; An information acquisition module is used to obtain color map information and normal map information respectively according to the actual object compared with the low-polygon 3D model to be optimized; An alpha material determination module is used to determine the alpha material according to the information of the color map; Information optimization module, used to optimize the normal map information using alpha material; The model adjustment module is used to adjust the low-polygon 3D model to be optimized according to the information of the optimized normal map and the real light and shadow changes of the actual object to obtain the optimized low-polygon 3D model.

8. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the low-polygon three-dimensional model optimization method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the low-polygon three-dimensional model optimization method described in any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the low-polygon three-dimensional model optimization method described in any one of claims 1 to 6 is implemented.