POV-Ray : Newsgroups : povray.binaries.images : Problem with text object : Re: Problem with text object Server Time
30 Jul 2024 10:11:45 EDT (-0400)
  Re: Problem with text object  
From: clipka
Date: 10 Dec 2011 02:03:22
Message: <4ee3043a$1@news.povray.org>


> Perhaps once more a stupid beginner's mistake (after 16 years of
> POVing... it's just humiliating!): I'm just not able to place a text
> object (within an object pigment pattern) on a box tilted by 30 degrees
> around the x axis!
...
> All I ever get is an empty aluminium panel (see attachment)... what goes
> wrong?

The text object you use for the pigment pattern is extremely thin (0.001 
scaled by 0.01 = 0.00001), and not close enough to the surface you want 
to texture.

You apparently want to attach it to the z=0 surface of the 
Display_Card_Panel that, in total, undergoes the following transformations:

     translate <0, 0, -0.0015>
     translate <0, 0.0015, 0>
     rotate <30, 0, 0>

You have to apply all of these to you text object (it seems you forgot 
the first one) after the scaling, /plus/ a translation before the 
scaling so that the z=0 plane lies entirely inside the text object (to 
avoid coincident surface problems), i.e.:

   text
   {
     ttf "/media/disk1part9/fonts/lucon.ttf"
     "T_Stone1", 0.001, 0
     translate <0, 0, -0.0005>
     scale 0.01
     translate <0, 0, -0.0015>
     translate <0, 0.01, 0>
     rotate <30, 0, 0>
   }


Post a reply to this message

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