Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 8 of 8

Thread: metaballls

  1. #1
    Junior Member Regular Contributor
    Join Date
    Nov 2000
    Location
    israel
    Posts
    246

    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.
    -ofer-

  2. #2
    Junior Member Regular Contributor
    Join Date
    Oct 2000
    Location
    pittsburgh,pa,usa
    Posts
    104

    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).]
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    I have no name that you may call me. I am merely Succinct.
    "Hey, where'd that display list rotate off to now?"

  3. #3
    Junior Member Regular Contributor
    Join Date
    Nov 2000
    Location
    israel
    Posts
    246

    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?
    -ofer-

  4. #4
    Junior Member Regular Contributor
    Join Date
    Nov 2000
    Location
    israel
    Posts
    246

    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 .
    -ofer-

  5. #5
    Advanced Member Frequent Contributor
    Join Date
    Oct 2000
    Location
    Belgium
    Posts
    807

    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. #6
    Junior Member Newbie
    Join Date
    Nov 2000
    Location
    Uddevalla, Sweden
    Posts
    21

    Re: metaballls

    Use strenght = 1/distance_from_metaball^2

  7. #7
    Junior Member Regular Contributor
    Join Date
    Nov 2000
    Location
    israel
    Posts
    246

    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?
    -ofer-

  8. #8
    Junior Member Newbie
    Join Date
    Jul 2000
    Location
    New York, NY, USA
    Posts
    11

    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
  •