AREA forums upgrade
Read more about the planned upgrade of our forums
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / SDK / Different Material for Editor and Rendering
IMPORTANT ANNOUNCEMENT ABOUT AREA FORUMS
  RSS 2.0 ATOM  

Different Material for Editor and Rendering
Rate this thread
 
66457
 
Permlink of this thread  
avatar
  • affa
  • Posted: 23 April 2012 07:46 PM
  • Total Posts: 2
  • Joined: 06 October 2010 03:36 AM

Hey,

in my plugin i need to have a different material displayed in then Editor than in the rendering.
Any idea how i could achieve that? Can i listen to some kind of render message and then swap my two materials for rendering and then swap them back for the editor view?

thanks for any ideas

edit:
i’m using the bake shell material now. that seems to do the trick



Replies: 0
avatar

If in shade method test: shadeContext.globContext->inMtlEdit

Otherwise you might listen to NOTIFY_PRE_RENDER notification. This message is supposed to be broadcast only while performing actual render, however it’s renderer dependent how it was implemented.

Hope it helps,



Replies: 0
avatar
  • affa
  • Posted: 09 May 2012 03:40 AM

thanks for the hint.
i’m using the bake shell material for now but might get back to that.



Replies: 0