jeromeetienne / threex.htmlmixer

three.js extension to seemlessly integrate dom elements in your webgl

Home Page:http://jeromeetienne.github.io/threex.htmlmixer/examples/demo.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Specific to iFrames and planes

rihok opened this issue · comments

Hey,

I like this plugin, however the problem I have is that it is way too specific to iframes and planes. I would like to pull in any HTML (for example DOM elements in the page) and also apply the texture to any geometry and UV map that texture into any shape. All the while having the HTML still dynamic and interactable.

With that, one could create dynamic 3D interface elements.

unfortunatly i dont see how it would be possible with current web technology.

Of course it is. What you do is take a DOM element, render it to a texture and use that texture on an object which has been UV mapped to fit the texture. Making the texture update every frame might be expensive though.

i wish you good luck doing it.

On Wed, Apr 8, 2015 at 4:48 PM Riho Kroll notifications@github.com wrote:

Of course it is. What you do is take a DOM element, render it to a texture
and use that texture on an object which has been UV mapped to fit the
texture. Making the texture update every frame might be expensive though.


Reply to this email directly or view it on GitHub
#3 (comment)
.