Re: pfGeodes in pfText.

New Message Reply Date view Thread view Subject view Author view

Nicolas Gauvin (nicolas++at++cae.ca)
Fri, 9 Aug 1996 12:21:03 -0400


On Aug 9, 4:09pm, Greg Edwards, SGI UK. wrote:
> Subject: pfGeodes in pfText.
> Hi,
> Can we get the pfGeoSet(s) out of a pfText in order to plug into a
> pfBillboard ? The API isn't there it seems since pfText not derived
> from pfGeode, but should be possible.
>

The pfGeoSet list is internal/private to the pfString class and unaccessible.
As a way to work around this limitation, you could try associating
a pre and post draw callback to your pfText node that would use a
pfSprite to force a billboard effect. Something like:

static int
preDrawCB( pfTraverser* trav, void* data )
{
   sprite->begin();
   sprite->position(0.0f,0.0f,0.0f);
   return PFTRAV_CONT;
}

static int
postDrawCB( pfTraverser* trav, void* data )
{
   sprite->end();
   return PFTRAV_CONT;
}

Check the man page on pfSprite. It's a nice feature added to libpr for
Performer 2.0.

-- 
Nicolas Gauvin			CAE Electronics Ltd., 8585 Cote De Liesse
Software Developer 		Saint-Laurent, Quebec, Canada, H4L-4X4
3-D Graphics Applications	tel: +1 514 341 2000 extension 2275
nicolas++at++cae.ca			fax: +1 514 340 5496
=======================================================================
List Archives, FAQ, FTP:  http://www.sgi.com/Technology/Performer/
            Submissions:  info-performer++at++sgi.com
        Admin. requests:  info-performer-request++at++sgi.com

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:53:20 PDT

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