POV-Ray : Newsgroups : povray.newusers : Cannot Copy Identifier when using a spline{}? : Re: Cannot Copy Identifier when using a spline{}? Server Time
5 Sep 2024 00:18:53 EDT (-0400)
  Re: Cannot Copy Identifier when using a spline{}?  
From: Mike Williams
Date: 18 Mar 2002 02:48:51
Message: <Qy$zzKAjuZl8EwwV@econym.demon.co.uk>
Wasn't it Mark Hanford who wrote:
>Why can I do
>#debug vstr(mySpline(pos), ...)
>
>or
>camera{ location mySpline(pos) ...}
>
>but not
>#declare MyVar = mySpline(pos);
>
>???
>thanks

I thought I remembered doing that sort of thing all the time, but it
turned out that I wasn't using raw splines, I was using spline functions

   #declare Camera_Path= 
   function {
     spline{
       natural_spline
       -1, Cam_Start+(100*x)
        0, Cam_Start
        1, Cam_CockpitWindow
        2, Cam_CockpitWindow+(100*x)
     }
   }

  #declare Camera_Location = Camera_Path(0); //Camera_Path(clock);

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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