Jump to content
  • Advertisement
Sign in to follow this  

Creating DirectX Shader Material with max sdk

This topic is 3793 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, These days, I'm trying to create a "DirectX Shader Material " in a utility plugin and assign it to a node. There are dozens of examples on how to access the data within the IDXMaterial interface,but haven't found any thing useful about create one. I tried classid post here :"http://discussion.autodesk.com/thread.jspa?threadID=576586" like this :
Mtl * newmtl = (Mtl *) theSpeedRadiosityUtility.ip->CreateInstance(MATERIAL_CLASS_ID ,DXMATERIAL_CLASS_ID );
IDxMaterial* dxMtl = (IDxMaterial*)newmtl->GetInterface(IDXMATERIAL_INTERFACE);
after this , when I opened the Max Material Editor, the node is still using the "Standard" material there.But object in the viewport changed (just gray color). What should I do to change the "Standard" Material to "DirectX Shader Material " and furture select .fx file and other params? Any suggestion ? Thanks!

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!