Hi all
I want to give you and Vlado a tiny little toy to show you how *easy* DoF could work. ..maybe Vlado can add such a feature to the final 1.5 ..whenever the chaos will drop it *g*

http://www.cgtechniques.com/goodies/doftoy/
the code is that simple that it can't be a problem to add it to vray soon
u = 0.025 --unschärfekreis für kleinbild 0.025 (mm)
f = 50 -- focal lenght (mm)
d = focus distance
k = 1.8 -- Aperature size ..increasing means a smaller opening and not a wider opening .. i want to mention it , because i think vray is handling this value wrong!
Hf = (f*f) / (k*u*1000) --hyperfocus
near = (Hf *d) / (Hf + d) --near focus
far = (Hf *d) / (Hf - d) --far focus
greetings from vienna!
I want to give you and Vlado a tiny little toy to show you how *easy* DoF could work. ..maybe Vlado can add such a feature to the final 1.5 ..whenever the chaos will drop it *g*

http://www.cgtechniques.com/goodies/doftoy/
the code is that simple that it can't be a problem to add it to vray soon
u = 0.025 --unschärfekreis für kleinbild 0.025 (mm)
f = 50 -- focal lenght (mm)
d = focus distance
k = 1.8 -- Aperature size ..increasing means a smaller opening and not a wider opening .. i want to mention it , because i think vray is handling this value wrong!
Hf = (f*f) / (k*u*1000) --hyperfocus
near = (Hf *d) / (Hf + d) --near focus
far = (Hf *d) / (Hf - d) --far focus
greetings from vienna!
Comment