Jump to content


Photo

Screen shake with blur?


  • Please log in to reply
3 replies to this topic

#1 Hello Darren

Hello Darren

    Pirate

  • Banned Users
  • 275 posts
  • Version:Unknown

Posted 27 June 2012 - 04:28 PM

I've been trying to find an effect when an explosion happens the screen shakes and has a slight blur to it. I've searched screen shake using google but the only tutorials I found are ones that use the view ports which isn't what I'm after since it won't blur the screen as well. Does anybody know any surface tutorials that could achieve this effect?

#2 oopl.x.beast

oopl.x.beast

    GMC Member

  • GMC Member
  • 77 posts
  • Version:GM8

Posted 27 June 2012 - 04:31 PM

You could use view ports and add the blur effect yourself.
  • 1

#3 dannyjenn

dannyjenn

    GMC Member

  • GMC Member
  • 2069 posts
  • Version:Mac

Posted 27 June 2012 - 04:47 PM

What you could do would be save the screen to a sprite, then draw that sprite on a surface, then write some code to blur it, then draw that blurred surface to the screen and use code to move its position around randomly to make it "shake"

To blur it... here's an idea... draw the screen to a surface at a scale of like 2/3, save that surface as a sprite and draw that new sprite on the surface but this time give it a scale of 3/2 and that should automatically blur it.

Edited by dannyjenn, 27 June 2012 - 04:47 PM.

  • 1

#4 Hello Darren

Hello Darren

    Pirate

  • Banned Users
  • 275 posts
  • Version:Unknown

Posted 27 June 2012 - 05:03 PM

Yeah I was thinking maybe set the surface alpha to 0.5 to get the blur but I don't know if that's possible? I have no idea how to do surfaces, does anybody happen to have any code I can mess around with?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users