A method for batch programmatic automatic face reduction and baking of 3D data

Through the polygonCruncher node, it automatically reduces surface reduction and bakes maps in MAYA software, solves the problem of low data processing efficiency of huge three-dimensional models, and realizes efficient automatic reduction and map generation, which significantly improves work efficiency and automation.

CN113327310BActive Publication Date: 2025-01-10JIANGSU DIGITAL POINT TECH CO LTD

Patent Information

Application Number
CN202110717835.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-28
Publication Date
2025-01-10
Estimated Expiration
2041-06-28

AI Technical Summary

Technical Problem

The prior art is difficult to deal with huge tilt photography and laser scanning three-dimensional model data for large-scale surface reduction, and keep the UV and map distribution free of errors, resulting in long manual operation time and affecting operating efficiency.

Method used

Through the polygonCruncher node, set the surface reduction properties in the MAYA software, reshape the corners and merge fixed points, combine the polygonCruncher node to automatically reduce and bake the map, generate low-module files and output normals and color maps.

Benefits of technology

The surface reduction ratio is achieved thousands of times, the basic shape remains unchanged, which improves work efficiency and automation, reduces labor costs, and can operate in batches without guard.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113327310B_ABST
    Figure CN113327310B_ABST
Patent Text Reader

Abstract

This invention discloses a method for batch programmatic automatic polygon reduction and texture baking of 3D data, comprising the following steps: Step 1: Set the path of the high-poly model file; Step 2: Obtain the high-poly model file B; Step 3: Assign a polygonCruncher node; Step 4: Perform polygon reduction to obtain the low-poly model file C; Step 5: Set the normal angle and detection angle of the high-poly model file A; Step 6: Clear history; Step 7: Start baking; Step 8: Obtain the output model file; Step 9: Set the path and format of the output model file through a UI tool. This invention can achieve polygon reduction of thousands of times, and the basic shape does not change after polygon reduction. Normal and color textures can be baked from the high-poly model. This invention can run in batches unattended, with a high degree of automation, greatly improving work efficiency, and reducing labor costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a method for batch programmatic automatic face reduction and baking mapping of three-dimensional data. Background Art

[0002] The data solved by oblique photography and laser scanning are real and accurate model data, but their disadvantage is that the model has too many faces and is not suitable for 3D visualization. The 3D visualization engine based on the game engine cannot handle such a large amount of data, and the running efficiency will be affected by the excessive number of faces. Currently, the software for reducing faces on the market can only reduce faces for models, but when ensuring that the texture is correct, the reduction ratio is limited, and the number of oblique photography and laser scanning data is huge, and manual operation takes too long. Therefore, it has become a major problem for 3D visualization workers to perform large-scale face reduction without reducing the shape and keep the UV and texture distribution correct. Summary of the invention

[0003] The purpose of the present invention is to overcome the deficiencies in the prior art and provide a method for batch programmatic automatic face reduction and baking of three-dimensional data.

[0004] In order to achieve the above object, the present invention is achieved through the following technical solutions:

[0005] A method for batch programmatic automatic face reduction and baking of three-dimensional data, comprising the following steps:

[0006] Step 1: Set the path of the high-polygon file;

[0007] Step 2: Import the high-polygon A file into MAYA software and copy it to get the high-polygon B file;

[0008] Step 3: Use polygoncr software to select the high-poly B file and assign it to the polygonCruncher node of polygonCruncher;

[0009] Step 4: Set the polygonCruncher node's face reduction properties, reshape the corners and set the face reduction percentage, and then reduce the faces to get a low-poly C file;

[0010] Step 5: Set the normal angle of the high-poly model A file, merge the fixed points of the low-poly model C by less than 0.02 units, and set the discovery angle;

[0011] Step 6: Remove highlights and self-illumination from all materials and clear the history;

[0012] Step 7: Call the polygonCruncher node, select the high-poly A as the baking prototype, select the low-poly C file as the object to be baked, set the output map to normal map and color map, and at the same time set the size, file path and format of the output map through the UI tool, and then start baking;

[0013] Step 8: Create a new material ball D, add the baked normal map and color map to the new material ball D, and assign the new material ball D to the low-poly C file to obtain the output model file;

[0014] Step 9: Set the path and format of the output model file through the UI tool.

[0015] Preferably, the polygonCruncher node's face reduction property is to maintain material boundaries.

[0016] Preferably, the format of the output map is jpg or png.

[0017] Preferably, the format of the output model file is an FBX format file or an obj format file.

[0018] Preferably, the normal angle of the high-modulus A file is 60°.

[0019] As a preference, an angle of 60° was found.

[0020] The beneficial effects of the present invention are as follows: the present invention can achieve a reduction of several thousand times in surface area, and its basic shape does not change after the reduction in surface area, and normals and color maps can be baked out according to the high-polygon model. The present invention can be run in unattended programmed batches with a high degree of automation, which greatly improves work efficiency, takes less time, and reduces labor costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 It is a flow chart of the present invention. DETAILED DESCRIPTION

[0022] The technical solution of the present invention is further described below in conjunction with the accompanying drawings of the specification:

[0023] like Figure 1 As shown, a method for batch programmatic automatic face reduction and baking of three-dimensional data includes the following steps:

[0024] Step 1: Set the path of the high-polygon file;

[0025] Step 2: Import the high-polygon A file into MAYA software and copy it to get the high-polygon B file;

[0026] Step 3: Use polygoncr software to select the high-poly B file and assign it to the polygonCruncher node of polygonCruncher;

[0027] Step 4: Set the polygonCruncher node's face reduction properties, reshape the corners and set the face reduction percentage, and then reduce the faces to get a low-poly C file;

[0028] Step 5: Set the normal angle of the high-poly model A file, merge the fixed points of the low-poly model C by less than 0.02 units, and set the discovery angle;

[0029] Step 6: Remove highlights and self-illumination from all materials and clear the history;

[0030] Step 7: Call the polygonCruncher node, select the high-poly A as the baking prototype, select the low-poly C file as the object to be baked, set the output map to normal map and color map, and at the same time set the size, file path and format of the output map through the UI tool, and then start baking;

[0031] Step 8: Create a new material ball D, add the baked normal map and color map to the new material ball D, and assign the new material ball D to the low-poly C file to obtain the output model file;

[0032] Step 9: Set the path and format of the output model file through the UI tool.

[0033] The polygonCruncher node's face reduction attribute is to maintain the material boundary, the output texture format is jpg or png, the output model file format is FBX or obj, the high-poly A file's normal angle is 60°, and the discovery angle is 60°. The UI tool is used to set the "high-poly folder path", "output model folder path", "output texture folder path", "output texture size" and the "Start Execution" button.

[0034] The present invention mainly uses two softwares, MAYA2019 and polygoncr, and uses the MEL language to write the surface reduction process and baking process as well as batch execution. It can support common 3D formats such as fbx, obj, mb, 3DS, dae, etc., and can output fbx or obj formats, and the textures are in jpg or png formats.

[0035] The usage process is:

[0036] Step 1: First open and install Maya2019 software, install Polygon Cruncher and Maya2019 plug-in;

[0037] Step 2: Import the written mel script into MAYA2019;

[0038] Step 3: Run the script named "bake";

[0039] Step 4: Enter the high-polygon folder path, output folder path, output texture folder path, and texture size, and click "Reduce Face Bake" to perform reduced face baking;

[0040] Step 5: Get the processed data and end.

[0041] The present invention can achieve a reduction of several thousand times in surface area without changing its basic shape after surface area reduction. Normals and color maps can be baked out according to the high-polygon model. The present invention can be run in batches in an unattended manner with a high degree of automation, greatly improving work efficiency, taking less time and reducing labor costs.

[0042] It should be noted that the above is only a specific embodiment of the present invention. Obviously, the present invention is not limited to the above embodiment, and there are many variations. In short, all variations that can be directly derived or associated with the content disclosed by ordinary technicians in this field should be considered as the protection scope of the present invention.

Claims

1. A method for batch programmatic automatic face reduction and baking of three-dimensional data, characterized in that: The steps include: Step 1: Set the high poly model path; Step 2: Import high-poly model A into MAYA software and copy it to get high-poly model B; Step 3: Use polygoncr software to select high-polygon B and assign it to polygonCruncher node; Step 4: Set the polygonCruncher node's face reduction properties, reshape the corners, set the face reduction percentage, and then reduce the faces to get a low-poly C. Step 5: Set the normal angle of the high-poly model A, merge the vertices of the low-poly model C by less than 0.02 units, and set the normal angle; Step 6: Remove highlights and self-illumination from all materials and clear the history; Step 7: Call the polygonCruncher node, select the high-poly model A as the baking prototype, select the low-poly model C as the baked object, set the output map to the normal map and color map, and at the same time set the size, file path and format of the output map through the UI tool, and then start baking; Step 8: Create a new material ball D, add the baked normal map and color map to the new material ball D, and assign the new material ball D to the low-poly C to obtain the output model; Step 9: Set the path and format of the output model file through the UI tool.

2. According to claim 1, a method for batch programmatic automatic face reduction and baking of three-dimensional data, characterized in that: The polygonCruncher node's face reduction attribute is to maintain the material boundary.

3. According to claim 1, a method for batch programmatic automatic face reduction and baking of three-dimensional data, characterized in that: The output map is in jpg or png format.

4. According to claim 1, a method for batch programmatic automatic face reduction and baking of three-dimensional data, characterized in that: The output model file is in the form of an FBX file or an obj file.

5. According to claim 1, a method for batch programmatic automatic face reduction and baking of three-dimensional data, characterized in that: The normal angle of the high module A is 60°.

6. The method for batch programmatic automatic face reduction and baking of three-dimensional data according to claim 1, characterized in that: The normal angle of the low-mode C is 60°.

Citation Information

Patent Citations

  • Method for optimizing three-dimensional model for mobile augmented reality browser

    CN104574488A

  • System and method for simulating model of real object in virtual scene

    CN108379840A

Cited By

  • A double-track collaborative modeling method, device and digital management system

    CN122714667A