|
|
Wasn't it Warp who wrote:
>M Godfrey <mgo### [at] netscapenet> wrote:
>> anyone know how to rotate text using the
>> text{ ttf "fontname.ttf" 1,0
>> rotate <??,??,??> or rotate x*?? }
>
>> making it rotate the letters and not rotating it around in a cirlce around
>> the screen?
>
> Rotations always happen around the origin.
>
> If you want to rotate an object around a certain given point P, first
>translate the object so that P becomes the origin, then rotate, then
>translate the object back.
> That is: translate -P rotate whatever translate P
>
> If you don't know P (how could POV-Ray know if even you don't?), then
>try searching a good point by eg. putting a cylinder as the axis around
>which you want to rotate the object and move that cylinder around until
>you find the right spot. The location of the cylinder will then be your P.
But if you want to rotate the object and keep it in the same place, then
a good choice for P would be the centre of the bounding box that
contains the text, which you can obtain like this:-
#declare P = (min_extent(TextObject) + max_extent(TextObject)) / 2;
--
Mike Williams
Gentleman of Leisure
Post a reply to this message
|
|