xDreamer Posted April 26, 2009 Share Posted April 26, 2009 (edited) Hi all, I want to randomize Material parameters with Instance node. I tried several methods including instancepoint() function but no luck. any idea how to do it ? I attached simple scene to thread. Thanks material_instance.hipnc Edited April 26, 2009 by xDreamer Quote Link to comment Share on other sites More sharing options...
anim Posted April 26, 2009 Share Posted April 26, 2009 here is a very fast example look at the material tab of the sphere object trere is material parameter override used on base color of the clay material and it uses pointinstance expression to get the random color for each point you can use this expression directly on material parameters, but I chose the override way here material_instance_example.hipnc Quote Link to comment Share on other sites More sharing options...
xDreamer Posted April 26, 2009 Author Share Posted April 26, 2009 here is a very fast examplelook at the material tab of the sphere object trere is material parameter override used on base color of the clay material and it uses pointinstance expression to get the random color for each point you can use this expression directly on material parameters, but I chose the override way here Thanks, I was trying to use instancepoint in SOP level Which was wrong ! Quote Link to comment Share on other sites More sharing options...
anim Posted April 26, 2009 Share Posted April 26, 2009 Thanks, I was trying to use instancepoint in SOP level Which was wrong ! according to instancepoint() help: "You can not use this function at the surface level, because instancing only works at the object level." this is kind of logical, because SOPs change geometry and instancing is based on the idea that there is only one geometry held in memory and is used for every instance with some variations(transforms, materials) applied on top. So any sop change based on instancepoint would necessairly create a geometry copy in memory which will ruin the whole effectivity of instancing and will be the same as copystamping technique. 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.