Archived

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

stefu

Asking for max texture width and height?

3 posts in this topic

My OGL app gives totally white texture if I try to create texture with size of 512x512 pixels. I know that my device can use max. 256x256 textures (Voodoo3, D3DCAPS8 told it). How can I ask for max width & height of texture in OpenGL to resize my texture? [edit] And how to know if textures must be sized to power of two? Or can I suppose they must be? Edited by - stefu on July 20, 2001 4:23:07 AM
0

Share this post


Link to post
Share on other sites
You must use glGet with GL_MAX_TEXTURE_SIZE.

The textures must always be sized to power of two! (except if you use some NVIDIA extensions...)

0

Share this post


Link to post
Share on other sites
also u can use gluScaleImage to rescale an image eg from 512x512 -> 256x256

http://members.xoom.com/myBollux
0

Share this post


Link to post
Share on other sites