Qt 3D Application doesn't compile for Web Assembly
-
Hello, I'm currently adding 3d functionalities to a QT C++ Application compiled with Web Assembly, but apparently some libraries are not available :
here is the message I had :
Project error : unknown modules in QT : 3dcore 3drender 3dinput 3dextras.I went to https://doc.qt.io/qt-6/topics-graphics.html and it clearly shows that only Qt Quick 3D works. Well I suppose that the only way for me to have my application using 3D would be to use QT Quick. I will take a look at QML but C++ is already a new language for me.
-
I just tried the Cube OpenGL Es 2.0 example and it works on Web Assembly, so I will try to use it to make my 3D view even if I'm not sure that I could use it for picking, but first I need to see if I can change its code to make it display a .obj or at least my dataset.
-
I develop 3D software using OpenGL/ES/WebGL, which can work normally under Qt/wasm. Here is the test URL:
https://web.jasonserver.com:10035/PBViewerEmbed/PBViewerEmbed.html?source=https%3A%2F%2Fweb.jasonserver.com%3A10035%2Fdata%2FPerson.objThis program can dynamically load 3D model files, you just need to change the source parameter in the URL.
-
I develop 3D software using OpenGL/ES/WebGL, which can work normally under Qt/wasm. Here is the test URL:
https://web.jasonserver.com:10035/PBViewerEmbed/PBViewerEmbed.html?source=https%3A%2F%2Fweb.jasonserver.com%3A10035%2Fdata%2FPerson.objThis program can dynamically load 3D model files, you just need to change the source parameter in the URL.
@JasonWong Thank you, that's promising. Apparently it misses the meta to allow cross origin requests so I couldn't test it with another file, but it's nice to know that it is possible even if I'm unsure that I could code using OpenGL that is far beyond my skills.