KirilStrezikozin / BakeMaster-Blender-Addon

Welcome to BakeMaster, a powerful and feature-packed baking solution created for Blender - an open-source 3D Computer graphics software.
Other
34 stars 6 forks source link

BUG: using "triangulate lowpoly" with cage object results in bake error #59

Closed KirilStrezikozin closed 6 months ago

KirilStrezikozin commented 7 months ago

This bug report is:

Describe the bug @Numity reported on Discord:

I have a question about baking with cage when turn on the "trianglate lowpoly" when do that the tris count seem different between the low and the cage, then baker refuse to bake

To Reproduce Steps to reproduce the behavior:

  1. Set up any kind of high to lowpoly bake.
  2. Enable triangulate_lowpoly in the Shading settings.
  3. Try to bake
  4. Internal bake error is caught, BakeMaster's bake timer stays alive.

Expected behavior BakeMaster should also add a triangulate modifier to the Cage object to match the number of tris between lowpoly and cage objects.

Screenshots

  1. The behavior from To Reproduce: image
  2. If triangulate modifier is added manually to the Cage: image
  3. @Numity reported a successful bake after adding a triangulate modifier to the Cage object. Cannot achieve the same on my end, only if applying triangulate modifiers for both lowpoly and cage, and then uncheck triangulate_lowoply, then bake.
  4. Baking with default Blender allows having active triangulate modifiers for both lowpoly and cage for the bake to execute without errors. This case is what BakeMaster should adopt.

Desktop (please complete the following information):