Re: Need help with indexed colors, please

New Message Reply Date view Thread view Subject view Author view

John Rohlf (jrohlf++at++tubes)
Wed, 14 Sep 94 10:44:45 PDT


>
> Could someone PLEASE help with how to use pfColorTable indexed colors?

> 5. I enable/disable indexed color mode as follows:
>
> in APP process:
> ---------------
> material = pfGetGStateAttr(patch->geoStates[i], PFSTATE_FRONTMTL);
> pfMtlColorMode(material, PFMTL_FRONT,
> (enableCtab) ? PFMTL_CMODE_COLOR : PFMTL_CMODE_AD);

        This conditional is reversed. You need CMODE_AD when in color index
mode - otherwise the PER_VERTEX colors will be overridden by the material
color.


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:50:32 PDT

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