uDesktopDuplication icon indicating copy to clipboard operation
uDesktopDuplication copied to clipboard

Resolution to Low for VR (Video)

Open Marco-Zechner opened this issue 2 years ago • 3 comments

https://youtu.be/jt0vwiF9wGU

As you can see in the video I have to get quite close to the Screens to be able to read the text. I don't know what causes this flickering but when I get back to the normal distance then all the text gets constantly cut into parts. I don't know a better way to describe it. Probably I just messed up some settings in Unity but I try to make this small program for me now for at least 2 months and I just can't find a solution. I know that it should be possible to read the text at that size because I can read it in Virtual Desktop (but that only support 1 monitor, and I can't modify the world how I would like it.) So if ANYONE has ANY ideas, please tell me. I'm quite desperate because I think it would be really cool but I can't get it to work. I even tried to render my full HD monitors at 4k with DSR

Marco-Zechner avatar Jan 02 '22 15:01 Marco-Zechner

The flickering is probably caused by the fact that the Texture2D supplied by uDesktopDuplication does not create mipmaps. This is because there is an overhead to create mipmaps. I think it is possible to add an option to create them, but I am currently working on another project, so I am not able to do it myself for now...

hecomi avatar Jan 04 '22 00:01 hecomi

Hello, did you find the solution to this issue yet?

adimas-nri avatar Feb 15 '22 01:02 adimas-nri

Adding mismap will just make it blurry and make the desktop content even harder to work with. What I found useful in my project was to create a VRscale script and change the eyeTextureResolutionScale. The code will look like the following: `using UnityEngine; using UnityEngine.XR;

public class VRRenderScale : MonoBehaviour { public float TextureResolutionScale; void Start() { XRSettings.enabled = true; XRSettings.eyeTextureResolutionScale = TextureResolutionScale; }

}` The higher the scale, the better the quality.

ar-zadeh avatar Feb 07 '24 18:02 ar-zadeh