• 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 AliCollinsJSY · Jul 22, 2014 at 11:18 PM · camerascreensizeorthographiccutoff

Orthographic camera cuts off half of screen in Web Player - resolution error?

Difficult to word this question, but one of my scenes is like a comic strip, where the camera moves along a path to display different pictures of the comic. However, the camera does not scale to the screen size (it is an orthographic camera) - i.e. it renders the comic on half of the screen in web player, the other half is simply a black screen.

Obviously I want the comic to be shown on the entirety of the screen rather than just half - this game is being built for Windows Phones with a 15:9 aspect ratio.

Setting the camera's aspect ratio on void Start did not fix the issue. Also, changing the camera back to Perspective did not fix the issue (As the comic is drawn in landscape, the perspective camera had a viewport rect of W = 1, H = 0.5 and X and Y = 0.

![alt text][1]

Any ideas? I have tried making the camera's W and H values even, but this distorts the comic strip and makes it look crap.

Essentially what I'm asking is, is it possible to make a custom camera size (W=1, H=0.5) but have that camera fit the entirety of the screen.

error.png (423.2 kB)
Comment
Add comment · 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 WilliamLeu · Jul 23, 2014 at 02:32 AM 1
Share

By definition that's impossible. If you set the viewport height to 0.5, it's only going to take up half the height. You could change the Y value of the viewport to 0.25 to center it, but if you want the entire viewing area to be used, the viewport dimensions need to be 1,1.

Have you tried changing the webplayer size in the HT$$anonymous$$L and/or using SetResolution to match the aspect ratio you wanted?

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Teh_ouj · May 13, 2015 at 05:23 AM

I dont know if you did solve the problem but if you did, i wish you would have said. Anyways, i had a similar problem. On your main cam, there is clipping section far and near. your near must be below zero to show that half of the screen. That was what i had to do. If anyone can explain this then that would be great. Also @AliCollinsJSY what did you do to solve this...

Cheers!

Comment
Add comment · 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

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

24 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

Related Questions

How to make your UI fit any iOS resolution? 1 Answer

Calculate approximate or same size and position of an 2d sprite(plane) object so it appears the same rendered with orthographic and perspective camera 0 Answers

How to make WorldToScreenPoint work with an orthographic camera? 1 Answer

How to make WorldToScreenPoint work with an orthographic camera? 0 Answers

Orthographic camera size question 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