Drawing Sprites With Alpha Trans. (Extremely Basic Question...)

Hey all, I'm a complete newbie to XNA, and a pretty new to C# as well. (I did the 16 beginner's videos available at the start window, but that's about it.) Anyway, I know some basic C#, and now I'm trying to follow the "My first game" tutorial in XNA. (It basically has you draw a sprite, and then make it bounce around the screen. An epic game, I can't wait to finish it, haha!)

Anyway, I'm having trouble drawing a sprite using alpha transparencies. The tutorial/help file tells me to use the Direct X Texture tool, make a mask thing, open up my png on the surface, etc. Anyway, after I did that, it saved itself as a .dds file (A texture or something? Could someone explain what a .dds is exactly?) So now I have the .dds saved into my project. I follow the tutorial to have it draw the sprite, etc. But when the sprite is drawn to the screen, it doesn't have any transparencies. I had a ball sprite, and now its a ball sprite which looks like it leaked its color out into a square, with a white border around it. Could anyone explain what's going on here? I'd really appreciate the help, as I'm really lost in XNA right now, and the help file really isn't helping the sprite problem.

Also, any other random resources for complete XNA beginners would be greatly appreciated.
Thanks a lot guys! : )

[1319 byte] By [-Hopeless-] at [2007-12-24]
# 1

I am going to move this to the XNA GSE groups as you will find more help there.... but what you need to do is turn on the alpha chanel in the sprite drawing systems.

When you first turn on your sprite batch... you need to add the sprite blend mode to the fisrt call as below. In the case of the dds file, this is just another file format for image files that is used by DirectX. Hope this helps.

// The main sprite batch for the game objects

this.mainSpriteBatch.Begin(SpriteBlendMode.AlphaBlend);

GlennWilson at 2007-10-8 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 2

You also don't need to use the texture tool.

Just use a PNG with transparency and the SpriteBlendMode.AlphaBlend option that Glenn showed.

LeeC22 at 2007-10-8 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...