WebGL debug tools?

痴心易碎 提交于 2019-12-05 18:36:24

Just found WebGL Inspector. It claims to be an advanced WebGL debugging toolkit. I haven't personally tried it yet.

http://benvanik.github.com/WebGL-Inspector/

As mentioned above WebGL-Inspector is a tool, allowing you to analyze textures and buffers passed into shader programs. For low-level issues advanced tools are necessary which track driver API calls, memory consumption etc.

Depending on the used OS you can use OpenGL/DirectX Debuggers and attach them to your browser.

WebGL Inspector is a very good tool, but has many glitches in UI. I can also recommend Canvas debugger and Shader Editor inside FireFox debugger tools (they turned off by default and you should enable them in settings)

I tried out WebGL Inspector, WebGL Insight, and Spector.js.

The first two seem to have the most features if you can get them working. Unfortunately, WebGL Inspector has issues with bundlers and I am using webpack. It has some installation caveats on the Github page to get it working with bundlers, but it's pretty sloppy.

Someone on the Reviews section for WebGL Insight says it might only work if your <canvas> is loaded from the start. Again, I tried moving my canvas creation to index.html as markup, but was unable to get it working.

Spector.js was the only one that worked for me out of the box. Its feature set is more minimal, but you can at least see the state for each frame and stack traces.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!