PDA

View Full Version : increase Texture details



Pswin
01-23-2008, 09:23 AM
hi

i am using devil with OpenGL for loading textures. my problem is in the bad quality of sowed textures in my app (not all of the details of texture shown and most of the texel's color combine together )

what can i do for improving this problem?

-NiCo-
01-23-2008, 10:38 AM
Don't use devil. It messes up your textures if the dimensions are not a power of 2 in size.

N.

Pswin
01-23-2008, 12:47 PM
i must use devil.
what can i do?

-NiCo-
01-23-2008, 12:58 PM
You can use ilGetData() to get access to the image pixels and then load these pixels into a target of GL_TEXTURE_2D (if your card supports GL_TEXTURE_NON_POWER_OF_2) or GL_TEXTURE_RECTANGLE.

N.