Colorize using distance to an object?
#2
Target seems to be the target of a "find object" operator. I can sort of make it work for gravity, but had no luck with mapping.

Attached is a file (Max 2020) that uses an Object Test (Ignore if true, save all test values, and saved to a custom channel).

This is then retrieved via a value operator, mapped to 0-1 and used in a Mapping Operator. Could probably be retrieved directly in the Mapping Operator as well somehow.


Another, probably simpler approach would be to do this in the material. Use a distance map (e.g. V-Ray Distance or 3ds max Falloff) and use a mapped Gradient Ramp to apply your colors.


Attached Files
.max   Color_by_Distance_TyFlow_max2020.max (Size: 780 KB / Downloads: 13)
  Reply


Messages In This Thread
RE: Colorize using distance to an object? - by Findus - 06-21-2025, 11:29 PM

Forum Jump: