From 8bcdc221d9214474d55d884c12b43f9b3d6d315f Mon Sep 17 00:00:00 2001 From: Maurice Raybaud <mauriceraybaud@hotmail.fr> Date: Mon, 19 Sep 2011 21:47:16 +0000 Subject: [PATCH] rectangular area lights had wrong coordinates (probably achievable with proper matrix but swapping and negating axis seems ok for now) --- render_povray/render.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/render_povray/render.py b/render_povray/render.py index 24e333d66..6d2a4746f 100644 --- a/render_povray/render.py +++ b/render_povray/render.py @@ -629,8 +629,8 @@ def write_pov(filename, scene=None, info_callback=None): 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 @@ def write_pov(filename, scene=None, info_callback=None): 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. -- GitLab