Today I started implementing overlay colors in my application, but I get a very weird effect when I apply it e.g. to a simple box:
To prepare my question for this forum, I started copy-pasting code from my application to create a simple playground example. But in my playground everything works fine, so I cannot reproduce the problem to show it
So there must be something else in my application that I have overlooked, and which I have not copied to my playground. But I don’t know where I could start looking…
Is there anybody that can give any tips of things that I could investigate? Perhaps anybody has ever seen such an effect before, and point me in some direction…
Do you know those moments when you think: “now I am definitely going to eat my shoes”…
After copy-pasting all my code line by line to the playground, I suddenly realized that the overlay color was working fine in my application. I had the issue with the outline color
So the title of this post becomes “Weird effect when applying outlineColor”…
I can now reproduce it via this similar playground. Hopefully you can see what I am doing wrong.
And when I apply the smooth function (‘borrowed’ from here) to my box, then the edges can indeed be thicker in my new playground:
But with both workaround the edges in the middle don’t become red. I assume that is due to the same root cause, because those edges are entirely between two surfaces? But it is not clear to me how I can solve this…
I have never realized that a simple outline color could be so challenging, but I can imagine that the maths behind the scenes are quite heavy…
Hi @sebavan,
Sorry I was not clear enough.
I meant that the orange edges (which I have drawn manually in the below screenshot) are not visible in via a red outline color:
Evening @Blake,
Thanks for the updated playground!
That is indeed what I was looking for.
I assume that I have completely misinterpreted the use of the outline color: I was really convinced that an outline color could be used to achieve the same effect?
Ah ok now it makes sense
I am going to mark Blade’s playground as a solution, although you have given a series of very clear answers to all my silly questions.
Thanks a lot for all your help !!!