Questions tagged [blending]
The process of mixing things together. Computer graphics uses blending concept to achieve transparency with image.
572
questions
0
votes
1
answer
27
views
How to smoothly blend a texure into near-black colours?
Are there shading methods that allow you to smoothly blend a texture into full blackness without those 'colour-bleeding' artifacts that can be seen on this picture:
Screenshot taken in Unity using ...
-5
votes
0
answers
27
views
Blend a photo onto another by using pixel averages: Python
I am working on a project that requires me to blend one JPG onto another JPG image without using functions like blend (or other "complex" functions, the task is to do it manually). In order ...
0
votes
1
answer
63
views
Calculating distance from a camera to a plane of a cube in opengl
I am trying to get transparency blending to work properly on my cube and I have hit a bit of a roadblock. I have gotten blending to work on multiple cubes by simply drawing them in the correct order ...
0
votes
0
answers
31
views
Interpolating between 3 textures in GLSL using height
I'm working on some simple terrain texturing, and I am quite confused on how you go about interpolating between 3 different textures for a terrain, where you'd interpolate based on the height value of ...
0
votes
0
answers
30
views
C++ DirectX 11 Blending
I have a question about c++ in connection with DirectX11. I'm drawing on an overlay (WS_EX_LAYERED) and want to draw my things there in 3D space. First a circle. I do it like this:
PixelShader:
#...
0
votes
1
answer
78
views
Android Camera2 combine burst capture images from camera with shorter maximum exposure time to emulate long exposure times
I am trying to implement a long exposure Android Camera2 solution described in this answer.
Basically it tries to workaround the limitation of the short maximum exposure time (100 ms) reported by my ...
0
votes
1
answer
34
views
How to do different blend modes with CIFilter and opacity?
I'm trying to replicate blending two images in Photoshop with CIFilters in Swift. Let's say I want to blend img1 and img2 with softLight, then in Swift I can do:
let blendSoftLight = CIFilter....
0
votes
1
answer
149
views
Raylib alpha blending not working properly? [closed]
I'm using ralib (which uses OpenGL) to make a 2D game. I have sprites for menubutton objects and I want to draw a white "mask" sprite over the button, but give it a transparency. (Only the ...
0
votes
0
answers
28
views
Alpha Blending on Borders
I'm trying to generate new data using the copy/paste method. I want to know how I can do blending on foreground borders to make new images that are close to reality.
I tried alpha blending but I don't ...
1
vote
1
answer
41
views
Blending that overrides existing pixels
I am trying to display svg icons with some transparent parts.
White color in these icons means transparent pixels that lie on top of previously rendered black ones.
I can't find the correct blend mode ...
-1
votes
1
answer
52
views
Legacy OpenGL - Blending textures on water reflections produced with stencil test
I'm forced to use legacy OpenGL and no shaders for an academic project (yes..).
I'm rendering a 3D world with mountains and water. My goal (and problem) is to draw the skydome as reflection on the ...
0
votes
0
answers
55
views
Why is the color of CAMetalLayer view and png file different?
I am rendering using Metal. I am trying to convert the texture to a png (like a sticker) with a transparent background and a translucent subject (with alpha), but when I convert the MTLTexture to a ...
0
votes
0
answers
257
views
algorithm for overlaying point cloud on image
I am trying to make a task for an upcoming project and don't know which algorithms to use to solve this problem.
Given:
Let's say I have a 256x256 point cloud from lidar, I also have a 1280x720 RGB ...
0
votes
1
answer
56
views
Implementation of blending option in Python (Blend If)
I am currently working on conditional blending implementation like one used in Photoshop -> Blending Options -> Blend If. Anyone. who is a bit familiar with Photoshop should
be aware of such ...
0
votes
0
answers
14
views
Maintaining colours of a png texture coloured three.is obj
I have a obj of a T-shirt and png that has different colours. When I apply the png as a texture to the T-shirt mesh, the ones colours show up on lighter colours like white or yellow. But on blue or ...
0
votes
1
answer
68
views
What are the correct Metal blending options for additive blending?
I'm trying to blend a source texture with some snowflakes in Metal, but I can't find blending options that work for my use case.
.
The blending options I'm currently using are:
descriptor....
-2
votes
1
answer
73
views
I have a strange problem when trying to blend two overlapping surfaces (same depth)
I have two surfaces.
One as the background (rendered first).
The other as my "canvas" (rendered last).
I found a very strange problem when I tried to use blending to achieve a transparent ...
2
votes
1
answer
112
views
How to get rid of black lines caused of blending images?
I recently worked on a project that required blending multiple images together. I successfully completed all the necessary steps and successfully blended the images. However, I noticed that when I ...
0
votes
0
answers
24
views
Runtime improvement for blending of two numpy 2d arrays in RGBA
i am trying to blend two "figures" in form of numpy nd arrays of dimensions (2000,2000,4) with RGBA colorcoding together. I implemented a smooth blending around a threshold value of one of ...
0
votes
2
answers
162
views
Use Blend QML Type with differently sized images
The example listed in the documentation for QML's Blend Type show how to blend two images together. How can one achieve the same effect when working with images that are differently sized?
I have a ...
0
votes
0
answers
34
views
How to ignore a measure when merging datasets?
I am blending data from two datasets in SAP Analytics Cloud.
Both of the datasets have 3 measures, but when creating the final table in the story I am only interested in 3 of them. Is it possible to ...
1
vote
0
answers
81
views
Blending issues between InstancedMesh using a ShaderMaterial (trying to reproduce mix-blend-mode: overlay from Figma)
I've been working on blending between InstancedMesh using a ShaderMaterial. The blending between the InstancedMesh works fine with THREE.JS blending mode (Additive, Substractive, ...) but i struggle ...
1
vote
0
answers
92
views
How to create optimized variations of the same algorithm without too much copy/paste code? (C++)
When I write C++ code for realtime optimised purposes, such as audio or graphics processing, I run into the following problem quite often:
I need several variations of piece of code but with only some ...
0
votes
0
answers
42
views
Blend design to T Shirt without losing design color
I am just learning to use Photoshop CS2 and trying to blend my designs on my t shirt mockups.
I am able to blend the design successfully but I loose the original color (white) of my design after ...
0
votes
0
answers
745
views
Hot to get data from previous year in Google Looker Studio (Data Studio) when using Supermetrics (Apps Script Add-on) connector
I'm pulling data from Google Analytics for 150+ accounts, using Supermetrics for Looker Studio.
Now I want to create a table with Y/Y data, e.g:
Date
Date_last_year
Revenue
Revenue_last_year
Cost
...
0
votes
0
answers
64
views
Blending images in Python for loop and range
so I am having trouble figuring out how to blend two images with for loops and range(len). For this particular case, I need to compute the color of each pixel by setting value of each color component ...
0
votes
0
answers
11
views
Joining two databases from different years
On Tableau I want to somehow join two databases, one from 2022 and the other from 2023.
One database contains all the information about the purchases and sells of 2022 and the other from 2022. I tried ...
0
votes
1
answer
171
views
Implementing blending functions too complicated for fixed-function blending
I'm trying to implement advanced blending on the gpu. But whenever I try searching for resources, I get overwhelmed by terms like Order Independent Rendering, fragment shader interlock. And I don't ...
0
votes
0
answers
88
views
How to solve drastic brightness change when using cv2.seamlessclone?
I try to use cv2.seamlessclone to merge face image ori_img and skin mh_skin.
I want to replace the non-face area with skin by this operation,
Here's my code:
br = cv2.boundingRect(tight_mask[:, :, 0])
...
0
votes
0
answers
213
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 ...
5
votes
3
answers
135
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
3k
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
186
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
417
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
67
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
85
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
182
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
327
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
73
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
445
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
649
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 ...
0
votes
0
answers
122
views
Qt, particle system and additive blending
I’m creating a particle system using Qt and c++. I want to blend colours of the particles that overlap each other – adding the RGB values on top of each other, so colours would get brighter, something ...
2
votes
0
answers
370
views
Image stitching / texture blending in OpenGL (or OpenGL ES)
I've got two YUV images (YUV 420 SP), which have been loaded in fragment shader as textures.
These textures are having an overlapping area.
Now, I am trying to blend these two textures such that there ...
0
votes
2
answers
971
views
Vulkan Transparent 2D Textures
I'm trying to load 2D sprites containing transparent pixels using Vulkan, where so far I have been able to load the sprite, but have not been able to get the transparency working (Transparent pixels ...
1
vote
1
answer
466
views
How to use multiple between statements with the blend filter in ffmpeg
The command below blends input2 into input1 using a binary of *if expressions featuring the between statement's t variable. As such, output = input1, but with input2 at 00:00:03- 00:00:05:
ffmpeg -y -...
2
votes
1
answer
1k
views
FFmpeg : How to apply a filter on custom frames and place output of them between mainframes
I have an interlaced video stream and need apply a filter (any filter that takes two frames as input , for example tblend or lut2) on custom video frames and place output of them between mainframes ...
5
votes
1
answer
558
views
OpenGL depth testing and blending not working simultaniously
I'm currently writing a gravity-simulation and I have a small problem displaying the particles with OpenGL.
To get "round" particles, I create a small float-array like this:
for (int n = 0; ...