|
![](/i/fill.gif) |
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)
|
![](/i/fill.gif) |