This topic is now archived and is closed to further replies.

Are there high quality texture map settings?

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

I was wondering if there was a better way of creating textures, I want them to be the same high quality as the original, but the textures which end up on my objects aren''t as clear as the original, even if i make the shape the same dimensions as the original texture. I''m using gluBuild2DMipmaps() and glTexSubImage2D() as the image dimensions I am using aren''t of the form n^2, otherwise I would have used glTexImage2D(). glGenTextures(1, &textureArray[textureID]); glBindTexture(GL_TEXTURE_2D, textureArray[textureID]); gluBuild2DMipmaps(GL_TEXTURE_2D, 4, texImage[textureID].sizeX, texImage[textureID].sizeY, textureType, GL_UNSIGNED_BYTE, texImage[textureID].data); glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, texImage[textureID].sizeX, texImage[textureID].sizeY, GL_RGBA, GL_UNSIGNED_BYTE, texImage[textureID].data); glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR_MIPMAP_LINEAR); glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR_MIPMAP_LINEAR); Any help would be gratefully appreciated - Tim

Share this post

Link to post
Share on other sites