Closed yoavya closed 6 years ago
The root of the issue is that without distortion, the undistorted texture is mapped 1-to-1 to the screen. If the texture is smaller than the screen, you will see it repeated on the edges. Is this repetition visible in your viewer?
When in the cardboard the edges are not visible however I would like to avoid this issue from accruing at all. I can't display the texture on the entire screen because my requirements demand that i present them at a fixed size. How can I solve this?
What are your requirements for this app? Normally, you shouldn't disable distortion correction unless you're running on a very low-power device.
Honestly it's just a cosmetic requirement by my client. The images I am presenting are 2D so there is no real need for distortion (although it doesn't harm anything). Is there a way to solve this issue without enabling the distortion correction ?
Two workarounds I can think of:
Closing per the suggested workarounds.
I am using Google VR SDK to show an image on the screen. I am encountering a strange bug when displaying the objects without distortion although it happens only on large screens (namely 5.5 inch or larger). To disable distortion I am using
gvrView.setDistortionCorrectionEnabled(false)
The result looks like this: You can see that there is a cut part at the top of the screen that shows some of the objects again.When I use distortion the problem seems to disappear.
I will give the relevant code here for reference:
The XML file:
I am using this function to load the textures:
Has anyone encountered this, have any idea why this is happening and how to resolve it ?
I appreciate the help.
I also asked this question on stackoverflow