Skip to content

Add eyedropper button to Depth of Field component to select focal distance from point in scene #3376

@chrisspieler

Description

@chrisspieler

What can't you do?

I can't easily set the focal distance of a Depth of Field component to the distance between the current camera and a point in the scene. I just have to manually search for the correct value.

Here's an example of what the process of searching for a correct focal distance looks like for me. It doesn't take that long, but is tedious, and could get annoying if I have to do it a lot to set up multiple cameras.

2024-10-30.07-57-23.mp4

How would you like it to work?

On the Depth of Field component, I would like for an eyedropper button to exist beside the focal distance slider. After clicking the button, clicking on a point in a game or editor window will set the focal distance to the distance between that point in the world (e.g. via mesh trace) and the position of the camera.

Think of it like how when you use a cellphone camera you can tap on a point on the screen to focus on it.

What have you tried?

Manually doing a binary search of focal distance until I find the correct one.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions