POV-Ray raytracer descriptions and samples by Friedrich A. Lohmüller
Italiano Italiano
Français français
Deutsch Deutsch

Index Index unicode

Sculptural Texts:

"text{ ... } " - 3d text by fonts

We can use for this kind of 3d object all installed fonts to create shapes.
On Windows systems we can find them in the directory "C:\windows\fonts". It is recommanded to insert this path as "Library_Path" in the file named "povray.ini". We can add this in Windows by "Tools", "Edit master POVRAY.INI" inserting at the end of this file the according line, so it will look like this:

...
Library_Path=C:\Programme\POV-Ray for Windows v3.5\INCLUDE
Library_Path=C:\windows\fonts


Sample on "text{ ... }":

text{
   ttf "arial.ttf",
   "text object",1000, 0
   texture{
     pigment{color rgb<1,0.65,0>}
     finish{ambient 0.15
            diffuse 0.85}
          }
   translate<0,0,0.5> }

Sample text object 640x480
Scenery description for POV-Ray

Bevelled_Text macro

(needs to include: #include "shapes.inc" !!!)

Sample "Bevelled_Text( ... )":
Bevelled_Text (Font, String, Cuts, BevelAng, BevelDepth, Depth, Offset, UseMerge)

object{
Bevelled_Text
 ("arial.ttf", // Font
  "POV-Ray",// String
  10 ,      // Cuts
  35,       // BevelAngle
  0.045,    // BevelDepth
  1,        // Depth
  0.00,     // Offset
  0)        // 1 = "merge"
  texture{
   pigment{color rgb<1,0.70,0>}
   normal { bumps 0.5 scale 0.005}
   finish{ambient 0.1 diffuse 0.75 phong 1}
   } // end of texture
   rotate<0,-40,0>
   scale<2.25,3,3>
   translate<-1.2, 0.1,-0.5>
 } // end of Bevelled_Text object 

Sample text object 640x480
Scene file for POV-Ray

Circle_Text macro

(needs to include: #include "shapes.inc" !!!)

Sample "Circle_Text( ... )":
Circle_Text( Font, Text, Size, Spacing,
Thickness, Radius, Inverted, Justification, Angle )

object{
Circle_Text(
 "arial.ttf", // Font
 "POV-Ray",// Text
 0.75 , // Size
 0.025, // Spacing
 15.00, // Thickness
 1.25,   // Radius
 1,       // Inverted
Align_Left,// od. Align_Right, Align_Center
175)     // Angle
texture{ Polished_Chrome
        normal { bumps 0.5 scale 0.005}
        finish{ambient 0.1 diffuse 0.75
            specular 1 reflection 0.25}
      } // end of texture
rotate<0,20,0>
translate<0.3,2.3,-1>
}// end of Circle_Text object

Sample text object 640x480
Scene for POV-Ray


Index Index unicode

© Friedrich A. Lohmüller, 2004
email email: (legacy email redacted)
homepage:www.f-lohmueller.de