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:11:50 EDT (-0400)
  Re: Other things the text object can do.  
From: Chris R
Date: 7 Mar 2025 13:40:00
Message: <web.67cb3ca29216b80b53fb81ab5cc1b6e@news.povray.org>
"Chris R" <car### [at] comcastnet> wrote:
> "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

Time to move on, but here's the previous image using the new macro using
Spline_Trans with a Banking value of 1.0.  I used a more interesting font as
well.  The banking is subtle, but you can see it on the downward curve around
the "good people" section.

-- Chris R


Post a reply to this message


Attachments:
Download 'text_test.png' (95 KB)

Preview of image 'text_test.png'
text_test.png


 

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