Jump to content

  • Log In with Google      Sign In   
  • Create Account

Fade out using SlimDX


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 CdrTomalak   Members   -  Reputation: 272

Like
0Likes
Like

Posted 08 March 2014 - 02:26 PM

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?



Sponsor:

#2 Alundra   Members   -  Reputation: 925

Like
0Likes
Like

Posted 09 March 2014 - 10:36 AM

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.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS