POV-Ray : Newsgroups : povray.binaries.images : CD Cover (final?) : Re: CD Cover (final?) Server Time
11 Aug 2024 21:23:18 EDT (-0400)
  Re: CD Cover (final?)  
From: Bill Hails
Date: 7 Mar 2004 17:59:22
Message: <404ba949@news.povray.org>
Tyler Eaves wrote:

> One suggestion: The frets on a guitar get furthur apart as you go up the
> neck.

but sleepers stay the same distance apart :-), the result
is a compromise/average:

        #local C = StringLength / 96;
        #local N = NumFrets;

        #declare NextFret = function(n, l) {
            (n * (l - C) + (N - n) * (l * (23/24))) / N
        }

and in the loop:

        #local I = 0;
        #local Pos = StringLength;
        #while (I < NumFrets)
            #local Pos = NextFret(I, Pos);
            ...

-- 
Bill Hails


Post a reply to this message

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