Posted 12 August 2001 - 12:44 PM
help me!!!! :°(°°°
i need to display an image with a black background (it contains the title of my game) on the screen make the black invisible and not the text in the image trasparent. i decided to not use GL_BLEND but only GL_ALPHA_TEST with glAlphaFunc(GL_GREATER,0.0f)
but the image rendered is with the black background. with the blend function the black disappears but i the text is semi transparent and bad looking. i use a TGA image file loaded with the code of Nehe without the compression. reading the code and the tutorial i''ve seen that with only TGA files with 32 BPP we can load the texture with the RGBA format. in 24BPP only RGB. So,i''ve tried to convert the image in 32BPP but none of my programs support 32 bit TGA files, only 24 max (Paint Shop Pro,IrfanView,etc).. Nehe in his tutorial says about 32 bpp tga files.. it''s true? how can i load this image correctly and render it ? the code for rendering is :
I''ve tried all the possible options for AlphaFunc and Blend...