Questions tagged [premultiplied-alpha]

Colorspace where each color component is multiplied by alpha value. This makes alpha blending faster and prevents color distortion when blending semitransparent colors together.

35 questions
0
votes
1 answer

OpenGL ES 2.0 Alpha

I am trying to load a texture PNG ( exported by photoshop) and use it in OpenGL ES 2.0 in Android, but the solid color seems like transparent ( black circle in the png is totally black) I has been read that if you scale a png more than 50% that bug…
D4rWiNS
  • 2,585
  • 5
  • 32
  • 54
0
votes
0 answers

Opengl premultiplied alpha image render process

I'v been learning OpenGL2.0 rendering stuffs for a while and here are some personal understanding on alpha rendering I want to know if they are right: Say I have a PNG (32 bit) file (none premultiplied alpha image) with only one pixel (src…
supersuraccoon
  • 1,621
  • 4
  • 20
  • 36
0
votes
1 answer

Color.FromNonPremultiplied different tinting with BlendState.NonPremultiplied

In my XNA project I use non-processed images and draw them with BlendState.NonPremultiplied so they look normal around the edges. But when I use non-white color (Color.FromNonPremultiplied(12, 34, 56, 78)) in SpriteBatch.Draw method, it doesn't tint…
user1306322
  • 8,561
  • 18
  • 61
  • 122
0
votes
1 answer

GLSL particle's rendering (premult)

I have been trying to get a particle rendering library to work with my shaders. It works perfect with fixed function and I know the result I am aiming for. I am just unsure how to do the final blending bit. It packs the particle life like this into…
0
votes
1 answer

OpenGL and Camera Preview - premultiplied alpha - blending together gets “over saturated” color

Okay here is my OpenGL Problem I really can't fix. Everything works fine on the Galaxy S1 and on an S2 which seems to have almost the same GPU. But when I try to make an AR-App I always get a problem with transparent pixels on top of my camera…
1 2
3