# Autofocus Haunted House demo

> My AutoFocusDOF component will also work for complex scenes . Here, I show an example of it working on the last @ImmersivStudios project, automatically…

Canonical page: https://andersonmancini.dev/videos/autofocus-haunted-house-demo

Published: 2023-04-12 · Duration: 1:46 · Category: Projects · Tags: three.js, react-three-fiber, post-processing, haunted-house, auto-focus-dof, depth-of-field, r3f

Watch: [YouTube](https://www.youtube.com/watch?v=fEuJHawaS2c) · [Subscribe to the channel](https://www.youtube.com/@AndersonMancini?sub_confirmation=1)

My AutoFocusDOF component will also work for complex scenes . Here, I show an example of it working on the last @ImmersivStudios project, automatically focusing on what the camera is seeing, at 60FPS. And by changing the parameters, you get different effects.

## Related projects

- [AutoFocus Component](https://andersonmancini.dev/projects/autofocus-component.md) — Free component for R3F

## Related articles

- [AutoFocus: depth of field that focuses on what you look at](https://andersonmancini.dev/blog/autofocus-dof.md)
