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. Example of OpenGL texture in Qt WebAssembly?
Forum Updated to NodeBB v4.3 + New Features

Example of OpenGL texture in Qt WebAssembly?

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
3 Posts 2 Posters 779 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.
  • S Offline
    S Offline
    Seishin
    wrote on 23 Nov 2021, 08:27 last edited by
    #1

    I wonder is there any example that demonstrates OpenGL texture rendering in Qt WebAssembly?

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lorn.potter
      wrote on 24 Nov 2021, 19:26 last edited by
      #2

      You mean perhaps something like this?
      lpotter.github.io/particles3d/particles3d.html

      you will have to reload the app if you push the left arrow button due to some bug.

      or perhaps this? https://s3.eu-west-2.amazonaws.com/wasm-qt-examples/last/index.html

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

      S 1 Reply Last reply 29 Nov 2021, 22:00
      2
      • L lorn.potter
        24 Nov 2021, 19:26

        You mean perhaps something like this?
        lpotter.github.io/particles3d/particles3d.html

        you will have to reload the app if you push the left arrow button due to some bug.

        or perhaps this? https://s3.eu-west-2.amazonaws.com/wasm-qt-examples/last/index.html

        S Offline
        S Offline
        Seishin
        wrote on 29 Nov 2021, 22:00 last edited by
        #3

        @lorn-potter Yes I want to do something like put a texture on the cube surface in WebAssembly. Could I ask what Qt components should I use?

        Currently I tried QQuickFramebufferObject and QQuickItem (following the "Scene Graph - OpenGL Under QML" example), but haven't get a successful texture rendering in Chrome browser on Ubuntu 20.04 (Qt version 5.15.2). I also tried without WebAssembly using QOpenGLWidget, in this way the texture works normal.

        1 Reply Last reply
        0

        3/3

        29 Nov 2021, 22:00

        • Login

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