Jump to content
  • Advertisement

Archived

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

rajivkr9

Texture Mapping

This topic is 6171 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

What i seen most of Texture mapping in opengl samples even in NeHe tutorial,use the bitmap having the pixel lenght 64,128,256. Now please tell me how i map the bitmap other than this dimension ? Rajiv Kumar Software Programmer Beehive System Ltd. INDIA.

Share this post


Link to post
Share on other sites
Advertisement
The images need to have their width and height as a power of 2. So they can be 2, 4, 8, 16, 32, 64, 128, 256, 512, etc

Share this post


Link to post
Share on other sites
OpenGL requires textures to have dimensions which are powers of two greater than or equal to 16. Either dimension can be 16, 32, 64, 128, 256, 512, 1024, 2048, etc. If you want to use a bitmap with non-power-of-two dimensions, then you have to load it into the next largest power-of-two texture and use the appropriate texture coordinates.

Edited by - TerranFury on November 23, 2001 7:43:53 AM

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!