Werner Posted November 12, 2015 Share Posted November 12, 2015 (edited) I have a character that I want to use in a crowd setup. This should be simple, but how do I apply different materials (head, shirt and trousers) to the coresponding name groups (or name attributes) that I created before the agent bake process, with style sheets in houdini 15? I could not find much in the docs about this. Any help would be welcome. Edited November 12, 2015 by Werner Quote Link to comment Share on other sites More sharing options...
Atom Posted November 12, 2015 Share Posted November 12, 2015 You can try using the new pointGroup and primitiveGroup to filter what you override. You can bind an attribute to a value in a material. In this code all members of the group will have their principled shader diffuse texture map replaced by the attribute value element_name. // Houdini 15 style for stylesheets. { "styles": [ { "target" : {"primitiveGroup" : "*"}, "overrides" : { "materialParameters":{"diff_colorTexture":{"script":{"binding":"element_name"}}} } } ] } Or if you want to target agents who were previously standing. // Houdini 15 style for stylesheets. { "styles": [ { "target" : {"pointGroup" : "@previousstate=stand"}, "overrides" : { "materialParameters":{"diff_colorTexture":{"script":{"binding":"element_name"}}} } } ] } Quote Link to comment Share on other sites More sharing options...
Werner Posted November 13, 2015 Author Share Posted November 13, 2015 Thanks, but I really just want to get the materials (as is) back on the rendered agents. Reading the docs, I had the idea that stylesheets in H15 was easy, but doing this simple thing seems to be harder than what I anticipated. Normally I just force all SHOPs in the Mantra node to get the multiple materials to render on the agent, but that does not seem to work on this model. Not sure what I am missing here. I can't seem to find how to asign the materials back onto the different groups with name attributes in the stylesheets. Quote Link to comment Share on other sites More sharing options...
Werner Posted November 13, 2015 Author Share Posted November 13, 2015 I got it to work. This stuff needs to be in the docs or a video tutorial about multiple materials on one agent. Quote Link to comment Share on other sites More sharing options...
Atom Posted November 13, 2015 Share Posted November 13, 2015 Glad you got it working. I would like to see a more comprehensive video tutorial on this topic as well. It seems like as soon as I think I understand the material stylesheet, I try something new and it does not work. Quote Link to comment Share on other sites More sharing options...
edward Posted November 18, 2015 Share Posted November 18, 2015 I got it to work. What was wrong? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.