[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [1529] trunk/py/scripts/addons/ render_povray/render.py: Fixed: blob finish wrong level raised POV parse error.(the AllObjects. blend test scene now renders (though not all objects supported yet))
Maurice Raybaud
mauriceraybaud at hotmail.fr
Mon Jan 31 15:24:03 CET 2011
Revision: 1529
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=1529
Author: mauriceraybaud
Date: 2011-01-31 14:24:01 +0000 (Mon, 31 Jan 2011)
Log Message:
-----------
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)
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-01-31 11:35:40 UTC (rev 1528)
+++ trunk/py/scripts/addons/render_povray/render.py 2011-01-31 14:24:01 UTC (rev 1529)
@@ -593,10 +593,8 @@
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 @@
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)
More information about the Bf-extensions-cvs
mailing list