Skip to content

Editor picking selection order is incorrect #798

@adriengivry

Description

@adriengivry

User Problem

Editor picking selection order is incorrect. Objects behind others sometimes get priority.

Expected Behaviour

Picking should behave the same way as the scene is rendered: whichever object appears "on top" should be prioritized.
This may require updating the picking strategy to be render-target-based.

One approach I previously implemented in Overload was to render the scene to a render buffer, assigning each actor/node a unique color (derived from its actor_id/node_id). Then, when a click occurs in the scene view, the color under the cursor is read to identify the selected object.

Screenshots

editor_jBz0zhn2DT.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions