Re: frame rate control with IRIX 5.3

New Message Reply Date view Thread view Subject view Author view

Jim Helman (jimh++at++surreal)
Thu, 16 Feb 95 20:51:59 -0800


> I created a simple airplane using 2 polygons with geosets(PFGS_TRIS).
> Now, I'm trying to set a different color for each polygon using pfMaterial.
> Can someone please tell me how to go about this?

Materials should only be created when necessary as changing them is
somewhat expensive. If you only want different colors, you should
do this with one material that has pfMtlColorMode set to allow the
color in the pfGeoSet specify the color to be used for lighting.
For example, pfMtlColorMode(mtl, PFMTL_FRONT, PFMTL_CMODE_AD) causes
the pfGeoSet color(s) to be used instead of the ambient and diffuse
material colors for lighting.

As the sample programs in /usr/src/Performer/src/pguide/libpf/progs
indicate, for lighting you also need to have created and applied a
pfLightModel and have lighting pfEnabled.

rgds,

-jim helman

jimh++at++surreal.asd.sgi.com
415/390-1151


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:50:58 PDT

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