VVMW icon indicating copy to clipboard operation
VVMW copied to clipboard

[Feature Request] MipMapping support

Open orels1 opened this issue 8 months ago • 6 comments

Have been really enjoying using your player, but there is one thing that has been bothering me a little.

When watching 1080p videos with a lot of detail - the aliasing becomes fairly noticeable, especially on the portable screens.

Since you already have a mechanism to blit the screen to fix AVPro empty frame issues and for LTCGI - I was wondering if its possible to add support for generating MipMaps?

I did a quick test and it seems like its possible to simply expand the current blit setup to use mips so it would generate them on blit

            if (bufferedTexture == null)
            {
                int width = texture.width, height = texture.height;
                Debug.Log($"[VVMW] Created temporary render texture for {playerName}: {width}x{height}");
                bufferedTexture = VRCRenderTexture.GetTemporary(width, height, 0, RenderTextureFormat.ARGB64, RenderTextureReadWrite.sRGB, 1);
                bufferedTexture.filterMode = FilterMode.Bilinear;
                bufferedTexture.wrapMode = TextureWrapMode.Clamp;
                bufferedTexture.useMipMap = true;
                bufferedTexture.anisoLevel = 16;
                core._OnTextureChanged();
            }

orels1 avatar Jun 06 '24 20:06 orels1