BabylonJS / Spector.js

Explore and Troubleshoot your WebGL scenes with ease.

Home Page:http://spector.babylonjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Intermediate framebuffers are not always shown

juj opened this issue · comments

commented

E.g. in a profile of http://clb.confined.space/dump/unity/Wasm-Tiny3D/Tiny3D.html

Spector.js is unable to render all the screenshots from intermediate renders, see FBO 0 on the left:

Screen Shot 2020-04-18 at 9 27 41 AM

This is normal as we only capture colored buffer and this is only a depth component one. It is a tradeoff to ensure a tiny bit more perfs as we would need a new render and changing the webgl state quite a bit to convert into a color buffer.

Would be cool to add an option to do it on demand if you fancy doing a PR ?

I am closing this one, and I am looking into the other ones.

commented

Oh I see.. perhaps if the thumbnail image is not shown, it would make sense to instead print the format of the target, e.g. "Depth16 FBO not captured"?

Totally agree I ll do that ASAP :-)