Building a Difference Heightmap from Two Input Heightmaps

Hi all,

I am trying to build a difference height map based on the same specification the detail function in the combiner uses.
For example I want to take the differences between two heights maps A and B then generate a height map of the results where result < 0.5 when B is lower than A and result > 0.5 when B is higher than A.

Has anybody been able to achieve this. I spent some time with combiner networks trying to filter out the +/- differences and place them around a 0.5 origin, I did not find a suitable solution.

Any ideas on the best combination of logical maths operation to perform to achieve this, would be greatly appreciated.

Regards,

R.

Got a solution that works, however I need to talk to work about sharing if/how I can share it if people are interested.

R.