Questions tagged [alphablending]

Alpha blending is a convex combination of a translucent foreground color with a background color allowing for transparency effects.

562 questions
0
votes
0 answers

Blender Principled BSDF inverting Alpha makes it stop working properly

I have a shoe that's partly behind transparent objects. At the top left you can see the selected object (filter), there are actually 2 of them, one being slightly larger, and they both just have transparent BSDF for a material. Their only purpose is…
Jack
  • 43
  • 4
0
votes
0 answers

Unexpected alpha blending result in Chrome

rgba(0, 255, 0, 0.5)
rgb(0, 127, 0)
Here is a jsbin:…
Duncan
  • 209
  • 1
  • 6
0
votes
1 answer

How do I fix the jaggedness and darkness around the edges of 2D textures in WebGL?

I've tried setting the antialias property on the WebGL context to true, but that didn't fix it. This is what I'm getting in WebGL: This is canvas rendering, via drawImage, which is what I'm trying to replicate: I'm using the default WebGL…
Infinite-3D
  • 59
  • 1
  • 8
0
votes
2 answers

Using 'blend' filter with ffmpeg colors my video pink

I am using ffmpeg's library fluent-ffmpeg in nodejs. My purpose is to blend a black box with text upon a video (using 'lighten' blend filter) so the background will be deleted in a clean & beautiful way. For some reason the video turns pink after I…
Ilan Yashuk
  • 145
  • 1
  • 9
0
votes
1 answer

Fastest way to draw [grayscale bitmap * colorValue] additively to screen on Android

What I want to do is multiple a grayscale alpha bitmap with an RGB color value, and then draw the resulting RGB bitmap to screen additively, that is, at each pixel I want: p_new[r/g/b] = p_old[r/g/b] + colorValue[r/g/b] * grayscaleBitmapValue I…
b_yang
  • 109
  • 6
0
votes
1 answer

Text on semitransparent image on Delphi form

I hope that somebody can help me with semitransparent image with text on it. Here is my problem. I've a main form with GIF on it (for example). I need to show semi transparent background over that main form and have some dynamic text on it. Main…
brane
  • 41
  • 6
0
votes
1 answer

Can you use Pin Light in CSS?

I know we can use mix-blend-mode in CSS, but the Pin Light blending mode that is in Photoshop doesn't seem to be an option on web browsers. Is there a work around to get the same effect? Thank you.
0
votes
1 answer

opengl apply alpha mask after rescaling

I need to merge two images in openGL using an alpha mask. BUT - I need the alpha mask to apply after the images have been rescaled to the display size - ie. the alpha mask is in screen not image coords. I thought there was a way of doing a…
Martin Beckett
  • 94,801
  • 28
  • 188
  • 263
0
votes
2 answers

glBlendFunc and alpha blending

I'm writing a application where a user is allowed to toggle between different shaders, and combinations of them. Thus i want to draw the exact same scene a multiple time. In the end, all the passes should be combined into one single output. To…
Donny
  • 549
  • 2
  • 10
  • 24
0
votes
0 answers

How to speed up OpenCV blending?

I am dealing with a problem that consists alpha blending of two images. I am using basic OpenCV functions. For every image, I create a mask using inRange and GaussianBlur. Then, I use that mask to blend two images. You can see the blend function…
nuwanda
  • 21
  • 2
0
votes
2 answers

How do I create non stacking alpha blending with objects in openGL

I am currently building an iPhone game using OpenGL ES 1.1 and using drawTriangleStrip to draw a big line that winds around the screen and overlaps itself quite often. The problem I'm having is I don't want the alpha to stack up as the line…
Doormat23
  • 31
  • 4
0
votes
3 answers

How do color and textures work together?

I must be asking a very basic question. I've just learnt how to apply textures. Basically, I have a scene (a plane) and a cube on it. I apply a texture to one of the faces of the cube. The face of the cube I am trying to apply the texture to is red,…
Armen Tsirunyan
  • 130,161
  • 59
  • 324
  • 434
0
votes
1 answer

Making gradient light spots with matplotlib

I'm trying to use the following example to make light spots on a sky image: import numpy as np import matplotlib.pyplot as plt from matplotlib.colors import Normalize def normal_pdf(x, mean, var): return np.exp(-(x - mean)**2 / (2*var)) #…
user164863
  • 580
  • 1
  • 12
  • 29
0
votes
1 answer

Image Magick blend 2 cropped/resize images together in the middle

Hey all I have this code below that takes 2 images and merges them together with it fading in the center: convert testingl.jpg -gravity West ^ testingr.jpg -gravity East ^ blend_mask.png -extent 1080x440 -gravity center -composite…
StealthRT
  • 10,108
  • 40
  • 183
  • 342
0
votes
0 answers

How do I reduce opacity of geometry that is hidden from view?

I have a 3D model of a house with some lines draw on it in teal. I'd like to reduce the opacity of lines that should not be visible to the camera because they are hidden behind parts of the roof.
nickponline
  • 25,354
  • 32
  • 99
  • 167