View Full Version : adding nodes all materials
svero 07-21-2008, 02:01 PM Is there any way to insert a node in every material used in the project for a particular render pass? Like suppose I want every material to first flow through a toon paint node, but retaining all the other details before going to the final surface. Can I INSERT that somehow into every material globally without having to create a toon version of every material I already have?
|
|
ThE_JacO
07-21-2008, 02:26 PM
Have you looked into passes, partitions, and most importantly overrides?
You can do what you're asking, but to -insert- something you might need your shading tree to be ready for it since there are limits to what overriding can do. Usually entry points in the form of mixers, switches or states are needed for the trickier stuff.
svero
07-21-2008, 02:34 PM
yeah I did look into that. If I use a pass with partitions then I have to have a 2nd copy of every single material with the toon node inserted... not very good.
With regards to overrides the only thing I found I could do was insert the toon and a 2 color mixer and override weight one. But then I'd have to override the weight for every single mixer of every material and there are quite a few materials...
So neither of those solutions is really great. Unless theres a way to create some kind of custom mixer node with a single override for every instance,...
svero
07-21-2008, 03:00 PM
Hrm.. well i found a way to do it with switches and overrides. I was thrown off before because I added a 2nd mixer AFTER initially adding the override parameter and it doesnt seem to "get" that... but if you add all the switches or mixers to every material and then add the override parameter it works. Not ideal but better than nothing. thanks.
ThE_JacO
07-21-2008, 03:07 PM
Overrides are fairly smart and can be applied to groups and partitions.
If you have the same mixer in all trees, put the objects with those materials in the same partition/group, you can override the weight for one and it will apply to all.
You would NOT need one for each material, that's kinda the point or groups/partitions when paired with overrides :)
CGTalk Moderation
07-21-2008, 03:07 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.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.