lesson 33 TGA loading trouble
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.
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

Have fun,
Wybren van Keulen
Funny Farm
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement