Field of view in milimeters

Hi everybody,

I was wondering how to transpose the camera field of view which is express in gradient in BabylonJS to a millimeter value?
I found this simple Wikipedia article on the subject: Angle of view - Wikipedia
But it seems I need the variable “focal length” in order to be able to make the unit change between radiant and millimeters.

Thanks for your help :wink:

Maybe the focal length is the minZ value of the camera?

Pinging @JohnK as he knows math better than me.

I can do the maths if I know the meaning of the variables! In terms of focal length do these help?

https://doc.babylonjs.com/api/classes/babylon.depthoffieldeffect#focallength

https://doc.babylonjs.com/how_to/using_depth-of-field_and_other_lens_effects

Hi @JohnK and @Evgeni_Popov,

After some digging, I realized that I have confused the 2 parameters Field of View and Focal Length.
Plus looking at the api documentation, the focal length is already set in millimeter so no issue here!

Sorry for the mistake and thanks for your anwers :wink: