You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While working on my new PR (#2427 ) for changes to the UV system, I noticed that big objects take longer to Create Texture, or just simply unwrap.
The video below shows 2 identical objects with different sizes, the second one took so long to unwrap that i stopped recording.
2024-07-17.18-49-22.mp4
texture_generator.js / generateFaceTemplate()
The face_group.matrix = getPolygonOccupationMatrix(face_uvs, face_group.width, face_group.height); takes a LOT of time to do, and it's not a big deal to disable it completely in many cases.
While working on my new PR (#2427 ) for changes to the UV system, I noticed that big objects take longer to Create Texture, or just simply unwrap.
The video below shows 2 identical objects with different sizes, the second one took so long to unwrap that i stopped recording.
2024-07-17.18-49-22.mp4
texture_generator.js / generateFaceTemplate()
The
face_group.matrix = getPolygonOccupationMatrix(face_uvs, face_group.width, face_group.height);
takes a LOT of time to do, and it's not a big deal to disable it completely in many cases.blockbench/js/texturing/texture_generator.js
Lines 1174 to 1182 in 813379d
The real problem tho happens when trying to allocate an empty slot for the faces
blockbench/js/texturing/texture_generator.js
Lines 1241 to 1250 in 813379d
The bigger the area occupied by each face, the more it takes to run through the space.
Disabling Combined Islands also improves a lot the time it takes to unwrap.
Considering all this, I had the idea to do one of the following:
Tho, I don't know how to make the project small, or how to improve the math so it goes faster for bigger objects.
Model format in which the issue occurs
Generic
Blockbench variant
Program
Blockbench version
4.10.4
Operating System
Win10
Installed Blockbench plugins
No response
The text was updated successfully, but these errors were encountered: