Hello,
Still can't figure this one out. There are a few shader effects in which I have a video feed of a top layer incoming from direct video source that is chromekeyed out.
I'll also have a background behind it working just fine.
However if I use city lights on the layer above, the input video, the layer behind is no longer viewable. Any way to alleviate this that the city lights shader for example only affects the used pixels and not affecting the applied alpha on that layer? So the background will still show up behind.
City Lights & Other Shaders Hiding Background
-
- Posts: 31
- Joined: Thu Dec 16, 2021 8:05 pm
Re: City Lights & Other Shaders Hiding Background
Mask the FX with the keyed source.
-
- Posts: 31
- Joined: Thu Dec 16, 2021 8:05 pm
Re: City Lights & Other Shaders Hiding Background
If I'm not confused.
I created a 'mask' layer. I put the source video on top of the 'background' effects at the end of the node chain.
This causes the 'source video' to be affected by the background coloring and effects, and all the alpha around the input source remains black.
For example:
https://i.gyazo.com/f67e984eee1038c9d6d ... 1d66fc.mp4
The 'dot matrix' which is the background is only applying to the source pixel color channels. Only want it to apply to the black / alpha channels so it can operate behind the source. Basically the opposite. Only after applying city lights causes this issue (i'm assuming it affects everything not just color channels). Is there another part in the chain of mask would need to be applied?
I created a 'mask' layer. I put the source video on top of the 'background' effects at the end of the node chain.
This causes the 'source video' to be affected by the background coloring and effects, and all the alpha around the input source remains black.
For example:
https://i.gyazo.com/f67e984eee1038c9d6d ... 1d66fc.mp4
The 'dot matrix' which is the background is only applying to the source pixel color channels. Only want it to apply to the black / alpha channels so it can operate behind the source. Basically the opposite. Only after applying city lights causes this issue (i'm assuming it affects everything not just color channels). Is there another part in the chain of mask would need to be applied?
-
- Posts: 31
- Joined: Thu Dec 16, 2021 8:05 pm
Re: City Lights & Other Shaders Hiding Background
This works, kind of. But does not achieve the result of just having a foreground over a background. Maybe it's the limitation of the City Lights shader? I've noticed more than one does this sort of thing, so was wodnering a general world around.
Using this method, didn't seem to have an affect, until I added .5 alhpa to colorHSB in keyframe chain. But even then, the layers were blended together, rather than the key frame just being over top of the background layer.
Using this method, didn't seem to have an affect, until I added .5 alhpa to colorHSB in keyframe chain. But even then, the layers were blended together, rather than the key frame just being over top of the background layer.
Re: City Lights & Other Shaders Hiding Background
Sounds like you are creating a poor chromakey or no key at all. Use Terry Payman's tip to view your keyed source alpha mask using the RGB Swap module. Terry also graciously provided a module called Chroma Mask TP which as well as providing a good set of tools for keying, also has an option to view the alpha.
If you can't figure it out yourself, post a single frame of your source footage here and perhaps we can figure out how to get a better key.
If you can't figure it out yourself, post a single frame of your source footage here and perhaps we can figure out how to get a better key.
-
- Posts: 31
- Joined: Thu Dec 16, 2021 8:05 pm
Re: City Lights & Other Shaders Hiding Background
I'll look into it when I get home. Thank you. The program I use is actually sending it without a chromakey needed, just my avatar and alpha around it. When I realized this I still got the same result sadly.