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

Viewer fails to load surface shader for cortex.Vertex object in Firefox #375

Open
TomDLT opened this issue Oct 2, 2020 · 2 comments
Open

Comments

@TomDLT
Copy link
Contributor

TomDLT commented Oct 2, 2020

The following code fails to load the surface shader in Firefox (both 81.0 and 82.0a1).

import cortex
dataset = cortex.Vertex.empty(subject="S1", vmax=1)
cortex.webshow(dataset)

Interestingly, the following does work:

  • same dataset in Chrome
  • change dataset to cortex.Vertex.empty(subject="S1", vmax=1).raw (create a VertexRGB object)
  • change dataset to cortex.Volume.empty(subject="S1", xfmname='fullhead', vmax=1)

Console error:

THREE.WebGLProgram: Could not initialise shader. three.js:24578:12
    WebGLProgram http://ato:48260/resources/js/three.js:24578
    initMaterial http://ato:48260/resources/js/three.js:21968
    setProgram http://ato:48260/resources/js/three.js:22041
    renderBufferDirect http://ato:48260/resources/js/three.js:20304
    renderObjects http://ato:48260/resources/js/three.js:21241
    render http://ato:48260/resources/js/three.js:21101
    drawView http://ato:48260/resources/js/mriview.js:76
    draw http://ato:48260/resources/js/axes3d.js:133
    _schedule http://ato:48260/resources/js/axes3d.js:5

screenshot

@cchen23
Copy link
Contributor

cchen23 commented Dec 30, 2021

Hi @TomDLT! Do you happen to have ideas about what was causing the surface shader to fail to load for cortex.Vertex objects in firefox?

@TomDLT
Copy link
Contributor Author

TomDLT commented Dec 31, 2021

No idea.

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

No branches or pull requests

2 participants