mapeditor/tiled






Do you want to work on this issue?
You can request for a bounty in order to promote it!
"Pixel perfect tile object selection" should work on semi-transparent areas as well #3404
user72356 posted onGitHub
Is your feature request related to a problem? Please describe. In https://github.com/mapeditor/tiled/issues/1477, you implemented an improved object selection mechanism that ignores transparent pixels so that one can select objects positioned below the transparent areas of other objects. I still have issues selecting objects below semi-transparent areas, for example shadows, fog, glass, etc. See attached screenshot for an example.
Describe the solution you'd like Hopefully a simple modification to your existing code, change the alpha pixel check to consider anything less than 100% opaque as transparent for the purpose of selecting objects.