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?
QtWS25 Last Chance

Example of OpenGL texture in Qt WebAssembly?

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
3 Posts 2 Posters 676 Views
  • 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.
  • SeishinS Offline
    SeishinS Offline
    Seishin
    wrote on last edited by
    #1

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

    1 Reply Last reply
    0
    • lorn.potterL Offline
      lorn.potterL Offline
      lorn.potter
      wrote on 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

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

        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

        SeishinS Offline
        SeishinS Offline
        Seishin
        wrote on 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

        • Login

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