- Home /
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.
][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.
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?
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!
Your answer
Follow this Question
Related Questions
How to make your UI fit any iOS resolution? 1 Answer
Change camera ortographic size to fit the content 1 Answer
Orthographic camera size question 1 Answer
How to make WorldToScreenPoint work with an orthographic camera? 1 Answer
How to make WorldToScreenPoint work with an orthographic camera? 0 Answers