3D Blobs algorithm

3D Blobs algorithm

Post by Jorge Pereir » Fri, 10 Jul 1998 04:00:00


I'm going to write some code for 3d blobs (metaballs). I've been
collecting some info and now I've got an algorithm. I'd like to know if
anybody can tell me where can I optimize or what can I change just
before to start coding it.
This is what I have in mind (it's called the "marching cubes

1) Position the metaballs (points with a radius) in the 3d world
2) Get the bounding rectangle
3) Divide it and obtain a 3d grid
4) For each cube in the grid, and for each vertex in the cube, compute
the  value - I will call it F (based on the distances to the centers of
the metaballs).
I guess I can precalc this value and put it in some kind of lookup...
5) With the 8 F's of the cube, go to a lookup to get the triangles
6) Calc the exact position of each vertex of the triangles with linear
7) Add the triangles to the final polygon list

I can reuse the F values for neightbour subcubes

This should be done for every frame of the animation - if the metaballs
positions change. Isn't it too SLOW??
Has anybody ever coded something similar and can tell me about the
efficiency of this?

Another problem is to calc the vertex normals... I need it in order to
do the phong shading.

I'll thank you any comment

- Jorge


1. algorithm for realtime blob animation searching

I am searching for an algorithm to do blob-like animations in Direct3D.
Has anybody an idea, or does anybody have an algorithm, which allows
to calculate the vertices and triangles for such an animation please.
Thanks in advance.

2. printing of page with animated gif

3. Blob modelling algorithm

4. WTB: openGL SuperBible

5. blob tesselation algorithm

6. http://www.zig3d.co.uk is giving away 1 free 3d model every day

7. 2d blob effect - algorithm ?

8. Blob Coloring, algorithm

9. Blob algorithm

10. Need real time Blob/Smoke algorithm

11. Blob Modelers - BlobFX Winblob Blob Sculpter