07-01-2022, 11:21 PM
Hello, everyone...
I'm trying to change the colors of individual particles based on a property of each particle (for example, its size). I've been following along to videos and I see I need to create a custom float for the size data and then use the Mapping operator (with normalized values) to map a material, to which a gradient ramp of colors is attached to the diffuse map.
What I'm seeing in the viewport looks correct, but when I render, each particle contains ALL of the colors of the gradient, rather than just one color based on the attribute.
I think it's because I'm using Arnold and not Vray. That's my guess at least. Vray is not in the cards for me, so is there a way to make this work with Arnold? See the attached file if that helps you understand. As the ripple undulates, the size of the particles change based on height (due to a proximity test to an invisible box). I set up a custom float for the size values to affect the colors. It looks correct in the viewport, but not in the render.
Thanks,
T
I'm trying to change the colors of individual particles based on a property of each particle (for example, its size). I've been following along to videos and I see I need to create a custom float for the size data and then use the Mapping operator (with normalized values) to map a material, to which a gradient ramp of colors is attached to the diffuse map.
What I'm seeing in the viewport looks correct, but when I render, each particle contains ALL of the colors of the gradient, rather than just one color based on the attribute.
I think it's because I'm using Arnold and not Vray. That's my guess at least. Vray is not in the cards for me, so is there a way to make this work with Arnold? See the attached file if that helps you understand. As the ripple undulates, the size of the particles change based on height (due to a proximity test to an invisible box). I set up a custom float for the size values to affect the colors. It looks correct in the viewport, but not in the render.
Thanks,
T