Re: Alphablending
- From: "//\\\\o//\\\\annabee <Free" <Software>>
- Date: Fri, 28 Apr 2006 20:54:59 +0200
På Fri, 28 Apr 2006 19:22:07 +0200, skrev jukka@xxxxxxxxxxxx <jukka@xxxxxxxxxxxx>:
< http://www.szmyggenpv.com/downloads/LeafONBk.Zip >
it is much closer then your is to mine, eh?
Btw. it still doesn't alpha *blend*, it seems to be doing somekind of
trivial color keying from looking at the rendered results. I don't see
the alpha component used for blending weight at all as would be
appropriate in this situation.
I did not notice any partly transparency in your rendering.
It looked just like plain Transparence to me. It still does.
So therefore I went for colorkeying to avoid the extra cycles.
If there is data: RGBA, RGB is the color and A is alpha component. It
can be used for a lot of interesting purposes, but when blending with
source factor set to "src alpha" and destination factor is set to "dest
inverse alpha" it means the blending equation is like this:
result = color1 * alpha1 + color2 * (1.0 - alpha1);
This case happens to be equivalent to:
result = interpolate(color1,color2,alpha1);
This will produce a "smooth" edges which are blended to background
gradually (the alpha component tells the strength of the color at each
sample).
Ok. What level of Alpha is used in your sample then?
The source says :
alphablend::setAlphaConstant(255,255);
If this means alpha = 1.0, then some additional operation must be performed on
your surface, because alpha 1.0 would make the backgound go fully away under the sprite?
In this sample :
< http://www.szmyggenpv.com/downloads/RBlissv002l.Zip >
Alphablending is performed if you select Options/About.
This peforms alpha between the background and the "dialog box". It does 100 levels.
From 0.01 to 1.0. As you can see, there is no background visible when alpha is 1.0
This is because alpha = 1.0 will fully make the background go away. This doesnt happen
in your app. The part of you bitmap that I replaced with a keycolor, should be visible
if you did alpha? Or if wrong, please explain what happens?
Conclusion: you appear to be doing color keying, or alpha compare.
Since you colored the "background" blue it could be just simple color
keying. All the same very interesting stuff.
Theres is alphablending in the the Section_FadeIn routine.
.
- Follow-Ups:
- Re: Alphablending
- From: jukka@xxxxxxxxxxxx
- Re: Alphablending
- References:
- Alphablending
- From: //\\\\o//\\\\annabee <Free
- Re: Alphablending
- From: hutch--
- Re: Alphablending
- From: //\\\\o//\\\\annabee <Free
- Re: Alphablending
- From: Chewy509
- Re: Alphablending
- From: Dunny
- Re: Alphablending
- From: //\\\\o//\\\\annabee <Free
- Re: Alphablending
- From: silk.odyssey
- Re: Alphablending
- From: //\\\\o//\\\\annabee <Free
- Re: Alphablending
- From: Dunny
- Re: Alphablending
- From: //\\\\o//\\\\annabee <Free
- Re: Alphablending
- From: Dunny
- Re: Alphablending
- From: //\\\\o//\\\\annabee <Free
- Re: Alphablending
- From: //\\\\o//\\\\annabee <Free
- Re: Alphablending
- From: jukka@xxxxxxxxxxxx
- Re: Alphablending
- From: jukka@xxxxxxxxxxxx
- Re: Alphablending
- From: //\\\\o//\\\\annabee <Free
- Re: Alphablending
- From: jukka@xxxxxxxxxxxx
- Alphablending
- Prev by Date: Re: Alphablending
- Next by Date: Re: Alphablending
- Previous by thread: Re: Alphablending
- Next by thread: Re: Alphablending
- Index(es):
Relevant Pages
|