Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. The Lounge
  4. Qt3D C++ learning sources?
QtWS25 Last Chance

Qt3D C++ learning sources?

Scheduled Pinned Locked Moved Solved The Lounge
qt3d
8 Posts 4 Posters 1.5k Views
  • 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.
  • artwawA Offline
    artwawA Offline
    artwaw
    wrote on last edited by
    #1

    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
    0
    • JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by
      #2

      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

      artwawA 1 Reply Last reply
      0
      • JoeCFDJ JoeCFD

        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

        artwawA Offline
        artwawA Offline
        artwaw
        wrote on last edited by
        #3

        @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

        JoeCFDJ 1 Reply Last reply
        0
        • artwawA artwaw

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

          JoeCFDJ Offline
          JoeCFDJ Offline
          JoeCFD
          wrote on last edited by JoeCFD
          #4

          @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

          artwawA 1 Reply Last reply
          0
          • JoeCFDJ 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

            artwawA Offline
            artwawA Offline
            artwaw
            wrote on last edited by
            #5

            @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

            kshegunovK 1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              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
              1
              • artwawA artwaw

                @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!

                kshegunovK Offline
                kshegunovK Offline
                kshegunov
                Moderators
                wrote on last edited by
                #7

                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

                artwawA 1 Reply Last reply
                3
                • kshegunovK kshegunov

                  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. :)

                  artwawA Offline
                  artwawA Offline
                  artwaw
                  wrote on last edited by
                  #8

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

                  For more information please re-read.

                  Kind Regards,
                  Artur

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved