Chromatic abbreviation based on depth

I’m trying to achieve a look that instead of adding blur to achieve depth, I add chromatic abbreviation to objects more in the distance.

I’ve achieved this by mixing images with and without the chromatic abbreviation and using the mist pass as the mask.

But that only fades away the chromatic abbreviation.
I want to actually have a higher number of chromatic abbreviation the father I get away from the camera.
So, I tried plugging the mist pass into the X factor, but I don’t understand why I don’t see any chromatic abbreviation?
The multiply node is ment to enhance the chromatic abbreviation effect.

Can anyone help me to figure out why I’m not seeing any chromatic abbreviation?

I think you meant aberration not abbreviation?
FYI those are two completely different things.

1 Like

If you delete the plane than you will see something… i think you have to use some masking to select your cubes (via object/material index for example)… you are using the transform on everything…

1 Like

The transform node doesn’t appear to support per pixel parameters so swap it with a displacement.
You should also be using Depth > Normalize > Map Range, instead of the Mist pass, to control amount of displacement. Mist is incorrect because any anti-aliasing will result in incorrect depth values.

3 Likes

You’re trying to use mist pass as a data input to multiply chromatic aberration strenght. Won’t happen. Defocus is the node that work that way for depth of field and Vector Blur node for motion blur. What can be done with tools avaiable is a mix between two images using Mist as a mask (fac input). Yet I believe that you can achieve a good look by just using Dispersion in Lens Distortion node (fit mode).

Mist as a mask:

Lens distortion dispersion:

Depth of field + Lens distortion dispersion:

Dragon asset: https://threedscans.com/uncategorized/dragon_1/

1 Like