2006-10-30
10:47 AM
- last edited on
2023-08-07
11:01 AM
by
Doreena Deng
...
attrib.header.typeID = API_MaterialID;
for(j = 1; j <= nPolygons; j++)
{
component.header.typeID = API_PgonID;
component.header.index = j;
ACAPI_3D_GetComponent(&component);
attrib.material.head.index = component.pgon.iumat;
ACAPI_Attribute_Get (&attrib);
Print(attrib.material.head.name);//prints wrong material name...
}
...
Can you spot where the problem is?2006-11-03 03:18 PM