Click here to Skip to main content
15,898,035 members
Articles / Multimedia / DirectX

Rendering Textures with Alpha Channels and Color Key Transparency using a MatrixStack in Managed Direct3D

Rate me:
Please Sign up or sign in to vote.
5.00/5 (16 votes)
28 Jun 20053 min read 126.1K   2.3K   38  
This brief article describes how to use managed Direct3D to render texture bitmaps with alpha channels and transparency key colours onto vertices in C# with the aid of a MatrixStack.
Microsoft Visual Studio Solution File, Format Version 8.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "3DAlphaTransparency", "3DAlphaTransparency.csproj", "{B212DD9C-8218-4584-8FAC-0DB9BA6B57C4}"
	ProjectSection(ProjectDependencies) = postProject
	EndProjectSection
EndProject
Global
	GlobalSection(SolutionConfiguration) = preSolution
		Debug = Debug
		Release = Release
	EndGlobalSection
	GlobalSection(ProjectConfiguration) = postSolution
		{B212DD9C-8218-4584-8FAC-0DB9BA6B57C4}.Debug.ActiveCfg = Debug|.NET
		{B212DD9C-8218-4584-8FAC-0DB9BA6B57C4}.Debug.Build.0 = Debug|.NET
		{B212DD9C-8218-4584-8FAC-0DB9BA6B57C4}.Release.ActiveCfg = Release|.NET
		{B212DD9C-8218-4584-8FAC-0DB9BA6B57C4}.Release.Build.0 = Release|.NET
	EndGlobalSection
	GlobalSection(ExtensibilityGlobals) = postSolution
	EndGlobalSection
	GlobalSection(ExtensibilityAddIns) = postSolution
	EndGlobalSection
EndGlobal

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Canada Canada
Greg Rezansoff is a software developer in Toronto, Canada.

Comments and Discussions