POV-Ray : Newsgroups : povray.newusers : Animation without clock : Re: Animation without clock Server Time
29 Jul 2024 20:27:26 EDT (-0400)
  Re: Animation without clock  
From: Slime
Date: 24 Feb 2005 16:03:37
Message: <421e4129@news.povray.org>
> I want to render a few images of the same scene, but with the camera in
> differente places. Is it possible to make them all at once, reducing
> raytracing time? Do I have to use a clock for this? Or there's some other
> way?

You could use frame_number:

#switch(frame_number)
    #case(0)
        camera {...}
    #end
    ...
#end

Or like this:

#declare locations = array[3] {<1,2,3>,<4,5,6>,<7,8,9>};
#declare lookats = array[3] {<3,2,1>,<6,5,4>,<9,8,7>};

camera {
    location locations[frame_number]
    look_at lookats[frame_number]
}

 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message

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