Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / SDK / DirectX Sub Shader Not previewing
  RSS 2.0 ATOM  

DirectX Sub Shader Not previewing
Rate this thread
 
51525
 
Permlink of this thread  
avatar
  • Ograll
  • Posted: 20 January 2011 11:10 AM
  • Total Posts: 4
  • Joined: 20 January 2011 07:03 PM

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.



Replies: 0
avatar
  • dlanier
  • Posted: 26 January 2011 01:56 AM

Hi,

Did you subclass the Mtl::GetActiveTexmap() function ?
Regards,



David Lanier
R&D, Plug-ins and shaders development company
http://www.dl3d.com

Replies: 0
avatar
  • Ograll
  • Posted: 31 January 2011 05:15 AM

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



Attachment Attachment
Replies: 0