From: Keith Parkins (kparkins++at++cs.rochester.edu)
Date: 01/09/2001 13:46:49
When I load in the apple.iv file with perfly, the object comes up as white
instead of red. Is there a way to fix this?
A further manifestation of this problem (I believe) is that when I load a
number of inventor files into my world and generate some generic
cylinders, the colors of the cylinders change as I change my
position. When the inventor files aren't loaded, the colors behave as
expected. The material and lighting for the generated cylinder is setup as
follows:
pfMtlColorMode(materialPtr, PFMTL_FRONT, PFMTL_CMODE_OFF);
pfMtlColor(materialPtr, PFMTL_DIFFUSE,
obj_colors[color][0], obj_colors[color][1],
obj_colors[color][2]);
pfMtlColor(materialPtr, PFMTL_SPECULAR, 0.0, 0.0, 0.0);
pfMtlColor(materialPtr, PFMTL_AMBIENT, 0.0, 0.0, 0.0);
pfMtlShininess(materialPtr, 10.25f);
pfMtlAlpha(materialPtr, 1.0);
/* create the gstate and select the proper material */
gStatePtr = pfNewGState(arena);
pfGStateMode(gStatePtr, PFSTATE_ENLIGHTING, PF_ON);
pfGStateMode(gStatePtr, PFSTATE_TRANSPARENCY, PFTR_ON);
pfGStateAttr(gStatePtr, PFSTATE_FRONTMTL, materialPtr);
Has anyone had a similar problem? Any ideas as to how to fix this?
Thanks!
Keith
This archive was generated by hypermail 2b29 : Tue Jan 09 2001 - 13:46:56 PST