• 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
Question by SuperSparkplug · Jul 07, 2012 at 12:57 AM · cameraiosipadwebcamaspect ratio

iPad Camera Aspect Ratio

Hi, I'm working with some people on an iPad app using Unity. We're trying to use the camera on the iPad 3, but we're currently running into some problems and not$$anonymous$$ng we've done has been able to fix it.

We've set a plane in Unity that shows whatever the camera sees wit$$anonymous$$n it. Every time we to upload it to the iPad, the camera aspect ratio is REALLY wonky. If we hold it sideways, whatever the camera picks up looks like someone severely widened and scaled the content on screen. Whenever we hold it virtically, the same t$$anonymous$$ng happens, except with the height. What's odd is that, no matter our settings, the actual frame where camera footage is does NOT rotate or change in size or position. Both the aspect ratio and scale are severely off but I'm not sure how to change that without passing it to our script guy and even he doesn't quite understand it (And I tried fiddling with the Player settings for iOS and it barely affected it). Also, for some reason, the camera is kinda zoomed in at a rate that looks like it's somewhere between 1.5x and 2x. The iPad's camera app works fine and we made sure that was zoomed out, but the app still zooms the camera for some reason.

I've tried just about everyt$$anonymous$$ng in my bag of tricks to figure it out to no avail. Anyone have any idea how we can fix the aspect ratio/size/scale/zoom?

Comment

People who like this

0 Show 1
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 Mortoc · Jul 07, 2012 at 02:28 AM 0
Share

Can you show a screenshot of the weirdness happening?

2 Replies

· Add your reply
  • Sort: 
avatar image

Answer by cenk5355 · Dec 03, 2012 at 03:23 PM

Hi friend,

Just put a plane in front of your camera and apply t$$anonymous$$s formula to your plane (transform.localScale).There is a relation between your camera-plane distance and the field of view.I will add the picture asap.

Comment

People who like this

0 Show 0 · 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

Answer by cenk5355 · Dec 04, 2012 at 10:29 AM

alt text


untitled-1.png (239.3 kB)
Comment

People who like this

0 Show 0 · 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

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

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

2D Aspect Ratio Of Camera 2 Answers

,iOS WebCamera Texture GetPixels() call returns only black colours? 1 Answer

Multiple cameras not working correctly on iPad Air 0 Answers

WebCamTexture and VSync (iPhone 4) 3 Answers

How to access Camera Feed (iOS and Android) 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