|
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.
|
|
|
|
Hi,
Did you subclass the Mtl::GetActiveTexmap() function ?
Regards,
David Lanier
R&D, Plug-ins and shaders development company
http://www.dl3d.com
|
|
|
|
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
|
|
|