Detailed description of your suggestion
I generate textures very often, but this annoying bug has been appearing for quite some time now: after generating the textures, these unpleasant holes appear on the cubes in the viewport.
I’ll attach a prototype of a plugin that solves this problem.
Here’s what it does:
We’ve improved texture generation in Blockbench with a new Normal Generation mode. The main goal is to avoid disappearing/transparent faces and to make UV packing more reliable.
Changes:
UV mirror is correctly preserved along the X/Y axis;
face rotation 90/180/270 is preserved and processed correctly, instead of the dangerous rotation baking;
a denser MaxRects UV packing is added;
reuse of identical UV areas is supported;
safe padding/extrusion along the edges of UV islands is added;
the new texture is fully assembled first, and only then are the model’s UVs modified;
the mode is built directly into the standard Create Texture window.
The familiar Blockbench settings are retained: pixel density, power-of-two, texture reuse, and padding.
The main result: generation is greater.
normal_texture_generation.js
Detailed description of your suggestion
I generate textures very often, but this annoying bug has been appearing for quite some time now: after generating the textures, these unpleasant holes appear on the cubes in the viewport.
I’ll attach a prototype of a plugin that solves this problem.
Here’s what it does:
We’ve improved texture generation in Blockbench with a new Normal Generation mode. The main goal is to avoid disappearing/transparent faces and to make UV packing more reliable.
Changes:
UV mirror is correctly preserved along the X/Y axis;
face rotation 90/180/270 is preserved and processed correctly, instead of the dangerous rotation baking;
a denser MaxRects UV packing is added;
reuse of identical UV areas is supported;
safe padding/extrusion along the edges of UV islands is added;
the new texture is fully assembled first, and only then are the model’s UVs modified;
the mode is built directly into the standard Create Texture window.
The familiar Blockbench settings are retained: pixel density, power-of-two, texture reuse, and padding.
The main result: generation is greater.
normal_texture_generation.js