From: Skluzacek, Christian (C.Skluzacek++at++fokkerspace.nl)
Date: 05/22/2001 04:28:27
Eric,
I've done something similar using glMatrixMode( GL_COLOR ) and then
manipulated the 4x4 transformation matrix to affect the final rendered
image. I also used glPixelMap* to specify the number of color levels to
simulate limited color resolution. I'm not sure if these are the most
efficient ways of doing things because I also had to do a glCopyPixels at
each frame of the whole window to activate the color transformations. Does
anyone know how to get these two gl calls to work without a glCopyPixels?
Cheers,
Chris
> ----------
> From: Eric Heft[SMTP:eheft++at++dnaco.net]
> Sent: Monday, 21 May, 2001 19:45
> To: info-performer++at++sgi.com
> Subject: GreenScale and Walking the scenegraph
>
> Hello,
>
> I need to convert a database to a "greenscale". I've search
> the performer archives and found this quote:
>
> > 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.
> >
> > Take a look at the documentation for indexed pfGeoStates
> > (man pfGeoState and pfChannel)
>
> Does anyone have a code snips which traverse the scenegraph?
> I've inserted models into the scene graph and maniputed the
> DCS nodes but its been a couple years.
>
> My quick hack was using glColorMask to disable the red and
> blue channels but that really doesn't do the trick :(
>
> Thank you for your help,
> Eric
>
>
>
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: 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
>
This archive was generated by hypermail 2b29 : Tue May 22 2001 - 04:28:55 PDT