Ask HN: Alternative 2D or non-html non-DOM-based layout engines?
(Doesn't have to be web based or in the browser)
Perhaps something based on 2D painting/canvas.
Game and physics engines are so powerful. They can render so much visual detail with high frame rates.
I want that kind of rendering power applied to UI/layout.
I can just paint a canvas in a loop like in a game, but that's too manual and tedious for layout and text handling without things like box models and CSS.
Use cases are many but imagine an editor for scientific work where you need to render a visualisation of millions of particles and so on.
I know I can have some basic stuff in HTML/CSS for example, and then stick that heavy stuff into a little box with WebGL and things of that nature.
I'm curious if there's a nicer technology out there that's basically as powerful as the fancy video game graphics, except it applies that power to layout/grid/UI/GUI/etc for use cases where the basic HTML/CSS/DOM is not enough.
5 comments
[ 4.7 ms ] story [ 18.9 ms ] threadhttps://arxiv.org/pdf/1401.1031.pdf
http://doc.qt.io/qt-5/layout.html
They may be different from physics engine,
But there are already companies who have integrated physics into ui, such as
https://www.raywenderlich.com/50197/uikit-dynamics-tutorial
https://www.youtube.com/watch?v=M0ODskdEPnQ
https://www.youtube.com/watch?v=6jhoWsHwU7w
https://bumptop.github.io
https://www.wired.com/2013/02/amazing-3d-desktop/
they certainly used game/physics engine, but they didn't use it for layout.
Or do I have to make it all from scratch?
(Not familiar with game engines)
Conversely, most gui frameworks provide an OpenGL widget you can build an app around; qt, swing with jogl or lwjgl, etc. lots of options here.