Jump to content

general h16 material question


Recommended Posts

i'm just starting to use the new material workflow in h16 and got a couple of questions:

* when i'm working in a more complex scene and i have a bunch of shaders with nodes connected to their inputs, my matnet gets polluted pretty quickly. i tried to split things out into subnets, but then the shaders didnt work anymore (also tried it with connecting the outputs, didnt work either). is there another way to 'compile' shaders into some kind of container that i missed? what's the recommended workflow for that?

* i'm trying to export masks (aovs) for comp (for example debris: red, main geo: green: character: blue). is there a way to add those without cracking the shader nodes open? i hacked it for now by connecting my (always export) mask parameter node to an unused slot on the principal shaders (for example emission and turning down the emission intensity). this is something which is needed in most productions and it feels odd that there is no extra slot for additional aov export parameters. is there another way for that?

thanks in advance!

Link to comment
Share on other sites

im not using the new workflow for reasons you described. if you have two shades it looks so nice in demo, if you have 150shaders (normal count im having on some assets) the all on one level shaders creates huge mess.

 

What im using instead is classic core shader inside material subnet.

But there is bug that i listed months ago that once you use material subnet, shaders dont compile correctly and each time you make a change you have to Force Cook the shader.

01.JPG

Link to comment
Share on other sites

Thanks for your reply!

I tried setting up a material subnet with a shader inside (tried principal and also classicshadercore). I then assigned the subnet's shader to my geometry and used opcook -F to force cook them (also tried to cook the whole subnet). But that didn't get it working. Strange. Any idea what I could be missing? 
Are you saying that to use subnets I have to use the classicshadercore, or is that just something you prefer? How are you force cooking them? opcook -F ? 

I might go back to the older workflow for now than. This is a bit sad.

Link to comment
Share on other sites

I had the same problem exporting the AOVs, it works fine if you are using one custom shader, but if you put two shaders with a layer mix it stops working, I'll let you the path to my topic, there is also a file to check in there, the custom AOV is called turb and it only works if you use only one material.  Alejandro Echeverry (pazuzzu) helps me with that, and now is working so I will leave the working file here too.

 

layerMixExports.hip

Link to comment
Share on other sites

Thanks for the replies!

I actually got both things solved with your help. I guess subnets just dont work, but using the materialbuilder node instead and putting everything inside of it, fixes both issues. The parameter node for export can live in there (and it's working) and my main network stays nice and clean, as shaders are contained.

I haven't checked the issue with layer mixed shaders though. Moneitor - I'll keep this in mind, when I use them.

Thanks to both of you for your help!

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...