# metaballls

hello all, i have implemented the marching cubes algorithm, cause i want to render metaballs, but my meta-particles doesnt render well, i think it is because im using a wrong formula to compute the strength for each point, does anybody can explain me what formula to use?
thnx.

ahhhh, the marching cubes algorithm.

not that i can help you in any way, just that i really like that algorithm, and u gotta be some pretty hot stuff to use it.

if u are, good job man, hope you get it figured out.

spaghetti and metaballs, mmmmm

[This message has been edited by Succinct (edited 11-17-2000).]

i hope so too, but i can really use a
some help.
i dont know how to calculate the strength for each point, and how to set the isovalue.
anyone?

i have manage to implement one metaball, but i dont know what formula to use, to compute the strength with more than one metaball, please help me .

Originally posted by okapota:
i have manage to implement one metaball, but i dont know what formula to use, to compute the strength with more than one metaball, please help me .

I have a tutorial about metaballs on my site: http://www.gamedeveloper.org/delphi3d/articles/metaballs.shtml

The tutorial doesn’t really explain the rendering bit (i.e. marching cubes) in a lot of detail, but as I understand it you’ve already got that going. There’s also a demo to go with the tutorial, if you don’t mind the fact that it’s written in Delphi.

Use strenght = 1/distance_from_metaball^2

well, i used
s += 1/distance^2. and it does not work. does it suppose to work?, and i cant see your demo, because i do not have delphi, but can u explain me your formula? should i compare the strength to 1?

Check out this article by Jeff Lander. It has a good explanation of meta-balls and the threshold function http://www.gamasutra.com/features/20000523/lander_01.htm.

-Harley