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 want to create a specyfic 2d image effect. It consists in modifying a sprite so it looks like it is being zoomed to a point or "absorbed" by that point. I'm not really sure what is the technical name of this effect so I cannot explain it correctly.

Here you can see a video of what I'm talking about, it is the effect when the character absorbs the three glyphs.

http://www.youtube.com/watch?v=PIo-GddsMcU&t=4m45s

What is the name of this effect? How can I implement it with XNA for 2D textures/sprites?

share|improve this question
    
It's worth pointing out that the effect in the video you've linked seems to be a frame-based animation. Although you could certainly do something similar procedurally - with a shader or simply deformed geometry. –  Andrew Russell Nov 13 '12 at 10:57
    
I'm not sure if I understand "frame-based" animation. Could you explain it a bit? I was thinking about creating a grid for the texture and then pulling from some of the vertexs to create this effect. –  Ed. Nov 13 '12 at 11:06
    
Ok, i've been looking around and I understand that frame-based animation is the same as common sprite-based animation. The thing is that in that case, it is not a frame-based animation. During the game you collect lots of those glyphs and this effect is used extensively. –  Ed. Nov 13 '12 at 12:04

1 Answer 1

up vote 1 down vote accepted

You could call it texture warping, or simply texture deformation. In XNA you could achieve something like that by transforming the texture's pixels' coordinates. You map the pixels of the texture to a grid, then modify the positions of the grid's vertices. Since the effect in Castlevania is quite unique, you will have to experiment and play around with your own deformation algorithm until you achieve an effect you like.

There's a nice tutorial for a similar technique here: Screen-space deformations in XNA

share|improve this answer
    
Thanks! This actually looks useful :) –  Ed. Nov 13 '12 at 11:06

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.