I am exploring webGL frameworks. I like SceneJS, but there seems to be some compatibility issues with IE. For example, in IE 11, importing the OBJ files freezes up in the online examples:
Any ideas? Or is this good evidence that SceneJS, while interesting, has been suffiently abandoned as a project and I should move to another webGL framework?
It seems the problem for IE (in my case IE 11), it was not in webGL, but how OBJ file are loaded within SceneJS. SceneJS used a method that does not seem to be compatible with IE.
In obj.js the load() function calls
xhr.responseType = "arraybuffer";
This throws an state error in IE that prevents the obj from loading.An easy solution is to edit the load function in obj.js (around line 75 non minified). Here is the complete function:
By commenting out xhr.responseType = "arraybuffer", it will set the default response type to "text", and then you need to explicitly convert the downloaded text string into an arraybuffer with the Uint8Array function. Seems to work on all browsers I have access to.