Descrizioni ed esempi per il raytracer POV-Ray di Friedrich A. Lohmüller
English English English
Français français
Deutsch Deutsch

Index Indice unicode

Testo scultoreo:

"text{ ... } " - testo 3D con fonts

Possiamo usare questa forma di oggetti tridimensionale con tutti i tipi di carattere (fonts) que abbiamo istallato su nostro computer.
Su computer con sistema Windows troviamo i font nella directory "C:\windows\fonts". È recommandato d'inseriere quest'indirizzario nel "Library_Path" del file "povray.ini". Possiamo aggiungere con sistema Windows con "Tools", "Edit master POVRAY.INI". Nel archivo "POVRAY.INI" dobbiamo aggiungere alla fine del testo una linea come questo:

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


Esempio per "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
Testo di scena per POV-Ray

Bevelled_Text macro

(Bisogna includere: #include "shapes.inc" !!!)

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

object{ 
Bevelled_Text
 ("arial.ttf", // Fontbezeichnung
  "POV-Ray",// testo
  10 ,      // Schnitte
  35,       // Abschrägungswinkel
  0.045,    // Abschrägungstiefe
  1,        // Schrifttiefe in z-Richtung
  0.00,     // Anstieg pro Zeichen
  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
Testo di scena per POV-Ray

Circle_Text macro

(Bisogna includere: #include "shapes.inc" !!!)

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

object{
Circle_Text(
 "arial.ttf", // font 
 "POV-Ray",// testo 
 0.75 , // misura di testo 
 0.025, // Zeichenabstand
 15.00, // Zeicheniefe 
 1.25,   // Radius
 1,       // invertiert
Align_Left,// od. Align_Right, Align_Center 
175)     // Winkel
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
Testo di scena per POV-Ray


Index Indice unicode

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