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?
Varying Material parameter per instance
3754 2 0- mzigaib
- Member
- 949 posts
- Joined: 4月 2008
- Offline
- pwquint
- Member
- 53 posts
- Joined: 8月 2009
- Offline
A material will use any attributes that you attach to your objects that match the name and type of its own parameters. Most of the gallery materials have the option to use ‘Point Colors’ this expects to find a three valued float attribute Cd on your geometry. You can set this up using a Point SOP. Several ways to do but easiest is set the color on the points then make sure the objects you instance using the copy SOP (I guess you are using a copy SOP) inherit the Cd attribute.
Peter Quint
- mzigaib
- Member
- 949 posts
- Joined: 4月 2008
- Offline
-
- Quick Links