POV-Ray : Newsgroups : povray.general : Double loop using rotation : Re: Double loop using rotation Server Time
31 Jul 2024 18:23:32 EDT (-0400)
  Re: Double loop using rotation  
From: pierre
Date: 17 Oct 2006 07:15:01
Message: <web.4534ba9cb13fd848ad334ed60@news.povray.org>
Warp <war### [at] tagpovrayorg> wrote:
> pierre <pie### [at] efpginpgfr> wrote:
> > How can I implement this in povray?
>
>   The documentation is full of useful info for this. More specifically,
> have a look at: http://povray.org/documentation/view/3.6.1/241/
>
>   What you want to do can probably be done easiest with #switch/#range
>
> --
>                                                           - Warp

Thanks Warp,
I already read this section and tried to implment my code with the function
#while:



  #declare Count=1;
  #while (Count<10)

camera {
      location <0, -3*cos(10*Count), -3*sin(Count*10)>
  look_at <0, 0, 0>
}

{
MY object
}

light_source {
  <0,0,-3>
  color White
  rotate clock*360*x
}

       # declare Count=Count+1;
        #end

But povray think there is many cameras on the same scene and just run for
the first camera position!
I am not really familiar with the computer programation and i don't know how
to solve this problem.

Pierre


Post a reply to this message

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