Results 1 to 2 of 2

Thread: HTML elements in WebGL 3D context?

  1. #1
    Junior Member
    Join Date
    Nov 2010
    Posts
    1

    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?

    Thanks,
    Felix

  2. #2
    Junior Member
    Join Date
    Aug 2010
    Posts
    17

    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)

Similar Threads

  1. WebGL - HTML & JS
    By kavi in forum WebGL - General
    Replies: 1
    Last Post: 11-30-2011, 07:39 AM
  2. Including HTML / DOM Elements?
    By DabeDotCom in forum WebGL - General
    Replies: 1
    Last Post: 12-11-2009, 03:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •