Results 1 to 2 of 2

Thread: HTML elements in WebGL 3D context?

  1. #1
    Junior Member
    Join Date
    Nov 2010

    HTML elements in WebGL 3D context?

    I want to render a HTML snippet, say, a single paragraph of formatted text or an entire webpage, as part of a 3D scene using WebGL. The idea is to have the HTML snippet rendered into a texture and then map that texture to any surface (or simply a quad).

    Is there any way to do this in WebGL? Is it part of the standard? Do some browsers support this as a proprietary extension?


  2. #2
    Junior Member
    Join Date
    Aug 2010

    Re: HTML elements in WebGL 3D context?

    AFAIK you could use canvas.toDataUrl which returns image element. And then try to set canvas position and dimension in the way that it covers needed html elements.
    (I'm not sure if it'll work)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean