pycortex icon indicating copy to clipboard operation
pycortex copied to clipboard

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

Open TomDLT opened this issue 5 years ago • 2 comments

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

TomDLT avatar Oct 02 '20 03:10 TomDLT

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?

cchen23 avatar Dec 30 '21 19:12 cchen23

No idea.

TomDLT avatar Dec 31 '21 02:12 TomDLT