Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Show a 3d point cloud with shaders
Forum Updated to NodeBB v4.3 + New Features

Show a 3d point cloud with shaders

Scheduled Pinned Locked Moved Solved QML and Qt Quick
5 Posts 3 Posters 1.4k Views 1 Watching
  • 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.
  • O Offline
    O Offline
    oria66
    wrote on 23 Aug 2018, 13:06 last edited by
    #1

    Hello!! I'm trying to show a point cloud in my QML app. I try to use a Scatter3D but the point size it's too large, and the change the color for every point it's kind of very complicated and slow performance. Besides, apps like Cloud Compare don't use Scatter3D or something like that. I checked the Qml Cadaques Chapter about shaders but without achieving anything.

    The problem this:

    1. I check the Qt examples but the lack of documentation plays against the community.
    2. How is the structure of this kind of use in Qt3D in order to use the vertex shaders and the fragment shaders for this application?
    3. Can you provide a simple example?

    Thank you in advance!

    The truth is out there

    D 1 Reply Last reply 25 Aug 2018, 02:42
    0
    • O oria66
      23 Aug 2018, 13:06

      Hello!! I'm trying to show a point cloud in my QML app. I try to use a Scatter3D but the point size it's too large, and the change the color for every point it's kind of very complicated and slow performance. Besides, apps like Cloud Compare don't use Scatter3D or something like that. I checked the Qml Cadaques Chapter about shaders but without achieving anything.

      The problem this:

      1. I check the Qt examples but the lack of documentation plays against the community.
      2. How is the structure of this kind of use in Qt3D in order to use the vertex shaders and the fragment shaders for this application?
      3. Can you provide a simple example?

      Thank you in advance!

      D Offline
      D Offline
      Diracsbracket
      wrote on 25 Aug 2018, 02:42 last edited by Diracsbracket
      #2

      @oria66 said in Show a 3d point cloud with shaders:

      apps like Cloud Compare don't use Scatter3D or something like that

      I've just downloaded and built Cloud Compare on my Win10, VS2017 and Qt5.11 system for Win64, and it was a breeze. Since its base is completely self-contained (if you include Qt that is), open and based on Qt/OpenGL, can't you have a look at the source code and follow the same approach? Of course, I know that it is easier said than done...

      1 Reply Last reply
      0
      • O Offline
        O Offline
        oria66
        wrote on 25 Aug 2018, 12:14 last edited by
        #3

        @Diracsbracket thank you for sharing your approach. I will try. If I achieve something I will post it here. It's kind of confusing this part when you try to learn Qt deeply.

        Again, if anyone knows how to do it in a simple way. Please, I will like to hear your solution.

        The truth is out there

        1 Reply Last reply
        0
        • O Offline
          O Offline
          oria66
          wrote on 6 May 2021, 03:16 last edited by
          #4

          Well 3 years later. With the new Qt Quick 3D module is pretty easy to show a 3D point cloud "without" shaders.

          The truth is out there

          1 Reply Last reply
          0
          • D Offline
            D Offline
            djdan
            wrote on 21 Jul 2022, 21:34 last edited by
            #5

            Hi! Could you describe how you did it? I cannot use "points" custom geometry, due to small size of points (and cannot change their size because there are some Direct3D limitations, as stated in docs: https://doc.qt.io/qt-6/qml-qtquick3d-defaultmaterial.html#pointSize-prop )

            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