Michael Jones (mtj++at++babar)
Thu, 29 Dec 1994 08:03:22 -0800
:I need to attach strings to objects in a scene. Unfortunately text
:strings don't seem to be in Performer (an odd ommision).
I can see how this omission would seem odd.
The fact is, though, that the hardware supports only one kind
of "text" and that's bit-map fonts. Any more sophisticated type
of text, such as vector fonts or 2D and 3D polygonal text, is
simply a collection of lines or triangles -- which IRIS Performer
supports well.
:In: ./src/pguide/libpf/progs/text.c
:there is an example on how to use gl text.
Exactly.
:My question is:
:
:Is this the best way to do things?
In fact, it is the only way...
:It seems quite clumsy and slow. We would have to do a callback in the
:draw process, grab the text string off the data field of the node,
:push the matrix, draw the text, pop the matrix, etc.
...exactly what a pfBitmapText node would need to do. There seems
to be no performance advantage to us doing it inside Performer, which
is why we left it out. However, ...
:Is there any other way to do this? In general, can anyone send me
:examples on how to use multifont and/or translateable text?
...if it's going to be too much of a hastle for people, we could look
into providing pfutil code to handle text. How many people feel that
this would be more important than, say, multi-axis billboards?
--Be seeing you, Phone:415.390.1455 Fax:415.390.2658 M/S:8U-590 Michael T. Jones Silicon Graphics, Advanced Graphics Division mtj++at++sgi.com 2011 N. Shoreline Blvd., Mtn. View, CA 94039-7311
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:46 PDT