POV-Ray : Newsgroups : povray.newusers : repeating a smaller object around the circumference of a sphere Server Time
26 Nov 2024 19:35:35 EST (-0500)
  repeating a smaller object around the circumference of a sphere (Message 1 to 6 of 6)  
From: incognito
Subject: repeating a smaller object around the circumference of a sphere
Date: 28 Nov 2003 05:40:01
Message: <web.3fc72500a7877cb27a726e430@news.povray.org>
Hi,

I would like to repeat a very small object around the circumfrence of a
sphere.
I was wondering if there is a relatively simple way to do this or would I be
better off trying to create a disc with a pattern and color map to try
rendering the effect I would like (surreal ray objects surrounding a sun
object)? If I am better off with the latter, is there a pattern that would
be best for this purpose. I have tried and can't seem to find one that
works or maybe I need to rotate and scale in a way I can't seem to figure
out (?)

Thanks for any suggestions.


Post a reply to this message

From: Tim Nikias v2 0
Subject: Re: repeating a smaller object around the circumference of a sphere
Date: 28 Nov 2003 05:44:10
Message: <3fc726fa$1@news.povray.org>
That is actually very simple, using while-loops:

#declare Sphere_Radius=3;
#declare Amount_Of_Objects=10;
#declare Counter=0;
#while (Counter<Amount_Of_Objects)
object{The_Object translate x*Sphere_Radius rotate
y*360/Amount_Of_Objects*Counter}
#declare Counter=Counter+1;
#end

This way, 10 objects (declared as The_Object) would be placed on the y-plane
around the sphere. Note that I haven't taken into consideration the size of
The_Object itself, you might want to increase Sphere_Radius then.

-- 
"Tim Nikias v2.0"
Homepage: <http://www.nolights.de>
Email: tim.nikias (@) nolights.de


Post a reply to this message

From: Warp
Subject: Re: repeating a smaller object around the circumference of a sphere
Date: 28 Nov 2003 06:13:42
Message: <3fc72de6@news.povray.org>
I hate to nitpick, but some clear indentation scheme might make it easier
to read the code...

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

From: Tim Nikias v2 0
Subject: Re: repeating a smaller object around the circumference of a sphere
Date: 28 Nov 2003 10:16:20
Message: <3fc766c4@news.povray.org>
>   I hate to nitpick, but some clear indentation scheme might make it
easier
> to read the code...

Yeah, okay. You evil nitpicker! ;-)

-- 
"Tim Nikias v2.0"
Homepage: <http://www.nolights.de>
Email: tim.nikias (@) nolights.de


Post a reply to this message

From: Ken
Subject: Re: repeating a smaller object around the circumference of a sphere
Date: 28 Nov 2003 10:40:27
Message: <3FC76C77.CFB43D9C@pacbell.net>
Warp wrote:
> 
>   I hate to nitpick,

Really?


Post a reply to this message

From: Warp
Subject: Re: repeating a smaller object around the circumference of a sphere
Date: 28 Nov 2003 11:20:13
Message: <3fc775bd@news.povray.org>
Ken <tyl### [at] pacbellnet> wrote:
> >   I hate to nitpick,

> Really?

  Yes, but as I am a masochist as well, I do it anyways.

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

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