AssortedWidget, an OpenGL C++ GUI ported to WASM

813 views
Skip to first unread message

Bill Yan

unread,
Apr 7, 2017, 5:11:06 PM4/7/17
to emscripten-discuss
Hello,

I'd like to show you my old opengl es 2 gui library ported to WASM, with a live demo.

Thanks!



Floh

unread,
Apr 8, 2017, 5:42:20 AM4/8/17
to emscripten-discuss
Nice :) The rendering is a bit blurry for me in Chrome, does it look the same as in a native demo? I'm asking because I had the same trouble when porting other UI toolkits over to asm.js (Turbobadger, ImGui and Nuklear). They looked crisp in their native versions, but blurry in the browser. There were 2 main reasons for this: first I had to make sure that the no scaling was happening between the rendered image (in the engine), and the presented image in the browser canvas), and second, more importantly: most (all?) browsers use linear filtering when composing the WebGL canvas to the HTML page, this must be disabled via CSS. The only browser where I couldn't get rid of the blurryness was Safari since the CSS tricks don't work there :/

Here are the demos I mentioned for reference:




Cheers!
-Floh.
Reply all
Reply to author
Forward
0 new messages