🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Easy question

Started by
2 comments, last by Shark 24 years, 1 month ago
Can a texture be any size? If not, how can I load an image of a specific size, say.... 640x480? thanks!
Advertisement
The texture''s x and y must be powers of two. Scale your textures to a 2^n*2^m size!

Visit our homepage: www.rarebyte.de.st

GA
Visit our homepage: www.rarebyte.de.stGA
You can use non-power of two textures by making them mipmaps. However even on the lowest level the computer will size it to a power of 2 texture.
if u felt that u wanted to uses a non 2^n*2^m size! texture you caould always uses subtexture which doesnt care bout the size and is faster or so says the red book than actually doing a normal texture

This topic is closed to new replies.

Advertisement