Colors and Colortables

New Message Reply Date view Thread view Subject view Author view

chris (chris++at++scotch.physics.ucla.edu)
Fri, 19 Apr 1996 12:32:25 -0700


Hi,

        I am using performer to model isosurfaces, and I would like to assign
color values on a per-primitive basis according to posistion of the primitive
in space. It seems like this should be easy, but there is very little
useful info on pfColortables and pfGSetAttr in the manuals.
        If I choose not to use a color table, and I assign pfGSetAttr PER_PRIMITIVE,
what are the connection rules for the ushort *list argument? Vertex connections
are well explained in chapter 10 of PG, but Color connections are ignored.
        What are the indexing rules if I use the colortable? Are they per Geoset?
If so, it would seem that I must make each polygon an independent geoset to have
independent coloring. I really hope that's not true.

Chris

////////////////////////////////////////////////////
//Chris Mitchell -- //
//Institute of Plasma and Fusion Research (IPFR) //
//UCLA Physics Department 310-206-1772 //
//mitchell++at++physics.ucla.edu //
//chris++at++scotch.physics.ucla.edu //
// //
//"Self Reliance, the height and perfection of //
// man, is reliance on God." //
// --Ralph Waldo Emmerson //
////////////////////////////////////////////////////


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:52:45 PDT

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