PDA

View Full Version : metaballls

okapota
11-17-2000, 04:44 AM
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.

Succinct
11-17-2000, 04:56 AM
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. http://www.opengl.org/discussion_boards/ubb/wink.gif

spaghetti and metaballs, mmmmm

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

okapota
11-17-2000, 07:59 AM
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?

okapota
11-18-2000, 07:25 AM
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 .

Tom Nuydens
11-19-2000, 10:38 PM
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.

Spark
11-20-2000, 01:44 AM
Use strenght = 1/distance_from_metaball^2

okapota
11-20-2000, 04:35 AM
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?

harleybl
11-20-2000, 08:53 AM
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