3D Text

3D text is created in Performer using pfText nodes. It requires a pfString containing the string and a pointer to the pfFont to use.

A font is loaded with pfdLoadFont_type1(). The fonts available (in /usr/share/Performer/data) are "Times-Elfin" and "Mistr".

 pfFont *font = pfdLoadFont_type1("Times-Elfin",PFDFONT_EXTRUDED);
 pfString *string = new pfString;
 string->setString("Blah blah blah");
 pfText *text = new pfText;

Example code
(Note: to run this program, set your PFPATH environment variable to /usr/share/Performer/data/)

Previous page    Table of contents    Next page

Last modified 17 February 1997.

Dave Pape, pape@evl.uic.edu