danielenger / Principled-Baker

Blender Add-on: Bake PBR textures with a few clicks
342 stars 30 forks source link

Light baking #4

Closed Sembei closed 5 years ago

Sembei commented 5 years ago

Would be possible to add direct/indirect light baking ?

danielenger commented 5 years ago

Do you mean diffuse direct/indirect (bake_type=Diffuse with render.bake.use_pass_direct/render.bake.use_pass_indirect)? Are there any (quasi) standards for the suffixes? Like "_diffuse_direct" or something like that? I ask for good default names.

I can build that in one of the next updates.

Sembei commented 5 years ago

Yes that or use the combined pass, it's just to plug it on game engines as baked light. I'm not aware of any naming convention, just something that matches would be enough.

danielenger commented 5 years ago

I made a quick implementation. For the time beeing it can only bake one pass at once.

Sembei commented 5 years ago

Nice! , I'll take a look

Sembei commented 5 years ago

Could be that Diffuse baking to png is in linear space instead of sRGB?

danielenger commented 5 years ago

It's fixed. Diffuse should be in sRGB, as far as I know.

Sembei commented 5 years ago

For non float formats yes