Tga and photoshop

Started by
3 comments, last by AuC 20 years, 3 months ago
Hi, Im using the tga loading code from lesson #33. It does work with the TGA''s that came with the zip. But if i create my own TGA (or convert a TGA from jpg) with photoshop, i see nothing! Nothing except a white screen. Im using ortho2D mode for my application. Does someone know what is wrong? Or even better: how can I solve this problem? Thnx AuC
He who ask may be a fool for a few minutes, he who don't ask will be a fool forever.
Advertisement
Make sure your images are power-of-2 in size.

i.e. 512x512, 256x128, etc.

----------------
Amusing quote deleted at request of owner
----------------Amusing quote deleted at request of owner
I belive there is a problem with the nehe tga loader, I don''t think it can load 32 bit TGA''s.

It may have been fixed in the past 6 months.
I read a lot about tga files
and I''ve seen nehe tutorial about htem.
It''s great but it can''t load 32 bit images.

Try the tutorial you can find at www.gametutorials.com

It''s better, but it''s not complete.
I menaged to improve it, but it''s too messy to post it, and it would require some extensive explanation.
you may want to use this..

http://members.iinet.net.au/~cleathley/openGL/TextureLoader.htm

This topic is closed to new replies.

Advertisement