Descriptions et exemples pour le POV-Ray raytracer par Friedrich A. Lohmüller,
traduit en français par Henri Girard.
English English English
Italiano  Italiano
Deutsch 

Index Table des matières unicode

Texte en sculture :

"text{ ... } " - 3d texte en fontes

On utiliser pour ce genre d'objet 3D toutes les fontes installées pour créer des formes. Sur les sytèmes windows on les trouvent dans le répertoire "C:\windows\fonts". Il est recommandé d'intégrer ce chemin comme chemin de libraries "Library_Path" dans le fichier ini de povray "povray.ini". On peut l'ajouter dans windows par "Tools" (outils), "Edit master POVRAY.INI" (Editer le fichier POVRAY.INI) il faut insérer les lignes nécessaires à la fin du fichier, qui auront l'allure suivante : :

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


Exemple "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
Description de scène pour POV-Ray

Bevelled_Text macro

(necessaire: #include "shapes.inc" !!!)

Exemple "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

(necessaire: #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 Table des matières unicode

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