Hello, I built the 3D Slicer tool using Webassembly and received the following error. What could be the cause of it? It works fine on Desktop.
Cone.js:1 vtkShaderProgram (0x2a9f90): ERROR: 0:130: ‘/’ : wrong operand types - no operation ‘/’ exists that takes a left-hand operand of type ‘highp float’ and a right operand of type ‘const int’ (or there is no acceptable conversion)
Cone.js:1 ERROR: In vtkOpenGLPolyDataMapper.cxx, line 2590
vtkOpenGLGlyph3DHelper (0x2a3c78): Could not set shader program.
Did you really build 3D Slicer for webassembly? That would be quite a feat and we’d love to hear more about it.
Or maybe you mean some other code? The error you posted looks like it comes from a vtk.js example and if so you could post on the vtk web forum.
Hello, I’ve created a build for just one 3D Slicer widget in web-assembly. You can check out both the build code and the code itself at the following link: GitHub - danielmazurkin/example-web-assembly: This is repository for research building 3D Slicer to web assembler. However, I’m getting a black screen after launching the widget in the browser, but when building in Desktop C++, the ruler widget from 3D Slicer is displayed for me.
That’s a very interesting project, and I can see a lot of value in being able to share code across browser and desktop. It’s all very new though, so it may be hard to get help. I know you are starting with a fairly simple example, but perhaps starting with an even simpler test could help. Also it could help if you could provide very explicit instructions on your project readme about how people can set up a developer environment to replicate what you have done.