Notifications
Clear all

[Closed] mental ray & material id

I’m writing mental ray shader <-> max shader conversion and I’m having trouble finding material ID on mental rays side.

In max’s shading the material ID of intersection is stored in ShadeContext::mtlNum.

How do I get this same number in mental ray?

  • Jerry Ylilammi
1 Reply

Oh and another question, how do I get the objects render ID (like ShadeContext::Node()->GetRenderID() in max) in mental ray? Is it the label parameter in mental ray?