JoeB Posted August 9, 2014 Share Posted August 9, 2014 Hello, is it possible to put an iframe on an object in Babylon.js ? LIke a TV screen on a wall for example. Quote Link to comment Share on other sites More sharing options...
Dad72 Posted August 9, 2014 Share Posted August 9, 2014 yes with "video textures" http://blogs.msdn.com/b/eternalcoding/archive/2013/06/27/babylon-js-a-complete-javascript-framework-for-building-3d-games-with-html-5-and-webgl.aspx plan.material.diffuseTexture = new BABYLON.VideoTexture("video", ["Scenes/Flat2009/babylonjs.mp4", "Scenes/Flat2009/babylonjs.webm"], 256, scene, true); Quote Link to comment Share on other sites More sharing options...
JoeB Posted August 10, 2014 Author Share Posted August 10, 2014 Thank you, but I am not talking about a texture. What I am talking about is an iframe HTML element to embed a web page in 3d world that the user can interact with. here is a link to a description of an iframe. http://www.w3schools.com/html/html_iframe.asp http://www.w3schools.com/tags/tag_iframe.asp Quote Link to comment Share on other sites More sharing options...
Dad72 Posted August 10, 2014 Share Posted August 10, 2014 I know what an iframe, I'm using 10 years, thanks. but when you were talking about a TV on a wall screen, I thought it would be exactly what you need without using an iframe. I shown you an alternative solution to a television screen. You can not html element integrated into a 3D object directly. This could be an interesting idea has requested to Deltakosh to be able to attach html elements on objects 3d. Quote Link to comment Share on other sites More sharing options...
Wingnut Posted August 11, 2014 Share Posted August 11, 2014 Hi JoeB, welcome to the forum. (Hi to Dad72, as well) This comment might apply - http://www.html5gamedevs.com/topic/2571-the-wingnut-chronicles/?p=45699 Maybe visit the discussion link that Fluffrabbit provided there. It's not an identical topic, but it's close, and the same problems apply, I suspect. Deltakosh MacGyver can create a nuclear reactor from match sticks and rubber bands (a miracle worker), but putting fully operational and styleable DOM nodes... onto mesh... might be blocked by forces beyond his control. An iframe as a mesh texture would be sweet, though. Too much fun. Recursion fun too, as the iframed document might contain another canvas... with an iframed document that contains another canvas... with an iframed document that contains another canvas, etc etc. Be well, you guys. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 11, 2014 Share Posted August 11, 2014 I confirm what you said Winggy:) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.