rifter1818
Well-known member
Transparancys not working hence i cant see clearly ha ha ok bad joke. Heres my problem.
Ive loaded a set of textures from a Bitmap and i want all of the Black to be transparant so currently (d3d.dev is my Direct3d device) my settings are as follows (but it doesnt work theres black squares everywhere).
[CS]
d3d.Dev.RenderState.Lighting = false;
d3d.Dev.RenderState.Ambient = Color.White;//redundant but when/if i enable lighting....
d3d.Dev.RenderState.CullMode = Cull.None;
d3d.Dev.RenderState.AlphaBlendEnable = true;
d3d.Dev.RenderState.AlphaTestEnable = true;
d3d.Dev.RenderState.ReferenceAlpha = Color.Black.ToArgb();
d3d.Dev.RenderState.AlphaFunction = Compare.NotEqual;
[/CS]
Ive loaded a set of textures from a Bitmap and i want all of the Black to be transparant so currently (d3d.dev is my Direct3d device) my settings are as follows (but it doesnt work theres black squares everywhere).
[CS]
d3d.Dev.RenderState.Lighting = false;
d3d.Dev.RenderState.Ambient = Color.White;//redundant but when/if i enable lighting....
d3d.Dev.RenderState.CullMode = Cull.None;
d3d.Dev.RenderState.AlphaBlendEnable = true;
d3d.Dev.RenderState.AlphaTestEnable = true;
d3d.Dev.RenderState.ReferenceAlpha = Color.Black.ToArgb();
d3d.Dev.RenderState.AlphaFunction = Compare.NotEqual;
[/CS]