Skip to main content
GameDev.net gamedev.net
🔒 Locked

TGA loading code - OpenGL

Started by mankeyrabbit Jan 26, 2003 at 5:41 AM 0 replies 250+ views
Original Post
mankeyrabbit
mankeyrabbit
i have been following the Quake3 BSP loading tutorial on www.gametutorials.com, but cannot load the TGA files. My TGA loader loads in most normal tgas, but when trying to load the Quake3 tgas, they all load in corrupted and unrecognisable. I have directly copied the tga loader code from www.gametutorials.com but to no avail - the result remains the same. I have found that if i *dont* call the tga loader function, and leave the pixel data as null, the effect remains the same, but when loading in the pixel data, it is never null - i have checked. I have spend a lot of time looking through my loader code, and recoded it from scratch several times, using code from NeHe as well, but with no effect. the gametutorials code, however, loads every tga in fine! The code can be found at http://mysite.freeserve.com/mankey/texture.zip please help me! i am at a loss as to what to do! thank you in advance MankeyRabbit
:::MR:::

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.