Re: pfHighlight

New Message Reply Date view Thread view Subject view Author view

Ran Yakir (rany++at++rtset.co.il)
Mon, 2 Dec 1996 18:27:10 +0000


> pfGeoSet *models[50];
> pfHighlight *hlight[50];
>
> void
> init (void)
> {
> int index;
>
> for (index=1; index<50; index++)
> {
> hlight[index] = pfNewHlight(NULL);
> if (hlight[index])
> {
> pfHlightMode (hlight[index], PFHL_FILL);
> pfHlightColor(hlight[index], PFHL_BGCOLOR, 1.0f, 1.0f, 1.0f);
> pfHlightAlpha(hlight[index], 0.5);
> }
> }
>
> for (index=1; index<50; index++)
> {
> models[index] = (pfGeoSet *) pfdLoadFile("model.flt");
> if (models[index])
> pfGSetHlight(models[index],hlight[index]);
> }
> }

pfdLoadFile() returns a pfNode*, which is a higher level object than a
pfGeoSet. If you want to get down to geoset level and change geoset attributes,
you'll have to traverse the graph returned from pfdLoadFile(), all the way down
to the geosets. Right now you are trying to call pfGSetHlight() with a pfGroup
or a pfGeode as an argument. I suppose that performer doesn't like it.

Ran

-- 
 __                                  | Ran Yakir
 /_)  _  __   \  / _   / o __        | RT-SET Ltd.
/ )_ (_(_) )   \/ (_(_/<_(_)(        | 
              _/                     |   
-------------------------------------+--------------------------------
Phone :                              | E-mail : rany++at++rtset.co.il
  Work : 972-9-9552236               |          rany++at++netvision.net.il
  Res. : 972-9-7489974               |
Fax    : 972-9-9552239               |
=======================================================================
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:54:04 PDT

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