Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. [Qt3D] Custom shader not working anymore in Qt6.3+

[Qt3D] Custom shader not working anymore in Qt6.3+

Scheduled Pinned Locked Moved Unsolved Game Development
3 Posts 2 Posters 594 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.
  • A Offline
    A Offline
    AntiXeon
    wrote on last edited by
    #1

    Hi,
    I am working on a 3D app in which I have created an infinite 3D grid using Qt3D. I have so written a custom shader that perfectly works when compiling the project with Qt6.2. However, the same code does not show the grid anymore with Qt6.3 and next.
    I have looked for changes in the release logs of Qt6.3 but it seems that there is no remarquable change on the Qt3D module for this version.
    https://code.qt.io/cgit/qt/qtreleasenotes.git/about/qt/6.3.0/release-note.md
    https://code.qt.io/cgit/qt/qtreleasenotes.git/about/qt/6.3.1/release-note.md

    That's why I do not understand why the grid is not visible anymore, as there is no warning or error message in the logs of the app. Could this be a bug from the Qt3D module?

    The rendering when the project is built with Qt6.2:
    Grid using Qt6.2

    The same project built with Qt6.3:
    No grid using Qt6.3

    I share here a sample of the code if you are interested in looking at this issue: https://github.com/dcarlus/Qt3DShaderIssue

    Thank you for any help!

    JoeCFDJ 1 Reply Last reply
    0
    • A AntiXeon

      Hi,
      I am working on a 3D app in which I have created an infinite 3D grid using Qt3D. I have so written a custom shader that perfectly works when compiling the project with Qt6.2. However, the same code does not show the grid anymore with Qt6.3 and next.
      I have looked for changes in the release logs of Qt6.3 but it seems that there is no remarquable change on the Qt3D module for this version.
      https://code.qt.io/cgit/qt/qtreleasenotes.git/about/qt/6.3.0/release-note.md
      https://code.qt.io/cgit/qt/qtreleasenotes.git/about/qt/6.3.1/release-note.md

      That's why I do not understand why the grid is not visible anymore, as there is no warning or error message in the logs of the app. Could this be a bug from the Qt3D module?

      The rendering when the project is built with Qt6.2:
      Grid using Qt6.2

      The same project built with Qt6.3:
      No grid using Qt6.3

      I share here a sample of the code if you are interested in looking at this issue: https://github.com/dcarlus/Qt3DShaderIssue

      Thank you for any help!

      JoeCFDJ Online
      JoeCFDJ Online
      JoeCFD
      wrote on last edited by
      #2

      @AntiXeon I tried your code with Qt6.5 on Ubuntu 22.04 and am not able to see the picture as well. You have to try their examples and figure that out. I guess they are making a lot of changes.

      A 1 Reply Last reply
      0
      • JoeCFDJ JoeCFD

        @AntiXeon I tried your code with Qt6.5 on Ubuntu 22.04 and am not able to see the picture as well. You have to try their examples and figure that out. I guess they are making a lot of changes.

        A Offline
        A Offline
        AntiXeon
        wrote on last edited by
        #3

        @JoeCFD Thank you for having tested the sample on Linux!
        The Qt examples of custom shaders work fine on both Qt6.2 and Qt6.3. However, I notice that the rendering of the "advanced custom shader" is different with Qt6.3 although they haven't logged changes in Qt3D for this version of Qt (only the Qt Quick 3D module has changed but it is unlinked to Qt3D).
        https://doc.qt.io/qt-6/whatsnew63.html

        I will continue to investigate on my side before submitting the bug to the Qt team if I cannot find any reason to it. No change in Qt3D should not break Qt3D apps.

        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