|
![](/i/fill.gif) |
Rafal 'Raf256' Maj wrote:
> Hi,
> is there a macro to place points realy uniformly (in almost distances from
> each point to it's neighbours)?
>
> VRand_On_Sphere() places each point correclty, but it doesnt care about
> other points, so when used in loop - the resulting _group_ of points isnt
> so uniformly placed.
>
> This problem is simmilar to finding good points/vectors to be used in
> radiosity directions AFAIK (but it's about full sphere, not half of it).
>
>
As I understand it, there are only a few truly uniform distributions. If
you're not overly particular about the exact number of points, you can
just start with one of the platonic solids (I think the best looking
distributions come from a cube, icosahedron might give the closest to
even) and keep diving the faces to get a relatively even distribution.
If you're just talking about just a few points, Tim Nikias has IIRC an
electrostatic repulsion macro on his website.
-Shay
Post a reply to this message
|
![](/i/fill.gif) |