Unsolved 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.
-
Thanks for the insights @lorn-potter. I indeed tried to configure Qt for wasm with the -opengl flag once and still only got ES2/ES3 support. I am pretty new to wasm. Are there any reasons why only ES2 and ES3 are supported?
-
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