POV-Ray : Newsgroups : povray.newusers : Several scenes : Re: Several scenes Server Time
29 Jul 2024 10:29:18 EDT (-0400)
  Re: Several scenes  
From: Chris B
Date: 25 Jan 2006 13:10:31
Message: <43d7bf17@news.povray.org>
"vianagmo" <vaa### [at] unaleduco> wrote in message 
news:web.43d78cc063c80ba7baa3c5150@news.povray.org...
>
> o.k, I've got it, thanks a lot...Maybe you could help me with something 
> else
> here, I need that the rendering of this 400 views is doing in parallel, 
> but
> for that task would I  have to get one .pov per frame?

No. Not necessarily.

Recap
------
As the previous posters mentioned the animation features produce a sequence 
of images. These images don't have to follow any sort of natural flow if you 
don't want them to. So you could assign a set of camera locations and 
look_at points into an array, then use the frame_number to pick up the 
values when you need them.

For example:

// Use command line settings of  +kfi0 +kff3

#declare CameraSettings = array[4][2] {
  {<1,1, 3>, <0, 0  ,0>},
  {<3,1, 1>, <0, 0.5,0>},
  {<2,4,-3>, <2,-0.1,1>},
  {<4,1,-3>, <1, 0  ,0>}
}

box    {0,1 pigment {color rgb <1,1,0>}}
sphere {0,1 pigment {color rgb <0,1,1>}}

camera {location CameraSettings[frame_number][0] look_at 
CameraSettings[frame_number][1]}
light_source{<25, 50,-25>rgb 1}
light_source{<25,-50, 25>rgb 1}

Parallel Processing
-------------------
If you are using the Windows version you can run multiple copies of POV-Ray. 
In the 'Options' menu just de-select the 'Keep Single Instance' option. Then 
you can open as many instances as you want (there probably is some sort of 
practical limit). You can use the same POV SDL file in different windows so 
long as they are not going to be writing to the same output files.

So if you extend the example above with 400 positions you can use one 
instance of POV-Ray to render frames 0-100 and another to render frames 
101-199.
You can even use different settings in each (antialiasing, image size etc.).

If you want to render the same frames differently in each window you can 
redirect the output so that they are not writing to the same directory using 
the '+o' command line option.


> What library I have
> to use? I have been looking in the net and I have found RendView,
> MPI-PovRay, etc. For Rendview I would need to have one .pov per view, 
> maybe
> someone could tell me what to use and where find it?
>
> Thanks again.
>

I'm not sure what is this 'library' of which you speak.

regards,
Chris B.


Post a reply to this message

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