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
2.02k stars 138 forks source link

Baking material ids for multiple objects, reuses colors for different materials #25

Closed MHAbrah closed 3 years ago

MHAbrah commented 4 years ago

When I select multiple high-poly (suffix "_high") and multiple matching low-poly (suffix "_low") objects and want to use the materials assigned to the high-poly to bake a material id (using the low-poly's UVs). I almost get what I expect:

The material ID texture is genreated and matches the UVs but the colors are reused for different materials. It seems that the colors are assigned based on material slots, not materials e.i. the first material slot of one high poly is red and the first slot of another high poly is also red. These are in my case not the same material just the same index number for the two separate objects.

Is this intended behavior or a bug?

ketulrudani commented 4 years ago

I am having same problem

franMarz commented 3 years ago

It works as intended: http://renderhjs.net/textools/blender/ Look for "Material ID" It should be possible to change it though, I think is not even necessary to provide an option, so that going for "color by material" as default is the expected and only desirable behaviour. Right?

franMarz commented 3 years ago

You can test the future Material ID baking by installing this upcoming version of TexTools: https://github.com/SavMartin/TexTools-Blender/archive/material-ID-fixes.zip. Probably no bugs free for now, please inform on this issue post about any problem you find.

franMarz commented 3 years ago

Fixed in the latest release.

ketulrudani commented 3 years ago

Okay, thanks

On Sat, 19 Dec, 2020, 1:12 pm franMarz, notifications@github.com wrote:

Fixed in the latest release.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/SavMartin/TexTools-Blender/issues/25#issuecomment-748435928, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKAA4NMABJMEW2QN7NWF5RLSVRKNDANCNFSM4OHLMUSA .