Metaballs
Status: Possible future implementation.
Overview:
Im going to program my own metaball creator that doesnt use the patented algo
basicly it will render the surface of a formula where it = a certain value
I might use it for deformable terrain or something
im going to implement it as you add a bunch of gravity formulas togather and it generates random points
any points that are not within a threshold get removed
the others take the derivitive of the formula to find out which direction to move to go more towards the surface
they will then push away from each other
then repeat the movement towards the surface
the points will be the vertices
and they will travel the surface since they will try to reach a position where the close points push them equally
Procedure
- Create grid of random 3d points
- Pick a radius R. Evaluate the function at the points, eliminate all points that dont fall within a certain range around R
- Find the derivative of the function at that point and move the point towards R
- Move the points away from each other but restrict the movement to the plane of the derivative
- Create new points between points that are far away
- Remove points that are too close
- Loop to step 3 several times. This will cause the points to evenly distribute over the surface
-
Copyright 2004 © Polyart. All rights reserved.