diff options
author | Maurice Raybaud <mauriceraybaud@hotmail.fr> | 2011-01-31 04:29:37 +0300 |
---|---|---|
committer | Maurice Raybaud <mauriceraybaud@hotmail.fr> | 2011-01-31 04:29:37 +0300 |
commit | 14a62bc7038f62ac73e7f45eed7c655e20e5daa2 (patch) | |
tree | 79272af7a3ccd1dee1f4ef32e718b5b369fa2771 /render_povray/render.py | |
parent | 4b94ad37333f868e1d3f29d6505a29f569b6c5dc (diff) |
Added more UI controls for Depth of Field
Cleaned up Media and photons UI layouts
Diffstat (limited to 'render_povray/render.py')
-rw-r--r-- | render_povray/render.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/render_povray/render.py b/render_povray/render.py index 1b868f7d..5844a0ee 100644 --- a/render_povray/render.py +++ b/render_povray/render.py @@ -535,10 +535,11 @@ def write_pov(filename, scene=None, info_callback=None): tabWrite("rotate <%.6f, %.6f, %.6f>\n" % tuple([degrees(e) for e in matrix.rotation_part().to_euler()])) tabWrite("translate <%.6f, %.6f, %.6f>\n" % (matrix[3][0], matrix[3][1], matrix[3][2])) - if focal_point != 0: - tabWrite("aperture 0.25\n") # fixed blur amount for now to do, add slider a button? - tabWrite("blur_samples 96 128\n") - tabWrite("variance 1/10000\n") + if camera.data.pov_dof_enable and focal_point != 0: + tabWrite("aperture %.3g\n"% camera.data.pov_dof_aperture) + tabWrite("blur_samples %d %d\n"% (camera.data.pov_dof_samples_min, camera.data.pov_dof_samples_max)) + tabWrite("variance 1/%d\n"% camera.data.pov_dof_variance) + tabWrite("confidence %.3g\n"% camera.data.pov_dof_confidence) tabWrite("focal_point <0, 0, %f>\n" % focal_point) tabWrite("}\n") |