POV-Ray : Newsgroups : povray.newusers : Several scenes Server Time
29 Jul 2024 08:21:29 EDT (-0400)
  Several scenes (Message 1 to 5 of 5)  
From: vianagmo
Subject: Several scenes
Date: 24 Jan 2006 16:10:00
Message: <web.43d696c54eb78005baa3c5150@news.povray.org>
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


Post a reply to this message

From: Roman Reiner
Subject: Re: Several scenes
Date: 24 Jan 2006 16:45:00
Message: <web.43d69fa663c80ba72a643e710@news.povray.org>
"vianagmo" <vaa### [at] unaleduco> wrote:
> 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

I get the feeling that you expect that povray already outputs a playable
moviefile like avi or mpg when doing an animation. this is not the case.
povray will output one single image for every frame with appropriate
numbering at the end of the filename. So that should be just what you want.
Did I get that right?

Regards Roman


Post a reply to this message

From: Alain
Subject: Re: Several scenes
Date: 24 Jan 2006 16:48:54
Message: <43d6a0c6$1@news.povray.org>
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

From: vianagmo
Subject: Re: Several scenes
Date: 25 Jan 2006 09:40:01
Message: <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? 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

From: Chris B
Subject: Re: Several scenes
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.