|
|
Great! That's what I was looking for. But the performance question remains.
Will it be faster to render the scene like that rather than one image at a
time? I ask because I will automate this and there will be a c++ program
generating the .ini file(s). If I will render 20 images, should I generate
20 .ini files or just one and let povray deal with the animation?
If povray starts from the begining for every frame, then there's no speed
gain and I think i prefer to change the file for each image. But if povray
cut some steps cause they've been done before, the the speed gain might be
worthwhile.
"Slime" <fak### [at] emailaddress> wrote:
> > 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
|
|