Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. wasm support for Qt3D

wasm support for Qt3D

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
5 Posts 3 Posters 990 Views 3 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.
  • L Offline
    L Offline
    LorenzE
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    1
    • lorn.potterL Offline
      lorn.potterL Offline
      lorn.potter
      wrote on last edited by
      #2

      I believe that Qt3D requires OpenGL desktop version, whereas, Qt Webssembly only supports OpenGL ES2/ES3.

      Freelance Software Engineer, Platform Maintainer QtWebAssembly, Maintainer QtSensors
      Author, Hands-On Mobile and Embedded Development with Qt 5 http://bit.ly/HandsOnMobileEmbedded

      D 1 Reply Last reply
      0
      • L Offline
        L Offline
        LorenzE
        wrote on last edited by
        #3

        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?

        1 Reply Last reply
        0
        • lorn.potterL Offline
          lorn.potterL Offline
          lorn.potter
          wrote on last edited by
          #4

          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

          Freelance Software Engineer, Platform Maintainer QtWebAssembly, Maintainer QtSensors
          Author, Hands-On Mobile and Embedded Development with Qt 5 http://bit.ly/HandsOnMobileEmbedded

          1 Reply Last reply
          1
          • lorn.potterL lorn.potter

            I believe that Qt3D requires OpenGL desktop version, whereas, Qt Webssembly only supports OpenGL ES2/ES3.

            D Offline
            D Offline
            Delphi251189
            wrote on last edited by
            #5

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

            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