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:

http://floooh.github.io/oryol-samples/asmjs/ImGuiDemo.html

http://floooh.github.io/oryol-samples/asmjs/NuklearUIBasic.html

http://floooh.github.io/oryol-samples/asmjs/TurboBadgerDemo.html

Cheers!
-Floh.


Am Freitag, 7. April 2017 23:11:06 UTC+2 schrieb Bill Yan:
>
> Hello,
>
> I'd like to show you my old opengl es 2 gui library ported to WASM, with a 
> live demo.
>
> Thanks!
>
> http://shi-yan.github.io/AssortedWidgets/
>
> <https://github.com/shi-yan/AssortedWidgets/raw/master/docs/screenshot.png>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to