area9innovation / flow9

Platform for safe, easy and productive programming of complex, multi-platform apps with a modern user interface
Other
567 stars 35 forks source link

UI overlay in 3D applications (OpenGL/Vulkan) #203

Open manhnt9 opened 5 years ago

manhnt9 commented 5 years ago

Can Flow9 render on top of a 3D application? It would be great if people can use Flow9 to develop GUI for games and other types of 3D applications.

alstrup commented 5 years ago

You can render 3d in flow itself using the M3DStage and friends. See "tests/monster3dtest.flow" and friends. flow renders using pixijs, which renders into a canvas. You should be able to have something below that canvas if you make your own HTML wrapper. We could consider to add a mode to the HTML target, which would render so flow renders inside a specific div, which could be placed above your own stuff. Would that be helpful?

If you mean in the c++ target, then it is more tricky, since right now, the c++ runner does not exist as a library you can link into other apps.

manhnt9 commented 5 years ago

We'd love to have a module that can render GUI overlaying 3D scene rendered by our engine. This GUI project is very promising to me. I'm watching. Looking forward to new features!