Projecting onto different size screens by cropping

Posted by Jason on Game Development See other posts from Game Development or by Jason
Published on 2011-03-15T14:25:30Z Indexed on 2011/03/15 16:20 UTC
Read the original article Hit count: 239

Filed under:
|
|

Hi,

I am building a phone application which will display a shape on screen. The shape should look the same on different screen sizes. I. Decided the best way to do this is to show more of the background on larger screen keeping the shapes proportion the same on all screens.

My problem is I am not sure how to achieve this, I can query the screen size at runtime and calculate how different it is from the six is designed for but I am not sure what to do with this value. What kind of projection should I use for my orthographic matrix an hour will I display more on larger screens and not loose information on smaller screens?

Thanks, Jason.

© Game Development or respective owner

Related posts about opengl

Related posts about math