POV-Ray : Newsgroups : povray.animations : Rotating text around center? : Re: Rotating text around center? Server Time
28 Jul 2024 16:26:27 EDT (-0400)
  Re: Rotating text around center?  
From: Cliff Bowman
Date: 19 Jun 1999 00:37:45
Message: <376b1e94.13274473@news.povray.org>
On Fri, 18 Jun 1999 20:37:14 -0700, Brian Mason <bri### [at] gvnnet>
wrote:

>Larkril wrote:
>> 
>> I am making an animation, and I am trying to rotate a single word around in
>> a circle.  The problem is that since text starts at the lower left corner(in
>> POVray, which is what I'm using) it rotates by its edge instead of by the
>> middle.  For example, it rotates more like the hand of a clock than a plane
>> propeller.  How can I get around this.  There must be some fancy thing I can
>> do with sin and cosine, etc...  If you wouldn't mind, please email me a copy
>> of your reply at rla### [at] mbhsedu.  Thanks a lot for any help!
>Larkrill,
>
>You need to translate your text to the left by half of the length of the
>text.  This will center your text at 0,0.  All rotations rotate about
>this point.
>
This is one area where POV could really do with some extra functions.
Charwidth, Charheight, Stringwidth and Stringheight would make some
things sooooo much easier!

In the short term, it's possible that some assistance may be found at
http://quark.gmi.edu/~redbeard/raytracing/POVRay-util.html

Bear in mind though that the "font.inc" file was written for POV 3.0,
and only works (correctly) with the font distributed with POV.


Cheers,

Cliff Bowman
Why not pay my 3D Dr Who site a visit at
http://www.geocities.com/Area51/Dimension/7855/
PS change ".duffnet" to ".net" if replying via e-mail


Post a reply to this message

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