Skip to content

Normal Texture Generation #3754

Description

@zxterProxy

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.

Image Image

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.

Image

normal_texture_generation.js

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions