POV-Ray : Newsgroups : povray.binaries.scene-files : New camera tracking method Server Time
1 Sep 2024 18:18:44 EDT (-0400)
  New camera tracking method (Message 1 to 1 of 1)  
From: Bathurstfreak
Subject: New camera tracking method
Date: 22 Jul 2005 02:40:01
Message: <web.42e0939a9f8772e6f5c315de0@news.povray.org>
Hi, I spent quite a few hours on this one, a new camera tracking method
based on Pascals Triangle. I took the formula for a bezier curve and
modified it to suit any set of Pascals magic numbers (In this file anything
from 1st to 14th row). The formulas and code allow the variables to change
when the order changes. The reference to carpos inside the camlocs array
are just equally spaced positions of the car over the time I specified.

The animation is made up of 250 frames, so to make
transferring reference points easy, I just used (13 * 19 = 247 < 250) a
quick car position reference system. The fourth column in the camlocs array
is essentially the half viewing width of the scene. The angle changes to
suit.

Seeing as 0^0 gives a null value in POV-Ray, formula states that it should
equal 1, there needs to be an if statement in the summation while loop.
Hope you lot find this useful.

I'll post the result in the animations section.


Post a reply to this message


Attachments:
Download 'camera.inc.txt' (4 KB)

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