SFML community forums
Help => Graphics => Topic started by: Eralpb on December 07, 2010, 05:52:35 pm
-
Hello, I want to ask how I should make my screen fade in or out, I searched and found some examples but they were sprite-specific. I saw postFX effects of SFML but I don't think I can do something continious with them. I mean I have to add one hundred pixel calculation and then I can use it but, I don't want to do that.
And maybe I won't want to be limited with fading in or out. How can I add more complex things? Like whirlwind effect between game states. OR some kind of snake shape moving and thus mixing all the pixels.
Thanks :)
Edit:Oh! What about not clearing the screen, it glanced me right now, I'll try it but last effects I mentioned are still not doable.
-
a fading screen is just a drawable you render from alpha=0 to alpha=255, isn't it ?
see http://www.sfml-dev.org/wiki/en/sources/filter ;) .