[Bf-extensions-cvs] [8ffc527] master: texture Normal_factor divided further

Maurice Raybaud noreply at git.blender.org
Sun Sep 11 21:42:20 CEST 2016


Commit: 8ffc527b58f5be988879b2d566803111aa846d2d
Author: Maurice Raybaud
Date:   Sun Sep 11 21:41:08 2016 +0200
Branches: master
https://developer.blender.org/rBA8ffc527b58f5be988879b2d566803111aa846d2d

texture Normal_factor divided further

===================================================================

M	render_povray/shading.py

===================================================================

diff --git a/render_povray/shading.py b/render_povray/shading.py
index 9f38b60..9ced600 100644
--- a/render_povray/shading.py
+++ b/render_povray/shading.py
@@ -761,7 +761,7 @@ def writeTextureInfluence(mater, materialNames, LocalMaterialNames, path_image,
                         t_spec = t
                     if t.use_map_normal:
                         texturesNorm = image_filename
-                        # colvalue = t.normal_factor # UNUSED
+                        # colvalue = t.normal_factor/10 # UNUSED
                         #textNormName=t.texture.image.name + ".normal"
                         #was the above used? --MR
                         t_nor = t
@@ -814,7 +814,7 @@ def writeTextureInfluence(mater, materialNames, LocalMaterialNames, path_image,
                         t_spec = t
                     if t.use_map_normal:
                         texturesNorm = image_filename
-                        # colvalue = t.normal_factor  # UNUSED
+                        # colvalue = t.normal_factor/10  # UNUSED
                         #textNormName=t.texture.image.name + ".normal"
                         #was the above used? --MR
                         t_nor = t
@@ -982,12 +982,12 @@ def writeTextureInfluence(mater, materialNames, LocalMaterialNames, path_image,
             mappingNor =imgMapTransforms(t_nor)
 
             if texturesNorm and texturesNorm.startswith("PAT_"):
-                tabWrite("normal{function{f%s(x,y,z).grey} bump_size %.4g %s}\n" %(texturesNorm, t_nor.normal_factor, mappingNor)) 
+                tabWrite("normal{function{f%s(x,y,z).grey} bump_size %.4g %s}\n" %(texturesNorm, t_nor.normal_factor/10, mappingNor)) 
             else:
                 tabWrite("normal {uv_mapping bump_map " \
                          "{%s \"%s\" %s  bump_size %.4g }%s}\n" % \
                          (imageFormat(texturesNorm), texturesNorm, imgMap(t_nor),
-                          t_nor.normal_factor, mappingNor))
+                          t_nor.normal_factor/10, mappingNor))
         if texturesSpec != "":
             tabWrite("]\n")
         ##################Second index for mapping specular max value###############
@@ -1093,11 +1093,11 @@ def writeTextureInfluence(mater, materialNames, LocalMaterialNames, path_image,
         mappingNor =imgMapTransforms(t_nor)
 
         if texturesNorm and texturesNorm.startswith("PAT_"):
-            tabWrite("normal{function{f%s(x,y,z).grey} bump_size %.4g %s}\n" %(texturesNorm, t_nor.normal_factor, mappingNor))
+            tabWrite("normal{function{f%s(x,y,z).grey} bump_size %.4g %s}\n" %(texturesNorm, t_nor.normal_factor/10, mappingNor))
         else:                                    
             tabWrite("normal {uv_mapping bump_map {%s \"%s\" %s  bump_size %.4g }%s}\n" % \
                      (imageFormat(texturesNorm), texturesNorm, imgMap(t_nor),
-                      t_nor.normal_factor, mappingNor))
+                      t_nor.normal_factor/10, mappingNor))
     if texturesSpec != "" and mater.pov.replacement_text == "":
         tabWrite("]\n")
 
@@ -1161,7 +1161,7 @@ def writeTextureInfluence(mater, materialNames, LocalMaterialNames, path_image,
                 if image_filename:
                     if t.use_map_normal:
                         texturesNorm = image_filename
-                        # colvalue = t.normal_factor  # UNUSED
+                        # colvalue = t.normal_factor/10  # UNUSED
                         #textNormName=t.texture.image.name + ".normal"
                         #was the above used? --MR
                         t_nor = t
@@ -1169,13 +1169,13 @@ def writeTextureInfluence(mater, materialNames, LocalMaterialNames, path_image,
                             tabWrite("normal{function" \
                                      "{f%s(x,y,z).grey} bump_size %.4g}\n" % \
                                      (texturesNorm,
-                                     t_nor.normal_factor))
+                                     t_nor.normal_factor/10))
                         else:
                             tabWrite("normal {uv_mapping bump_map " \
                                      "{%s \"%s\" %s  bump_size %.4g }%s}\n" % \
                                      (imageFormat(texturesNorm),
                                      texturesNorm, imgMap(t_nor),
-                                     t_nor.normal_factor,
+                                     t_nor.normal_factor/10,
                                      mappingNor))
                                       
         tabWrite("}\n") # THEN IT CAN CLOSE LAST LAYER OF TEXTURE



More information about the Bf-extensions-cvs mailing list