mpetroff / pannellum

Pannellum is a lightweight, free, and open source panorama viewer for the web.
https://pannellum.org/
MIT License
4.28k stars 724 forks source link

Compatibility with Chrome 53 #248

Open COLDMOUNT opened 8 years ago

COLDMOUNT commented 8 years ago

Just updated Chrome to Version 53.0.2785.101 (64-bit), and found that pano loading speed decreases sharp, either on localhost or pannellum.org. Panos can be loaded pannellum.org but much slower than they were, and there is something wrong with pano display within certain angle range; worse, localhost seems stuck on the loading stage. Has anyone the same trouble? wechatimg4

mpetroff commented 8 years ago

Are there any messages printed to the developer console?

I can't reproduce this on the same version of Chrome (running under Linux Mint 17.3).

COLDMOUNT commented 8 years ago

Thanks for reply.

  1. As per the console info, the fallback folder cannot be found, and this is the reason why the loading process is stuck. Since it has always been working well on the version older than Chrome 53, I never really set a fallback folder;
  2. However, when fallback folder is added, a new trouble pops up -- just as what was described in the last message -- there is something wrong with pano display (in cubemap mode), either on localhost or on pannellum.org. According to the source code, the problem means WebGL context is not obtained, and this should be caused by the new update of Chrome. I am using OS X El Capitan 10.11.6

wechatimg2 wechatimg3 wechatimg4 wechatimg5

mpetroff commented 8 years ago

The Chrome update appears to have broken WebGL. Pannellum is using the fallback CSS 3D transform-based renderer, which it having rendering issues, presumably because Chrome is doing the rendering without hardware acceleration.

Just to double check that it isn't an issue with Pannellum, use the WebGL test page: https://get.webgl.org/

MmmDee commented 8 years ago

The webgl test page and my website using multires and standard panoramic images is working well with commit 246103a under chrome 53.0.2785.101 m (the latest available on Windows 10). It also works well on Ubuntu 16.04 with chrome 53.0.2785.101 (64-bit).

Edit: Oops, spoke too soon. The newest chrome on Ubuntu crashes my Nvidia display driver (goes to black screen with Nvidia update 370 proprietary) when zooming-in then zooming-out a multires image but it's not reproducible.

Windowsfreak commented 7 years ago

The newest Chrome versions distrust certain video cards and thus disable their GPU features. You can enter some obscure hidden browser settings pages to force enable WebGL on unsupported cards, and then it works again. chrome://gpu/ is one of them ...