Jump to content
  • Advertisement
Sign in to follow this  
CdrTomalak

Fade out using SlimDX

This topic is 2049 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm trying to fade out my sprites in my 2d game using SlimDX. I've noted how it's done in XNA (http://www.xnadevelopment.com/tutorials/fadeinfadeout/FadeInFadeOut.shtml), but how would I do it in SlimDX?

 

I'm using SpriteTextRenderer as my sprite batch renderer class, which accepts a Color4 (with alpha) as a parameter to the Draw() method, but passing Color4(255,255,255,255) does not result in a full brightness non-faded sprite, so I'm doing something wrong clearly.

 

Any ideas?

Share this post


Link to post
Share on other sites
Advertisement

Check the alpha blending state, maybe it's something bad here.

There is no secret, fade-in/fade-out is always a simple quad with lerp on alpha.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!