Advertisement

lesson 33 TGA loading trouble

Started by January 05, 2003 06:37 AM
2 comments, last by wavk 22 years, 1 month ago
I changed the TGA loading code from the base code to the code of lesson 33 and now all my textures are messed up. I tried saving the tga with photoshop, blender, the gimp and painter classic, and came to the conclusion that this code can''t properly load tga''s with an alpha channel. I think this is strange because the code does load 32 bit targa''s, so what''s up? Have fun, Wybren van Keulen Funny Farm
I found that it only loads 24bit targas, maybe I''m wrong though, try 24bit to make sure.
Advertisement
It seems that posting helps clear things up in the head. That must be why I always solve the problem a few minutes after posting The code in lesson 33 builds the textures all at once after loading all textures, in the initgl function. In the GL_TEXTURE_2D I have to change the type to RGBA. Thanks for the time, neurokaotix!

Have fun,

Wybren van Keulen
Funny Farm
haha
no problem, I do what I can?

This topic is closed to new replies.

Advertisement