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-05-10 21:48:00 +0400
committerMaurice Raybaud <mauriceraybaud@hotmail.fr>2011-05-10 21:48:00 +0400
commit298e81cc75faf7b3002140e31db8b6cca7d599fc (patch)
treeb1a041f1ba088dfcaf87c33b1eea7e4d0df5ee38 /render_povray/render.py
parenta53fabc21f8c40bd01180c82a97ff9bca1738ebd (diff)
Added spacing_multiplier to object photons block so per object photon count tuning is now possible (see tooltip)
Diffstat (limited to 'render_povray/render.py')
-rw-r--r--render_povray/render.py19
1 files changed, 10 insertions, 9 deletions
diff --git a/render_povray/render.py b/render_povray/render.py
index 87a4eb2d..43317289 100644
--- a/render_povray/render.py
+++ b/render_povray/render.py
@@ -314,6 +314,7 @@ def write_pov(filename, scene=None, info_callback=None):
if pov_photons_refraction:
# Default of 1 means no dispersion
tabWrite("dispersion %.6f\n" % material.pov.photons_dispersion)
+ tabWrite("dispersion_samples %.d\n" % material.pov.photons_dispersion_samples)
#TODO
# Other interior args
if material.use_transparency and material.transparency_method == 'RAYTRACE':
@@ -330,17 +331,17 @@ def write_pov(filename, scene=None, info_callback=None):
# (variable) dispersion_samples (constant count for now)
tabWrite("}\n")
+
+ tabWrite("photons{")
if not ob.pov.collect_photons:
- tabWrite("photons{collect off}\n")
+ tabWrite("collect off\n")
+ tabWrite("target %.3g\n" % ob.pov.spacing_multiplier)
+ if pov_photons_refraction:
+ tabWrite("refraction on\n")
+ if pov_photons_reflection:
+ tabWrite("reflection on\n")
+ tabWrite("}\n")
- if pov_photons_refraction or pov_photons_reflection:
- tabWrite("photons{\n")
- tabWrite("target\n")
- if pov_photons_refraction:
- tabWrite("refraction on\n")
- if pov_photons_reflection:
- tabWrite("reflection on\n")
- tabWrite("}\n")
materialNames = {}
DEF_MAT_NAME = "Default"