|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Still working on my first animation, a vehicle travelling around a track, so
how do I measure the distance between a point on a spline and the camera?
(distance needed to set the appropriate viewing angle of the camera to make
sure the car takes up the right amount of frame at all times. This task
done using atan and other trig functions)
Current animation
www.maelstromcreations.com/bathurst/mpegs/basicvideo.wmv
James
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Well, just subtract the position from the camera's location, slap a
vlength(...) around it, and the resulting float is the distance in POV-Units
from position to location. An example:
#declare Camera_Location = <0,5,10>;
camera{location Camera_Location look_at <0,0,0>}
#declare Position = <4,6,12>;
#declare Distance = vlength(Camera_Location-Position);
Nice animation for a beginner, though the car is a little jerky at the
curves...
Regards,
Tim
--
"Tim Nikias v2.0"
Homepage: <http://www.nolights.de>
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Cheers, works beautifully
"Tim Nikias" <JUSTTHELOWERCASE:timISNOTnikias(at)gmx.netWARE> wrote:
> Well, just subtract the position from the camera's location, slap a
> vlength(...) around it, and the resulting float is the distance in POV-Units
> from position to location. An example:
>
> #declare Camera_Location = <0,5,10>;
> camera{location Camera_Location look_at <0,0,0>}
>
> #declare Position = <4,6,12>;
>
> #declare Distance = vlength(Camera_Location-Position);
>
> Nice animation for a beginner, though the car is a little jerky at the
> curves...
>
> Regards,
> Tim
>
> --
> "Tim Nikias v2.0"
> Homepage: <http://www.nolights.de>
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|