zuzzabuzz
11-07-2003, 07:21 PM
Howdy folks,
I'm one of the new guys that took advantage of the Lightwave + DFX+ with Modules 1 and 4.
Unfortunately, no module 2 (which has difference mask). I filmed some footage thinking I did have Difference mask, and got disappointed when I realized I didn't. Anyhoo. I've been trying to come up with an alternative.
At first I tried stuff like Difference merges...which sort of works...but it produces an odd technicolor mask which doesn't always filter out stuff. Being kind of a white guy, and the sky here being kind of bright when i filmed, the difference between my pasty yellow skin and the pale blue sky doesn't really matter when using difference: when converted to grayscale, it's about the same value.
So, i thought, why not find the distance between colors in color space, and use that for the alpha?
Long story short, I used the Custom Tool (in Miscellaneous) and used the following for the Alpha Expression.
1-if((sqrt((r2-r1)*(r2-r1)+(g2-g1)*(g2-g1)+(b2-b1)*(b2-b1))-n1)<n2,255,0)
It uses the Number in 1 and Number in 2 to sort of provide a threshold for how far apart the two colors are to be considered different.
I've just done this over lunch, so when I have time I may refine it.
All the other difference mask tricks still apply (blurring input to remove field noise, filming it correctly to begin with), but hopefully somebody who doesn't have the bucks to shell out for Module 2..but still has the need to help clamp down a mask will enjoy this.
Any feedback or suggestions are welcome.
I'm one of the new guys that took advantage of the Lightwave + DFX+ with Modules 1 and 4.
Unfortunately, no module 2 (which has difference mask). I filmed some footage thinking I did have Difference mask, and got disappointed when I realized I didn't. Anyhoo. I've been trying to come up with an alternative.
At first I tried stuff like Difference merges...which sort of works...but it produces an odd technicolor mask which doesn't always filter out stuff. Being kind of a white guy, and the sky here being kind of bright when i filmed, the difference between my pasty yellow skin and the pale blue sky doesn't really matter when using difference: when converted to grayscale, it's about the same value.
So, i thought, why not find the distance between colors in color space, and use that for the alpha?
Long story short, I used the Custom Tool (in Miscellaneous) and used the following for the Alpha Expression.
1-if((sqrt((r2-r1)*(r2-r1)+(g2-g1)*(g2-g1)+(b2-b1)*(b2-b1))-n1)<n2,255,0)
It uses the Number in 1 and Number in 2 to sort of provide a threshold for how far apart the two colors are to be considered different.
I've just done this over lunch, so when I have time I may refine it.
All the other difference mask tricks still apply (blurring input to remove field noise, filming it correctly to begin with), but hopefully somebody who doesn't have the bucks to shell out for Module 2..but still has the need to help clamp down a mask will enjoy this.
Any feedback or suggestions are welcome.
