Jump to content

Materials by color?


jim c

Recommended Posts

I've got a character that is basically a single mesh, yet would have 3 -4 different materials on it, not all of which fall within the bounds a particular face, so creating a series of groups and assigning materials this way won't really work.

But if I use the UV map and make a simple texture map of 3-4 primary colors,each of which represents the presence of a material, how hard would it be to come up with a master shader that takes the input of the color and then uses that to bring the results of the appropriate shader?

For example, say you have a character with a form fitting suit, made up of a basic color, then panel insets that are another material, then a skin SSS material on the hands and face/head.

You would paint a map using red, green, and blue for the appropriate areas.

Now, is there a way that you could build a master material than links in the other arbitrary materials? The only way I'm aware of would be to create one huge shader and copy/paste the internals of existing shaders into it (assuming you could even do this). Or does this already exist?

Link to comment
Share on other sites

So 102 views? Do I take this to mean this is simply not possible? Have a done a poor job of phrasing the question? Is this something that's already in H11 (and I'm unaware of since I'm using H10)? Or is it that it's not useful at all?

Link to comment
Share on other sites

OK, but how do you pull in the material? Would that mean you have to define the shader as a sub network within your main VOP node? Or can reference external shaders in there? For example:

I have master material A.

I have the specific materials B, C, D each defined in it's own material node in the SHOP. Is it possible to bring these (B,C, or D) into the VOP network in material A?

Link to comment
Share on other sites

I have the specific materials B, C, D each defined in it's own material node in the SHOP. Is it possible to bring these (B,C, or D) into the VOP network in material A?

yes, just copy/paste nodes

Edited by tmdag
Link to comment
Share on other sites

So there's no way to reference the stuff, you have to explicitly copy/paste the whole VOP network for nodes B,C, and D, right? I guess I was hoping there was some sort of equivalent to the Object Merge SOP. Otherwise the shader get's kind of cumbersome.

Link to comment
Share on other sites

That was not my original plan - the original plan was to read the color information from a texture map, not the color on the geo. The hope was to be able to reference external shaders without duplicating and embedding them in the master shader. Apparently that's not possible, so back to doing it the hard way.

Link to comment
Share on other sites

Sure, think of a somewhat complex suit pattern, like that character I'm working on in my Tron WIP. Or a character where you've modeled the clothing, like a tight top, or a cloth armband, or something like that, as part of a single mesh. You could retopologize the mesh but that's a PITA and potentially a lot of work.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...