POV-Ray : Newsgroups : povray.general : generating Animation problem. : Re: generating Animation problem. Server Time
29 Apr 2024 00:23:37 EDT (-0400)
  Re: generating Animation problem.  
From: Jay
Date: 1 Aug 2017 21:45:01
Message: <web.59812e95e19acd75fa7320dd0@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:
> "Jay" <pjy### [at] gmailcom> wrote:
>
> > i know how to make the first line (1)~(5)
>
> and how are you doing that?
>
> > but i can't figure out how to move camera(5) to (6) and goes on the movement.
> > anyone who know how to do this stuff, plz let me know. i appreciate
>
>
> I would make an array of vectors defining the camera locations, and then based
> on the clock/frame value, use that camera array element.
>
> #declare Cameras = array [25] {<x1, y1, z1>, ..., <xn, yn, zn>};
>
> camera {
>   location Cameras [frame_number]
>   look_at  <LAx, LAy, LAz>
>   right 1*x
>   up 1*y
> }


just like this

#declare Move = 10 * clock;

#declare Cam1 = camera { location<15,5,18 + Move>
                         look_at <0,5,18 + Move>
                         angle 120 }


Post a reply to this message

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