Original Post
I don't know if this is the right place for this, but I'm having trouble figuring this out and the Sparks archive doesn't help me much. If I've got a Mtl * from either an INode or a multimaterial, and I know it is a DX9 shader material, what type do I cast it to? Also, what is the proper class_id to check for? The Sparks archive mentioned that I can cast it to a StdMat2 if the Class_ID is DMTL_CLASS_ID -- but it never is, it's some very odd looking value -- almost as if it was an 8 byte string concatenated into the two DWORDS.