ucupumar / ucupaint

Ucupaint is Blender addon to manage texture layers for Eevee and Cycles renderer.
GNU General Public License v3.0
879 stars 31 forks source link

AO baking has different behavior - shared material #2

Closed swift502 closed 1 year ago

swift502 commented 1 year ago

Hi, it wouldn't be fun if I didn't find something. 😄

If objects in collections that are disabled for rendering share a material with the rendered object, I get baking errors. The scene looks like this: A and C share a material. C is disabled for rendering. I want to bake A.

image

This happens:

https://user-images.githubusercontent.com/24359130/178116610-d0d55d40-db61-4069-a00e-de092a995121.mp4

Here's the blend file from the video

I would personally love it if the behavior was the same as Blender's baking method. Let me know what you think!

ucupumar commented 1 year ago

Ok, let me check it first

ucupumar commented 1 year ago

Hmm, I think you're right. I defaulted to unhide all objects that using the same material. Maybe it should be an option. And I just realized FXAA caused the baking process taking so long to finish, I think I will also make it optional.

swift502 commented 1 year ago

I defaulted to unhide all objects that using the same material. Maybe it should be an option

Okay, yeah I would appreciate that.

I always keep a bunch of old versions of models for reference so some way to disable this would make my life easier, so I don't have to manually delete all the shared materials.

ucupumar commented 1 year ago

I see, this is not hard but still need a bit of time to implement, so please be patient. :)

ucupumar commented 1 year ago

Okay, I fixed it, no need for a special option to disable object hide render when baking since I didn't find any use case for it. Also, I kept FXAA on by default because it's not that slow when I use it again. :)

swift502 commented 1 year ago

@ucupumar Awesome. 🙂

I didn't notice any major slowdown with FXAA. And it's a great feature, so I think it can be enabled by default.