Masking in lens studio
I have been using lens studio for a while and have gotten quite familiar with it. My next lens requires me to create a sort of mask effect. For example I need a circle in the middle of the screen that shows what the camera sees and feathers out to the edge so underneath a copy of the camera layer I can place an animated background of sorts.
Now of course I could just export the animated background with this feathered circle already cut out and place it over the camera image for the same affect, however this would take up too much space as every frame of the animation would have to be a PNG with that feathered circle cut out in the middle.
Does anyone know how to achieve a mask like effect?
Hi Jye, we don't have a mask material but this is a good idea for 2D Sprites / Billboards. We'll add to our feature request list and investigate. At this time, the closest thing we have is the Occluder material which will occlude 2D sprites (aka mask) but it does this with the 3D geometry and not the texture data. To see this in the works, you can:
Thank you very much for the reply!
I think it would be great to have a masking material - it could open up so many possibilities! I would suggest to have some sort of 'blend' mode, features like a silhouette alpha and silhouette luma would be fantastic!
Thank you, I will try this :)
Hi Jye! One thing you can try is enabling the Opacity Texture Setting for your material. For example, if you want to have circle mask, you can create a white circle with black ground and use that as the Opacity Texture. You can test with different Blend Mode to see what is the best for your Lens. If you are looking for some feathered effects, PremultipliedAlpha is probably the most suitable,