nehe's tga loader doesnt load 32 bit?
Replace the tgas with 32 bit tga''s in tutorial 33 and it looks like..
http://members.villagephotos.com/image.asp?id_=3553554&sessionkey=DBQJRHXCDBDVQOANAMKG
Whats wrong with his code for 32 bit tga''s?
I thought for the longist time i messed up my version based off his, then i thought to check his with it. Sure enough it wont load 32 bit. The load code in 32 handles 32bit tga corectly but they cant be compressed.
Am i missing somthing or does it not work?
quote:
Use from this location denied. Referrer is
I can't see the image.
There's quite a few additional bits in the header that do all sorts of stuff. Go to the Whotsit's Format Search and search for tga. (I'd give you a direct link, but I think it's denied too

[edited by - Wildfire on July 10, 2003 3:01:42 AM]
How do I set my laser printer on stun?
sorry you should be able to see the image here:
http://img.villagephotos.com/p/2003-7/273308/tut33.jpg
http://img.villagephotos.com/p/2003-7/273308/tut33.jpg
Does the code work for any one with a 32 bit tga? You can get one from tutorial 32.
Do you mean 32-bit as in red-8, green-8, blue-8, alpha-8? If so, then yes, NeHe''s code works just fine for me in that sense. Unfortunately, NeHe''s loading code isn''t correct all the time, as the TGA format includes quite a few options with flags that, if they are enabled, the loader spits the image out as an unreadable image (not TGA format).
Go to Wotsit.org as was mentioned earlier for the "official" TGA specifications to check to make sure that your loader meets them (or at least the ones you need to meet).
Also, check to see if the images you''re trying to load are compressed or uncompressed, which could make a big difference in which section of the code is breaking.
Good luck.
"Back to the code mines... ka-chink... ka-chink..."
Tachyon Digital - Down for the summer, be back in the fall.
Go to Wotsit.org as was mentioned earlier for the "official" TGA specifications to check to make sure that your loader meets them (or at least the ones you need to meet).
Also, check to see if the images you''re trying to load are compressed or uncompressed, which could make a big difference in which section of the code is breaking.
Good luck.
"Back to the code mines... ka-chink... ka-chink..."
Tachyon Digital - Down for the summer, be back in the fall.
"Back to the code mines... ka-chink... ka-chink..."Tachyon Digital - Down for the summer, be back in the fall.
July 10, 2003 01:22 PM
I have just recently had some problems with my code off of nehe''s and Q3 tga images. Im now converting my TGA engine to be based off the code at gametutorials. That is supposted to be much better.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement