Is it possible to render HTML elements in Canvas or WebGL? (similar to how one can draw a video element texture in WebGL)
Use this library https://github.com/PixelsCommander/HTML-GL it is as easy as wrap your content with <html-gl>
tag.
There is an attempt that can do the work near 80%. Fail to render dropdownlist, buttons and some more, but mostly items from the page are rendered.
See and download it from here.
http://html2canvas.hertzen.com/
also
http://hertzen.com/experiments/jsfeedback/
You should also check out http://robert.ocallahan.org/2011/11/drawing-dom-content-to-canvas.html
It might throw a security error in Chrome but works fine in Firefox.
No, it's currently not possible, not yet. But it is planned to include this functionality as pointed out in a video from 3rd WebGL Camp (at about 6:44).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With