wasm support for Qt3D
-
Re: Is Qt 5.12 for WebAssembly 3d module supported?
Hey there,
I was wondering if there are any plans to add wasm support for Qt3D. I saw that qt can now be compiled with the
-feature-thread
flag when configuring for wasm.Thanks,
Lorenz
-
I believe that Qt3D requires OpenGL desktop version, whereas, Qt Webssembly only supports OpenGL ES2/ES3.
-
Yes, because opengl calls get transpiled into WebGL, which is based on OpenGL ES 2/3, although has more strict rules.
You can get emscripten to emulate older desktop OpenGL 1 calls though.https://emscripten.org/docs/porting/multimedia_and_graphics/OpenGL-support.html
-
I believe that Qt3D requires OpenGL desktop version, whereas, Qt Webssembly only supports OpenGL ES2/ES3.
@lorn-potter
This post was done on Nov 2019: waht about the same question for now?
AFAIK, Qt3D no more depends on OpenGL: instead it renders via RHI backend.
So, is it possible now to make Qt3D work on WebAssembly?