Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Unable to get "ID_SS" (Specular Level) texture - Enumerating maps in the material with wrong results?!

Unable to get "ID_SS" (Specular Level) texture - Enumerating maps in the material with wrong results?!

Anonymous
Not applicable
242 Views
0 Replies
Message 1 of 1

Unable to get "ID_SS" (Specular Level) texture - Enumerating maps in the material with wrong results?!

Anonymous
Not applicable
I'm exporting a material that has diffuse (ID_DI), specular colour(ID_SP), specular level (ID_SS) and bump (ID_BU) textures.

But with this code, Max is returning diffuse (ID_DI), specular colour(ID_SP), Glossiness(ID_SH) and bump (ID_BU)

for(int nMap = ID_AM; nMap < ID_DP + 1; nMap++)
{
int nChannel = pStdMat->StdIDToChannel(nMap);
if(pStdMat->MapEnabled(nChannel))
{
// export code here
}
}

If I remove the call to StdIDToChannel(), I still get the same results, i.e., diffuse (ID_DI), specular colour(ID_SP), Glossiness(ID_SH) and bump (ID_BU).

Am I missing something?
0 Likes
243 Views
0 Replies
Replies (0)