Solution!! Texture2D.FromFile with a .dds that has an alpha channel

Hello all,

Looking through the "Your First XNA Game" tutorial it mentions using the DirectX Texture Tool to make a .dds file with an alpha channel from a .png. What has to change with the Texture2D.FromFile routine...do I need Texture2D.GetCreationParameters first and override the format...which didn't seem to work incidentally.

Thanks in advance!

[379 byte] By [sdochert] at [2008-3-6]
# 1

Hello again,

The solution is to make batchSprite.Begin() be batchSprite.Begin(SpriteBlendMode.AlphaBlend) inside the Draw() routine!

Thaks

sdochert at 2007-8-31 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Framework...