Mist pass with transparent background and motion blur

Hey Guys,
I’m rendering out a moving spaceship, which I want to composite into a matte painting in Nuke.
I’m rendering the spaceship out with a transparent background.
Because the spaceship flies away into the distance, I want to use a mist mask and composite it into the shot later on. The problem is, that even though my Spaceship renders with transparent background, the mist pass does not, and makes everything white, where there is nothing. I thought I could just use the alpha map from the image, and apply it to the mist pass, but that gives it a big white edge due to the motion blur.


The image with transparent background and motion blur

Mist pass

Mist pass with alpha map from render.

The mist pass is better used for full CG scenes to comp fog, rain, sometimes to fake a depth pass. To composite a render in matte paint with a mist pass, you would have to model your background throught camera perspective. What you can do is animate the ship black value, increasing as goes through your scene.

There are some good tips in this tutorial for CG compositing: https://www.compositingpro.com/grade-matching-nuke/

I am considering that you’re creating something like this. For motion blur, you can export an EXR file with a Vector Pass and use Vector Blur node to have more control.

Thank you very much. Sorry for the late reply :confused: