hopbin9 Posted February 10, 2011 Share Posted February 10, 2011 Hi, How can I apply a different material on an instance of an object. The manual talks about overriding properties, but doesn't seem to give an example. I have two materials in my SHOP. Both objects are rendering with the first assigned to the source object. The instance, I can't seem to figure out how to apply the other material. Thanks, Quote Link to comment Share on other sites More sharing options...
lukeiamyourfather Posted February 10, 2011 Share Posted February 10, 2011 Do you want to modify a shader depending on the instance or do you want to use two completely different shaders for the instances? Quote Link to comment Share on other sites More sharing options...
symek Posted February 10, 2011 Share Posted February 10, 2011 (edited) As always in Houdini is all about wrangling attributes. See example for varying materials per instance. As Luke mentioned quite often you want to apply one material for all instances and vary only attributes of that. I's usually more efficient approach, then sending a number of materials to ifd file. hth, skk. instance_mat.hipnc.zip Edited February 10, 2011 by SYmek Quote Link to comment Share on other sites More sharing options...
hopbin9 Posted February 10, 2011 Author Share Posted February 10, 2011 I have to do both cases actually. The object is a television set, and there are many sets each showing a different texture file, but there are two different colored styles of TVs. They are all the same geometry. So I'm instancing them but they all have the same image and are the same color. Thanks for the example file. I think I get how you did it, but will this only work with point instancing? Quote Link to comment Share on other sites More sharing options...
hopbin9 Posted February 11, 2011 Author Share Posted February 11, 2011 (edited) *never mind* I just saw how the example changes the current material. Nice Edited February 11, 2011 by hopbin9 Quote Link to comment Share on other sites More sharing options...
hopbin9 Posted February 11, 2011 Author Share Posted February 11, 2011 Thanks so much for the help. I got it all working. I totally understand now. Quote Link to comment Share on other sites More sharing options...
symek Posted February 12, 2011 Share Posted February 12, 2011 cheers skk. 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.