vizorvr / patches

Patches is a visual programming editor for building WebVR and WebGL experiences.
http://patches.vizor.io
MIT License
200 stars 44 forks source link

fix resolution in GearVR/Oculus browser #2079

Closed gmarinov closed 6 years ago

gmarinov commented 6 years ago

fix #2078

background: devicePixelRatio when isPresenting is 1 and canvas sizing must be determined from the actual renderWidth and renderHeight parameters for each eye.

for the GearVR Samsung S6 renderWidth and renderHeight equal 1024, but the display is 2560x1440, so some upscaling is forced.

I experimented with calculating devicePixelRatio instead in order to achieve higher quality image, but got inconsistent results across the range VR/iOS/Android-cardboard.

tested on:

esaruoho commented 6 years ago

Gear VR Oculus Browser, am seeing non-pixelation