loading texture
hi,
i just wonder how can i load a texture that is''n a square with size power of 2?
thanks
sid
Textures don''t have to be square but they do have to have sides of power of 2. If you really want odd shaped textures then either scale them (up or down) or pad them with black (or some other colour/transparency) to the pow2 boundaries.
There''s a "tutorial" at http://romka.demonews.com/opengl/demos/texture_eng.htm. Look for the non-standard texture reader.
Hope this helps,
Crispy
Hope this helps,
Crispy
"Literally, it means that Bob is everything you can think of, but not dead; i.e., Bob is a purple-spotted, yellow-striped bumblebee/dragon/pterodactyl hybrid with a voracious addiction to Twix candy bars, but not dead."- kSquared
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement