POV-Ray : Newsgroups : povray.animations : Simple: Camera Position : Re: Simple: Camera Position Server Time
23 Apr 2024 15:24:03 EDT (-0400)
  Re: Simple: Camera Position  
From: Le Forgeron
Date: 27 Feb 2011 14:17:00
Message: <4d6aa32c@news.povray.org>
Le 27/02/2011 14:39, Chrisir nous fit lire :
> So there's a straight line from A to B to C.
> 

Seconded mail from Christian Froeschlin.

Nevertheless:

let's k be the ratio BC/AB.

the relation is (C-B) = k(B-A).
which can be rewritten
C = k(B-A)+B
...
C = (k+1)*B -k*A.

Apply to all coordinates (x,y,z).


> P.S.
> It would be cool when there would be a kinf of Damping.
> So when the Marble B is doing a abrupt or fast short change, camera kind of
> stays calm.
> 
That might be some call for a spline.
For instance, you might want to adjust the previous k dynamically based
on the speed of B.
Assumes the positions of B are in the spline, compute the "speed" by
evaluating the spline at t & t+delta, divide that vector-distance by
delta...

Or you could instead average the spline from t-delta to t+delta (with
enough steps) to have the camera more stable.
For better realism, the camera should not know about the futur, so only
averaging from t-delta to t. (or even t-late)


Post a reply to this message

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