Jump to content
  • Advertisement
Sign in to follow this  
Dario Oliveri

compressed texture size

This topic is 2482 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 need to know wich is the minimum size (in pixels) for a compressed texture mipmap level. Is it 1 or is it depending on the typ of compression (for example 2x2 if s3tc compression used) ?

for example starting of a texture let's say 63x45 wich are the sizes of all successive mipmap levels?

Share this post


Link to post
Share on other sites
Advertisement

Hi I need to know wich is the minimum size (in pixels) for a compressed texture mipmap level. Is it 1 or is it depending on the typ of compression (for example 2x2 if s3tc compression used) ?

Mipmaps always go all the way down to 1x1 by default.

for example starting of a texture let's say 63x45 wich are the sizes of all successive mipmap levels?

Divide by two and round down to get the next mipmap size.

Share this post


Link to post
Share on other sites
So it works the same also for compressed textures? I was supposing some different behaviour since compressed textures are different from normal textures XD but if you are correct their mipmaps act the same. Thank you.

Share this post


Link to post
Share on other sites
The answer to this is in the documentation for GL_ARB_texture_non_power_of_two: http://www.opengl.org/registry/specs/ARB/texture_non_power_of_two.txt

There is no specified interaction between texture compression and non-power-of-two textures; issues 9 and 10 give further info that is relevant to your question.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!