Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved Qt3D C++ learning sources?

    The Lounge
    qt3d
    4
    8
    503
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • artwaw
      artwaw last edited by

      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.

      For more information please re-read.

      Kind Regards,
      Artur

      1 Reply Last reply Reply Quote 0
      • JoeCFD
        JoeCFD last edited by

        VTK and OpenCV have done a lot of 3D stuff. Qt 3D came much later(unfortunately), therefore does not have a lot of 3D features. You may check the source code of VTK and OpenCV and implement some of their 3D features in Qt 3D

        artwaw 1 Reply Last reply Reply Quote 0
        • artwaw
          artwaw @JoeCFD last edited by

          @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".

          For more information please re-read.

          Kind Regards,
          Artur

          JoeCFD 1 Reply Last reply Reply Quote 0
          • JoeCFD
            JoeCFD @artwaw last edited by JoeCFD

            @artwaw So much has been done in vtk and openCV. Why do you start from scratch?
            Go here to find some examples:
            https://github.com/search?q=3D+rendering+in+qt

            artwaw 1 Reply Last reply Reply Quote 0
            • artwaw
              artwaw @JoeCFD last edited by

              @JoeCFD said in Qt3D C++ learning sources?:

              Why do you start from scratch?

              To learn the basic principle behind Qt3D in Qt, of course. I'll take a look, of course. Thank you!

              For more information please re-read.

              Kind Regards,
              Artur

              kshegunov 1 Reply Last reply Reply Quote 0
              • SGaist
                SGaist Lifetime Qt Champion last edited by

                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.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply Reply Quote 1
                • kshegunov
                  kshegunov Moderators @artwaw last edited by

                  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/qt3d

                  Also this thread includes some information and links you may be interested in.
                  https://www.mail-archive.com/interest@qt-project.org/msg35474.html

                  Basically in my experience you just read the sources and reverse engineer the library. Good luck. :)

                  Read and abide by the Qt Code of Conduct

                  artwaw 1 Reply Last reply Reply Quote 3
                  • artwaw
                    artwaw @kshegunov last edited by

                    Thank you for the input, I shall dive into this.

                    For more information please re-read.

                    Kind Regards,
                    Artur

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post