[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [1879] trunk/py/scripts/addons/ render_povray: Improved input precision for chromatic dispersion for more accurate caustics
Maurice Raybaud
mauriceraybaud at hotmail.fr
Fri Apr 29 19:39:04 CEST 2011
Revision: 1879
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=1879
Author: mauriceraybaud
Date: 2011-04-29 17:39:04 +0000 (Fri, 29 Apr 2011)
Log Message:
-----------
Improved input precision for chromatic dispersion for more accurate caustics
Modified Paths:
--------------
trunk/py/scripts/addons/render_povray/__init__.py
trunk/py/scripts/addons/render_povray/render.py
Modified: trunk/py/scripts/addons/render_povray/__init__.py
===================================================================
--- trunk/py/scripts/addons/render_povray/__init__.py 2011-04-29 14:27:35 UTC (rev 1878)
+++ trunk/py/scripts/addons/render_povray/__init__.py 2011-04-29 17:39:04 UTC (rev 1879)
@@ -320,7 +320,7 @@
Mat.pov_photons_dispersion = FloatProperty(
name="chromatic dispersion",
description="Light passing through will be separated according to wavelength. This ratio of refractive indices for violet to red controls how much the colors are spread out 1 = no dispersion, good values are 1.01 to 1.1",
- min=1.00, max=10.0, soft_min=1.00, soft_max=1.10, default=1.00)
+ min=1.0000, max=10.000, soft_min=1.0000, soft_max=1.1000, precision=4, default=1.0000)
Mat.pov_photons_reflection = BoolProperty(
name="Reflective Photon Caustics",
Modified: trunk/py/scripts/addons/render_povray/render.py
===================================================================
--- trunk/py/scripts/addons/render_povray/render.py 2011-04-29 14:27:35 UTC (rev 1878)
+++ trunk/py/scripts/addons/render_povray/render.py 2011-04-29 17:39:04 UTC (rev 1879)
@@ -291,7 +291,7 @@
if pov_fake_caustics:
tabWrite("caustics %.3g\n" % material.pov_fake_caustics_power)
if pov_photons_refraction:
- tabWrite("dispersion %.3g\n" % material.pov_photons_dispersion) # Default of 1 means no dispersion
+ tabWrite("dispersion %.6f\n" % material.pov_photons_dispersion) # Default of 1 means no dispersion
#TODO
# Other interior args
if material.use_transparency and material.transparency_method == 'RAYTRACE':
More information about the Bf-extensions-cvs
mailing list