I have been playing with the outline pass post processor, which is great.
I know there are several approaches but this seemed like an easy way add outlines to all the objects in my scene, and for the most part it does exactly what I want…
however is there anyway means of changing the outline behaviour to be on a per model basis (?maybe not the right term), if you look at the attached screenshot, you can see the blue cube doesn’t have an outline when on top of another object.which has the outlines.
so i would ideally like it like this…
that was achieved with 2 outline passes, which I don’t believe is feasible when I may have 100s of objects, also it isnt perfect (you will see overlapping artifacts
I appreciate i may be using this for unintended purposes (seems to be aimed for selection) and I have tried to look everywhere and only found other approaches however since this is so easy to use, thought it was worth an ask. Thanks in advance
Excuse my ignoreance, but not sure how I would do a fiddle and link to the appropirate files? I know theres a CDN for the main three but cant find one for the other files (see below)
its a basic scene with two cubes with the following js files included
I’ve checked your fiddle and i don’t think it’s possible to achieve your desired results in a single pass. The overlapping blue part (over the red box) is not detected as a part of the outline of both objects.
Since OutlinePass is computational expensive, I don’t recommend to run it twice.