4 ms·
This project(at least for me) is a little bit misleading. Because it isn't rendering HTML using WebGL. It using html2canvas[0] to rasterize the browser renderi
by SoapSeller 12y ago
This project(at least for me) is a little bit misleading.
Because it isn't rendering HTML using WebGL.
It using html2canvas[0] to rasterize the browser rendering into a canvas, upload it to WebGL, apply effects and patch-back events(i.e. mouse clicks) back to the hidden browser dom elements.
(On the other side, font hinting and such are not really a problem)
Implementing full UI framework over WebGL has it merits, and hopefully someone will make a useful(and not html+css based) one some day.
[0] https://github.com/niklasvh/html2canvas https://github.com/niklasvh/html2canvas
- Polarity 12y agou know http://famo.us http://famo.us ?
- kowdermeister 12y agoFamous is CSS based, not WebGL
- liviu 12y agoActually it has WebGL renderer. Famo.us is the only JavaScript framework that includes an open source 3D layout engine fully integrated with a 3D physics animation engine that can render to DOM, Canvas, or WebGL.
- argonaut 12y agoActually it doesn't. Have you actually used famo.us? You do realize you're just quoting the website copy. Famo.us doesn't have WebGL rendering yet.
- jiyinyiyong 12y agoThey've shown demos of WebGL renderer. It's called "Mixed mode" as I can remember. But it's probably not released yet.
- j1e 12y ago^ really cool - thanks!
- fapjacks 12y agoYet another instance of html2canvas being used to do something interesting. It's the library I have been surprised by more than any other, for any language.
- macspoofing 12y ago>Implementing full UI framework over WebGL has it merits, and hopefully someone will make a useful(and not html+css based) one some day I'm surprised it hasn't been done already (in similar spirit to the Feathers framework for Flash's Stage3D). Now that WebGL is supported in Mobile WebView, maybe you'll see a really good component set released? That would give devs a really slick option for building smooth phone-gap based apps.