Jump to content

View more

Image of the Day

雑魚は多めにして、爽快感重視にしつつ・・・(´・ω・`)
早いとこ、ベースを作って、完成にもっていかないとね。
タイトルもまだ迷ってるだよなぁ。 
#indiedev  #indiegame #screenshotsaturday https://t.co/IwVbswGrhe
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Fade out using SlimDX

4: Adsense

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   

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?



#2 Alundra   Members   

2271
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.