Color by Velocity

Hi, could you help create a magmaflow to color by velocity, to get similar look as in realflow velocity coloring? I have done the tutorials for box 3 data operators, that works, but i dont want to take 10 million particles into pflow just for that, is it possible with magmaflow?

thanks

The principle is the same as in the Box 3 tutorials, and you can use the Color By Age tutorial here as the base:
software.primefocusworld.com/sof … by_age.php

Instead of dividing age by life span, use one Channel Input set to Velocity with a Magnitude operator after it. To normalize it between 0 and 1, divide by the Max. Velocity.
You can then use the resulting value to control a Blend Operator to mix two colors, or as Mapping Channel to control a Gradient Ramp map, or just convert to Vector to use as the color itself.
TwoColorsByVelocity.zip (611 Bytes)

thanks bobo, it works wonderful :exclamation:

ill try to make it work with mapping channel and gradient ramp,