[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2335] trunk/py/scripts/addons/ render_povray/render.py: rectangular area lights had wrong coordinates ( probably achievable with proper matrix but swapping and negating axis seems ok for now )

Maurice Raybaud mauriceraybaud at hotmail.fr
Mon Sep 19 23:47:17 CEST 2011


Revision: 2335
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2335
Author:   mauriceraybaud
Date:     2011-09-19 21:47:16 +0000 (Mon, 19 Sep 2011)
Log Message:
-----------
rectangular area lights had wrong coordinates (probably achievable with proper matrix but swapping and negating axis seems ok for now)

Modified Paths:
--------------
    trunk/py/scripts/addons/render_povray/render.py

Modified: trunk/py/scripts/addons/render_povray/render.py
===================================================================
--- trunk/py/scripts/addons/render_povray/render.py	2011-09-19 15:08:06 UTC (rev 2334)
+++ trunk/py/scripts/addons/render_povray/render.py	2011-09-19 21:47:16 UTC (rev 2335)
@@ -629,8 +629,8 @@
                     size_y = lamp.size_y
                     samples_y = lamp.shadow_ray_samples_y
 
-                tabWrite("area_light <%.6f,0,0>,<0,0,%.6f> %d, %d\n" % \
-                         (size_x, size_y, samples_x, samples_y))
+                tabWrite("area_light <%.6f,0,0>,<0,%.6f,0> %d, %d\n" % \
+                         (size_x, -size_y, samples_x, samples_y))
                 if lamp.shadow_ray_sample_method == 'CONSTANT_JITTERED':
                     if lamp.jitter:
                         tabWrite("jitter\n")
@@ -651,7 +651,7 @@
                     tabWrite("fade_power %d\n" % 2)  # Use blenders lamp quad equivalent
                 elif lamp.falloff_type == 'INVERSE_LINEAR':
                     tabWrite("fade_power %d\n" % 1)  # Use blenders lamp linear
-                # upposing using no fade power keyword would default to constant, no attenuation.
+                # supposing using no fade power keyword would default to constant, no attenuation.
                 elif lamp.falloff_type == 'CONSTANT':
                     pass
                 # Using Custom curve for fade power 3 for now.



More information about the Bf-extensions-cvs mailing list