![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
> 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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Try:
Subject: circletext.pov : Make text go in circles
Date: 13 Dec 2000 12:19:44 -0500
From: ron### [at] povray org (Ron Parker)
Newsgroups: povray.text.scene-files
Christoph
--
Christoph Hormann <chr### [at] gmx de>
IsoWood include, radiosity tutorial, TransSkin and other
things on: http://www.schunter.etc.tu-bs.de/~chris/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
"Christoph Hormann" <chr### [at] gmx de> 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] povray org (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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
On Wed, 4 Jul 2001 18:41:30 +0200, Zero wrote:
>
>"Christoph Hormann" <chr### [at] gmx de> 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] povray org (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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
"Ron Parker" <ron### [at] povray org> schreef in bericht
news:slr### [at] fwi com...
>
> 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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |