POV-Ray : Newsgroups : povray.animations : Splines and Cameras : Re: Splines and Cameras Server Time
15 May 2024 08:36:03 EDT (-0400)
  Re: Splines and Cameras  
From: Tor Olav Kristensen
Date: 17 Apr 2011 16:45:01
Message: <web.4dab511c84bc41c9c734aecd0@news.povray.org>
"jkennedy12" <jke### [at] cornellcollegeedu> wrote:
> camera {
>         location Spline_Trans(Spline_1,0.0,y,0.03,0.95)
>         look_at Spline_Trans(Spline_1,0.2,y,0.03,0.95)
> }
> That should sum up what I want to start with. This gives me an error and sends
> me to the transform.inc file. Does anyone have a solution to this?

A 3D-vector is expected both after location and look_at.
The Spline_Trans() macro returns a transformation, not a 3D-vector.

If you want to apply a transformation to a 3D-vector, you can do it like this:

#declare SplineTransform = Spline_Trans(Spline_1, 0.0, y, 0.03, 0.95)
#declare p0 = <0, 0, 0>;
#declare p0_Transformed = vtransform(p0, SplineTransform);

--
Tor Olav
http://subcube.com


Post a reply to this message

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