Ling Vongsouthy (ling++at++cod.nosc.mil)
Tue, 14 Jun 94 11:43:34 PDT
I am a beginner on Performer. I have questions about
changing diffuse color of objects using the smallfly program.
The following is a portion of smallfly.c that I modified:
Void
InitScene(void)
{
....
....
....
for(i = 0; i < Numfiles; i++)
{
material = pfNewMtl(pfGetSharedArena());
pfMtlColorMode(material, PFMTL_FRONT, LMC_AD);
gstate = pfNewGState(pfGetSharedArena());
root = (pfGroup *)LoadFile(DatabaseFiles[i], gstate);
pfGStateAttr(gstate, PFSTSTE_FRONTMTL, material);
pfMtlColor(material, PFMTL_DIFFUSE, 1.0, 0.0, 0.0);
.....
.....
The modified smallfly program compiled no problem. However I can change
the color of .obj files only. What do I have to do to change the color
on other file formats (.dxf, .sv, etc).
Thanks
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:20 PDT