Ran Yakir (rany++at++bvr.co.il)
Thu, 2 Nov 1995 10:55:39 +0000
>
> Umm, I might be totally confused but is that really the case ?? The 1.2
> pfColortable man page states :
>
> pfApplyCtab selects ctab as the current, global pfColortable. If
> colorindex mode is enabled (pfEnable(PFEN_COLORTABLE)), then all
> subsequent pfGeoSets will use the pfVec4 array supplied by ctab rather
> than their own local color array. Colorindex mode works for both indexed
> and non-indexed pfGeoSets.
>
> This seems to be directly opposite to what you're saying. I must admit
> that I have not tried using pfColortables yet but I am about to and had
> come across this in the doco. My understanding was that if non-indexed
> geosets were used then the values in the colortable are simply accessed
> in sequential order, starting at 0.
Formally, you are right. However, there is no much use for non-indexed geosets,
with a colortable that corespondes directly to vertex location in the geoset.
For such a geoset, let's say it is constructed of independant trinagles, you'll
have to configure a colortable that will be specific to it. Its first three
color entries will corespond to the first triangle, the second three to the
second triangle and so on. In that case, why bother and make a colortable at
all ? You get the same behaviour out of normal geosets.
Ran
--
__ | Ran Yakir
/_) _ __ \ / _ / o __ | Graphics App. Chief Engineer
/ )_ (_(_) ) \/ (_(_/<_(_)( | BVR Technologies Ltd.
_/ |
-------------------------------------+--------------------------------
Phone : | E-mail : rany++at++bvr.co.il
Work : 972-3-5715671 |
Res. : 972-9-989974 |
Fax : 972-3-5715668 |
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:00 PDT