Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

The 20 Line Challenge / Metaball 2D Demo - 10 lines

Author
Message
Azrael
19
Years of Service
User Offline
Joined: 2nd Mar 2005
Location: Germany
Posted: 6th May 2006 20:35
You may already know Metaballs from other popular Demos. I just tried this in DBP. 3D was a bit to slow, but I'm working on it, so im made it in 2D. It's based on the Marching Cube Algorithm.

The Code is not optimized and the Demo a bit monochrome, I know.

I hope you like it though.



I may improve this the next time. I have the space.

Oh, and here the uncompressed Code:



It's not identical, because I was using types before compressing :-(
MikeS
Retired Moderator
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 7th May 2006 01:48
Awesome, very very cool!!



A book? I hate book. Book is stupid.
(Formerly Yellow)
Freddy 007
19
Years of Service
User Offline
Joined: 30th Nov 2004
Location: Denmark
Posted: 7th May 2006 03:21
Yes, very nice indeed!

musty
18
Years of Service
User Offline
Joined: 6th Apr 2006
Location: Istanbul
Posted: 7th May 2006 09:25
Azrael that is really cool. Can you provide a little explanation about how it works?

"Ignorance is bliss." Cypher from the movie The Matrix
Azrael
19
Years of Service
User Offline
Joined: 2nd Mar 2005
Location: Germany
Posted: 7th May 2006 12:39
OK, here's an update:



This looks more like a liquid. The metaballs are attracting each other.

>>Can you provide a little explanation about how it works?

I think this website does it much better than me:

http://www.exaflop.org/docs/marchcubes/

or this site:

http://www.essi.fr/~lingrand/MarchingCubes/algo.html
Freddy 007
19
Years of Service
User Offline
Joined: 30th Nov 2004
Location: Denmark
Posted: 7th May 2006 17:26
That's even prettier.

musty
18
Years of Service
User Offline
Joined: 6th Apr 2006
Location: Istanbul
Posted: 7th May 2006 22:31 Edited at: 7th May 2006 22:31
Thanx for the great resources.
As soon as my mother has her operation and comes back home I'll try to code my own version. At least I'll try.

"Ignorance is bliss." Cypher from the movie The Matrix
Hawkeye
20
Years of Service
User Offline
Joined: 19th Sep 2003
Location: SC, USA
Posted: 11th May 2006 02:19
The first version runs at maybe 1.5 fps, the second rips along at 3... but a very cool effect indeed


I am but mad north north-west; when the wind is southerly I know a hawk from a handsaw - Hamlet, Hamlet
Pricey
21
Years of Service
User Offline
Joined: 22nd Feb 2003
Location:
Posted: 11th May 2006 23:27
this just stops compiling about half way through
might be using the old dbpro... dunno

:: 3Ghz Pentium 4 / Hyper Threading, 1024mb RAM, 250GB HDD, 256mb Radeon 9600XT Graphics ::


Azrael
19
Years of Service
User Offline
Joined: 2nd Mar 2005
Location: Germany
Posted: 12th May 2006 15:44
I have compiled and uploaded the latest Version:
Link: http://home.arcor.de/azrael_lite/RARS/MB.rar

I'm working on an even faster Algorithm which allows to handle more than 10 Metaballs. May I can add some colors to have some eye candy - will see.

Login to post a reply

Server time is: 2024-04-24 14:37:09
Your offset time is: 2024-04-24 14:37:09