ultralight-ux / Ultralight

Lightweight, high-performance HTML renderer for game and app developers.
https://ultralig.ht
4.65k stars 196 forks source link

Integrating C++ 3D rendered content into ultralight-rendered web content #289

Open drywolf opened 3 years ago

drywolf commented 3 years ago

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

equalent commented 3 years ago

Hello. I think you're talking about #277. When it's implemented, you'll be able to pass any 2D GPU image as an HTML image.

drywolf commented 3 years ago

Thanks @equalent Yes this indeed sounds very much like what I had in mind 👍