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

Author Topic: PostFX question, controlling affected area  (Read 3189 times)

0 Members and 1 Guest are viewing this topic.

__fastcall

  • Newbie
  • *
  • Posts: 8
    • View Profile
PostFX question, controlling affected area
« on: October 18, 2008, 11:59:01 pm »
Quick question(s):

Can I apply a shader to a certain area on the screen?  I need to apply a mask over a tile (for every tile) in a breakout-style game.  Is there any significant overhead I should know about when drawing a PostFX?  If I can't apply a shader to certain areas of the screen per tile x60/s, can I use a separate texture, i.e. render target, to render my masks onto?

Thanks for any responses!  
__fastcall

EDIT:
I have tried setting PostFX's scale and position, which rendered the result of the shader (the whole entire screen) onto the area.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
PostFX question, controlling affected area
« Reply #1 on: October 19, 2008, 09:11:35 am »
Take a look at the roadmap, everything you need is there and will be implemented in new versions (maybe not 1.4).
Laurent Gomila - SFML developer

__fastcall

  • Newbie
  • *
  • Posts: 8
    • View Profile
PostFX question, controlling affected area
« Reply #2 on: October 19, 2008, 10:16:08 pm »
Ah, so it is not currently possible.   :(

Thanks, I will research alternative methods.

 

anything