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.

DirectX Sub Shader Not previewing

DirectX Sub Shader Not previewing

Anonymous
Not applicable
380 Views
2 Replies
Message 1 of 3

DirectX Sub Shader Not previewing

Anonymous
Not applicable
I am creating a fairly basic Material plugin for max to allow the entry of additional parameters and the ownership of a DirectX sub material using the Mtl or SubMat2 classes (tried both). Everything is working correctly except that the DirectX sub material will not render in the view-port, rather the associated "Standard Material" is being rendered.

What interfaces do I need to override and implement in order to allow the DirectX sub material to be rendered in the view-ports?

Thank you very much.
0 Likes
381 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Hi,

Did you subclass the Mtl::GetActiveTexmap() function ?
Regards,
0 Likes
Message 3 of 3

Anonymous
Not applicable
David Lanier,

Thank you very much for getting back to me. Forgive me but I don't understand how I can subclass the function since it is not virtual in the base class Mtl. I have included a stripped down version of the plugin I am working on. Hopefully this will allow someone to point me to the very simple mistake that I am probably making, since this is the first plugin I am developing for Max.

Thank you very much,
Chris

sampmat.zip

0 Likes