[comp.sys.sgi] How to map text onto objects

genetti@cs.tamu.edu (Jon Genetti) (11/27/90)

Someone stopped by today with a problem.  He needs to put some text
on a polygon and then move/rotate the polygon - something similar to
the buttonfly demo.  This part works ok using cmov and charstr:

+----------------+
|    some text   |
+----------------+

Now if the polygon is moved back, the length of the string is not
scaled down, i.e.

    +--------+
    |  some t|xt
    +--------+

and when rotated, the starting point of the text is transformed ok,
but the text is not, i.e.

+----
|    ----
+   some text+
 ----        |
     ----    |
         ----+

The closest thing I saw to solving the problem would be to have the
text be a texture map - but we don't have a VGX.  Is there any way
to do this on a personal iris or a GTX running 3.3.1?

thanks,
jon genetti (genetti@cs.tamu.edu)

cs122ae@ux1.cso.uiuc.edu (11/28/90)

You must define your own font (geometrically)... it can't be done with
charstr().

Marc

Marc Andreessen___University of Illinois Materials Research Laboratory
__________________andreessen@uimrl7.mrl.uiuc.edu______________________