question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WebGL visualisations not rendering on iOS

See original GitHub issue

I’ve tried opening a few WebGL-powered visualisations (e.g. wavenumbers) on iOS devices in Safari but am greeted with “Webgl is not supported by your browser - visit http://get.webgl.org for more info”. However, WebGL is well-supported in Safari and is able to render graphics from other libraries (e.g. three.js).

I’m not terribly familiar with the project, but I’m poking around how GL context is determined and when showNoWebGlMsg() is fired in /src/plots/gl3d/scene.js. Am I barking up the right tree, or totally off-base?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:3
  • Comments:33 (15 by maintainers)

github_iconTop GitHub Comments

4reactions
bg23commented, Oct 11, 2017

The reason for this bug on iPad is the incomplete iPad detection for mobiles: In “function isMobile (ua)”, the check “ip(hone|od)” must be replaced by "ip(ad|hone|od). Then surface plots will also work on iPads.

4reactions
bg23commented, Mar 7, 2017

The javascript example at “https://plot.ly/javascript/3d-surface-plots/” is working under Windows/Chrome and Android/Chrome (the latter OS without touch operations). Under iOS/Safari however “WebGL is not supported” is displayed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Site using WebGL rendering crashes…
Site using WebGL rendering crashes in Safari browser with iOS 14.2 Beta ... It loads fine in released iOS14 but not in iOS...
Read more >
Rendering One Million Datapoints with D3 and WebGL
Throughout this post I'll describe the creation of the following visualisation, which displays 1 million books from the Hathi Trust library.
Read more >
Flaw in iOS WebGL texture rendering
I'm using an iPad 4 with retina display (2048 × 1536). No magnification in any iOS settings (I guess you mean Accessibility zoom?)...
Read more >
WebGL: 2D and 3D graphics for the web - Web APIs
WebGL (Web Graphics Library) is a JavaScript API for rendering high-performance interactive 3D and 2D graphics within any compatible web browser without the ......
Read more >
WebGL Overlay View | Maps JavaScript API
If the map or your objects fail to render, it is very likely that the GL state has not been reset. Coordinate Transformations....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found