From: Marcin Romaszewicz (marcin++at++asmodean.engr.sgi.com)
Date: 06/29/2000 17:26:15
No, there is no call that does this, but you could traverse the
scenegraph, extract all colors from the materials, and replace the
material colors with shades of grey.
It gets a little more interesting if you have lighting disabled in
particular geostates and specify colors per-vertex. In this case, you have
to go through the color array on the geosets with those geostates and
modify all colors to be greyscale as well.
Take a look at the documentation for indexed pfGeoStates (man pfGeoState
and pfChannel). This mechanism allows you to easily swith between your
color and greyscale geostates on the fly.
-- Marcin
On Thu, 29 Jun 2000, Martin, Tammy wrote:
> Hi,
> If I import an OpenFlight database that has color imagery, is there a
> call in Performer I can use to render only in grayscale?
> Thanks,
> Tammy
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>
This archive was generated by hypermail 2b29 : Thu Jun 29 2000 - 17:26:21 PDT