Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for WebAssembly
  4. Qt 3D Application doesn't compile for Web Assembly
Forum Updated to NodeBB v4.3 + New Features

Qt 3D Application doesn't compile for Web Assembly

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
4 Posts 2 Posters 489 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • GilboonetG Offline
    GilboonetG Offline
    Gilboonet
    wrote on last edited by Gilboonet
    #1

    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.

    1 Reply Last reply
    0
    • GilboonetG Offline
      GilboonetG Offline
      Gilboonet
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • JasonWongJ Offline
        JasonWongJ Offline
        JasonWong
        wrote on last edited by JasonWong
        #3

        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.obj

        This program can dynamically load 3D model files, you just need to change the source parameter in the URL.

        GilboonetG 1 Reply Last reply
        0
        • JasonWongJ JasonWong

          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.obj

          This program can dynamically load 3D model files, you just need to change the source parameter in the URL.

          GilboonetG Offline
          GilboonetG Offline
          Gilboonet
          wrote on last edited by
          #4

          @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.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved