Possible c++ image scaleing in opengl
would it be possible to take a small texture and scale it up with out loseing quallity in openGL?
Well... when you scale it up, you don't exactly lose quality. But you don't gain quality either (where would you gain it from?).
...
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).
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).
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.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement