ISAAC SPIEGEL
  • Demo Reel
  • work
  • Blog
  • Contact

Nuggets of knowledge

Cleanup made easy with UV Projection in Nuke

1/5/2021

2 Comments

 

the how to

In this tutorial I cover how to setup and use the UV projection mode in the ScanlineRender node to make cleanup a breeze in Nuke. In my experience, I've found myself using this method to paint out dolly tracks or other objects on a flat surface. It's also came in handy when doing cleanup on pattern surfaces where painting from the camera's perspective might be challenging. The only thing you need to get this method working is a tracked camera for your shot. The better the camera track, the easier this type of cleanup will be. 

To get started, you'll need to place a card in 3D space over the area which you want to do your cleanup on. Think of this card as your cleanup canvas, anything that falls inside this card's area you'll be able to work on, anything that falls outside the card's area will not be able to be used. This method can be repeated using multiple cards if necessary. I used a PointCloudGenerator node to help me confirm that my card was where I wanted it in 3D space. Next, take a Project3D node and hook the inputs in to the tracked camera and the BG plate. Take your card and plug that into the Project3D. Next, drop in a ScanlineRender and hook that into the card. Set the "projection mode" knob on the ScanlineRender to "UV". This will have the ScanlineRender output the UVs of whatever geometry is plugged in, which is where we're going to be doing the cleanup. This ScanlineRender does not require a camera to be plugged in because UV maps can exist independently of the camera. Think of it like modeling geometry when in a 3D package. You can model the geo with UVs without needing a camera in your scene. With the viewer hooked up to the ScanlineRender set to UV, start working through the cleanup. 

After you've finished the cleanup, it's time to reverse the UV stabilize that we had set up above. Copy the card that was created earlier and hook it up at the bottom of your cleanup. Next, place a ScanlineRender node and connect the camera input to the tracked cam, and the obj/scn input to the copied card. This ScanlineRender needs to have its "projection mode" knob set to the default "render cam". Finally, merge your completed cleanup over the BG plate. All done! 

The image below shows the basic setup for using this stabilization technique.

​Thanks for reading and happy comping! 

Picture
2 Comments
Hello!
1/5/2021 05:33:44 pm

This is a great method but remember that this invokes 2 filter hits, once when stabilizing and one when matchmoving. When possible, I try to also mask just the areas that have been painted on, and merge that back over the original plate. With a roto paint, you can use the drop down in the node to access a mask.a output, which then you can shuffle out and use as the above mentioned mask (maybe need to erode it a bit). This will give you an alpha in the mask channel of everywhere you have made any kind of paint stroke, clone, erase, etc. Very useful and I don’t often see people utilizing that in rotopaints!

Reply
Isaac
1/6/2021 11:54:51 am

Masking out only the areas you need with RotoPaint's output mask is definitely correct for this type of cleanup. I'm trying to limit the tutorials to the essentials to have them be less "push this button". Through you're correct, I should've mentioned more on masking the areas you need. Thanks for the feedback :)

Reply



Leave a Reply.

    Archives

    April 2021
    March 2021
    February 2021
    January 2021
    December 2020
    September 2020
    March 2020
    September 2019
    August 2019
    June 2019
    December 2018

About

Compositing.
Motion Design.
Climbing.
Cooking.
Shiba.

Contact

email:         isaacspiegel.freelance@gmail.com
web:           isaacspiegel.com
instagram: @fuzzymango
  • Demo Reel
  • work
  • Blog
  • Contact