POV-Ray : Newsgroups : povray.newusers : Spheres in a sphere : Re: Spheres in a sphere Server Time
14 May 2024 04:31:01 EDT (-0400)
  Re: Spheres in a sphere  
From: Samuel Benge
Date: 16 Mar 2014 14:45:00
Message: <web.5325f0cb9f83cd68942c68130@news.povray.org>
"nonostar" <nomail@nomail> wrote:
> It's less complicated.
> In fact i just want to make spheres with a same radius like this :
>
http://news.povray.org/povray.binaries.images/message/%3Cweb.4d9d10aec2af4450b86cffc90%40news.povray.org%3E/#%3Cweb.4
d9
> d10aec2af4450b86cffc90%40news.povray.org%3E

Does it matter if the spheres are tightly packed or not?

That image you linked to required testing for intersecting spheres, which can
take quite a while depending on the number of spheres being tested. For that
image I used a program created with voro++, which sped up intersection tests by
finding the spheres' nearest neighbors (so that each sphere didn't have to be
tested against every_other_sphere).

There's another method I just stumbled upon which is even faster, but the
spheres are by no means tightly packed.

Why do you want a sphere full of spheres? What will you be rendering? For things
like filled gumball machines, the methods I mentioned aren't very useful. For
something like a gumball machine, I'd recommend using Blender's physics sim
along with a script I wrote that exports to a POV-Ray array the positions,
sizes, and rotations of all objects in a group. That way you can combine
Blender's physics with POV's perfect geometry (and using less RAM than meshes).

Tell me what you'll be doing, and I'll try to help you out.

Sam


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.