If I have a large object with ID1, and smaller (not visible to camera) 2nd object stuck into a vraydistancetext for the 1st object, then the multimatte ignores any distances and just shows as it as if object is visible and I didnt use any distancetex
Distancetex is used as mask in vrayblendmaterial
This is not supported at this point, I’m afraid. Other render engines seem to display a similar behavior with such gradient maps in conjunction with integer masks. You can create a mask by adding a VRayExtraTex element and directly plugging in the VRayDistaceTex.
No. Since the result in the RGB is correct, there is no need to remove the VRayDistanceTex from the masking slot. You just need to add a VRayExtraTex in which you plug the same texture, so as to get a black and white image of the map’s effect.