How to assign randomize color to primitives using a ramp?

   1486   1   0
User Avatar
Member
17 posts
Joined: 11月 2019
Offline
Hi guys,

I have a pig head which I have fractured and packed, I am trying to randomize the color of each chunk by using a attribute random on the Cd, and a color node with a ramp from attribute after.

The problem is that the color node doesn't assign the new colors to each chunk of the pig head, it mostly "overlays" it.

Thanks!

Attachments:
sample.PNG (480.5 KB)
frac.hip (377.8 KB)

User Avatar
Member
495 posts
Joined: 7月 2005
Offline
Hi,

you can create a random float attribute (between 0 and 1) and put it into the colorramp.

Attachments:
frac_mod.hipnc (387.0 KB)

  • Quick Links