PDA

View Full Version : Horrible texture blur\pixelization



Nowhere-01
05-03-2011, 11:04 AM
hey. today i discovered weird bug on radeon x700. actually, it's not my system, but one of my testers. so, according to subject, textures are horribly blurry(if i disable filtering - horribly pixelated), when on other systems they're ok.

More details:

OS: Win 7 x64
Driver: 10.2
Vendor: Palit(afaik)

I tried every filtering mode(i mean GL_TEXTURE_MAG\MIN_FILTER) that did not help, because most of textures are not scaled. They could be scaled, but that doesn't affect anything. I also tried

glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAX_LEVEL, 0);

, that didn't help either. At current time i cannot directly access that system(maybe later), so i'm asking you, maybe someone already encountered simillar issues? And there, you think, i should dig? Is it my fault or notorious ATI drivers?

Nowhere-01
05-03-2011, 11:09 AM
http://trueimages.ru/thumb/31/44/e363c9bffdd71496020a2ff2ec9.png (http://trueimages.ru/view/3kj0k)

Part of screenshot he sent me. For you to know how it looks like.

Nowhere-01
05-03-2011, 08:59 PM
Aw, silly me, it looks like blur caused by NPOT textures and enabled mipmapping(i still can use NPOT withous scaling, just by disabling GL_GENERATE_MIPMAP, right?).

dukey
05-04-2011, 04:51 AM
why do you need mipmaps for 2d stuff ?

Nowhere-01
05-04-2011, 08:14 AM
To make images scalable. Application GUI is fully customizable. At least, fonts are needed to be scalable. It looks like on FX series and all older cards i cannot use NPoT textures even with disabled mipmaps, right?

mhagain
05-04-2011, 08:57 AM
Standard NPoT is either unavailable or - even worse - software emulated on this kind of hardware, yes. GL_ARB_texture_rectangle should however work on at least the more recent models.

Nowhere-01
05-04-2011, 07:07 PM
Oh thank you, that looks like the best fix possible. I didn't knew about that extension(to be more certain, i didn't knew what it is for) and thought about alternative render using glDrawPixels(and almost done it). According to GL Extension Viewer, GL_ARB_texture_rectangle is supported by almost every adapter.

Kelvin
05-05-2011, 12:04 AM
Just be aware the GL_ARB_texture_rectangle explicitly does not support mipmap filtering. This will limit the range of scaling you can do and maintain quality.

Nowhere-01
05-05-2011, 01:53 AM
I've noticed weird behavior. OpenGL reports that GL_ARB_texture_non_power_of_two is supported by Radeon x700, but really it's not, it doesn't work. But on Integrated GF 6150SE it reports that GL_ARB_texture_non_power_of_two and GL_ARB_texture_rectangle are NOT supported, but they should be(it works just fine with NPOT textures and mipmapping and rectangle textures work too and they're listed in GLEXViewer database for that adapter).

I just don't get it. And how should i make it automatically determine support of those extensions. Any suggestions?

Also GF 6150 SE running under XP with 258.xx driver.