POV-Ray : Newsgroups : povray.newusers : text problem : Re: text problem Server Time
2 Nov 2024 15:24:11 EDT (-0400)
  Re: text problem  
From: Warp
Date: 24 Nov 2003 08:34:49
Message: <3fc208f9@news.povray.org>
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.

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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