Unsolved Using 3D objects on PyQt5
-
Hello There;
I want to use 3D objects in PyQt5 but this object will not be something easy to draw, that will be some kind of vehicle. Therefore I need some kind of library or framework that I can draw my vehicle or I can upload its STL format file. Unfortunately I could not find any response that will meet my needs in forums or in web pages. Most of the informations are about drawing the easy objects like cubes by codes, but as I told you that is impossible for me, so I am waiting for your answers.
Thanks in advance for everyone who will care :)) -
Hi,
Are you thinking about the Qt3D module ?
-
@SGaist said in Using 3D objects on PyQt5:
Qt3D
Thanks, but I am using PyQt5 I have no idea how to implement these codes to PyQt5, I do not even know if it is possible actually.
-
I am not an expert, but I am told that you can try to convert STL to glTF using https://github.com/ux3d/2gltf2 .
Then, it can be imported into Qt Design Studio (see https://doc.qt.io/qtdesignstudio/studio-importing-3d.html ) or used in Quick3D (see https://doc-snapshots.qt.io/qt6-dev/qml-qtquick3d-assetutils-runtimeloader.html ).
(all assuming using Qt 6). -
@friedemannkleint Thank you so much, but can I use Qt Design Studio for PyQt5 gui development? I thought I can use Design Studio(or Quick3D) only for PySide libraries.
-
We are now at Qt 6; I am not sure if there is an old version of Qt Design Studio for Qt 5. We ofc recommend PySide6.