Re: alpha blending without textures

From: Phil Taylor (
Date: 12/13/04

Date: Mon, 13 Dec 2004 14:04:09 -0800

have you read my articles on alphablending?

even though they are C++ they will give you an idea of what states need to
be toggled for material or diffuse alpha in the vertex.

all you are doing is playing with the framebuffer alphablending controls so
that isnt sufficient...

"Kendrick" <> wrote in message
> I'm trying to figure out how to do alpha blending with a PositionColored
> vertex buffer, i've enabled alpha blending for the renderstate with
> d3dDevice.RenderState.AlphaBlendEnable = true;
> d3dDevice.RenderState.AlphaSourceBlend = Blend.SourceAlpha;
> d3dDevice.RenderState.AlphaDestinationBlend = Blend.InvSourceAlpha;
> and set the alpha byte in the vertex's color component to the desired
> level,
> but the colors don't blend.
> I'm not sure what i'm missing for this?
> any help would be appreciated