Jump to content
  • Advertisement
Sign in to follow this  
amigocz

OpenGL npot textures and ATI

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

Hi, I'm trying to find out how to draw a non pow2 texture. I searched the forum and I guess that I've got few options. 1) I can use GL_TEXTURE_RECTANGLE_ARB BUT if I did so I would not be able to use mipmaps, texture coordinates are different and there is a difference in the shader code as well (Sampler2DRect). I'm using either DX and OpenGL with CG for shaders and I don't want the different shader code. 2) I can use ARB_texture_non_power_of_two extension but my graphics card does not support it (ATI RadeonX1950pro). I found a topic from the year 2002 saying that ATI cards do not fully support it. Well but we have 2008 now and my graphics card is not that old. Is there any special extension for ATI cards? BTW glGetString(GL_VERSION) tells me that I'm running version 2.1 and I'm using Windows Vista.

Share this post


Link to post
Share on other sites
Advertisement
If the driver reports 2.x it supports NPOT. However since ATI's support isn't complete, they decided not to expose the extension string. I can't find the pdf describing what's missing right now though :(

Share this post


Link to post
Share on other sites
Quote:
Original post by Lord Crc
If the driver reports 2.x it supports NPOT. However since ATI's support isn't complete, they decided not to expose the extension string. I can't find the pdf describing what's missing right now though :(


LOL how about everything!

Share this post


Link to post
Share on other sites
Quote:
Original post by MARS_999
LOL how about everything!

Nah, NPTs seem to work alright on ATI with recent drivers. Although I never tried them with mipmaps, only as screensize render textures.

Share this post


Link to post
Share on other sites
If you want to use NPOT textures with ATI cards, just follow the same rules as GL_TEXTURE_RECTANGLE_ARB to be safe.
No mipmaps, clamp to edge (no repeat), no filtering.

Share this post


Link to post
Share on other sites
Quote:
Original post by rosewell
If you want to use NPOT textures with ATI cards, just follow the same rules as GL_TEXTURE_RECTANGLE_ARB to be safe.
No mipmaps, clamp to edge (no repeat), no filtering.


Then what is the point, IMO...

Anyway are you using the latest drivers? If not go get them.

Share this post


Link to post
Share on other sites
On most up to date ATI cards right now both NPOT and Point Sprites are pretty solid in most cases.

If you start getting too exotic with texture settings, shaders, VBOs, and particularly binding attributes then you may run into some problems.

Share this post


Link to post
Share on other sites
Quote:
Original post by MARS_999
Then what is the point, IMO...
Anyway are you using the latest drivers? If not go get them.


The point is getting NPOT textures to work when the "ARB_texture_non_power_of_two" extension is not explicitly listed.
And this is not just for himself, but for other people who probably won't have the latest drivers installed.

Share this post


Link to post
Share on other sites
Quote:
Original post by amigocz
1) I can use GL_TEXTURE_RECTANGLE_ARB BUT if I did so I would not be able to use mipmaps, texture coordinates are different and there is a difference in the shader code as well (Sampler2DRect). I'm using either DX and OpenGL with CG for shaders and I don't want the different shader code.

2) I can use ARB_texture_non_power_of_two extension but my graphics card does not support it (ATI RadeonX1950pro). I found a topic from the year 2002 saying that ATI cards do not fully support it. Well but we have 2008 now and my graphics card is not that old. Is there any special extension for ATI cards? BTW glGetString(GL_VERSION) tells me that I'm running version 2.1 and I'm using Windows Vista.
On my Mac X1600 (slightly different drivers, and does export ARB_texture_non_power_of_two), nonPoT textures basically work according to the same rules as rectangular textures, so as long as you don't get fancy, you should be ok.

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!