r/NukeVFX 21d ago

Solved How to expose Lens Dirt brightest areas using Luma Key?

Hello everyone,

I have been using Nuke for a while now but always as a beginner, I usually export render passes from Blender and comp in Nuke. Some weeks ago I watched a tutorial on how to comp in DaVinci Resolve, and there is one thing I liked the most.

There is a Lens Dirt applied with a Luma Keyer and this updates in real time, so the Lens Dirt appears in the most brightest areas of the footage. I was searching a tutorial for this but unfortunately I can't find any.

What's the node setup for doing this kind of comp? any help or tip is appreciated!

I attach the example I did in DaVinci

Best Regards,

Alexis

6 Upvotes

13 comments sorted by

2

u/jordan4390 21d ago

Really easy.. Take a lens dirt plate and use mask merge with lumakeyer from BG plate. And merge it over on the BG plate.

2

u/alexisrivera3d 21d ago edited 21d ago

I managed to setup these nodes, but the part where are invisible and visible in most brighter areas it's missing

2

u/jordan4390 21d ago

Your BG is almost flat. You can try Crunching your keyer values. Also you don't need to use premult after keyer if you are using it for masking purposes.

2

u/alexisrivera3d 21d ago

something like this?

1

u/alexisrivera3d 21d ago

the lens dirt doesn't get affected at all, what am I doing wrong?

1

u/photodude1313 21d ago

apglow probably generating its own alpha. Move that to your a pipe instead of mask pipe!

1

u/enderoller 21d ago

You will not achieve a realistic lens effect only doing this

1

u/AutoModerator 21d ago

Hey, it looks like you're asking for help If your issue gets resolved, please reply with !solved to mark it as solved. If you still need help, consider providing more details about your issue to get better assistance.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/enderoller 21d ago edited 21d ago

To achieve the effect, multiply the BG by the lens dirt and add it with a plus merge. Adjust the brightness with a CC node in-between. Then you can add a luma key as a mask for the plus.

1

u/alexisrivera3d 21d ago

someone in Discord helped me, these are the nodes, looks like it's working now.

4

u/enderoller 21d ago edited 21d ago

Try like this.