VSeeFaceReleases icon indicating copy to clipboard operation
VSeeFaceReleases copied to clipboard

[Feature Request] Unity has support for better window transparency

Open Mornedil opened this issue 7 months ago • 4 comments

Currently, VSeeFace gets bright outlines around models while UI is active, and when the UI is hidden, those outlines are mostly removed with jagged edges around the model and poor anti-aliasing. I'm not sure how VSeeFace handles window transparency, but it seems like it's using a custom solution judging by the result.

This can be fixed!

Unity cameras have built-in support for window transparency with good quality anti-aliasing on the model. To enable this, in Unity's Camera component, all you have to do is to set the "Clear Flags" property to "Solid Color", and then set the Background color property to 0, 0, 0 and also the alpha to 0. With this setup, the unity window becomes transparent, and any rendered model gets perfectly anti-aliased outlines.

I have tested it in VSeeFace by importing a custom camera with a VSFAvatar model. Example Image (however VSeeFace currently ruins the anti-aliasing when hiding the UI)

If the built-in cameras of VSeeFace used these settings, we could get much better model outlines. Hope this helps!

Mornedil avatar Nov 13 '23 18:11 Mornedil