Dynamic text labels for objects.....

New Message Reply Date view Thread view Subject view Author view

Hillel Steinberg (zeus++at++cs.UMD.EDU)
Tue, 5 Jul 1994 11:33:46 -0400


Hi, I'm trying to use performer 1.0 to walkthrough a world, and I need all the
entities to have dynamic words attatched to them, such as "Hello". Obviously,
if the object isn't visible currently, I don't need the label to show up on
top of the object. I've tried several ways to do this - but no luck. I put
traversal callbacks for pre/post Draw, and when it gets to the object, I
domething like:

 drawmode(NORMALDRAW);

 mapcolor(1, 255, 255, 0);
 gflush();
 color(1);
 fmsetfont(fontHandle);
 cmov(-1.0,0.0,6.0);

 fmprstr("Hello");

 but it doesn't work. I read the chapter on traversals, and I can see
something about the draw process (this is a single process application)
not having the transformation matrix, but I tried this code also in cull
callbacks to no avail. What am I doing wrong,

                             Thanxs in advance,

                                 - Hillel


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:23 PDT

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