|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
hey,
I want to render several images from other views by while loop.
how can I save image from camera? can I do it in while loop and give
other names to images?
can you give me short example please?
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On 7/3/2016 9:20 PM, kfir wrote:
> hey,
>
> I want to render several images from other views by while loop.
> how can I save image from camera? can I do it in while loop and give
> other names to images?
>
>
> can you give me short example please?
>
Is it necessary to use a loop?
It would be simpler to use the animation feature. You could plot the
camera position and direction for each frame and each saved image would
have its own unique file name related to the frame number.
--
Regards
Stephen
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
> hey,
>
> I want to render several images from other views by while loop.
> how can I save image from camera? can I do it in while loop and give
> other names to images?
>
>
> can you give me short example please?
>
>
>
>
>
A while loop is useless for that. Look at my answer in the general group.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
ok, thank you both, I'll try using animation.
i'm new user in pov-ray.
I'll just add here your answer from the general forum for someone who search
similar question:
Alain <kua### [at] videotronca> wrote:
> > hey.
> >
> > I want to render several images from other views by while loop.
> > how can I save image from camera? can I do it in while loop?
> >
> >
> > please give me an short example
> >
> >
>
> No. A given scene can have only a single camera.
>
> What can be used to do what you seems to want is the use of the
> animation feature.
>
> In this case, you can use a #switch() #case()#break #end construct as
> follow:
> You need a #case() clause for each camera definition you want.
>
> #switch(frame_number)
> #case(1) // camera for the first view
> #break
> #case(2) // camera for the second view
> #break
> #case(...)
>
> Then, you start your render using +kffn where "n" stand for the number
> of views you want.
>
> "frame_number" is a builtin variable that evaluate to zero for a single
> image, or a value that depend on the current frame been rendered if
> rendering an animation. In that later case, it start at 1 unless you set
> the first frame's number to something else.
>
> You'll end up with a serie of images consecutively numbered.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |