POV-Ray : Newsgroups : povray.newusers : Aligning text along a circle Server Time
5 Nov 2024 01:23:46 EST (-0500)
  Aligning text along a circle (Message 1 to 6 of 6)  
From: Zero
Subject: Aligning text along a circle
Date: 4 Jul 2001 10:32:04
Message: <3b4328e4$1@news.povray.org>
I see I forgot to add a subject line in my post, sorry about that.  Here it
is again:

I'm not really a new user, but this question is so basic (and I'm such an
amateur) that this seemed like the right group to ask.  Ok, here's the deal:
I'm trying to align text around a circle.  I have been trying by making the
individual letters, then translating them down, and subsequently rotating
them into place.  However this gives 2 problems: 1. the origin is in the
lower left of each letter, so after rotating they still don't align nicely
and instead slope to the right a bit, and 2. since I don't know the width of
each character I can't space them correctly.
Now I know in the Win32 GUI there is a function which tells you the width of
a character, but I'm guessing this isn't implemented in povray.  So my
question is: is there any way to calculate the width of each character?  Or,
alternatively, does anyone know how to reach the same effect in a different
way (perhaps with a macro)?

TIA,
  Zero


Post a reply to this message

From: Elias Pschernig
Subject: Re: Aligning text along a circle
Date: 4 Jul 2001 11:31:24
Message: <3b4336cc@news.povray.org>
> I'm not really a new user, but this question is so basic (and I'm such an
> amateur) that this seemed like the right group to ask.  Ok, here's the deal:
> I'm trying to align text around a circle.  I have been trying by making the
> individual letters, then translating them down, and subsequently rotating
> them into place.  However this gives 2 problems: 1. the origin is in the
> lower left of each letter, so after rotating they still don't align nicely
> and instead slope to the right a bit, and 2. since I don't know the width of
> each character I can't space them correctly.
> Now I know in the Win32 GUI there is a function which tells you the width of
> a character, but I'm guessing this isn't implemented in povray.  So my
> question is: is there any way to calculate the width of each character?  Or,
> alternatively, does anyone know how to reach the same effect in a different
> way (perhaps with a macro)?

Although I'm quite new to povray myself, I have an idea what you could do.
Try getting megapov, it supports centering of text, and thus would solve your
problem.

Elias Pschernig


Post a reply to this message

From: Christoph Hormann
Subject: Re: Aligning text along a circle
Date: 4 Jul 2001 11:49:51
Message: <3B433B7A.309D8CBC@gmx.de>
Try:

Subject: circletext.pov : Make text go in circles
Date: 13 Dec 2000 12:19:44 -0500
From: ron### [at] povrayorg (Ron Parker)
Newsgroups: povray.text.scene-files

Christoph

-- 
Christoph Hormann <chr### [at] gmxde>
IsoWood include, radiosity tutorial, TransSkin and other 
things on: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

From: Zero
Subject: Re: Aligning text along a circle
Date: 4 Jul 2001 12:46:10
Message: <3b434852@news.povray.org>
"Christoph Hormann" <chr### [at] gmxde> schreef in bericht
news:3B433B7A.309D8CBC@gmx.de...
>
> Try:
>
> Subject: circletext.pov : Make text go in circles
> Date: 13 Dec 2000 12:19:44 -0500
> From: ron### [at] povrayorg (Ron Parker)
> Newsgroups: povray.text.scene-files
>
> Christoph

Perfect!  :-)  This is exacly what I needed, thanks.
And thanks to Ron Parker too of course :-)

Zero


Post a reply to this message

From: Ron Parker
Subject: Re: Aligning text along a circle
Date: 5 Jul 2001 09:41:14
Message: <slrn9k8rjr.9ll.ron.parker@fwi.com>
On Wed, 4 Jul 2001 18:41:30 +0200, Zero wrote:
>
>"Christoph Hormann" <chr### [at] gmxde> schreef in bericht
>news:3B433B7A.309D8CBC@gmx.de...
>>
>> Try:
>>
>> Subject: circletext.pov : Make text go in circles
>> Date: 13 Dec 2000 12:19:44 -0500
>> From: ron### [at] povrayorg (Ron Parker)
>> Newsgroups: povray.text.scene-files
>>
>> Christoph
>
>Perfect!  :-)  This is exacly what I needed, thanks.
>And thanks to Ron Parker too of course :-)

Note that for now that code requires MegaPOV or one of its offspring.  It
will be supported in POV 3.5 as well.

-- 
#macro R(L P)sphere{L F}cylinder{L P F}#end#macro P(V)merge{R(z+a z)R(-z a-z)R(a
-z-z-z a+z)torus{1F clipped_by{plane{a 0}}}translate V}#end#macro Z(a F T)merge{
P(z+a)P(z-a)R(-z-z-x a)pigment{rgbf 1}hollow interior{media{emission 3-T}}}#end 
Z(-x-x.2x)camera{location z*-10rotate x*90normal{bumps.02scale.05}}


Post a reply to this message

From: Zero
Subject: Re: Aligning text along a circle
Date: 5 Jul 2001 09:55:23
Message: <3b4471cb@news.povray.org>
"Ron Parker" <ron### [at] povrayorg> schreef in bericht
news:slr### [at] fwicom...
>
> Note that for now that code requires MegaPOV or one of its offspring.  It
> will be supported in POV 3.5 as well.
>

Yep, I noticed that.  I downloaded MegaPOV, and so far I'm very happy with
it :-)


Post a reply to this message

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