Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by JackalopeConspiracy · Sep 01, 2015 at 01:02 AM · camerafovdepth of field

Converting FOV to Focal Length?

I come from a film background so I'm more used to dealing with focal lengths than with FOV. How can I roughly estimate a focal length to FOV? Also does changing the FOV also change things like depth of field and depth of focus like on real lenses? I'm guessing not, but if my hunch is right, how do I adjust those things? Are those not built into unity camera stuff or do I need a plug in?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by NoseKills · Sep 01, 2015 at 06:20 AM

The camera in unity isn't modelled optically. It's basically just a matrix that defines how to map coordinates in a 3d world to a 2d screen surface. The field of view only affects where on your screen the objects in the world are drawn to.

If you want depth of field etc. those are separate effects done with shaders, post processing and such and those effects typically offer a way to adjust their parameters completely separately. Unity DoF

Comment
Add comment · Show 4 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image JackalopeConspiracy · Sep 03, 2015 at 08:25 PM 0
Share

Thanks that helps with the DoF stuff. I have a question about another concept that doesn't seem to be covered by these features.

I can't seem to remember the term but it's related to DoF.

As a lens gets longer it gets a larger DoF but something else happens. The depth of the picture is flattened. So someone standing behind someone will look closer in a 60mm shot than they would in a 20mm shot. A wide angle lens (like a 10mm) will be be very extreme. Distances will seem even further away. By moving the camera and changing the lens length you get the famous "vertigo" shot, which you've probably seen in a lot of films (The Lord of the Rings, Vertigo, and Jaws use it. ) I've seen games use it too Amensia I believe uses it. Is there a way to do that in Unity?

avatar image JackalopeConspiracy · Sep 03, 2015 at 08:26 PM 0
Share

Ah, so apparently the word I was looking for was FoV but a real camera FoV has this distortion and as far as I can tell the Unity FoV does not have this effect. https://en.wikipedia.org/wiki/Dolly_zoom

avatar image mikelortega · Sep 04, 2015 at 08:31 AM 0
Share

Hi @JackalopeConspiracy The Dolly Zoom article mentions Perspective distortion, this is about how different a scene looks when using different Field of Views. Changing your camera's FoV will change how the scene looks (as long as you are not using Orthographic Projection). So, of course Unity distorts the image when using a different FoV, I think you are looking for something else that we still don't understand in your comments.

avatar image JackalopeConspiracy · Sep 04, 2015 at 08:58 AM 0
Share

No, I think you're probably right. I guess I don't see the perspective distortion in my project but that might just be the way I have stuff set up.

I did find some Dolly Zoom type plugins too though they're all for cinematic stuff. Thanks!

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

30 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Why does changing FOV not work on android? 0 Answers

Animate Depth of Field with Mechanim (in Cinematic Effects pack) 0 Answers

NullReferenceException: Object reference not set to an instance of an object error while using camera.main.fieldOfView 1 Answer

How to zoom-in, in VR 0 Answers

Any solution to floating point precision issues when working with extreme FOVs? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges