POV-Ray : Newsgroups : povray.newusers : Rollercoaster type maths (not possible in povray?) : Re: Rollercoaster type maths (not possible in povray?) Server Time
29 Jul 2024 10:29:32 EDT (-0400)
  Re: Rollercoaster type maths (not possible in povray?)  
From: CdeathJd
Date: 1 Aug 2006 21:25:00
Message: <web.44cffe45d4496aa8e2e0912a0@news.povray.org>
Also i tried the only other thing i could think of, making pov ray calculate
through each frame, from the beginning adding the velocity if it was facing
downwards, this didn't work, gave an error, and stopped letting me render
untill i reloaded the program, no idea why, heres my attempt at it:

   camera {
      location 0
      look_at z
      translate <0,0.4,0.4>

      #declare clock1=0;
      #declare newy=0;
      #declare oldy=0;
      #declare velocity=1;
      #while (clock1<clock)
                #declare oldy=newy;
                Spline_Trans (MySpline, velocity+(clock*130), y, 0.5, 0.5)
                #declare newy=camera.y;
                #if (newy>oldy)
                        velocity=velocity+0.5;
                #end
                #declare clock1=clock1+1;
      #end


   }


Post a reply to this message

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