diff options
author | Bastien Montagne <b.mont29@gmail.com> | 2019-11-05 19:21:06 +0300 |
---|---|---|
committer | Bastien Montagne <b.mont29@gmail.com> | 2019-11-05 19:21:06 +0300 |
commit | 5a528cae96da99b1e072e2a59478b4febcf5591c (patch) | |
tree | 68a9259bb3828529da36607991a791abfdbcabd3 /io_scene_fbx/import_fbx.py | |
parent | 945ffd40e4de40254ae3dfc6170e927379c08ec9 (diff) |
Fix T70879: FBX importer wrong normal map strength.
that value was not exported, and imported with some weird conversion
without any proper explanation for it.
For now, just export and import the value as-is, we can always come back
and tweak it once we know what BumpFactor is supposed to be exactly in
FBX...
Diffstat (limited to 'io_scene_fbx/import_fbx.py')
-rw-r--r-- | io_scene_fbx/import_fbx.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/io_scene_fbx/import_fbx.py b/io_scene_fbx/import_fbx.py index 93b01b9f..751a2b17 100644 --- a/io_scene_fbx/import_fbx.py +++ b/io_scene_fbx/import_fbx.py @@ -1425,8 +1425,7 @@ def blen_read_material(fbx_tmpl, fbx_obj, settings): ma_wrap.metallic = elem_props_get_number(fbx_props, b'ReflectionFactor', 0.0) # We have no metallic (a.k.a. reflection) color... # elem_props_get_color_rgb(fbx_props, b'ReflectionColor', const_color_white) - # (x / 7.142) is only a guess, cycles usable range is (0.0 -> 0.5) - ma_wrap.normalmap_strength = elem_props_get_number(fbx_props, b'BumpFactor', 2.5) / 7.142 + ma_wrap.normalmap_strength = elem_props_get_number(fbx_props, b'BumpFactor', 1.0) # For emission color we can take into account the factor, but only for default values, not in case of texture. emission_factor = elem_props_get_number(fbx_props, b'EmissiveFactor', 1.0) ma_wrap.emission_color = [c * emission_factor |