POV-Ray : Newsgroups : povray.newusers : Scene enquiry : Re: Scene enquiry Server Time
25 Apr 2024 10:25:50 EDT (-0400)
  Re: Scene enquiry  
From: m@b
Date: 21 Oct 2022 12:22:20
Message: <6352c73c@news.povray.org>
On 20/10/2022 10:57 AM, santividal wrote:
> Thank you so much m@b, that was exactly what I was looking for. What if I wanted
> to continue drawing my droplets in the lower level of the fountain? Where should
> I declare the distance from the Y axis so that the droplets appear as a
> continuation of the upper level?
> 
> Thank you in advance for any help

You could just add a second sphere and translate it before rotation:

#declare Rotation=0;
#declare Rotation_angle=12;


#while (Rotation < 360)
     #declare posX = 0.02;
     #declare posY = 0.82;
     #declare dy = 0.055;
     #while (posX < 0.3)
         sphere {<posX,posY,0>, 0.01 pigment{rgb<0,1,0>} 
       rotate<0,Rotation,0>}
         sphere {<posX,posY,0>, 0.01 pigment{rgb<0,0,1>} 
translate<0.2,-0.3,0> rotate<0,Rotation,0> }
         #declare dy = dy - 0.01;
         #declare posX = posX + 0.02;
         #declare posY = (posY + dy);
     #end
     #declare Rotation = (Rotation + Rotation_angle);
#end


Post a reply to this message

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