PDA

View Full Version : Extending/custom materials


Gibbz
07-06-2006, 09:58 AM
Ok just a general bunch of questions.

Is it possible to extend or rewrite the multi-sub material within max?
Is it possible to extend for example a standard material and adjust how the vertex lighting affects the diffuse(eg add overbright on the standard material, or add support for vertex alpha etc..) ?

Blue
07-07-2006, 12:25 AM
Is it possible to extend or rewrite the multi-sub material within max?
Yes, this is very possible. Here is an example that I threw together a few days ago for a similar question.
-------------------------------------------------
-------------------------------------------------
-- Super Sub Material
-- written by: Thomas Blue
-- history:
-- Wednesday, June 28, 2006 - started development
--
-- TODO:
--
-------------------------------------------------
-------------------------------------------------
plugin material superSubMaterial
name:"Super Sub"
classID:#(0x6c44a2d8, 0x3193df7)
extends:multimaterial replaceUI:true version:1
(
parameters main rollout:params
(
-- add delegates
)
rollout params "Super Sub Parameters"
(
-- add ui elements
)
on create do
(
-- setup initial material settings
)
)

Is it possible to extend for example a standard material and adjust how the vertex lighting affects the diffuse(eg add overbright on the standard material, or add support for vertex alpha etc..) ?
No reason why this couldn't be done either. Just needs some creative coding if you plan to use texture alpha with vertex alpha.

Gibbz
07-07-2006, 07:08 AM
Thanks :)

Is there anywhere where i can find more info on extending materials/rewriting the ui section but keeping the funcionality in the maxscript help?

Blue
07-07-2006, 04:53 PM
Read about scripted plugins in the ms help file. You can also change the replaceUI:true to false to keep the base material UI. I just prefer to make my own UI when I make a material plugin.

CGTalk Moderation
07-07-2006, 04:53 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.