Ran Yakir (rany++at++rtset.co.il)
Sat, 06 Sep 1997 12:33:43 +0300
> Hi,
> I encountered problems with pfColortable. I tried to change the global
> color table as discribed in example #2 in performer references for
> 'pfColorTable' but w/o success. I'd like to achieve an effect as
> suggested in the notes (infrared vision or some like this).
>
> does anyone has experience with this class and could provide me
> with examples.
The steps you'de have to follow if you want a global colortable is :
1. Make your geosets indexed. i.e. use color indexes instead of colors in
your geoset. I think that if you want the colors to be indexed, you'll have
to make the other attributes indexed too (coords, texcoords, normals). For
that, you can just create an index list of one-to-one indexes.
2. Create a pfColorTable
3. Either attach it to the channel, or pfApply it at the beginning of your
draw.
Ran
--
__ | Ran Yakir
/_) _ __ \ / _ / o __ | 28 Ben Gurion St.
/ )_ (_(_) ) \/ (_(_/<_(_)( | Hod Hasharon 54200
_/ | Israel
-------------------------------------+--------------------------------
At Home : | At Work :
| RT-SET
Voice : +972-9-7489974 | Voice : +972-9-9552236
Fax : +972-9-7422149 | Fax : +972-9-9552239
E-mail : rany++at++netvision.net.il | E-mail : rany++at++rtset.co.il
http://rtset.co.il/rany
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:55:53 PDT