Fade In, Fade Out - new tutorial covering applying a fade effect to an image

I finally posted a little tutorial covering how to fade an image in and out of a scene in XNA. I had written this code a couple of weeks ago after a question in the MSDN XNA Forums made me think about how to achieve an effect like that.


The tutorial covers step by step instructions from setting up the game project, adding an image to the project, writing the logic for fading the image in and out and how to apply that effect when drawing the image. It also introduces one of my new favorite MathHelper methods "Clamp".

I am hoping to do more tutorials of this type in the future. Much smaller in focus and easier to follow. Hopefully that means I can get tutorials out more regularly and new users to XNA will have more introductory content to digest.

As always, feel free to contact me with any advice, complaints, suggestions or questions.

Print | posted @ Thursday, December 14, 2006 9:48 AM

Comments on this entry:

Gravatar # re: Fade In, Fade Out - new tutorial covering applying a fade effect to an image
by Scott Miller at 12/14/2006 10:35 AM

George:
We are screwed if GWB has another game contest! You'll beat us, hands down.
Gravatar # re: Fade In, Fade Out - new tutorial covering applying a fade effect to an image
by ivanik at 3/16/2007 9:13 AM

can u rewrite the code using managed directx,,

thanks,
ivanik

Your comment:

Title:
Name:
Email:
Website:
 
Italic Underline Blockquote Hyperlink
 
 
Please add 2 and 4 and type the answer here:
 
Twitter