Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4052744
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T14:21:30+00:00 2026-05-20T14:21:30+00:00

I am learning openGL ES 2.0 to make a game for android. I was

  • 0

I am learning openGL ES 2.0 to make a game for android.

I was wondering how different resulution screens would affect my program?

I have made a sample program of a spinning triangle and noticed that when I turn my device sideways the triangle gets smaller and is at a different distance form the the edges.

How does this work and how am I supposed to make a game which works nicely on different devices?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T14:21:31+00:00Added an answer on May 20, 2026 at 2:21 pm

    The screen’s coordinates go from -1.0f to 1.0f for each axis with the origin (0|0) in the center of the screen.

    Considering a triangle with

    A(-1|-1), B(+1|-1), C(0|+1)

    which is displayed correctly in portrait orientation, will be stretched horizontally and compressed vertically in landscape orientation. That is because the positioning is relative to the screen:

    A(bottom left), B(bottom right), C(top center).

    So, the scaling is unproportional. When doing proportional scaling, you have to work with the aspect ratio of the screen and transform the vertices appropriate in a vertex shader.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've recently started learning programming to make my own 3D OpenGL game on the
I'm learning some OpenGL game programing, and I'm stuck in how to implement so
I have been learning OpenGL and SDL lately and I've become rather confused about
I have been learning opengl for about 4-5 months now. I am ready to
So I have begun learning OpenGL, reading from the book OpenGL Super Bible 5
I'm am currently learning game development with C++ and OpenGL/SDL although I am not
im learning wpf for the first time, i have made this far private void
I have a question - I am learning OpenGL ES 2.0 from this tutorial
Im using OpenGL for an app that im trying to make. I've been learning
Learning a little about T-SQL, and thought an interesting exercise would be to generate

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.