🎉 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!

only white textures with NeHe texture-loader

Started by
1 comment, last by todi1856 17 years, 5 months ago
I´m using the texture-loader from the NeHe tutorial 6. I got the following error: error LNK2019: unresolved external symbol _auxDIBImageLoadA@4 referenced in function "struct _AUX_RGBImageRec * __cdecl LoadBMP(char *)" (?LoadBMP@@YAPAU_AUX_RGBImageRec@@PAD@Z) This error I could fix by adding: #pragma comment( lib, "glaux.lib" ) But my Objects are still white and textureless. I´m using the original texture from the NeHe tutorial, so the texture should be allright. Is there anybody out there with an idea, why it doesn´t work? Thanks so far. Edit: I´m using Visual C++ (Visual Studio 2005) [Edited by - nobody2k1 on January 13, 2007 8:52:12 AM]
Advertisement
I have plenty of ideas.
1. is the texture at the right place
2. are you sure it's the right texture, or did you modify it in any way
3. is the string that tells glaux where to look correct
4. is any other part of the loading code correctly copied
5. did you enable GL_TEXTURE_2D before rendering
6. is glBindTexture outside the glBegin/glEnd pair

Try implementing the glAux replacement code that you can find in my signature.
There were times, when i had white textures, my error was -
texture size wasn't the power of two (and i didn't build any mipmaps)

So the correct size of texture is 2x2 , 2x4 , 32x128,256x128 and so on...

This topic is closed to new replies.

Advertisement