tomhanks Posted October 16, 2009 Share Posted October 16, 2009 Is it possible to vary a material attribute per instance? I am using point instance, I've created a grid to generate some points and the same points have random attribute values that vary from 0 to 1, my instance objects are boxes with a constant shader, I want each box material color get the values from those points. How can I do that? Quote Link to comment Share on other sites More sharing options...
MrGAG Posted October 16, 2009 Share Posted October 16, 2009 Hi, I think you can wire a material Sop to the points in your instance node. It will allow you to override any parameter of your material per instance. I think that's what you need. Quote Link to comment Share on other sites More sharing options...
MrGAG Posted October 16, 2009 Share Posted October 16, 2009 by the way , it can be a litle tricky, make sure : - you choosed point attributes in the drop down menu on top - you checked 'override uses local variables' then you just have to pîck the material you want to play with, and choose a parameter to override. Quote Link to comment Share on other sites More sharing options...
tomhanks Posted October 16, 2009 Author Share Posted October 16, 2009 Thanks for the reply. What I tried to do was on this material node was to use the "point" function to get the colors from the grid points, but the result was the same value for all the instances. Quote Link to comment Share on other sites More sharing options...
symek Posted October 17, 2009 Share Posted October 17, 2009 Thanks for the reply. What I tried to do was on this material node was to use the "point" function to get the colors from the grid points, but the result was the same value for all the instances. See the example. cheers, skk. instance_example.zip Quote Link to comment Share on other sites More sharing options...
tomhanks Posted October 17, 2009 Author Share Posted October 17, 2009 (edited) That´s it!!! The key I was missing is that all the overrides and properties to be override must to be on the object level, thanks for all your support finally I could see that. Thank you very much for the example Symek, and thanks everybody for the feedback, again , it was really helpful this forum is really great. See ya! Edited October 17, 2009 by tomhanks 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.