Skip to main content
GameDev.net gamedev.net
🔒 Locked

Transpernecy..

Started by Naveed Ahmed Aug 22, 2000 at 7:02 AM 5 replies 450+ views
Original Post
Naveed Ahmed
Naveed Ahmed
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.
Blue*Omega
Blue*Omega
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)
NeoGL
NeoGL
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
Naveed Ahmed
Naveed Ahmed
Well, I am talking about Color Key, like in DirectDraw, is masking same as color key?
Naveed Ahmed
Naveed Ahmed
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).
richardve
richardve
I think this is what you''re searching for...

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.