POV-Ray : Newsgroups : povray.tools.general : I am beginner for POV-Ray... Please help me... Server Time
22 Dec 2024 06:54:41 EST (-0500)
  I am beginner for POV-Ray... Please help me... (Message 1 to 4 of 4)  
From: James
Subject: I am beginner for POV-Ray... Please help me...
Date: 16 Nov 2005 20:50:00
Message: <web.437be14a5344bb45cce6fd2b0@news.povray.org>
Hi!

I like to draw spheres of 1000 in 3D box. Is it possible?

I have 3-dimensional positions of spheres. How, I don't know how to put the
positions of spheres of 1000 on the program. As you know, it is difficult
to write position of each sphere on the program.

Thank you in advance.

James


Post a reply to this message

From: Marc Jacquier
Subject: Re: I am beginner for POV-Ray... Please help me...
Date: 28 Mar 2006 04:58:00
Message: <442908a8$1@news.povray.org>

news:web.437be14a5344bb45cce6fd2b0@news.povray.org...
> Hi!
>
> I like to draw spheres of 1000 in 3D box. Is it possible?
>
> I have 3-dimensional positions of spheres. How, I don't know how to put
the
> positions of spheres of 1000 on the program. As you know, it is difficult
> to write position of each sphere on the program.
>
> Thank you in advance.
>
> James
>
>

I do not really understand what you mean but this question belongs  the
"povray.newusers" group, try there, you have more chances to get a proper
answer

Marc


Post a reply to this message

From: anidonu
Subject: Re: I am beginner for POV-Ray... Please help me...
Date: 21 Jun 2006 15:05:00
Message: <web.449997c6892b75df947c79ba0@news.povray.org>
"James" <hy5### [at] hanmailnet> wrote:
> Hi!
>
> I like to draw spheres of 1000 in 3D box. Is it possible?
>
> I have 3-dimensional positions of spheres. How, I don't know how to put the
> positions of spheres of 1000 on the program. As you know, it is difficult
> to write position of each sphere on the program.
>
> Thank you in advance.
>
> James
If you only want to a simple location then this does it:
/*   Creates a set of spheres on a regular cube layout and spins them
/*   set +kff = 180 and +kc = 1 in povray.ini  */

#include "textures.inc"

#declare MyClock = clock;
#declare St = 2;

#declare Xs = 0;
#declare Qube =
union {#while ( Xs<=10)
         #declare Ys = 0;
         #while ( Ys<=10)
             #declare Zs = 0;
             #while (Zs <= 10)
                sphere { <Xs,Ys,Zs>,0.25 pigment {
rgb<.1+Xs/11,0.1+Ys/11,0.1+Zs/11>} finish { Glossy } }
                #declare Zs = Zs + St;
             #end
             #declare Ys = Ys + St;
         #end
         #declare Xs = Xs + St;
       #end
      }

object { Qube translate -5 rotate MyClock*360}
light_source { 1e3 rgb 1 }

camera { location <400,300,-600> look_at 0 angle 2 }
background { rgb 0.5 }


Post a reply to this message

From: anidonu
Subject: Re: I am beginner for POV-Ray... Please help me...
Date: 14 Jul 2006 09:55:00
Message: <web.44b7a135892b75df947c79ba0@news.povray.org>
Greetings,

For a really simple case, where the spheres are uniformly spaced with no
collisions....But for the general case of arbitrary spheres or objects,
you'll need 'suds.pov'

"James" <hy5### [at] hanmailnet> wrote:
> Hi!
>
> I like to draw spheres of 1000 in 3D box. Is it possible?
>
> I have 3-dimensional positions of spheres. How, I don't know how to put the
> positions of spheres of 1000 on the program. As you know, it is difficult
> to write position of each sphere on the program.
>
> Thank you in advance.
>
> James

/*   Creates a set of spheres on a regular cube layout and spins them */
/*   set +kff = 180 and +kc = 1 in povray.ini  */

#include "textures.inc"

#declare MyClock = clock;
#declare St = 2;

#declare Xs = 0;
#declare Qube =
union {#while ( Xs<=10)
         #declare Ys = 0;
         #while ( Ys<=10)
             #declare Zs = 0;
             #while (Zs <= 10)
                sphere { <Xs,Ys,Zs>,0.25 pigment {
rgb<.1+Xs/11,0.1+Ys/11,0.1+Zs/11>} finish { Glossy } }
                #declare Zs = Zs + St;
             #end
             #declare Ys = Ys + St;
         #end
         #declare Xs = Xs + St;
       #end
      }

object { Qube translate -5 rotate MyClock*360}
light_source { 1e3 rgb 1 }

camera { location <400,300,-600> look_at 0 angle 2 }
background { rgb 0.5 }

Yours,

Don Barron


Post a reply to this message

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