This is follow up question based on {this post}, indeed.

The question is how to attach color attribute to fluid particles?

For example when a part of colored fluid (as explained {here}) separates, how to keep the assigned color moving with the particle?

For demonstration check the following:

enter image description here

  • 2
    $\begingroup$ Do you want it to depend on the distance to something? $\endgroup$ Aug 26 '14 at 21:33
  • $\begingroup$ possible duplicate of How do I get particles to change color over time? $\endgroup$
    – VRM
    Jan 10 '15 at 3:09
  • $\begingroup$ So the issue is the blobs separating from the main stream are changing in color at the same rate as the main stream? $\endgroup$
    – VRM
    Feb 10 '15 at 16:30
  • $\begingroup$ Could using uv projectors be a solution? $\endgroup$
    – bortran
    Mar 13 '15 at 9:00
  • $\begingroup$ @NoviceInDisguise That answer probably isn't relevant. I don't think it would help since particles and fluid simulations are very different. $\endgroup$ Jun 8 '15 at 23:29

The answer depends on how much control you want to have over the color. In Cycles you can use the Geometry node's Position output as a factor between two colors or two shaders, and this will give you a variation between them.

If you want control over the angle you can then route that Position output into a Normal node and connect the Dot output into the Factor of the two colors - rotate the sphere to change the angle.

If you want it to be driven by the distance from an Empty then look into Drivers.

And finally, as another possibility for coloring/texturing liquids you might look into how to create matcap materials in Cycles.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.