[Qt3D] Custom shader not working anymore in Qt6.3+
-
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.mdThat'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:
The same project built with 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!
-
@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.htmlI 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.