Questions tagged [blending]
The process of mixing things together. Computer graphics uses blending concept to achieve transparency with image.
blending
572
questions
0
votes
0
answers
259
views
Algorithm of blending 'One OneMinusSrcAlpha'
I'm trying to find the algorithm of this blending in rust.
When searching through the image crate source, the blending method used is 'src-over' or 'SrcAlpha InvSrcAlpha' if I'm correct: source.
So ...
6
votes
2
answers
154
views
Window background visible through textures
What can I try to solve this problem? In this example (see a screenshot below) I am using OpenGL 1.1 with deprecated functions like: glEnableClientState, glMatrixMode, glTexCoordPointer, and so on. ...
1
vote
2
answers
5k
views
Blending images and a mask with OpenCV (Python)
Given the following images:
original.png:
background.png:
mask.png:
I'd like to blend them into the following (result.png):
I already know how to do this with Python PIL, but how do I do it with ...
0
votes
3
answers
342
views
How to solve multiple multivariate equation systems with constraints
I am trying to solve a blending problem with a system of 3 equations and I have 3 objectives to reach for, or try to get the values as close as posible for the three of them:
The equations are:
def ...
1
vote
2
answers
608
views
How to blend many textures/buffers into one texture/buffer in OpenGL?
I have one big buffer (object) containing the MNIST dataset: many (tens of thousands) small (28x28) grayscale images, stored one-by-one in row-wise order as floats indicating pixel intensity. I would ...
0
votes
1
answer
2k
views
how to create blendshapes from mediapipe facemesh
I need to know how to create and store blendshapes in a certain position of each part of the face (ex: left eye, left eyebrow, right eye, right eyebrow, nose, upper lip, lower lip, left cheek, right ...
0
votes
1
answer
5k
views
Unity sprite with white transparent area shows white line at border in scene
I have this sprite here which is part of a character. As you probably can see, it has a white area in the lower middle, which is semi-transparent.
But when placed into a sprite renderer in the scene ...
0
votes
1
answer
89
views
Masking using Blending Function does not work on Android
The code is made according to the example from the official LibGDX WIKI:
https://libgdx.com/wiki/graphics/2d/masking#4-masking-using-blending-function-shapes-or-textures
Works on DESKTOP
Does not work ...
0
votes
0
answers
119
views
Passing 'animated' text to js
I have @keyframes text animation is css (text is changing with :after method)
I need to pass that text to javascript to chnage the blending mode for each letter (thanks to Mostafa Hassan I know how to ...
0
votes
2
answers
213
views
Blending mode for individual letters within a word in CSS
I wonder if it is possible to apply a blending mode to individual letters to see how they overlap with negative letter spacing. As I understand it sees whole text string as one object and doesn't ...
0
votes
1
answer
422
views
What is wrong with my mix-blend-mode code snippet?
I’ve been trying emulate (in Webflow) this nifty 'fluid text hover' from the following codepen: https://codepen.io/robin-dela/pen/KKPYoBq
As you can see, there is a fair amount of HTML, CSS (SCSS) and ...
1
vote
1
answer
93
views
Is there something wrong with my mix-blend-mode code snippet?
I’ve been trying emulate (in Webflow) this nifty 'fluid text hover' from the following codepen: https://codepen.io/robin-dela/pen/KKPYoBq
As you can see, there is a fair amount of HTML, CSS (SCSS) and ...
1
vote
0
answers
620
views
OpenGL: How exactly does GL_SRC_ALPHA_SATURATE work?
so https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glBlendFunc.xhtml has one value that can only be used as source argument, GL_SRC_ALPHA_SATURATE and it is intended to be used as ...
1
vote
0
answers
41
views
Finding three functions that interpolates between equitation
For a past week I been trying to construct specific functions that would satisfy some the requirements, sadly it was not successful. I decided to give a shot in stack overflow.
I have three shapes in ...
1
vote
0
answers
743
views
multiply two images with 50% transparency of one of them in python
I'm struggling with the task: to multiply two images, 50% transparency of one of them.
That is, to get the result, as if you add two layers in Photoshop, assign opacity = 50% to one of them and set ...