Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 /
avatar image
0
Question by darthbator · Jul 24, 2012 at 11:16 PM · cameraperspectivefovdistortion

Camera FoV and Scene Geometry Distortion

So I have done some googling about this and even posted a forum thread but over the last few days I still haven't had any luck figuring this issue out. I'm getting some really severe geometric distortion around the edges of my Nexus7 16x9 tablet screen. Before I go any further here is a link to the forum post I made that has some more code pasted into it.

Camera Distortion Issues

I think this might be due to the fact that I am adjusting the FoV in order to zoom the camera. Or alternatively it could be that I am messing with the FoV and then moving the cameras trasnform.position through the world. Below is an image of the kind of distortion I am talking about.

crazy camera madness

Based on some of the googling I have done people have said that this can happen when the camera zooms in so much that it loses focal perspective of some of the scene geometry. So I have clamped my zoomFoV between 40 at the lowest and 100 at the highest yet I still regularly see this issue. I've tried extending the ground terrain thinking that maybe the sharp corners of it are causing the camera to do this but that almost sounds crazy now that I type it.

Any help would be most appreciated since this kinda has me tearing my hair out!

Comment
Add comment · Show 6
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 thommoboy · Jul 25, 2012 at 12:18 AM 0
Share

are you changing the field of view in script or in the editor?

avatar image darthbator · Jul 25, 2012 at 12:52 AM 0
Share

I am doing it via script. Here is the code that is changing the FoV. It's in a script attached to the main camera.

http://pastebin.com/C$$anonymous$$nHrBVr

^ code inside

avatar image thommoboy · Jul 25, 2012 at 01:06 AM 0
Share

it seems right but just to test try setting Camera.main.fieldOfView = newFOV; to Cam.fieldOfView = newFOV;

and make a new camera variable called Cam so: var Cam : Camera;

avatar image thommoboy · Jul 25, 2012 at 01:06 AM 0
Share

oops :P just remembered C# right so: public Camera Cam;

avatar image darthbator · Jul 25, 2012 at 11:55 PM 0
Share

Yeah that doesn't seem to make any difference. I am starting to think the issue isn't actually with the code by rather something else in my scene or how the camera is aligned to the scene itself after adjusting the FoV.

Pretty frustrating issue. I see people complaining about camera distortion but i have no come across a good information source about how to fix or avoid the issue.

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by ScroodgeM · Jul 27, 2012 at 11:54 AM

solution 1

use z-distance instead of FOV for zooming if you want to avoid distortion at great FOV angles

solution 2

http://docs.unity3d.com/Documentation/Components/script-Fisheye.html
Comment
Add comment · Show 1 · 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 Bunny83 · Jul 27, 2012 at 01:51 PM 0
Share

Exactly, the fov is pretty nice to zoom in, but not to zoom out. This is the normal behaviour. It's the field of view, if you have 180 it would map almost a sphere onto your rectangular screen.. In Quake 3 / live all are happy with a fov of 130 ;) At least that's how i play.

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

7 People are following this question.

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

Related Questions

I need no perspective distortion for some part of screen 0 Answers

Perspective distortion makes objects on the edges of the screen "nearer" 0 Answers

Is it possible to show only a part of what camera sees 1 Answer

Zoom camera to correct FoV based on Rect size 1 Answer

Unity3d or Maya-style Camera navigation 5 Answers


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