Advertisement

Transpernecy..

Started by August 22, 2000 07:02 AM
5 comments, last by Naveed Ahmed 24 years, 3 months ago
I need to show a bitmap, 16m color, and like to implement transperency such that, beside the main picture, remaining area of color black(0,0,0) or white(255,255,255) should not show, I tried blending, but can''t get it work, does anybody has solution.
You should take a look at NeHe''s latest tutorial. It shows you how to load TGA files that support Alpha channels. they should give you the effect your looking for.

-----------------------------

Blue*Omega

(Insert Witty Quote Here)
// Tojiart
Advertisement
You are talking about Masking, that''s what you want to do. Read up Nehe''s Tutorial #20. That is exactly what you are looking for.


Neo
Well, I am talking about Color Key, like in DirectDraw, is masking same as color key?
actually the correct way to do colour masking is with glColorMask(....) not how its done in tut20
Masking is not good, if you have 50 types of images, should you generate 50 monochrome images to mask, there should something else to filter just one color like (0,0,0) or (255,255,255).
Advertisement
I think this is what you''re searching for...

This topic is closed to new replies.

Advertisement