Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Fading screen in , out  (Read 2610 times)

0 Members and 1 Guest are viewing this topic.

Eralpb

  • Newbie
  • *
  • Posts: 3
    • View Profile
Fading screen in , out
« 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.

danman

  • Hero Member
  • *****
  • Posts: 1121
    • View Profile
    • Email
Fading screen in , out
« Reply #1 on: December 07, 2010, 06:56:15 pm »
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 ;) .
Pointilleur professionnel

 

anything