Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@ static bool Is3DsMaxPhysicalMaterial(MaterialDescription description)
{
float classIdA;
float classIdB;
string orgMtl;
description.TryGetProperty("ClassIDa", out classIdA);
description.TryGetProperty("ClassIDb", out classIdB);
return classIdA == 1030429932 && classIdB == -559038463;
description.TryGetProperty("ORIGINAL_MTL", out orgMtl);
return (classIdA == 1030429932 && classIdB == -559038463) || ((classIdA == 2121471519 && classIdB == 1660373836) && (orgMtl == "PHYSICAL_MTL"));
}

static bool IsMayaArnoldStandardSurfaceMaterial(MaterialDescription description)
Expand All @@ -59,9 +61,11 @@ static bool Is3DsMaxArnoldStandardSurfaceMaterial(MaterialDescription descriptio
{
float classIdA;
float classIdB;
string orgMtl;
description.TryGetProperty("ClassIDa", out classIdA);
description.TryGetProperty("ClassIDb", out classIdB);
return classIdA == 2121471519 && classIdB == 1660373836;
description.TryGetProperty("ORIGINAL_MTL", out orgMtl);
return (classIdA == 2121471519 && classIdB == 1660373836) && (orgMtl != "PHYSICAL_MTL");
}

static bool IsAutodeskInteractiveMaterial(MaterialDescription description)
Expand Down