Physically Based Auto Depth of Field
Overview
Get ready to dive into the world of physically based Auto Depth of Field in Unity! This video guide by HIBIKI entertainment Ltd. will take you on a journey to master the latest version 1.3. From setting up the camera to fine-tuning the autofocus system, this report will provide you with a comprehensive overview of the key takeaways from the video.
Setting Up Physically Based Auto Depth of Field
To start, make sure your camera is tagged as the "Main Camera" and set the game view to a target aspect ratio. Add the Auto Depth of Field component to your camera and activate the physical camera. In Universal Render Pipeline (URP), the steps are similar to High-Definition Render Pipeline (HDRP) with an additional check for post-processing under the main camera's rendering header.
Understanding the Autofocus System
The autofocus system is collider-based and requires setting up colliders and interaction layers. Add a collider to your scene objects to define focus areas effectively. When entering play mode, you should see the depth of field in action, blurring the background as you focus on an object closer to the camera.
Navigating the Redesigned UI
The UI has been redesigned in version 1.3, with features grouped into foldouts for easier navigation. The "Connect to HIBIKI" section provides access to online documentation, support tickets, and feedback services. The "Setup" foldout includes a preset selector, save button, interaction layer selector, and a check for ignoring a character collider.
Fine-Tuning the Autofocus System
The "Focus Points" foldout allows for setting up raycast behaviors, including a new "Simple Mode" option. Fine-tune the FOV multipliers, Max distance, and transition times to fit your scene's needs. The "Depth of Field" foldout provides exclusive HDRP exposed parameters for high-quality depth, and the "Glass Check" allows depth to penetrate transparent objects.
Override Volumes and Pipeline Agnostic Features
Override volumes are local volumes that can dynamically shift the autofocus behavior. They can be appended to existing volumes for a cleaner workspace. The "Glass Tag" feature allows specifying transparent objects as look-through objects for the system.
Tuning Presets and Cinematic Effects
Tuning presets relies on understanding your scene's needs. Learn how to control the depth of field for specific looks and scenes. Integrating physically based Auto depth of field with Cinemachine enhances cinematic effects, blending another form of autofocus into the virtual camera.
Takeaways
- Set up the camera and autofocus system correctly
- Fine-tune the focus points and depth of field settings
- Use override volumes and pipeline agnostic features to enhance your scene
- Integrate with Cinemachine for cinematic effects
- Consult the online documentation for advanced features and support services