pycortex
pycortex copied to clipboard
Viewer fails to load surface shader for cortex.Vertex object in Firefox
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

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?
No idea.