我正在尝试在Cordova上构建一个包含Three.js的移动应用程序,
这在浏览器中的PC上运行良好,但在设备上它似乎无法在Samsung Note 3上创建WebGL上下文
这是错误:
THREE.WebGLRenderer 77 THREE.WebGLRenderer: Error creating WebGL context. three.min.js:633 THREE.WebGLRenderer three.min.js:633 Uncaught TypeError: Cannot call method 'getExtension' of null我正在使用CrossWalk,但它似乎没有任何区别
I'm attempting to build a mobile app with Three.js on Cordova,
This runs fine on the PC in the browser, but on the device it doesn't seem to be able to create the WebGL context on a Samsung Note 3
This is the error:
THREE.WebGLRenderer 77 THREE.WebGLRenderer: Error creating WebGL context. three.min.js:633 THREE.WebGLRenderer three.min.js:633 Uncaught TypeError: Cannot call method 'getExtension' of nullI'm using CrossWalk but it doesn't seem to make any difference
最满意答案
是的,我正在运行4.4.2,它似乎不支持WebGL。 我发现你需要使用CrossWalk并启用列入黑名单的GPUS。
<preference name="xwalkCommandLine" value="--disable-pull-to-refresh-effect --ignore-gpu-blacklist" />Yes I'm running 4.4.2 which doesn't support WebGL it seems. I found out you need use CrossWalk and enable blacklisted GPUS.
<preference name="xwalkCommandLine" value="--disable-pull-to-refresh-effect --ignore-gpu-blacklist" />带有Three.js的Cordova上的WebGL(WebGL on Cordova with Three.js)我正在尝试在Cordova上构建一个包含Three.js的移动应用程序,
这在浏览器中的PC上运行良好,但在设备上它似乎无法在Samsung Note 3上创建WebGL上下文
这是错误:
THREE.WebGLRenderer 77 THREE.WebGLRenderer: Error creating WebGL context. three.min.js:633 THREE.WebGLRenderer three.min.js:633 Uncaught TypeError: Cannot call method 'getExtension' of null我正在使用CrossWalk,但它似乎没有任何区别
I'm attempting to build a mobile app with Three.js on Cordova,
This runs fine on the PC in the browser, but on the device it doesn't seem to be able to create the WebGL context on a Samsung Note 3
This is the error:
THREE.WebGLRenderer 77 THREE.WebGLRenderer: Error creating WebGL context. three.min.js:633 THREE.WebGLRenderer three.min.js:633 Uncaught TypeError: Cannot call method 'getExtension' of nullI'm using CrossWalk but it doesn't seem to make any difference
最满意答案
是的,我正在运行4.4.2,它似乎不支持WebGL。 我发现你需要使用CrossWalk并启用列入黑名单的GPUS。
<preference name="xwalkCommandLine" value="--disable-pull-to-refresh-effect --ignore-gpu-blacklist" />Yes I'm running 4.4.2 which doesn't support WebGL it seems. I found out you need use CrossWalk and enable blacklisted GPUS.
<preference name="xwalkCommandLine" value="--disable-pull-to-refresh-effect --ignore-gpu-blacklist" />
发布评论