googlearchive / vrview

Library for embedding immersive media into traditional websites.
http://developers.google.com/cardboard/vrview
Apache License 2.0
1.71k stars 1.09k forks source link

Distorted projection when viewing straight up/down #283

Open AerysBat opened 6 years ago

AerysBat commented 6 years ago

I get star-shaped artifacts around the top and bottom poles when viewing straight up and straight down in the desktop viewer. This image looks fine converted to video and uploaded on Youtube VR.

Grassy ground test image: grasstestpano

Result: grasstesterror

sybrenstuvel commented 6 years ago

I have the same problem with a1d5b9c:

screenshot_20180726_112946

sybrenstuvel commented 6 years ago

Note that this also happens with the example on https://developers.google.com/vr/develop/web/vrview-web#self-hosting, at least when viewing in Mozilla Firefox 61.0.1 on Kubuntu 18.04:

screenshot_20180726_113438

AerysBat commented 5 years ago

I peeked into the source code and have a theory about what's going on. The internal rendering is done using a sphere with 48 horizontal and vertical segments. (embed/sphere-render.js line 150). That seems fairly low to me and I wouldn't be surprised if these vortex areas correspond to a single strip of triangles each.

It would be nice to test it out with more vertical segments. I wish I were more of a JS guy so I could try it myself!