POV-Ray : Newsgroups : povray.binaries.images : Other things the text object can do. : Re: Other things the text object can do. Server Time
26 Mar 2025 14:16:25 EDT (-0400)
  Re: Other things the text object can do.  
From: Chris R
Date: 7 Mar 2025 11:10:00
Message: <web.67cb194b9216b80b53fb81ab5cc1b6e@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:
> "Chris R" <car### [at] comcastnet> wrote:
>
> > To prove my spline layout code is correct, I created some tools for converting a
> > spline whose values have an arbitrary range into a spline whose values go from
> > 0.0 to the computed length of the spline over the given range of values.  Using
> > a spline that has been tuned this way gave a much better result in laying out
> > the text.
>
> are you aware that there are spline macros to do this sort of thing?
> IIRC, they are in transforms.inc
>
> - BW

I knew in the back of my head that I had used the Spline_Trans macro before, but
couldn't remember what it was called or where it was.  Thanks!

I'll probably create a new version of my Text Spline alignment macro and replace
my code for computing the rotations with this, which allow for banking the text
as well, which would be cool.

The macro still has to do the work of computing the offset based on the letter
spacing, and then using this macro to do the placement and orientation.  And I
haven't seen anything equivalent to the code I wrote to convert a Spline using
arbitrary values with a Spline that uses distances along the spline curve for
values, so I think that's still useful.

-- Chris R


Post a reply to this message

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