Web GL 不会突然加载。这是硬件问题吗?我上个月刚买了一台新笔记本电脑

问题描述 投票:0回答:1

问题截图我已经关注 Threejs 教程很长时间了,从来没有遇到过这个问题。大约一个月前刚买了一台新笔记本电脑,我正在遵循教程并返回完成,当我加载它时,我只是看到一个白屏,而 lilgui 调试程序仍在运行。到目前为止,它在这台计算机上运行良好。我将附上带有 js 控制台错误的屏幕截图。谁能帮我弄清楚发生了什么事吗?

以下是控制台中的错误消息:

onContextCreationError @ chunk-6P5T4EWA.js?v=580916dd:17367
Show 1 more frame
Show less
chunk-6P5T4EWA.js?v=580916dd:17367 THREE.WebGLRenderer: A WebGL context could not be created. Reason:  Failed to create a WebGL2 context.
onContextCreationError @ chunk-6P5T4EWA.js?v=580916dd:17367
Show 1 more frame
Show less
3chunk-6P5T4EWA.js?v=580916dd:17367 THREE.WebGLRenderer: A WebGL context could not be created. Reason:  Could not create a WebGL context, VENDOR = 0xffff, DEVICE = 0xffff, GL_VENDOR = Google Inc. (Google), GL_RENDERER = ANGLE (Google, Vulkan 1.3.0 (SwiftShader Device (LLVM 10.0.0) (0x0000C0DE)), SwiftShader driver-5.0.0), GL_VERSION = 5.0.0, Sandboxed = yes, Optimus = no, AMD switchable = no, Reset notification strategy = 0x8252, ErrorMessage = BindToCurrentSequence failed: .
onContextCreationError @ chunk-6P5T4EWA.js?v=580916dd:17367
Show 1 more frame
Show less
chunk-6P5T4EWA.js?v=580916dd:17367 THREE.WebGLRenderer: A WebGL context could not be created. Reason:  Failed to create a WebGL2 context.
onContextCreationError @ chunk-6P5T4EWA.js?v=580916dd:17367
Show 1 more frame
Show less
2chunk-6P5T4EWA.js?v=580916dd:17367 THREE.WebGLRenderer: A WebGL context could not be created. Reason:  Could not create a WebGL context, VENDOR = 0xffff, DEVICE = 0xffff, GL_VENDOR = Google Inc. (Google), GL_RENDERER = ANGLE (Google, Vulkan 1.3.0 (SwiftShader Device (LLVM 10.0.0) (0x0000C0DE)), SwiftShader driver-5.0.0), GL_VERSION = 5.0.0, Sandboxed = yes, Optimus = no, AMD switchable = no, Reset notification strategy = 0x8252, ErrorMessage = BindToCurrentSequence failed: .
onContextCreationError @ chunk-6P5T4EWA.js?v=580916dd:17367
Show 1 more frame
Show less
chunk-6P5T4EWA.js?v=580916dd:17125 THREE.WebGLRenderer: Error creating WebGL context.
WebGLRenderer @ chunk-6P5T4EWA.js?v=580916dd:17125
Show 1 more frame
Show less
chunk-6P5T4EWA.js?v=580916dd:17112 Uncaught Error: Error creating WebGL context.
    at new WebGLRenderer (chunk-6P5T4EWA.js?v=580916dd:17112:19)
    at script.js:161:18
injected.js:4 Retrieving "b5x-stateful-inline-icon" flag errored: timed out - falling back
qy @ injected.js:4
Show 1 more frame
Show less
script.js:140 Uncaught ReferenceError: Cannot access 'renderer' before initialization
    at script.js:140:5

尝试重新启动计算机,重新安装文件夹中的 npm,但没有成功。

webgl threejs-editor
1个回答
0
投票

好吧,我发现问题了。我试图解决与我的浏览器(Brave)无关的问题,为此我禁用了“使用可用的图形加速”。我一启用它,它就正常工作了。希望这对将来的其他人有帮助!

© www.soinside.com 2019 - 2024. All rights reserved.