From: Hugh Fisher (hugh.fisher++at++anu.edu.au)
Date: 02/02/2003 15:23:03
> From: =?ISO-8859-1?Q?Joaqu=EDn_Casillas_Mel=E9ndez?= <jcasilla++at++isoco.com>
> Date: Fri, 31 Jan 2003 18:41:48 +0100
> Subject: [info-performer] 2D Text
>
> Hi all,
>
> Is there another way for drawing text over the scene in addition to make=20
> GL calls in a post draw callback (such as in text.C example)? This way=20
> is consuming to much drawing time, and gets the frame-rate down.
>
> I'm running Performer 3.0 on Linux Platform with a Nvidia card.
>
> Any idea would be appreciated.
You can draw X Window system fonts, although this does require a custom
draw callback of some sort. See the man pages for pfuCharPos, pfuDrawString,
and friends. For code to implement a teletype style HUD overlay on a 3D
scene, try <http://cs.anu.edu.au/~hugh.fisher/performer/velab.tar>
You could also create 3D fonts, filled or stroked but not extruded, and
display them as a billboard node so always facing the viewer front on.
See the man pages for pfFont, pfString, pfText.
Hope this helps.
-- Hugh Fisher DCS, ANU
This archive was generated by hypermail 2b29 : Sun Feb 02 2003 - 15:25:07 PST