I am working on a scene with a tube, inside the tube is a smoke animation. The tube is cut open on one side so that you can see what is happening inside. The smoke is of course set to collide with an (invisible) closed tube. The lower part of the tube is animated. Some objects that are part of the bottom of the tube are emitting light and the compositor is used to make them glow. This is done using the material pass index.
Unfortunately, the smoke domain does overlap sometimes with the glowing objects which blocks the material pass index. The objects themselves can be seen in the final render, but the compositor ignores them. Since the bottom is animated and is a smoke collider, the domain itself has to be big enough to include the lowest possible position of the bottom. The scene actually works in most cases, since the adaptive domain is above the glowing parts most of the time. Only a few frames the domain hides the glow - without any visible smoke being there.
Is there a way to set the domain to not emit its own material pass index, so that the material pass index of the glowing objects is recognized and used by the compositor?