Skip to content

Image quality... #13

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

Open
smallfly opened this issue Apr 16, 2025 · 6 comments
Open

Image quality... #13

smallfly opened this issue Apr 16, 2025 · 6 comments

Comments

@smallfly
Copy link

Hello,

The image returned by Unity's WebCamTexture appears to be of lower quality compared to the actual passthrough, even when capturing at 1920x960 resolution. Is this a known limitation of WebCamTexture, and could using the native Camera2 API provide better image quality?

Thanks

@zsp1987
Copy link

zsp1987 commented Apr 17, 2025

In the sample, it's using the WebCamTexture which demonstrate the common use cases with Camera in Unity.

But PCA should be compatible with Camera2 API, you can find more information about native camera access there
https://developers.meta.com/horizon/documentation/native/android/pca-native-documentation

and combine some project like https://github.com/yasirkula/UnityNativeCamera to check if you can get a better result.

@smallfly
Copy link
Author

smallfly commented May 2, 2025

Sorry for the late reply, and thanks for your response.
But, how is the image quality you’re getting with WebCamTexture?

@zsp1987
Copy link

zsp1987 commented May 21, 2025

For webcamtexture the max resolution is 1280x960

@smallfly
Copy link
Author

smallfly commented Jun 1, 2025

My issue isn’t the resolution per se, but it’s that the passthrough image I capture looks very jagged and rough compared to passthrough displayed directly in the headset. Here's an example image I captured for reference; see the lines of the drawing or the controller strap on the top right.

Image

Is this visual quality expected when using Unity/WebCamTexture? Or is there something I'm missing in the setup?
(I have tried several things/'formats' when capturing and saving the image, but nothing helps)
Would the native API provide better quality?

Thanks,

@zsp1987
Copy link

zsp1987 commented Jun 2, 2025

Hi, it's a known issue, and we are going to improve the image quality with antialias in our frag shader.

@smallfly
Copy link
Author

smallfly commented Jun 9, 2025

Thanks for the reply. Will this be soon available ?

Is this issue also here when using the Native API ?

Thanks

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

2 participants