franMarz / TexTools-Blender

TexTools is a UV and Texture toolset created several years ago for Blender and Max by @renderhjs. In this open repository, originally created by @SavMartin, we develop the current version of this popular Blender add-on.
Other
1.99k stars 135 forks source link

Baking ineffective at very high poly counts #48

Closed CJYen closed 3 years ago

CJYen commented 3 years ago

This Addon is my favorite, too

I noticed during baking highpoly to lowpoly, at very high poly meshes (+80.000 verts) The Addon baker gets stuck in astronomical times for baking, while the blender cycles internal took 20s for the exact same.

The inner text comes from https://bitbucket.org/renderhjs/textools-blender/issues/3/baking-ineffective-at-very-high-poly

AvisParadocs commented 3 years ago

It happens because of material restore on highpoly mesh after bake process is finished. To solve that freeze you need to disable face indexing by commenting lines from 157 to 159 in utilities_bake.py. It works for me. Hope it will help someone one make a proper fix for textools in future. 1a4b94707d96400d007ac557a30e9aca10afb49e

franMarz commented 3 years ago

I'll investigate whether is it possible to deactivate the store/restore of materials in certain bake modes for speeding up the process.

franMarz commented 3 years ago

More or less fixed on my side, but I think there is still more room for improvement using object duplicates instead of the store/restore functions, I'll try to rewrite the code in some extent before committing what I already have.

franMarz commented 3 years ago

Fixed in TexTools 1.4.1, download and install the latest release: https://github.com/SavMartin/TexTools-Blender/releases/download/v1.4.1/TexTools_Blender_1_4_1.zip