View Full Version : When two bitmaps overlap each other
05-10-2004, 04:45 AM
I have two bitmaps which are called A and B respectively. They overlap with each other and occupy the same 3D space, that is say, they have the same depth value. At some parts of the bitmaps, I want to see colors from A and at other parts, I want to see colors from B. I have a condition to decide at certain parts which one wins. Is there any way to do this?
try using the alpha test: glAlphaFunc(...)
05-10-2004, 01:24 PM
The problem of glALphaFunc is how to set the reference value. Do it pixel by pixel? The winning areas of A or B are not regular shapes. It looks like the we want the alpha test to do the similar work as depth test does.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.