Thinlens Sensor: Scene units and aperture radius #724
Replies: 1 comment
-
Hi @maxfrei750 The You can arbitrarily set the scale of your scene relative to scene units (1 mm == 1 scene unit for example). Hence, the aperture radius being defined in scene units. The f-stop measure is a relative measure, you only need the focal length and aperture diameter to be in the same units. Does this make sense? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to export a camera with depth-of-field from Blender to Mitsuba (if everything goes well, then this might even be added to the Mitsuba Blender Add-on).
To get DOF in Mitsuba, I need to use the
thinslens
sensor, which (among other parameters) expects afocal_length
and anaperture_radius
. While Blender specifies the focal length (in mm, either directly or via the field of view), the aperture radius is defined via the f-stop property. According to Wikipedia, I can calculate the aperture radius from the focal length and the f-number.Naturally, in the real-world, the aperture radius will be in units of length. However, the Mitsuba documentation of the
aperture_radius
states that it has to be specified in scene units:What is the best way to tackle this problem?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions