-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Firstly I wish to share a big thank you for your really great contribution and work across PyGFX. For the first time, I have come across a viable alternative 3D UI framework for general programming and also specifically for use with Python. Generally, there are really are no alternatives except three.js (Three React Fiber), which are inadequate for both scientific and desktop programming. Additionally, it would be nice in future if there was a community section on your website to share examples usage.
Specifically on the topic:
I am working on integrating pygfx into a qml/qtquick environment. Initial tests are quite promising.
The reason behind is QtQuick3D is clunky, difficult to customise (especially for scientific applications) and shares the similar issues with Qt3D, which I previoulsy used in the past. Also its license is undesirable.
I would like to directly use the native render surface that can be drawn asynchronously with a QtQuick environment compared to a QtWidget backend.
I have found it is possible to render this via a QImage on a paintEvent in QQuickPaintedItem but appears slow and is both CPU/GPU heavy during dynamic call canges. I was wondering whether via QRhi from PySide6, it is possible to obtain the render context and directly draw within the QtQuickAppliction window like below:
https://doc.qt.io/qtforpython-6/examples/example_quick_scenegraph_openglunderqml.html
and a follow-on QRhi example:
https://doc.qt.io/qtforpython-6/examples/example_gui_rhiwindow.html
Thank you once again,
Luke