Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Maximum spheres that can be displayed in Qt3D.
Forum Updated to NodeBB v4.3 + New Features

Maximum spheres that can be displayed in Qt3D.

Scheduled Pinned Locked Moved Unsolved General and Desktop
12 Posts 4 Posters 1.1k Views 3 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.
  • S Offline
    S Offline
    surajj4837
    wrote on last edited by
    #3

    Thanks @artwaw for your reply. I observed the memory usage for multiple runs, the program is consuming ~3.7GB of RAm and I have a 16GB RAM machine.

    kshegunovK 1 Reply Last reply
    0
    • S surajj4837

      Thanks @artwaw for your reply. I observed the memory usage for multiple runs, the program is consuming ~3.7GB of RAm and I have a 16GB RAM machine.

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

      Don't put so many geometries in a scene, you couldn't possibly draw them anyway.

      Read and abide by the Qt Code of Conduct

      O 1 Reply Last reply
      2
      • kshegunovK kshegunov

        Don't put so many geometries in a scene, you couldn't possibly draw them anyway.

        O Offline
        O Offline
        ofmrew
        wrote on last edited by
        #5

        @kshegunov One solution is to put the spheres in a spatial database and only draw those that are within some space.

        kshegunovK 1 Reply Last reply
        0
        • O ofmrew

          @kshegunov One solution is to put the spheres in a spatial database and only draw those that are within some space.

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

          @ofmrew said in Maximum spheres that can be displayed in Qt3D.:

          @kshegunov One solution is to put the spheres in a spatial database and only draw those that are within some space.

          A k-d tree, possibly, but how you store them is really beside the point. The OpenGL API puts a limit on the indirect indexing of vertices at 32k, so you can't possibly have as many points in a mesh. If they are different meshes, then that means millions of draw calls and data flushes to the OGL pipeline, which is going to take forever anyway.

          Read and abide by the Qt Code of Conduct

          1 Reply Last reply
          4
          • S Offline
            S Offline
            surajj4837
            wrote on last edited by
            #7

            But this a simple rendering of spheres, I have seen more complex rendering using Qt. Here is an example. How this is possible and current sphere plotting problem not?

            kshegunovK 1 Reply Last reply
            0
            • S surajj4837

              But this a simple rendering of spheres, I have seen more complex rendering using Qt. Here is an example. How this is possible and current sphere plotting problem not?

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

              @surajj4837 said in Maximum spheres that can be displayed in Qt3D.:

              But this a simple rendering of spheres, I have seen more complex rendering using Qt. Here is an example.

              This makes no sense. The visual appearance is irrelevant, the only thing that matters is how much draw primitives you have/are using.

              How this is possible and current sphere plotting problem not?

              Did you read my last post?

              Read and abide by the Qt Code of Conduct

              1 Reply Last reply
              1
              • S Offline
                S Offline
                surajj4837
                wrote on last edited by surajj4837
                #9

                Thanks @kshegunov, I read your last post but still I had that doubt of complexity of scenario.

                kshegunovK 1 Reply Last reply
                0
                • S surajj4837

                  Thanks @kshegunov, I read your last post but still I had that doubt of complexity of scenario.

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

                  @surajj4837 said in Maximum spheres that can be displayed in Qt3D.:

                  Thanks @kshegunov, I read your last post but still I had that doubt of complexity of scenario.

                  You claim that because addition is much, much simpler than division, then a quadrillion additions should be simpler than a few billion divisions.

                  Or to give you another example:

                  Because we can do nuclear fusion in the lab - fusing a few thousands nuclei or so, then it's just the same to build a fusion reactor and get energy out of it. If that were the case how come we don't have commercially viable fusion reactors?

                  Scale matters! It is a complexity by itself! You can't just claim that because the sphere is a simple element you can arbitrarily put billions of them in a 3D scene and expect it to "just work", that's not how the real world works ...

                  Read and abide by the Qt Code of Conduct

                  1 Reply Last reply
                  2
                  • S Offline
                    S Offline
                    surajj4837
                    wrote on last edited by
                    #11

                    Thanks @kshegunov for resolving my doubts. Thanks @artwaw and @ofmrew for your valuable inputs.

                    O 1 Reply Last reply
                    0
                    • S surajj4837

                      Thanks @kshegunov for resolving my doubts. Thanks @artwaw and @ofmrew for your valuable inputs.

                      O Offline
                      O Offline
                      ofmrew
                      wrote on last edited by
                      #12

                      @surajj4837 We ran into this problem in the early days of GIS: too many graphical object to display in a reasonable amount of time. The solution is selection: Not all the spheres are in view nor or most of a size to be seen at the current scale, so only select those that are viewable and discard the rest.

                      1 Reply Last reply
                      1

                      • Login

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