POV-Ray : Newsgroups : povray.animations : Camera Sky-Vector : Re: Camera Sky-Vector Server Time
30 Jun 2024 22:23:56 EDT (-0400)
  Re: Camera Sky-Vector  
From: Rune
Date: 4 Aug 2005 10:42:17
Message: <42f22949$1@news.povray.org>
Chrisir wrote:
> My Camera follows a spline with curves. When the camera flies thru a
> curve I like to turn the angle of the camera a bit as a airplane
> would do; the camera leans to the left or to the right.
>
> I have the location of the camera according to the spline position,
> the look-at of the camera according to the next position on the
> spline (i.e. the camera looks to the direction it will fly to next).
> How can I calculate the Sky-vector with these two vectors to get the
> effect?

Perhaps you can get inspiration in how the Spline_Trans() macro in 
transforms.inc works.

You can have a look at this demo scene...

scenes\animations\splinefollow\splinefollow.pov

...and render with the first person view settings. This scene illustrates 
the usage of Spline_Trans() to move the camera, including banking.

Rune
-- 
3D images and anims, include files, tutorials and more:
rune|vision:  http://runevision.com
POV-Ray Ring: http://webring.povray.co.uk


Post a reply to this message

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