diff options
author | Constantin Rahn <conz@vrchannel.de> | 2011-02-08 14:42:20 +0300 |
---|---|---|
committer | Constantin Rahn <conz@vrchannel.de> | 2011-02-08 14:42:20 +0300 |
commit | 7df77158d8942bf43342b8bca3b733f7cf24ab13 (patch) | |
tree | b042485c5fc62127f95dcb13ea64ddac9eb8c7aa /render_povray/render.py | |
parent | e6f551aef77743f314368b66b590b331d3b1b38f (diff) |
Version 0.0.8
API: 34650
fix: x-offset in one mapping of Alphamap was inverted
Diffstat (limited to 'render_povray/render.py')
-rw-r--r-- | render_povray/render.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/render_povray/render.py b/render_povray/render.py index ac163b03..0d163e55 100644 --- a/render_povray/render.py +++ b/render_povray/render.py @@ -1050,7 +1050,7 @@ def write_pov(filename, scene=None, info_callback=None): if texturesAlpha != "": # POV-Ray "scale" is not a number of repetitions factor, but its inverse, a standard scale factor. # Offset seems needed relatively to scale so probably center of the scale is not the same in blender and POV - mappingAlpha = " translate <%.4g,%.4g,%.4g> scale <%.4g,%.4g,%.4g>" % (t_alpha.offset.x, -t_alpha.offset.y, t_alpha.offset.z, 1.0 / t_alpha.scale.x, 1.0 / t_alpha.scale.y, 1.0 / t_alpha.scale.z) + mappingAlpha = " translate <%.4g,%.4g,%.4g> scale <%.4g,%.4g,%.4g>" % (-t_alpha.offset.x, -t_alpha.offset.y, t_alpha.offset.z, 1.0 / t_alpha.scale.x, 1.0 / t_alpha.scale.y, 1.0 / t_alpha.scale.z) tabWrite("pigment {\n") tabWrite("pigment_pattern {\n") tabWrite("uv_mapping image_map{%s \"%s\" %s}%s}\n" % (imageFormat(texturesAlpha), texturesAlpha, imgMap(t_alpha), mappingAlpha)) |