Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolution to Low for VR (Video) #54

Open
Marco-Zechner opened this issue Jan 2, 2022 · 3 comments
Open

Resolution to Low for VR (Video) #54

Marco-Zechner opened this issue Jan 2, 2022 · 3 comments

Comments

@Marco-Zechner
Copy link

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

@hecomi
Copy link
Owner

hecomi commented Jan 4, 2022

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...

@adimas-nri
Copy link

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

@ar-zadeh
Copy link

ar-zadeh commented Feb 7, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants