Procedural Auto Focus in geometry nodes - Blender project
Don't waste your time to control an empty object to change the depth of field of your camera. With this tutorial you'll be able to make a complete auto focus feature in geometry nodes without adding any manual animation! Made in Blender v. 4.1.1
If you have any issues please comment on my YouTube channel or join on my Discord server (link in all my video tutorial description). This to avoid bad reviews caused by simple misunderstanding about the using of the content or because the Blender's team sometime changes the core code between versions of Blender breaking some geometry nodes setup badly.
Inside the content you will find the same file used for the intro of the video tutorial.
With this geometry nodes modifier you'll be able to tweak these parameters:
- Camera: the camera you want to use for manage the auto focus feature
- Objects: the collection of objects involved in the calculation of the focus distance
- Method: choose one of the 4 methods to project different quantity of points let the system calculate the average position of the focus points
- Default distance: if the system can't project one or multiple points on the meshes, it will assign this distance to those points.
- Show points: check it if you need to manage and debug the position of the points in the environment
- Smoothness: factor from 0 to 1 to let you make the auto focus more realistic based by an acceleration and deceleration of the focus on the final point. With an higher number you will increase the time to reach the final focus point.
-
Circle detail parameters:
- Resolution: number of the points of the circle
- Radius: the radius of the circle
- Rotation: useful if you have lo resolution and you want to be similar to your professional camera or to simply tweak the position of the points from the points of view of the camera
-
Grid detail parameters:
- Size X: width of the grid
- Size Y: height of the grid
- Points X: number of the points on the width
- Points Y: number of the points on the height
Royalty Free License
This license grants you, the purchaser, the ability to make use of the purchased product for personal, educational, and or commercial purposes as long as those purposes do not violate any of the following:
- You may not resell, redistribute, or repackage the purchased product for free or commercially without explicit permission from the original creator,
- You may not use the purchased product in a logo, watermark, or trademark of any kind with the exception of: shader, material, texture and light products are exempt as the product is used in a secondary manner.