# The Industry's Foundation for High Performance Graphics

1. ## 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.

2. ## Re: metaballls

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).]

3. ## Re: metaballls

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?

4. ## Re: metaballls

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 .

5. ## Re: metaballls

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/delphi3...etaballs.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.

6. ## Re: metaballls

Use strenght = 1/distance_from_metaball^2

7. ## Re: metaballls

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?

8. ## Re: metaballls

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

-Harley

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•