Jump to content

View more

Image of the Day

Isn't this a lovely apple tempart placeholder thing  #gamedev worth a #screenshotsaturday even I would say. https://t.co/fQH1d0ySIG
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Asking for max texture width and height?

2: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
3 replies to this topic

#1 stefu   Members   

120
Like
Likes
Like

Posted 19 July 2001 - 09:21 PM

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

#2 bobatefrei   Members   

122
Like
Likes
Like

Posted 19 July 2001 - 11:18 PM

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...)



#3 stefu   Members   

120
Like
Likes
Like

Posted 19 July 2001 - 11:21 PM

Thanks a lot!

#4 zedzeek   Members   

528
Like
Likes
Like

Posted 20 July 2001 - 11:28 AM

also u can use gluScaleImage to rescale an image eg from 512x512 -> 256x256

http://members.xoom.com/myBollux




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.