为什么threejs应用没有在mozilla firefox

时间:2015-12-31 13:32:16

标签: firefox three.js webgl

我最近完成了Linux SUSE的全新安装,现在Firefox没有显示threejs。

我已更新

about:config webgl.force-enabled to true

浏览器控制台提供以下错误消息。

THREE.WebGLRenderer 73 three.min.js:578:133
THREE.WebGLRenderer: Error creating WebGL context. three.min.js:581:370

Error: WebGL: Error during native OpenGL init. three.min.js:581:104
Error: WebGL: WebGL creation failed. three.min.js:581:104
Error: WebGL: Error during native OpenGL init. three.min.js:581:129
Error: WebGL: WebGL creation failed. three.min.js:581:129
Error: WebGL: Error during native OpenGL init. three.min.js:581:189
Error: WebGL: WebGL creation failed. three.min.js:581:189
TypeError: a is null

我想知道我需要做些什么来让我的页面适当地显示three.js场景而不会破坏我的系统,因为显然我需要在所有浏览器上显示该页面。

2 个答案:

答案 0 :(得分:5)

什么版本的Firefox?保证43岁或以上...你有没有设置?将firefox设置重置为默认值转到URL

about:support

恢复出厂设置,包括WebGL命中

Give Firefox a tune up  --> refresh firefox

...下面是如果您想要手动更改WebGL相关设置的内容截图...在URL中输入:

about:config

然后搜索webgl,为您提供默认设置列表:

enter image description here

WebGL确实提供了前端设置,可以/确实会导致浏览器/图形卡被禁止...所以尝试运行一个简单的WebGL网站...让我们知道你是如何进行的

答案 1 :(得分:1)

我发现了一个在线论坛帖子,让我了解gfx.crash-guard.status.glcontext的存在,这是崩溃后关闭WebGL的原因。如下所示重置它让我再次运行而不触及任何其他设置。enter image description here

编辑:我刚注意到,在我的macbook pro上,此值变为"用户设置"到" 2" (重新加载about:support或包含WebGL代码的页面的那一刻)(不是上面显示的3)(但网页呈现正常,Web GL的东西似乎仍然有效)。 enter image description here