5 votes

How to perform additive blending in Metal. What do these terms mean?

The “blend factors” are the amount that the specified component is multiplied by while blending. “Destination” is the existing content that’s being blended “on top of”, while “source” is the new ...
Noah Witherspoon's user avatar
4 votes
Accepted

How is the alpha value treated when blending?

How does it make sense to have a half opaque object in front of a fully opaque object result in something that is not fully opaque again? The problem here is one of concepts. The alpha component of a ...
Nicol Bolas's user avatar
  • 9,697
3 votes
Accepted

Alpha blending in linear colour space

Just turning the comments into a fully-fledged answer as it may prove useful to others. IMHO, the alpha channel should always be linear and treated as such. You described blending a black quad over ...
Simon F's user avatar
  • 4,171
2 votes

Given a composited image, is it possible to find the color and opacity of an overlaid shape?

You can solve the colors by solving a system of linear equations if you make few assumptions: The alpha of the color wheel is constant (i.e. same for all colors in the wheel) The beige background ...
JarkkoL's user avatar
  • 3,616
2 votes
Accepted

Can't make blending work

I notice that you've enabled blending and depth testing and are drawing with a non-opaque alpha channel. What's going to happen is that if you don't draw from back to front (relative to the camera), ...
user1118321's user avatar
  • 3,401
2 votes

Is it possible to override or disable blending per pixel

You seem to be using additive blending against its purpose. Additive blending is supposed to represent light from multiple sources being combined. It is not physically possible for one source of light ...
Nicol Bolas's user avatar
  • 9,697
1 vote
Accepted

What's the intuition behind color burn and other blend modes?

In general, notice that there is no particular reason for a blend mode or other color processing formula in an image manipulation program to be reasonable “from first principles” at all. All we care ...
Kevin Reid's user avatar
1 vote

how to blend RGB components separately

Since you only want full brightness and no brightness, sure you can. Red channel on: additive blend with red Red channel off: multiplicative blend with cyan Blue channel on: additive blend with blue ...
user253751's user avatar
1 vote

How to calculate interpolation between multiple skeleton poses?

I will suggest something for the rotational part but I do not know how fast it is. Assume you have a 3D coordinate system centered at the pivoting point of the joint and fixed with respect to one of ...
Futurologist's user avatar
1 vote
Accepted

GL_SAMPLE_ALPHA_TO_COVERAGE and depth testing

(Promoting comment to answer) Do the faces have the same alpha value? That might generate the same coverage mask for the surfaces and, hence, only the closest one would be seen.
Simon F's user avatar
  • 4,171
1 vote
Accepted

Repeating alpha over/under operation multiple times

So taking source over as an example, the math works out to: dst = a * src + (1 - a) * dst Taking Nathan Reed's suggestion of replacing (1 - a) with ...
user1118321's user avatar
  • 3,401
1 vote

How to blend a segment of an image with another image

Move the child down slightly so the right foot is behind the shoulder. Reduce their size almost 50%. Blend only the outline of the child with the background, at most a few pixels. The men appear to be ...
Rob's user avatar
  • 256
1 vote

How to perform additive blending in Metal. What do these terms mean?

Terminology The source color is the value written by the fragment/pixel shader. The destination color is the color from the image currently in the frame buffer (that will be overridden). Additive ...
Matthias's user avatar
  • 1,044
1 vote

What blend mode is this?

That looks like multiplying the front image by the luminance of the shirt behind it. There are multiple definitions of luminance but for a start, I think you could assume your data is sRGB and follow ...
Olivier's user avatar
  • 1,585
1 vote

Make Object created in a list blend in/dissolve out of a scene

It looks like there are a few steps to make this work: Linearly interpolate the alpha of the mesh from transparent to fully opaque, or vice versa. Note 1: It seems as if the alpha starts to fade a ...
clabe45's user avatar
  • 163
1 vote

Alpha blending between two overlapping semi-transparent shapes

I used Stencil Buffer to fixing your problem , you need a way for checking overlapping two or more shapes ...
Seyed Morteza Kamali's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible