Skip to main content

Questions tagged [blending]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
369 views

OpenGL blending with the screen

I don't understand how OpenGL performs the blending of a texture on the screen. By default, the clear color is set to (0, 0, 0, 0). If we use the default blending equation GL_SRC_ALPHA and ...
0 votes
0 answers
29 views

Normal blend mode math

I have one question. How to calculate source color after blending operation. For example. I have 1 - Background color (r-115, g-94, b-67, a-1) 2 - Foreground color above background color, which ...
0 votes
1 answer
45 views

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

I've implemented a simple color burn function in one of my shaders and I understand the results (I think), but the math behind it, although simple, is unintuitive to me. I struggle to understand how ...
2 votes
1 answer
318 views

How is the alpha value treated when blending?

I'm struggling with understanding how blending works. Here's what I understand: when I set the following ...
0 votes
1 answer
122 views

how to blend RGB components separately

Suppose I have previously rendered some set of pixels on the screen that each contain one of the following RGB values: ...
0 votes
0 answers
32 views

Is it possible to separate or split original images (or videos) from a blend image (or video)

The title says it all. Blended image or video contains multiple image or video blended on top of each other. I am looking for any software or tools that can separate the original images or videos. ...
2 votes
2 answers
3k views

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

Forgive me, I dont really understand the basis of alpha blending. Like I know the formula but when it comes to the terms blending operation, source blend factor, and destination blend factor I am ...
1 vote
0 answers
175 views

Sorting my geometry for alpha testing

Here is my predicament. I am trying to draw a multitude of dots that leave trails behind them real time. Heres the difficulty, that line fades. Each dot line has a defined z position and the goal ...
1 vote
2 answers
425 views

How to calculate interpolation between multiple skeleton poses?

I found out that I should use spherical linear interpolation to blend two poses of a joint. I cannot find what to do if I have hundreds of poses to blend except applying the SLERP iteratively. What ...
1 vote
1 answer
785 views

GL_SAMPLE_ALPHA_TO_COVERAGE and depth testing

I am currently looking into alternatives to my current, somewhat slow but exact, OIT approach. Specifically, GL_SAMPLE_ALPHA_TO_COVERAGE to convert the alpha value into a per-sample mask. ...
1 vote
1 answer
59 views

How to blend a segment of an image with another image

I want to put a segment of an image to another image. But to make it realistic I applied poisson blending. But the output is not good at all. Output without poisson blending. The kid was cropped ...
3 votes
1 answer
67 views

Repeating alpha over/under operation multiple times

I have two RGBA colors in linear [0..1] space, src and dst and I want to alpha blender src ...
3 votes
1 answer
1k views

Alpha blending in linear colour space

I've been making a simple game in OpenGL, and implemented a screen fade-out using the old 'draw a black fullscreen quad and ramp up the alpha' trick. I'm doing all my shaders in linear space and using ...
1 vote
1 answer
2k views

Is it possible to override or disable blending per pixel

I'm rendering transparent objects in separate framebuffer then compositing it with opaque one to get final image. The transparent pass has additive blending: ...
4 votes
1 answer
9k views

Alpha blending between two overlapping semi-transparent shapes

I am working on a 2D lighting system for my game. My approach has been to: Create a transparency quad representing 'darkness'. Create a stencil shader for light sources to clip from the darkness quad....
1 vote
2 answers
152 views

What blend mode is this?

I asked this on Graphic Design but was unable to get any relevant help from them. I'm trying to reverse engineer a blending mode I've seen on a picture: This image was created by someone else ...
0 votes
1 answer
79 views

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

I have a number of (opaque) objects created using the glGenLists() glNewList() utilities. As generated, the Alpha values are all set to 1 Is there a way to make these objects when summoned blend into ...
1 vote
1 answer
46 views

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

I have an image that I'm trying to recreate programatically using Pyx in Python. It seems that there's an overlaid circle covering the color wheel. I'm trying to see if there's a way to, given the ...
3 votes
1 answer
308 views

Can't make blending work

I have a 3 dimensional dataset where each value of the dataset is normalized to [0, 1]. I want to visualize this dataset by using texture, and blending. However, it ...