Adding Depth of Field to Grease Pencils
Blenders default depth of field settings dont work on grease pencil objects. But you can still achieve a depth of field effect using an alternate method. In this video Ill show you how to set that up. There are a few limitations to this method so well also whip up a Python script to get around some of those limitations. The Python code can be found here: Music from Pixabay Chapters: 00:00 Intro 00:26 The Problem 00:51 Alternate Depth of Field Method for Grease Pencils 01:17 Adding Shader Effects 02:17 Limitations of Using Shader Effects 03:35 Setting Up a Test Scene for our Script 04:37 Getting Selected Objects 05:09 Getting Distance Between Stroke and Camera 07:53 Duplicating Objects Based on Depth 09:40 Removing Empty Grease Pencil Objects 10:21 Adding the Shader Effect With Python 11:08 Centering the Origins 14:17 Remaining Limitations
|
|