Results 1 to 2 of 2

Thread: Including HTML / DOM Elements?

  1. #1
    Junior Member
    Join Date
    Dec 2009

    Including HTML / DOM Elements?

    I'm glad to hear WebGL is moving forward in the standards process!

    I do have a (stupid) newbie question, though... I totally understand the typical use cases for rendering 3D images/artwork within the browser. What I'm curious about, though, is whether WebGL will allow me to, for example, create a rectangular polygon, and include a snippet of InnerHTML to display within it.

    A picture's worth a thousand words -- even this crappy, quickly-thrown-together mock-up of Yahoo!'s homepage:

    Will WebGL help me style an HTML page like that, or do I have to hold my breath and wait for css3-3d-transforms?


    :- Dabe

  2. #2
    Member Coolcat's Avatar
    Join Date
    Oct 2009
    NRW, Germany

    Re: Including HTML / DOM Elements?

    Currently you can use images, other canvas elements (e.g 2D-Canvas or another WebGL-Canvas) and even videos (using the video-Tag) as texture. If you find a way to render your webpage into an JavaScript-Image-Object this could work. Maybe the browser has some kind of screenshot function?

    Another approach:
    The 2D-Canvas is able to render text and images. You could theoretically write your own browser implementation with displays a webpage inside a 2D-Canvas. Then you can use that canvas as texture. However, this would probably work, but far to slow to be useful.

Similar Threads

  1. The problem of including OpenMAXAL_IID.h
    By JaeUnHong in forum OpenMAX
    Replies: 1
    Last Post: 05-29-2008, 07:40 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
Proudly hosted by Digital Ocean