POV-Ray : Newsgroups : povray.general : Text objects orientation problem : Re: Text objects orientation problem Server Time
1 Aug 2024 20:10:03 EDT (-0400)
  Re: Text objects orientation problem  
From: kerosin
Date: 24 Apr 2005 15:50:00
Message: <web.426bf73f7e34b395c4fdd5a30@news.povray.org>
Hi,

sorry bit this wont work, first I have to translate the label to the
position I want it to appear. If I dont use a transformation matrix, the
text has a very strange direction, e.g. try the POVRay file below. I would
be delighted if someone could help me out...

// To render this scene, call povray (available from www.povray.org) like
this:
// povray +I1.pov +FN +O1.png +Q9 +W659 +H524 -UV +A0.3
//
camera {
  perspective
  direction <0.0, 0.0, -1.0>
  right 1.25763358779 * x
  angle 83.0
  transform {
    matrix <
    0,  1, 0,
    -0.00787083446969,  0, 0.999969024503,
    0.999969024503,  0, 0.00787083446969,
    -0.0784517526627,  0.145133942366, -6.29094362259
    >
  inverse }
}

light_source { <2.1, 24.35, 0.27>, <0.8, 0.8, 0.8, 0., 0.>}
global_settings { radiosity { brightness 0.6 } }
background { <1., 1., 0.49, 0., 0.> }

// enter the path to your desired font here:
#declare BALLLabelFont              =
"/usr/share/fonts/wine/wine_marlett.ttf"

union {
text{ ttf BALLLabelFont, "test label",0.2, 0
  texture{ pigment{color rgb<0.33, 0., 0., 0., 0.> }
  finish{ambient 0.15 diffuse 0.85} }
  translate <-0.145134, 0.333343, 0.0810779 >
}

}


Post a reply to this message

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