Click to See Complete Forum and Search --> : OpenGL transparent color in texture mapping


Trigve
December 19th, 2005, 08:58 AM
Hello

I have a problem with setting transparent color in texture using OpenGL. I have a 24 bit TGA file without alpha, where i have 80 textures of size 64x64 in which each texture has black color as transparent color. I want to load each texture as one separate OGL texture making the black color transparent. I think it could be done with glTexEnv() function but don't know how, resp. have tried but without succes.


Thanks Trigve

Hobson
December 19th, 2005, 09:07 AM
Using trxture masks:
http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=20

Regards,
Hob

Trigve
December 19th, 2005, 09:12 AM
Using trxture masks:
http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=20

Regards,
Hob

oooh...Thanks... i did not realize i can use masking:)))

Trigve