Re: [CAVERNUS] Characters in the pfCAVE

New Message Reply Date view Thread view Subject view Author view

Anton Koning (anton++at++sara.nl)
Wed, 7 Oct 1998 09:18:12 +0200 (MET DST)


>
> Hi
> I wanna display characters in the CAVE by Performer. How to do it?
>
> I knew how to write characters by OpenGL refered a source of cavevars. But I
> don't know how to do it by Performer.
>
> I refered Performer manual. it has that will be laied a character's channel
> on the pipe. But pfCAVEMasterChan will not be possible.
>
> Please tell me how to use characters in the pfCAVE.

You can either use OpenGL in combination with Performer (tricky) or use
the Performer pfText object to render 2D or 3D text:

  pfFont *font = pfdLoadFont_type1("Helvetica-Bold", PFDFONT_FILLED);
  pfString *string = new pfString;
  string->setFont(font);
  string->setMode(PFSTR_JUSTIFY, PFSTR_LEFT);
  string->setColor(0.0, 0.0, 0.5, 1.0);
  string->setString(tmp_text);
  pfText *text = new pfText;
  text->addString(string);
  scene->addChild(text);

Performer comes with two fonts in /usr/share/Performer/data. Utilities to
create your own fonts can be found on the SGI Developer Toolbox website
(look for Dave Haeberli's font utilities).

 ------------------------------------------------------------------------------
| Anton H.J. Koning, Ph.D. | Consultant, Academic Computing Services Amsterdam |
| e-mail: anton++at++sara.nl | s-mail: P.O. Box 94613, NL-1090 GP Amsterdam |
 ------------------------------------------------------------------------------


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Wed Oct 07 1998 - 00:18:19 PDT

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