Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurice Raybaud <mauriceraybaud@hotmail.fr>2011-01-31 17:24:01 +0300
committerMaurice Raybaud <mauriceraybaud@hotmail.fr>2011-01-31 17:24:01 +0300
commit0a18240d88fbd68b9d07a36d3ac2c5abf8088186 (patch)
tree07aa1fe73b3b803b1ee9d019ede1617ff7114456 /render_povray
parent338ac1e5b5934d69bcb5ff871145c74ee3cf0a00 (diff)
Fixed: blob finish wrong level raised POV parse error.(the AllObjects.blend test scene now renders (though not all objects supported yet))
Added: support for deactivating all shadows from scene shading panel (per lamp 'no shadow' still works)
Diffstat (limited to 'render_povray')
-rw-r--r--render_povray/render.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/render_povray/render.py b/render_povray/render.py
index 6ecae2bd..85b425c0 100644
--- a/render_povray/render.py
+++ b/render_povray/render.py
@@ -593,10 +593,8 @@ def write_pov(filename, scene=None, info_callback=None):
tabWrite("adaptive 1\n")
tabWrite("jitter\n")
- if lamp.type == 'HEMI': # HEMI never has any shadow attribute
+ if not scene.render.use_shadows or lamp.type == 'HEMI' or (lamp.type != 'HEMI' and lamp.shadow_method == 'NOSHADOW'): # HEMI never has any shadow_method attribute
tabWrite("shadowless\n")
- elif lamp.shadow_method == 'NOSHADOW':
- tabWrite("shadowless\n")
if lamp.type not in ('SUN', 'AREA', 'HEMI'): # Sun shouldn't be attenuated. Hemi and area lights have no falloff attribute so they are put to type 2 attenuation a little higher above.
tabWrite("fade_distance %.6f\n" % (lamp.distance / 5.0))
@@ -707,7 +705,7 @@ def write_pov(filename, scene=None, info_callback=None):
else:
tabWrite("pigment {rgb<1 1 1>} \n")
- tabWrite("finish {%s}\n" % (safety(DEF_MAT_NAME, Level=1))) # Write the finish last.
+ tabWrite("finish {%s}\n" % (safety(DEF_MAT_NAME, Level=2))) # Write the finish last.
writeObjectMaterial(material, ob)