Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data is rendered incorrectly on iOS 14 #5823

Closed
3 tasks
philippotto opened this issue Nov 2, 2021 · 2 comments
Closed
3 tasks

Data is rendered incorrectly on iOS 14 #5823

philippotto opened this issue Nov 2, 2021 · 2 comments

Comments

@philippotto
Copy link
Member

Context

When viewing a dataset via browserstack on iPad Air 4 (iOS 14), data is often rendered incorrectly. The console outputs:

maxTextureImageUnits 16
vendors~main.js?nocache=2f751a7…:249 maximumLayerCountToRender 8
vendors~main.js?nocache=2f751a7…:249 Supporting 4096 buckets
vendors~main.js?nocache=2f751a7…:249 THREE.WebGLRenderer: OES_texture_float_linear extension not supported.
vendors~main.js?nocache=2f751a7…:249 Requested api version: 3 which is the latest version.

For iOS 13, the same bug does not occur and the output is:

vendors~main.js?nocache=2f751a7…:249 maxTextureImageUnits 8
vendors~main.js?nocache=2f751a7…:249 maximumLayerCountToRender 2
vendors~main.js?nocache=2f751a7…:249 Supporting 2048 buckets
vendors~main.js?nocache=2f751a7…:249 Requested api version: 3 which is the latest version.
vendors~main.js?nocache=2f751a7…:249 THREE.WebGLProgram: gl.getProgramInfoLog() WARNING: Output of vertex shader 'vUv' not read by fragment shader
WARNING: Output of vertex shader 'modelCoord' not read by fragment shader

I'm not really sure whether the OES_texture_float_linear bit is really the culprit, since my research showed that earlier iOS versions didn't support that bit either (but didn't say so).

Expected Behavior

Data should be rendered correctly.

Current Behavior

image

Steps to Reproduce the bug

  • Cannot reproduce the bug anymore / needs deeper investigation.
  1. open wk on iPad 4 with iOS 14
  2. open a dataset
  3. zoom in to mag 1
  4. move a bit

Your Environment for bug

  • Browser name and version: e.g. Chrome 39
  • Operating System and version: e.g. Windows 10
  • Version of WebKnossos (Release or Commit):
  • Specific to long-running jobs (set jobsEnabled=true in application.conf)
  • Specific to webKnossos.org (set isDemoInstance=true in application.conf)
@philippotto
Copy link
Member Author

I'm not really sure whether the OES_texture_float_linear bit is really the culprit, since my research showed that earlier iOS versions didn't support that bit either (but didn't say so).

Since we always use THREE.NearestFilter for textures, this shouldn't explain the bug.

Further insights: I can only reproduce this issue for non-uint8 (namely, uint16) layers (regardless of color or segmentation). Unfortunately, I couldn't find any workaround or more details about what's exactly going wrong on iOS 14.

@fm3 fm3 added the frontend label Mar 26, 2022
@hotzenklotz
Copy link
Member

Voting to close this issue, since iOS14 is outdated (iOS16 was just released) and we update wK to WebGL2 + ThreeJS updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants