alphablending

android/opengles alpha textures not semitransparent but binary transparent

Hello, I am drawing some textures with alpha channel, but when they are displayed it looks like the alpha channel is only binary. So a pixel is either transparent or opaque, although in the texture file itself the pixel is half-transparent. The blending is set up like this: gl.glEnable(GL10.GL_BLEND); gl.glBlendFunc(GL10.GL_ONE, GL10....

ActionScript 3 - Draw two shapes on the same movie clip's graphics avoiding alpha blending between them

for example: var mc:MovieClip=new MovieClip(); mc.graphics.beginFill(0x000000,0.5); mc.graphics.drawRect(0,0,100,100); mc.graphics.endFill(); mc.graphics.beginFill(0x000000,0.5); mc.graphics.drawRect(0,0,100,100); mc.graphics.endFill(); with this i will get a box with an alpha value darker than 0.5. I want a 0.5 alpha square without...

How can I use Alpha Compositing (Porter and Duff) with C#?

Are there a implementation (API) of Alpha Compositing for .NET. The Wikipedia means that Windows has a native implementation of it. Of course it can be do with pixel manipulation but this will be a bad performance. If there are a native implementation then we should use it. If there is no native implementation that can be used from .NET...

OpenGL ES use of glColor4f in Multi-texturing

What I'm trying to do is output a masked texture on an iPhone using OpenGL ES 1.1. The default combining behavior seems to work to my advantage until I actually want to vary the ALPHA of the final result! The 'a' (Alpha) float variable has no effect here: (Everything else outputs fine, it's masked and drawing nicely aside from the alp...

Delphi 6 : How to create a Bitmap with TextOut that has an Alpha channel?

I'll describe my overall goal in case the question I asked isn't in the best form to get the answer I'm looking for. I have a sphere of words or "word ball" that spins around the X axis. As words spin to the back (Z coordinate goes from -1 to 1, front to back), I intend to change the size and the opacity of each word so that words in "...

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 text to the Bitmap's Canvas. I have a timer that updates the main Canvas, which belongs...

Creating a transparent window in C++ Win32

I'm creating what should be a very simple Win32 C++ app who's sole purpose it to ONLY display a semi-transparent PNG. The window shouldn't have any chrome, and all the opacity should be controlled in the PNG itself. My problem is that the window doesn't repaint when the content under the window changes, so the transparent areas of the P...

OpenGL ES for iPhone blending not working

Hello, I'm a beginner to 3D graphics in general and I'm trying to make a 3D game for the iPhone, and more specifically, to use textures that contain transparency. I am able to load a texture (an 8 bit .png file) into OpenGL and map it to a square (made from a triangle strip) but the transparent parts of the image are not transparent when...

OpenGL ES (IPhone) alpha blending looks weird.

I'm writing a game for IPhone in Opengl ES, and I'm experiencing a problem with alpha blending: I'm using glBlendFunc(Gl.GL_SRC_ALPHA, Gl.GL_ONE_MINUS_SRC_ALPHA) to achieve alpha blending and trying to compose a scene with several "layers" so I can move them separately instead of having a static image. I created a preview in photoshop a...

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 exactly as I want it however for the first triangle it looks as though the alpha is either ...