Has anyone successfully used three.js or threepp for 3D path drawing on QNX with Qt 6.x? (Worked in Qt 5.15, not worked in Qt 6.x)
-
Hi all,
I'm working on a project that involves drawing a 3D path using (x, y, z) coordinates, visualized in a Qt application on a QNX system.
Background:
In Qt 5.15, I was able to render and animate a 3D path using three.js (via web engine) and also with threepp, a C++20 port of three.js, in conjunction with QOpenGLWidget or QQuickFramebufferObject. Everything worked as expected on QNX.Issue:
After migrating to Qt 6.x (tested on 6.5/6.6/6.8), the same techniques no longer work. Either the rendering context fails to initialize, or 3D content is not displayed. This happens only on QNX—on Linux/Windows, everything is fine.Details:
QNX version: [7.1.0]
Qt version: [6.8.3]
Method used:
For Qt5: Used QOpenGLWidget to host threepp rendering, or QML WebEngineView to host three.js.
For Qt6: Tried the same, but facing rendering issues or blank widgets.
OpenGL is available and working for simple Qt/OpenGLWidget examples.
The code works with threepp or three.js in a web view on Linux/macOS/Windows, but not QNX + Qt6.
Questions:
Has anyone been able to use three.js (in web view) or threepp (C++ native) for 3D path drawing on QNX with Qt 6.x?
Are there any specific changes required for OpenGL or rendering context setup in Qt 6.x on QNX?
Are there known issues with QOpenGLWidget, QtQuick, or WebEngine on QNX in Qt 6.x?
Any tips or workaround to get 3D scene rendering (with live path updates) working again?
If you have a minimal working example, could you please share the project setup?
What I’ve tried:
Verified that QOpenGLWidget works for basic OpenGL code on QNX+Qt6.
Attempted to port working Qt 5.15+threepp/three.js code to Qt 6.x; failed to get 3D output.
Searched for QNX+Qt6+OpenGL/threepp compatibility notes but found nothing conclusive.
Any help or pointers would be appreciated!
-
S Shrishashank marked this topic as a regular topic on