Make a dashed line where objects overlap I would like to configure Blender to somehow render objects with one freestyle line set where the camera has a clear line of sight to them, but then render another freestyle line set for the objects that are blocked from view. For example...



Even better would be to recolor the overlapping area...



This question looked interesting, but not exactly what I'm trying to do:Additive color overlay

What is the best way to go about trying to do something like this? I've tried messing around with the QI Range and things like that in the LineSet visibility options, but I'm kind of coming up empty. The actual objects I'm trying to do this with are more complex and have several parts each which I do not want revealed in the render process.If I had to I might be able to somehow manually combine them and delete the spare parts, but that seems tedious and I'd love to avoid it if I can.
Thanks @Duarte! The dashed line portion of my question can be solved using these steps:


Create a second Freestyle Line Set (and name it something like HiddenLines)
Click on the Hidden toggle
Scroll down to Freestyle Line Style and tick the checkbox for Dashed Line
Modify the line settings to your liking