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

Author Topic: Make blur sprites.  (Read 2464 times)

0 Members and 1 Guest are viewing this topic.

DoubleNy

  • Newbie
  • *
  • Posts: 9
    • View Profile
    • Email
Make blur sprites.
« on: January 05, 2017, 08:37:52 pm »
How can i make all window blur ?

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 879
    • View Profile
Re: Make blur sprites.
« Reply #1 on: January 05, 2017, 09:19:17 pm »
This depends a lot on the kind of  blur you want. Gaussian blur? Some upscaling algorithm? (Fake) Bloom?

Most can be done using sf::RenderTexture or sf::Shader, but you'll have to be more specific.

DoubleNy

  • Newbie
  • *
  • Posts: 9
    • View Profile
    • Email
Re: Make blur sprites.
« Reply #2 on: January 05, 2017, 09:47:58 pm »
Gaussian blur. I want  when i press a key the entire window become blur.

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 879
    • View Profile
Re: Make blur sprites.
« Reply #3 on: January 06, 2017, 10:35:28 pm »
Check SFML's "Shader" example.

quinor

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Make blur sprites.
« Reply #4 on: January 13, 2017, 05:56:16 pm »
(a bit necro, but for future generations...)

http://en.sfml-dev.org/forums/index.php?topic=21363.0

 

anything