Hola all, I made a patch that enables the use of f/stop numbers to control DOF in Cycles:
http://projects.blender.org/tracker/index.php?func=detail&aid=30444&group_id=9&atid=127 I tried to make it as non-invasive as possible and luckily the formula is very easy (radius=focal/F#*0.5), but I would appreciate any comments on the code as this is still new to me. Hope the small size and changes makes it acceptable. In the beginning I was a little confused about the aperture size being in radius instead of diameter, and while I don't doubt Brecht, my initial tests were not super conclusive. So I just made a new test with the largest lens aperture I have (F/3.5) and it definitely looks like the radius is correct, but you be the judge :) (excuse the primitive modelling - the point is to check the bokeh, not aesthetics): http://www.pasteall.org/pic/27754 Tomorrow or tuesday I'll get a new lens that is very fast (F/1.4) and will make new test images that will hopefully be a bit more "scientific" and useful for documentation. Hope you will find this as useful as I do! Best regards, Ejner Fergo _______________________________________________ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers