"Pixel perfect tile object selection" should work on semi-transparent areas as well
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 12.9k
- Forks
- 2k
- Avg merge
- 4h 27m
- Merged PRs (30d)
- 8
Description
**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.

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the improved object-selection mechanism from issue #1477 and inspect the existing alpha-pixel check. Verify the behavior in the editor with objects beneath semi-transparent areas such as shadows, fog, or glass; done means those objects can be selected while fully opaque pixels still block selection.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100