Jump to content
  • Advertisement
Sign in to follow this  
Teenage Death Boy

Resolution and sprite sizes in 2D OpenGL

This topic is 4806 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

For my next 2d project I will be moving from SDL to using textured quads in OpenGL (although I will still be using SDL to setup the window etc). My question is, how do I go about designing my game to run at different resolutions. Does the sprite image (texture) stretch to fit the quad? Obviously, depending on what resolution the game is run at, the sprite or tile or whatever will have to be a different size, so do I get my artist to draw them at low res and then just scale it up, or do I get the sprite drawn at various resolutions? I am a bit confused. Any help is appreciated.

Share this post


Link to post
Share on other sites
Advertisement
Opengl will automagically fit images to quads, streching shrinking bending and rotating as nescessary.
You probably want high-res images which can be shrunken. That way stuff doesn't get too pixely at high resolutions. and it still looks good at low resolutions.

It's also possible to store more than one sprite in a single texture. In my game I load multiple images from one 512x512 file.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!