简体   繁体   English

由于Float32Array在IE 9上运行threejs失败

[英]Running threejs on IE 9 failing because of Float32Array

I'm writing a threejs demo that MUST run on pretty much all browsers - particularly IE down to IE9. 我正在编写一个Threejs演示,该演示必须在几乎所有浏览器上运行-尤其是IE到IE9。

It looks like IE 9 should at least be able to run the Canvas Demos but I'm getting a Float32Array Javascript error. 看来IE 9应该至少能够运行Canvas演示,但是我遇到了Float32Array Javascript错误。

I'm sure there is a simple answer to this somewhere but my searches have yielded nothing so far. 我敢肯定某个地方对此有一个简单的答案,但是到目前为止,我的搜索没有任何结果。

I should say that I'm a webdev beginner (although experienced programmer) and that I'm running an IE 9 instance on the virtualising service Spoon.net . 我应该说我是一名Webdev初学者(尽管经验丰富的程序员),并且我正在虚拟化服务Spoon.net上运行IE 9实例。 IE10 works well with threejs through this service. IE10通过此服务可与threejs很好地配合使用。

Thanks in advance 提前致谢

This is quite a late answer. 这是一个很晚的答案。 But for reference, inexorabletash provides a polyfill that you can find on github: https://github.com/inexorabletash/polyfill/blob/master/typedarray.js 但作为参考,inexorabletash提供了可以在github上找到的polyfill: https : //github.com/inexorabletash/polyfill/blob/master/typedarray.js

It adds Float32Array support to IE 9. This way, you won't add WebGL support to IE9, but you will get rid of the Float32Array error. 它向IE 9添加了Float32Array支持。这样,您就不会向IE9添加WebGL支持,但是您将摆脱Float32Array错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM