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?
Screen shake with blur?
Started by
Hello Darren
, Jun 27 2012 04:28 PM
3 replies to this topic
#1
Posted 27 June 2012 - 04:28 PM
#2
Posted 27 June 2012 - 04:31 PM
You could use view ports and add the blur effect yourself.
#3
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.
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.
#4
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











