POV-Ray : Newsgroups : povray.newusers : Light Cycle animation questions... : Re: Light Cycle animation questions... Server Time
30 Jul 2024 20:18:58 EDT (-0400)
  Re: Light Cycle animation questions...  
From: Carl Hoff
Date: 22 Feb 2004 09:14:22
Message: <4038b93e$1@news.povray.org>
> (1) The same issue bongotastic had with splines of variable length.
> In my code if I change the number of points in my spline I have to
> change path1_num, the array path1, and edit my path1_spline
> declaration.  It really seems I should be able to do this in a general
> way and not have to change the path1_spline declaration but I
> couldn't find a way to do it.

This problem is fixed with the help of bongotastic's thread in
povray.newusers.

#declare path1_spline = spline {
  linear_spline
  #declare ctr = 0;
  #while (ctr < path1_num - 0.5)
    path1_seg_time[ctr], path1[ctr][0],
    #declare ctr = ctr + 1;
  #end
}

> (2) It proved to be harder then I thought to position an object that's
> defined with forward in the x-direction and up in the y-direction to a
> new set of forward and up vectors.  I got something that works but
> I think I did it in a very ugly way.  Surely there is a more general
> way of doing this.

Still thinking about this one.

Carl


Post a reply to this message

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