POV-Ray : Newsgroups : povray.general : Text Rotation Server Time
31 Jul 2024 18:23:55 EDT (-0400)
  Text Rotation (Message 1 to 3 of 3)  
From: elliot
Subject: Text Rotation
Date: 14 Nov 2006 17:20:01
Message: <web.455a40a6fa2c3144ac60561d0@news.povray.org>
Im making an airport for an assignment.

This is the first time I have used POVray and I am quiet inexperienced.

I have just made a box which will represent a terminal building, see code:

//terminal
box {
     <-106, -50, -50>,
     <106, 50, 50>
transform
  { rotate< 0,-85,0> translate<-310,0,220>}
   pigment { color Gray65 }
}

I then want to place some text on the front of the terminal building with a
name of the airport but as my airport terminal is rotated slightly because
of the whole airport im having trouble making the text sit directly onto
the building, text code:

text{ttf "arial.ttf", "Ell's Airport",1, 0
     texture{ pigment{color rgb<1,0.7,0.2>}
              finish{ambient 0.65 diffuse 0.55 phong 1 reflection 0.2}}
     rotate<90,-90,-90> scale<5,22,14,> translate<-255,35,190> }


Here is an image of what it looks like at the moment - you will see the
problem:
http://img489.imageshack.us/img489/7508/airportza1.jpg

As you can see the E sticks out more than the t but it seems that any
rotation that I try it dosent seem to make any difference.

Thanks for any help!


Post a reply to this message

From: Ben Chambers
Subject: Re: Text Rotation
Date: 14 Nov 2006 17:26:32
Message: <455a4298$1@news.povray.org>
You could union them, then translate them together.

union {
  box {...}
  text {...}
  rotate ...
  translate ...
}

...Chambers


Post a reply to this message

From: Darren New
Subject: Re: Text Rotation
Date: 14 Nov 2006 17:40:08
Message: <455a45c8$1@news.povray.org>
elliot wrote:
>   { rotate< 0,-85,0> translate<-310,0,220>}

Your terminal is rotated 85 degrees.

>      rotate<90,-90,-90> scale<5,22,14,> translate<-255,35,190> }

Your text is rotated 90 degrees.

That's the fundamental problem, I expect. Try rotating both Y amounts 
the same.

-- 
   Darren New / San Diego, CA, USA (PST)
     "That's pretty. Where is it?"
         "Channelwood."
     "We should go there on vacation."
         "..."


Post a reply to this message

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