|
|
vianagmo nous apporta ses lumieres en ce 24/01/2006 16:06:
> Hi,
>
> I have one scene in povray and I want to get several views (400) of the same
> scene at diferent angles (like a panning), but I don't want an animation I
> desire to obtain one .png per view, there is an easy way to do that?
>
> Thanks for your help
>
>
This is exactly what animation does. Each frame is a separate image. The name comes
from the scene
file name followed by a sequential number starting at 1 and going up to the final
frame number.
In your case, all you need to do, is to translate the camera acording to the clock
value. You can
also have a rotation if you want, in that case, it's best to create the camera at the
origin, rotate
it then translate it to the desired location.
--
Alain
-------------------------------------------------
AI programmers only think they do it
Post a reply to this message
|
|
|
|
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? 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.
Post a reply to this message
|
|
|
|
"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
|
|