googlevr / gvr-unity-sdk

Google VR SDK for Unity
http://developers.google.com/vr/unity/
Other
2.71k stars 1.1k forks source link

Large resolution videos are aliased #1035

Open M-Pixel opened 5 years ago

M-Pixel commented 5 years ago

SPECIFIC ISSUE ENCOUNTERED

Playing a video that has a significantly higher resolution than that of the screen (e.g. 4K video on a flat plane that takes up ~90° FOV on a Daydream device with 1280x1440 screens, resulting in higher than 1 texel density), results in the video rendering as highly aliased.

HARDWARE/SOFTWARE VERSIONS

STEPS TO REPRODUCE THE ISSUE

  1. Play a 4K video
  2. Your eyes will scream

ADDITIONAL COMMENTS

The essential question at hand here is: where can we restrict the resolution of the texture that ExoPlayer renders to, in the way that GVR Unity sets it up? I dug around in the gvr-exoplayersupport source code for answers, but it's rather circuitous and I'm relatively unfamiliar with the Android ecosystem, so I wasn't able to identify any place where the surface size could be specified.