Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
chrisspieler opened this issue Oct 30, 2024 · 0 comments

Comments

@chrisspieler
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To triage
Development

No branches or pull requests

1 participant