How do I mimic free style using compositor nodes?

I’ve been using Free Style when I started my project but when things became complex, free style took longer and longer to render.

So I decided to just use the compositor to draw strokes.

This is as close I can simulate free style


Not all the edges have stroke in them unlike this early render when the project is not that complex yet when free style is still fast:


Notice the strokes on the ammo holsters and the servo units on the soldier’s armor, it helps to bring out the tiny details out.

So how do I have strokes on all the edges using only the compositor?

Free Style takes like an hour to render when the scene only renders in 2 minutes with the compositor effects on.

You could enable passes that make highlighting edges easier, like object index or similar.

I used normal pass and then object index to control the highlights the borders and I got what I wanted.