Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [blending]

The tag has no usage guidance.

1
vote
1answer
28 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. ...
3
votes
1answer
60 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 ...
1
vote
1answer
37 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 ...
1
vote
0answers
41 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 ...
2
votes
2answers
201 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 ...
2
votes
1answer
94 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 ...
2
votes
2answers
93 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 ...
1
vote
0answers
94 views

OpenGL:Cutout effect with hardware blending modes and alpha

I am trying to compose two rendering results into one, so that src texture is cut out by the alpha from destination texture(or buffer). I prototyped the correct blending equation here. And tried to ...
1
vote
1answer
329 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: ...
1
vote
1answer
66 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 ...
5
votes
1answer
1k 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
1answer
38 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 ...
5
votes
1answer
137 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 ...