[info-performer] 2D Text

New Message Reply Date view Thread view Subject view Author view

From: Joaquín Casillas Meléndez (jcasilla++at++isoco.com)
Date: 02/03/2003 02:31:12


Hugh Fisher wrote:
>> 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.
>

Hi Hugh,

I think drawing 3D text would probably be another time-consumer
approach. The text is for displaying several in-flight parameters, it
isn't just for drawing a single word or sentence.

What about using the gui text widgets of Performer for drawing the text
labels in a separate mini-channel? Do you think it would be efficient?
(actually, I don't need to draw text over 3D scene, but it would be more
elegant).

Regards,

-- 
-------------------------------------------------------------------------
Joaqumn Casillas Melindez, R+D Engineer at iSOCO
Intelligent Software Components, S.A. http://www.isoco.com
Addr: Profesor Beltran Baguena, 4, oficina 305, 46009 Valencia
Voice: +34 96 346 71 43 Fax: +34 96 346 71 42


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Feb 03 2003 - 02:34:19 PST

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.