Jump to content
  • Advertisement
Sign in to follow this  
deuter

some problems with texture mapping

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

Hello! I'm making a simple chess game for 2 players using c and opengl. I've made a simple 2 colored board in paintbrush and used the code from NeHe's tutorial #6 (btw. great work!) but it doesn't work together (a white quad is displayed instead). I'm sure it's the fault of the bitmap, but I can't figure out in what way? First I thought it's about the size and tried to adjust size of my bitmap to the size used in the tutorial. Of course it didn't work. Then I checked some other bitmaps from my hard drive (most were smaller) and all was fine. Does anyone know what's going on? Thanks in advance, deuter

Share this post


Link to post
Share on other sites
Advertisement
actually the squares were already green and grey. that's why i'm surprised the quad is white ;-)

Share this post


Link to post
Share on other sites
Ok, more htan likely, your bitmap will have to be multiples of 2 in length and width (2, 4, 8, 16, etc) and another common problem is making sure you have the image saved with the correct about of bits (16, 24, 32)
I believe that tutorial requires that the bitmap is 24 bit.
Anyway, if you want to put the time into it, grab that Singletonn texture manager here on gamedev... It really helped me out a lot
http://www.gamedev.net/reference/articles/article1439.asp
there ya go
Any questions, don't be afraid to post!

Jake

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!