Re: why colors are not displayed properly?

New Message Reply Date view Thread view Subject view Author view

From: Marcin Romaszewicz (marcin++at++asmodean.engr.sgi.com)
Date: 01/17/2002 15:58:53


It depends on a few things. PFGS_OVERALL means that Performer will make
one glColor4f call for your entire geoset. Your geostate could be set up
to ignore this color. If you have lighting enabled, then colors are set
via pfMaterial not as a per vertex attribute. As a test, disable lighting
on your geoset and see if it is the color you expect. If it is, then you
have lighting or materials leaking from another geostate into your current
one. To fix this, set the material and lighting enable bit explicitly on
the pfGeoState that you attach to your pfGeoSet.

-- Marcin

On Thu, 17 Jan 2002, Qinxin Yu wrote:

> Hi,
>
> I'm using setAttr with binding PFGS_OVERALL to set the overall color for
> the geoset created with pfdNewCube, but the color is not displayed
> properly, and it changes as the cube moves. Anyone knows what might have
> caused this problem and how to solve it? Thank you very much.
>
> Qinxin
>
>
> -----------------------------------------------------------------------
> List Archives, Info, FAQ: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/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 2b29 : Thu Jan 17 2002 - 15:58:56 PST

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