Re: pfBillboard with text and 2d text

New Message Reply Date view Thread view Subject view Author view

Jorge Valencia Loera (valencia_jorge++at++hotmail.com)
Tue, 17 Aug 1999 16:49:08 EDT


Hi Anda,

the IRIS Performer class pfBillboard is derived from the parent class
pfGeode & the class pfGeode is itself derived from the parent class pfNode.
The function:
int pfGroup::addChild(pfNode *child);
is a member of the class pfGroup only so only pfGroup objects or classes
derived from it will have that function.

Take a look at /usr/share/Performer/src/pguide/libpf/C++/text.C
or /usr/share/Performer/src/pguide/libpf/C/text.c,
it's a pretty good example on how to make some text move with the scene (the
text is in the scene) & how to make some text appear over the scene without
moving even if your camera position moves.
I think that's what you want to do.

I hope it helps. (if for some reason you don't have those files send me an
e-mail and I'll send them to you).

Good luck.
Jorge Valencia

>Hello,
>
>I'd like to add to my scene some text that will rotate with the viewer
>so it will be in the right direction always.
>So the best solution is a billboard node - but it doesn't have the
>addChild function.
>
>What is the best solution?
>also
>How can I put 2D text in the scene - still as an object or a texture. Is
>there a fast utility that transforms string
>to rgb ?
>
>Thanks,
>
>--
> Anda
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>Anda Singher anda++at++cs.technion.ac.il
> tel: 04-8293905
>http://www.cs.technion.ac.il/~anda/
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Tue Aug 17 1999 - 16:15:23 PDT

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