Skip to main content
gamedev.net
🔒 Locked

Sprite Morphing

Started by Halloween 3 replies 1k views
Original Post
Halloween
Halloween
Say, I''ve got two sprites - they are similar at general. Is there any efficient way to draw third sprite, which is half-first and half-second? Something between them.
fukas
fukas
You can try alfa blending.
Halloween
Halloween
Thanks, but this is not what I''ve meant.
If I use alpha blending, I will end with some clumpy half-transparent union of the two pictures.
I''d really like to calculate some, say, erm.. SPRITErnion (that''s like quaternion - half in sprite space, half in complex), and then smoothly interpolate between two points in the sprite space Didn''t somebody ever hear about such a theory?
DrunkenHyena
DrunkenHyena
G''day!

Depending on the images, realtime morphing shouldn''t be a problem. It''ll be a little complicated to set up (again, depending on the images) but possible.

Morphing programs use control points on the 2 images to push/pull the image from one to the other (wow that''s a bad explanation). If you built a mesh for the sprite, you can tween the vertices between the 2 shapes and blend the colours.

You''d probably need to write a tool to set up the sprites (control point placement and all) but it should work. I''ve thought about doing something like this before, but I''ve never had the time.


Stay Casual,

Ken
Drunken Hyena
Stay Casual,KenDrunken Hyena</FON

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.