Example of OpenGL texture in Qt WebAssembly?
Unsolved
Qt for WebAssembly
-
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
-
@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.