How does one generate an effect from an area or object

Hi, I’m wanting to figure out how to have an effect from a certain area of a project whether in the project or from real world object similar to roelofnols work!

example here

https://www.instagram.com/p/B-Z13YSH46J/?igsh=MW5wanBjM21pZjh6eA==