14
$\begingroup$

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

$\endgroup$
5
  • 2
    $\begingroup$ Do you want it to depend on the distance to something? $\endgroup$ Commented Aug 26, 2014 at 21:33
  • $\begingroup$ possible duplicate of How do I get particles to change color over time? $\endgroup$
    – J Sargent
    Commented Jan 10, 2015 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$
    – J Sargent
    Commented Feb 10, 2015 at 16:30
  • $\begingroup$ Could using uv projectors be a solution? $\endgroup$
    – bortran
    Commented Mar 13, 2015 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$ Commented Jun 8, 2015 at 23:29

1 Answer 1

2
$\begingroup$

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.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .