Jump to content
  • Advertisement
Sign in to follow this  
Solance

Possible c++ image scaleing in opengl

This topic is 4820 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

would it be possible to take a small texture and scale it up with out loseing quallity in openGL?

Share this post


Link to post
Share on other sites
Advertisement
i dont care about gaining quality i just want the image to still look good when its bigger.

Share this post


Link to post
Share on other sites
...

When I say "quality", I refer to "resolution".

When you scale an image up, you do not gain the extra resolution that is required to make it look good once it's bigger (as in - it will look pixelated).

You have to have the extra resolution there to begin with.

This is the case for scaling up any image (in OpenGL or otherwise).

Share this post


Link to post
Share on other sites
You may want to change texure magnifiction and minifiction modes like this:


glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);


Texture will look a bit blurred in extreme cases, however, it won't look pixelized - and that's probably what you want to achieve.

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!