Qt3D C++ learning sources?
-
Good afternoon,
since I seem to have too much of a spare time I decided to try to learn a bit of 3D, Qt way. Considering I know very little to almost nothing of the subject of 3D open gl programming in general (I know how to use Blender to model and render and that's it) I found the sources and tutorials in Qt documentation, sadly, lacking. Can some good soul point me towards books or other learning sources that would allow me to understand how to use Qt 3D with C++?It is deeply frustrating for me not being able to comprehend the absolute basics.
Many thanks in advance,
A. -
@JoeCFD Thank you but that's a bit on the side of what I asked.
I managed, for one, to load .obj of a model I created in the blender, zoom in and out work out of the box. But I cannot seem to manage to load a texture on that .obj, setup light colour , even load a background flat mesh to work as a background.
Do you think that reverse engineering opencv or vtk will help here? Half way through what I did I was like "what on earth am I doing and why the example is constructed the way it is".
-
Hi,
@JoeCFD VTK is a visualization toolkit while OpenCV is a computer vision library. They are unrelated to the Qt3D module which aims to be a general purpose module to implement 3D based applications be it a 3D game engine or simple rendering tool.
@artwaw you should also look resources from KDAB, they are behind the current incarnation of the module.
-
Besides various blog posts these sources may be useful:
https://github.com/qgis/QGIS/tree/master/src/3d
https://code.woboq.org/qt5/qt3d/tests/manual/
https://github.com/wonder-sk/qt3d-experiments
https://github.com/unclejimbo/Klein
https://code.qt.io/cgit/qt/qt3d.git/tree/examples/qt3dAlso this thread includes some information and links you may be interested in.
https://www.mail-archive.com/interest@qt-project.org/msg35474.htmlBasically in my experience you just read the sources and reverse engineer the library. Good luck. :)