Trouble combining two magic mask nodes
Posted: Sun May 05, 2024 8:24 pm
I have an image (building roof from drone footage) I need to composite. I want the still image to show up ONLY on the roof, but then I also need to mask out a tower that is between the drone and roof (and moves its position continuously).
NOTE: I use PlanarTracker to keep the still image in precisely the right place throughout the footage. But then I need to mask it in two ways:
1) I used a MagicMask first to mask out the tower. In this case I invert the mask. That works reasonably well.
2) I then used a second MagicMask on top of that (prior to that?) to create the mask of the roof. Here I want the masked area to be transparent, and the rest opaque, so I don't do an inverse.
It works, but everything outside the roof mask is darkened quite a bit. Here is a screen cap showing the drone footage before (left) and after compositing (right):
https://www.dropbox.com/scl/fi/wktbj8rwlxx94f85rit8v/Screenshot-2024-05-05-131244.png?rlkey=9jhkiftr3ohyiu48b2ycoxlm1&dl=0
Here is my node structure.
https://www.dropbox.com/scl/fi/ahz0zxmresi6i664n8efd/Screenshot-2024-05-05-131126.png?rlkey=fd4ojkp53hciho47oo4z19ip6&dl=0
What am I doing wrong?
THANKS!
NOTE: I use PlanarTracker to keep the still image in precisely the right place throughout the footage. But then I need to mask it in two ways:
1) I used a MagicMask first to mask out the tower. In this case I invert the mask. That works reasonably well.
2) I then used a second MagicMask on top of that (prior to that?) to create the mask of the roof. Here I want the masked area to be transparent, and the rest opaque, so I don't do an inverse.
It works, but everything outside the roof mask is darkened quite a bit. Here is a screen cap showing the drone footage before (left) and after compositing (right):
https://www.dropbox.com/scl/fi/wktbj8rwlxx94f85rit8v/Screenshot-2024-05-05-131244.png?rlkey=9jhkiftr3ohyiu48b2ycoxlm1&dl=0
Here is my node structure.
https://www.dropbox.com/scl/fi/ahz0zxmresi6i664n8efd/Screenshot-2024-05-05-131126.png?rlkey=fd4ojkp53hciho47oo4z19ip6&dl=0
What am I doing wrong?
THANKS!