POV-Ray Insert Menu
mady by Christoph Hormann
http://www.imagico.de/

Text Fonts

top previous next

// Persistence of Vision Ray Tracer Scene Description File
// File: ?.pov
// Vers: 3.5
// Desc: Basic TTF font Example
// Date: mm/dd/yy
// Auth: ?
//

#version 3.5;

global_settings {
  assumed_gamma 1.0
}

// ----------------------------------------

camera {
  location  <0.02.0-6.0>
  direction 1.5*z
  right     4/3*x
  look_at   <0.00.0,  0.0>
}

sky_sphere {
  pigment {
    gradient y
    color_map {
      [0.0 color blue 0.6]
      [1.0 color rgb 1]
    }
  }
}

light_source {
  <000>            // light's position (translated below)
  color rgb <111>  // light's color
  translate <-3030-30>
}

// ----------------------------------------

#declare Text_Tex = texture {
  pigment { granite scale 0.5 }
  finish { specular 0.7 }
}

text {
  ttf crystal.ttf, Hello,
  2// depth
  0  // spacing
  texture { Text_Tex }
  rotate <0-200>
  translate <-10-3>
}

text {
  ttf crystal.ttf, Virtual World!,
  1// depth
  0  // spacing
  scale <121> // stretch it taller
  texture { Text_Tex }
  rotate <0-300>
  translate <-303>
}


plane { y0 pigment { color rgb <0.7,0.5,0.3> } }