Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I'm writing a 2D hack-and-slash game using XNA. I really want to implement the blur-like, refractive effect of a sword or such moving really quickly, seen in such games as Dust: An Elysian Tail and Vampire Dishwasher. Anyone know the technical name for this effect? For those who aren't sure what I'm talking about:

enter image description here

shows exactly the effect I'm trying to achieve.

share|improve this question
add comment

2 Answers

up vote 3 down vote accepted

The XNA education catalog calls it distortion. Kind of a catch-all term, but it fits.

http://xbox.create.msdn.com/en-US/education/catalog/sample/distortion

enter image description here

share|improve this answer
1  
for a wider and more explained paper, take a look at this: GPU Gems2 - Chapter 19. Generic Refraction Simulation I would try to do the same. In 2D it's easier! –  Gustavo Maciel Jul 9 '13 at 6:08
    
@GustavoMaciel That is worthy of it's own answer. I would also recommend water caustics from that same GPU gems series. –  Seth Battin Jul 9 '13 at 14:04
add comment

it remember me to magnifying effect i'm used to do long time ago in vga 13h mode... using the bresenham circle algorithm to get the lines that draw a circle and applying a function to the distance from the pixel to the circle center to peek the color based in the new distance from a backbuffer where the original image was.

Now it can be accomplished with an hlsl postprocess shader easier.... you can google for radiul blur... or pinch effects and it will give you something near to what you are looking for...

Here you have a sample where you can test this kind of effects: http://www.hilva.com/tutorials/

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.