Re: why colors are not displayed properly?

New Message Reply Date view Thread view Subject view Author view

From: Qinxin Yu (qyu++at++cs.toronto.edu)
Date: 01/18/2002 08:38:53


Hi Marcin,

Thank you for your help. But as I tried to turn off the lighting, and even
add in a geostate for the corresponding geoset to disable lighting for it,
the situation still remains the same. Are there other possible causes for
this problem? Thanks.

Qinxin

On Thu, 17 Jan 2002, Marcin Romaszewicz wrote:

>
> 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 : Fri Jan 18 2002 - 08:39:33 PST

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