|
|
"JC (Exether)" <exe### [at] club-internetfr> wrote in
news:3EB### [at] club-internetfr:
> The image looks nice.
> But unfortunately I don't think you can do a real even distribution by
> putting your holes on parallels and meridians. Actually even
> distribution of points on a sphere is not an easy task at all. But you
> can get a good approximation by using a electrostatic repulsion-like
> algorithm starting with a more or less random distribution and step by
> step moving them to be at even distances. But it costs CPU, it's more
> complex and inelegant (it's an approx), so ...
>
> Cordialement,
>
> JC
I've already done this ;)
You can see the results in my previous posting (Subj: placing point on a
sphere, date Feb 18 2003) or here in small res attachments. The point are
calculated by an iterative C program, using a electrostatic repulsion
algorithm. You can also have the code, I've posted it on
povray.binaries.utilities
This attempt on parallels and meridians is simpler, and done using only
SDL, so can be used when a real even distribution is not needed.
While I write, I'm trying to do an animation of the image, rotating the
sphere along the Y axis... If it's worth, I'll post on p.b.a
Post a reply to this message
Attachments:
Download 'geo2x.jpg' (11 KB)
Download 'geo1x.jpg' (24 KB)
Preview of image 'geo2x.jpg'
Preview of image 'geo1x.jpg'
|
|