POV-Ray : Newsgroups : povray.general : Placing objects on spheres... Server Time
6 Nov 2024 12:20:06 EST (-0500)
  Placing objects on spheres... (Message 1 to 10 of 18)  
Goto Latest 10 Messages Next 8 Messages >>>
From: Tim Nikias
Subject: Placing objects on spheres...
Date: 27 Aug 2002 12:39:49
Message: <3d6bab55$1@news.povray.org>
Hi all!

I'm looking for a method to calculate positions in order
to place objects with N radius onto a sphere with R radius.
These small objects shouldn't intersect each other (as less
as possible), but cover the entire sphere.

I need this to generate positions for some CSG-Hairs to
get a furball (the last try was suspected to be fireworks...)

I'm thankful for any link or help regarding this, and do
note that I'm the kinda guy who likes to script the required
algorithms himself...

Thanks,

Tim

--
Tim Nikias
Homepage: http://www.digitaltwilight.de/no_lights/index.html
Email: Tim### [at] gmxde


Post a reply to this message

From: ABX
Subject: Re: Placing objects on spheres...
Date: 27 Aug 2002 12:46:31
Message: <q3bnmu0sbvs20bve02r9rv0lh3t3oor8rh@4ax.com>
On Tue, 27 Aug 2002 18:40:36 +0200, "Tim Nikias" <tim### [at] gmxde> wrote:
> I'm looking for a method to calculate positions in order
> to place objects with N radius onto a sphere with R radius.

http://www.math.niu.edu/~rusin/known-math/index/spheres.html

ABX


Post a reply to this message

From: Christoph Hormann
Subject: Re: Placing objects on spheres...
Date: 27 Aug 2002 12:47:26
Message: <3D6BAD1E.2007FB01@gmx.de>
Tim Nikias wrote:
> 
> Hi all!
> 
> I'm looking for a method to calculate positions in order
> to place objects with N radius onto a sphere with R radius.
> These small objects shouldn't intersect each other (as less
> as possible), but cover the entire sphere.

http://astronomy.swin.edu.au/~pbourke/geometry/spherepoints/index.html

Christoph

-- 
POV-Ray tutorials, IsoWood include,                 
TransSkin and more: http://www.tu-bs.de/~y0013390/  
Last updated 13 Aug. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

From: TinCanMan
Subject: Re: Placing objects on spheres...
Date: 27 Aug 2002 14:54:53
Message: <3d6bcafd$1@news.povray.org>
Try dissecting this macro I wrote a couple of years ago.  It basically
triangulates a sphere to 'n' iterations (like a geodesic sphere).  The
limitation here is that you are restricted to the number of points related
to the iteration level 'n' (I don't know the formula off the top of my
head).  I did this a long time ago and my brain isn't functioning properly
at the moment to be of any further help...

-tgq


#macro Geodesic(n,R,Obj)
  union{
    #if (n=0)
      object{Obj}
    #else
      #local nL=2^(n-1);
      #local i=-nL;
      #while (i<=nL)
        #local nS=4*(nL-abs(i));
        #if (nS=0)
            object{Obj translate<0,0,-R> rotate x*i*90/nL}
        #else
          #local j=0;
          #while (j<nS)
            object{Obj translate<0,0,-R> rotate x*i*90/nL rotate y*j*360/nS}
            #local j=j+1;
          #end
        #end
        #local i=i+1;
      #end
    #end
  }
#end


Post a reply to this message

From: Jan Walzer
Subject: Re: Placing objects on spheres...
Date: 27 Aug 2002 16:20:23
Message: <3d6bdf07@news.povray.org>
"TinCanMan" <Tin### [at] hotmailcom> wrote:
> ... . The
> limitation here is that you are restricted to the number of points related
> to the iteration level 'n' (I don't know the formula off the top of my
> head).

If you're really doing "standard" triangulation of a sphere with equidistant
points, then it should be something like s*(4^n) triangles where s is the
number of the starting triangles (its easy if you start with an octaeder)


Post a reply to this message

From: Shay
Subject: Re: Placing objects on spheres...
Date: 27 Aug 2002 16:44:11
Message: <3d6be49b@news.povray.org>
Tim Nikias <tim### [at] gmxde> wrote in message
news:3d6bab55$1@news.povray.org...

Start with a cube. If you ever want to color the hairs in any type of
organized fashion you will be glad you did. I played around with several
different ways of dividing a sphere, and this is by far the most versatile.

 -Shay


Post a reply to this message

From: Tim Nikias
Subject: Re: Placing objects on spheres...
Date: 28 Aug 2002 00:55:05
Message: <3d6c57a9@news.povray.org>
This looks like the most easy one to implement and the example
pic shows that it really is what I'm looking for...

Thanks for this one...


--
Tim Nikias
Homepage: http://www.digitaltwilight.de/no_lights/index.html
Email: Tim### [at] gmxde

> >
> > I'm looking for a method to calculate positions in order
> > to place objects with N radius onto a sphere with R radius.
> > These small objects shouldn't intersect each other (as less
> > as possible), but cover the entire sphere.
>
> http://astronomy.swin.edu.au/~pbourke/geometry/spherepoints/index.html
>


Post a reply to this message

From: Tim Nikias
Subject: Re: Placing objects on spheres...
Date: 28 Aug 2002 00:56:03
Message: <3d6c57e3$1@news.povray.org>
There are a lot of links, and the mathematical descriptions
are sometimes a little above me, but I'll keep the links and
see if I can find something more efficient and more versatile
than what Christoph posted. Nontheless, thanks!

--
Tim Nikias
Homepage: http://www.digitaltwilight.de/no_lights/index.html
Email: Tim### [at] gmxde

> > I'm looking for a method to calculate positions in order
> > to place objects with N radius onto a sphere with R radius.
>
> http://www.math.niu.edu/~rusin/known-math/index/spheres.html
>
> ABX


Post a reply to this message

From: Tim Nikias
Subject: Re: Placing objects on spheres...
Date: 28 Aug 2002 00:58:15
Message: <3d6c5867$1@news.povray.org>
Are you referring to the method described in Christoph's
link on the bottom "Uniform Distribution - Hypercube rejection
method"? It does look interesting, solving how to let it us
a given number of positions might be interesting though...

Also, texturing the hairs shouldn't be too difficult anyways,
I can always use the base-position for calculations,
can't I?

--
Tim Nikias
Homepage: http://www.digitaltwilight.de/no_lights/index.html
Email: Tim### [at] gmxde

> Start with a cube. If you ever want to color the hairs in any type of
> organized fashion you will be glad you did. I played around with several
> different ways of dividing a sphere, and this is by far the most
versatile.
>


Post a reply to this message

From: Ken
Subject: Re: Placing objects on spheres...
Date: 28 Aug 2002 01:12:45
Message: <3D6C5C89.D55978E4@pacbell.net>
Tim Nikias wrote:
> 
> Hi all!
> 
> I'm looking for a method to calculate positions in order
> to place objects with N radius onto a sphere with R radius.
> These small objects shouldn't intersect each other (as less
> as possible), but cover the entire sphere.
> 
> I need this to generate positions for some CSG-Hairs to
> get a furball (the last try was suspected to be fireworks...)
> 
> I'm thankful for any link or help regarding this, and do
> note that I'm the kinda guy who likes to script the required
> algorithms himself...

See Also - http://www.ogre.nu/sphere.htm

-- 
Ken Tyler


Post a reply to this message

Goto Latest 10 Messages Next 8 Messages >>>

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