Alpha rendering

hi..

I create with positioncolored vertices a simpe Triangle. One of the vertices has a "0" as alpha value. The other 2 are red. So I expect to have a triange which is transparent on a vertex. But I dont have it. What so I do false? Probably I have to change device.renderstate.alpha.... Can you pls help me..

Thanks...

MAT

[402 byte] By [M.A.T] at [2007-12-23]
# 1
You need to set some render states.
Device.RenderState.SourceBlend = Blend.SourceAlpha;
Device.RenderState.DestinationBlend = Blend.InvSourceAlpha;
Device.RenderState.AlphaBlendEnable = true;

I hope this helps.

PieterGermishuys at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: Graphics...
# 2
its Ok. Thanks Pieter....
M.A.T at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: Graphics...