[Bf-extensions-cvs] [0a588aef] blender2.8: FBX import: Add comment about how to handle texture clamping.
Bastien Montagne
noreply at git.blender.org
Wed Sep 26 10:34:43 CEST 2018
Commit: 0a588aef732e7a3a8411f660d77b406528b82f09
Author: Bastien Montagne
Date: Wed Sep 26 10:17:56 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBA0a588aef732e7a3a8411f660d77b406528b82f09
FBX import: Add comment about how to handle texture clamping.
===================================================================
M io_scene_fbx/import_fbx.py
===================================================================
diff --git a/io_scene_fbx/import_fbx.py b/io_scene_fbx/import_fbx.py
index 444ebbf9..8dd60543 100644
--- a/io_scene_fbx/import_fbx.py
+++ b/io_scene_fbx/import_fbx.py
@@ -3021,6 +3021,21 @@ def load(operator, context, filepath="",
"clamp": tex_map[3],
}
+ """
+ TODO for clamp:
+ # awkward conversion UV clamping to minmax
+ node_map.min = (0.0, 0.0, 0.0)
+ node_map.max = (1.0, 1.0, 1.0)
+
+ if clamp in {(False, False), (True, True)}:
+ node_map.use_min = node_map.use_max = clamp[0]
+ else:
+ node_map.use_min = node_map.use_max = True
+ # use bool as index
+ node_map.min[not clamp[0]] = -1000000000.0
+ node_map.max[not clamp[0]] = 1000000000.0
+ """
+
if lnk_type in {b'DiffuseColor', b'3dsMax|maps|texmap_diffuse'}:
ma_wrap.diffuse_image_set(image)
if use_mapping:
More information about the Bf-extensions-cvs
mailing list