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
2 answers

How does iPhone draw controller?

I'm a newbie in iPhone development and now encounter a problem: I want to add a small hotspot on a large image and simply came up with the idea that I can add a button in that area setting alpha 0 to hide the button. Unfortunately, the phone does…
Summer_More_More_Tea
  • 12,740
  • 12
  • 51
  • 83
0
votes
1 answer

Direct3D 11 depth stencil / alpha blending issue

I've been working on a 3D renderer for a game, and until now it rendered all the textureless meshes first and all the textured meshes afterwards, using DrawIndexed. In an effort to improve performance, I've switched to DrawIndexedInstanced and made…
0
votes
0 answers

Update texture from vector directx9

I' m trying to render two textures one for RGB and another on for the alpha channel, I blend them together with a shader. The alpha channel texture doesn't overlap properly to the RGB one. It seems to be stretched. The alpha channel texture changes…
Gabriele
  • 11
  • 2
0
votes
0 answers

GL_SAMPLE_ALPHA_TO_COVERAGE on android

I'am using OpenGL ES 2.0 on android and trying to enable alpha to coverage. glEnable(GL_SAMPLE_ALPHA_TO_COVERAGE); But it doesn't give any effect as I expect. The same code works well on windows and linux desktops. Is the alpha to coverage…
Dmitry
  • 59
  • 7
0
votes
1 answer

BufferedImage set alpha from other BufferedImage

I got 3 BufferedImages: A, C and D. All are images with colors and an alpha channel. C has to alpha-over D, but with the transparency layer of A. The idea is to: Set the alpha channel of C to that of A Alpha over them I do the alpha mixing with…
piegames
  • 975
  • 12
  • 31
0
votes
2 answers

Sorting polygons for correct alpha blending in DirectX 9?

What is the correct way to sort polygons so that they blend properly? The basic concept I think is to render the furthest polygon first back to closest in order. But what about cases of intersecting polygons?
meds
  • 21,699
  • 37
  • 163
  • 314
0
votes
1 answer

Error using additive blending in WebGL

I'm developing a game engine in JavaScript and webgl and using the forward rendering technique, one pass for each light source in the scene. I'm using additive blending for the second pass and it works quite well except when I need to light objects…
Pierluigi Serra
  • 115
  • 1
  • 5
0
votes
1 answer

Android OpenGL - ES alpha transparency different for triangles in triangle strip?

I have a very odd problem, hopefully easily solved. I am drawing a quad as a triangle strip. It simply has 2 triangles in the strip and I apply a texture containing an alpha channel to it. For one of the triangles it seems the alpha is fine and…
iexus
  • 677
  • 11
  • 26
0
votes
1 answer

How to imitate shadow around the thumbnails by StretchDIBits?

I am now writing a image viewer, It is used for view thumbnails. As it is ugly, I decide to draw shadow round thumbnail. There is background color. I am using StretchDIBits to draw a shadow image at the location of thumbnail. However it is really…
user25749
  • 4,825
  • 14
  • 61
  • 83
0
votes
1 answer

How to improve BlendEffect quality? Lumia Imaging 3.0 & UWP

I am developing an app that put text into a background image. The textblocks are placed on a canvas control as children and I render the canvas to PNG. Then I use the BlendEffect to blend it with a background image. UPDATE This post is specifically…
PutraKg
  • 2,226
  • 3
  • 31
  • 60
0
votes
1 answer

Delphi 6 : Alphablending works between sub-image and main Canvas, but not between sub-images

I have a Delphi 6 application where I have an array of TBitmaps each containing an image (sub-image) that was created by making a call to FillRect() with clWhite to flood the TBitmap's Canvas with white, followed by a call toTextOut() to print some…
Robert Oschler
  • 14,153
  • 18
  • 94
  • 227
0
votes
0 answers

Calculate alpha of a color by a percent value

I have a base color with an alpha channel. I need to create two separate colors based on this color, so when I mix them together I get the initial color (for example, when I fill the screen with the first color and then the second, I get the initial…
serg66
  • 1,148
  • 1
  • 17
  • 31
0
votes
1 answer

SDL blending causing incorrect frame interpolation

While working on a particle engine in SDL, I stumbled over the following problem: After implementing a frame interpolation technique as described here (Step 6: Optimization, I'm basically drawing the last frame with an alpha of 254 to the current…
tbvanderwoude
  • 587
  • 6
  • 17
0
votes
1 answer

Without alpha path how to decrease edge effect while paste icon

I got a RGB332 LCD and a poor MCU to drive it . The MCU do not have a hardware accelerator nor do RGB332 display support an alpha path. So I used the color "black" as a "alpha color" to deal with icon paste work.Which means I fill the icon color…
butter
  • 355
  • 1
  • 4
  • 12
0
votes
1 answer

Refactoring a complicated opengl blend

I am trying to reproduce the effects of a fairly complicated blend operation (corrected). (1-(1-src_alpha)*dest_alpha)*src+(1-src_alpha)*dest_alpha*dest src and dest refer to the respective rgba components in the source and destination buffers. …
markt1964
  • 2,638
  • 2
  • 22
  • 54