I need to export a rhino model to Unity 3D. I’m doing this as a fbx file. Along with that I need to send some camera view information to Unity. My question is about adding the lens length to Unity. Unity doesn’t have something called lens length, But there’s some thing called field of view. I would like to know how to convert the lens length to field of view (if they are related) or if there’s any other matching property in Unity.
I can’t vouch for any of the results you’ll find being accurate but I ran a search for ‘converting lens length to field of view’ and found a bunch of online calculators that can probably help… I use the first one. I am not familiar with Unity though for any other suggestions there.
The result I found for the default 50mm camera in Rhino was 46.79 degrees but many of the calculators specify certain lens brands and I’m am unclear how that effects the result.
In Unity we are building an App to show different 3D models for some training event. My client creates the 3D models in Rhino. So I’m importing them to Unity. One 3D model can have 3 camera views to show it in different angels. So the client is sharing these camera view details like below for example.
Using these values I’m setting the camera views in Unity. My problem is converting the focalLength(Lens length in Rhino) to Field of view value of Unity.
With the help of previous reply I found this http://paulbourke.net/miscellaneous/lens/
And I’m planning to use "vertical field of view = 2 atan(0.5 height / focal length)"
But now I’m having a issue of finding the value of height. Not sure what to use for that.
Did you ever work out a reliable equation to convert lens length? I’m trying to do the same now.
Is Lens length the same s focal length? https://en.wikipedia.org/wiki/Angle_of_view
Seems to me that Focal length is not an absolute parameter to define field of view and ratio will vary from manufacturer.