What would be the recommended way to integrate some 3D content that was rendered by a game-engine (let's say the result is then stored in a GPU texture) into interactive web-content within a certain web-widget, for example a designated "<div>" tag.
What I had in mind when I came to this question is to have dockable JS widgets (like http://golden-layout.com/) and within each of those dockable widgets I imagine to have a GPU render-target texture that is concurrently being rendered from some 3D scene in my C++ graphics engine.
How would someone do that in a robust manner ?
several potential challenges come to mind:
proper z-layering/z-indexing between web-content and the drawn 3D "viewports"
avoid any flickering during drag/resize of the JS widgets
What would be the recommended way to integrate some 3D content that was rendered by a game-engine (let's say the result is then stored in a GPU texture) into interactive web-content within a certain web-widget, for example a designated
"<div>"
tag.What I had in mind when I came to this question is to have dockable JS widgets (like http://golden-layout.com/) and within each of those dockable widgets I imagine to have a GPU render-target texture that is concurrently being rendered from some 3D scene in my C++ graphics engine. How would someone do that in a robust manner ?
several potential challenges come to mind:
Thanks