Example of OpenGL texture in Qt WebAssembly?
-
wrote on 23 Nov 2021, 08:27 last edited by
I wonder is there any example that demonstrates OpenGL texture rendering in Qt WebAssembly?
-
wrote on 24 Nov 2021, 19:26 last edited by
You mean perhaps something like this?
lpotter.github.io/particles3d/particles3d.htmlyou will have to reload the app if you push the left arrow button due to some bug.
or perhaps this? https://s3.eu-west-2.amazonaws.com/wasm-qt-examples/last/index.html
-
You mean perhaps something like this?
lpotter.github.io/particles3d/particles3d.htmlyou will have to reload the app if you push the left arrow button due to some bug.
or perhaps this? https://s3.eu-west-2.amazonaws.com/wasm-qt-examples/last/index.html
wrote on 29 Nov 2021, 22:00 last edited by@lorn-potter Yes I want to do something like put a texture on the cube surface in WebAssembly. Could I ask what Qt components should I use?
Currently I tried QQuickFramebufferObject and QQuickItem (following the "Scene Graph - OpenGL Under QML" example), but haven't get a successful texture rendering in Chrome browser on Ubuntu 20.04 (Qt version 5.15.2). I also tried without WebAssembly using QOpenGLWidget, in this way the texture works normal.
2/3