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

AO Bake not capturing surface detail #58

Closed Ulazygit closed 3 years ago

Ulazygit commented 3 years ago

When using Blender's own AO bake for cycles (with conventional node setup) one gets surface detail as part of the bake. Using this plugin however provides no surface detail for the AO bake and thus shades the surfaces as though flat. AO detail

The above is an example of the desired level of detail from Blender's integrated AO bake with procedurally generated textures.

On the other hand, this is the undesirable outcome from the plugin where such detail is lost.

undesired

franMarz commented 3 years ago

This should be related to how the blender Python API manage the baking of AO, because if you use the following script with an image active on the object's shader: import bpy bpy.ops.object.bake(type='AO') You'll get the same smoothed result. You better report this in developer.blender.org?

franMarz commented 3 years ago

Closing now due to inactivity, you can reopen this task if you find out that this addon is actually responsible of the issue.

franMarz commented 3 years ago

The addon is the culprit. I don't understand why the simple script I posted delivered the same result. The issue is already fixed on my side, but I want to enhance the code more before sharing it. Reopening.

franMarz commented 3 years ago

Fixed in TexTools 1.4.1, download and install the latest release: https://github.com/SavMartin/TexTools-Blender/releases/download/v1.4.1/TexTools_Blender_1_4_1.zip