wonderwhy-ER on DeviantArthttp://creativecommons.org/licenses/by-nc-sa/3.0/https://www.deviantart.com/wonderwhy-er/art/Bitmap-based-Metaballs-70174328wonderwhy-ER

Deviation Actions

wonderwhy-ER's avatar

Bitmap based Metaballs

By
Published:
7.3K Views

Description

Well spent 2 hours to try something i was thinking for a while. Yesterday i tried it on a vector graphics but it was unsuccessful. Effect was wrong. So today i tried it on pure Bitmap and it worked as I wanted initially.
There is other way to do such things. It is based on a sum of 2D functions but it’s way too laggy. I mean that such sums have (0<x<2^n) solutions where n is number of balls and x is number of solutions. So for 400x400 that means you need to solve really a lot if you want to make it analytical way. But there are other ways to do this. One I tried here: [link] As you see it’s too laggy anyways. There is better algorithm which is called Marching Cubes(by the way here is realisation [link]). But it’s still does not allow more then some 10 balls. So function based meatballs are too CPU expensive. At least as far as I know.

Controls:
Well you can control parameters of bevel filter to the left. And the top box controls parameters of the meatball effect. Set it lower and they will become simple balls. Set it higher and they will start to be blobby. Tough after some time they will start to disappear.
Hold left mouse button to catch and release it to throw those things :)
Image size
550x400px 20.7 KB
Comments24
Join the community to add your comment. Already a deviant? Log In