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. QtQuick3D:How to customize geometry data and update it in real time?

QtQuick3D:How to customize geometry data and update it in real time?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
quick3dopenglrender
5 Posts 3 Posters 1.4k 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.
  • F Offline
    F Offline
    FinchX
    wrote on last edited by
    #1

    Hello everyone,I'm trying to use QtQuick3D to render custom geometry data and I want to update it in real time.
    I find that I can use QQuick3DGeometry to realize it.
    I do it successfully but when I try to update the vertex data I met some problems.
    At first,I find that I must call "setName" with different name than the last one,then QT will update the graph,otherwise it won't.
    After reading the qt source code from github,I find that I can emit "update" by manual to make the graph updated
    without setting the different name.
    But I met a more serious problem.When the vertex data updated,memory usage is growing rapidly. It seems that the qt store a piece of data without releasing it.

    Is there anything wrong with my operation? Can someone provide a simple example for me ?
    Thanks.

    1 Reply Last reply
    0
    • B Offline
      B Offline
      BillouParis2
      wrote on last edited by
      #2

      Hi,

      I'm trying to use Qt Quick 3D, to display a simple points cloud.
      I have the intention to use the QtQuick3D Geometry too to bring a custom geometry made of simple QVector3D dots. As you seem to be exploring this too, do you think this is a good idea?

      F 1 Reply Last reply
      0
      • B BillouParis2

        Hi,

        I'm trying to use Qt Quick 3D, to display a simple points cloud.
        I have the intention to use the QtQuick3D Geometry too to bring a custom geometry made of simple QVector3D dots. As you seem to be exploring this too, do you think this is a good idea?

        F Offline
        F Offline
        FinchX
        wrote on last edited by
        #3

        @BillouParis2 Yes.It's very easy to use the QtQuick3D to realize it.But if you want to dynamically update the data,there are still some bugs with the QtQuick3D such as memory leaks.

        oria66O 1 Reply Last reply
        0
        • F FinchX

          @BillouParis2 Yes.It's very easy to use the QtQuick3D to realize it.But if you want to dynamically update the data,there are still some bugs with the QtQuick3D such as memory leaks.

          oria66O Offline
          oria66O Offline
          oria66
          wrote on last edited by
          #4

          @FinchX Hi. Do you have a simple example?

          The truth is out there

          F 1 Reply Last reply
          0
          • oria66O oria66

            @FinchX Hi. Do you have a simple example?

            F Offline
            F Offline
            FinchX
            wrote on last edited by
            #5

            @oria66 see https://github.com/qt/qtquick3d/blob/14b434d12786ab1b6b90dabb38b0fe4001e54c6a/tests/auto/quick3d/qquick3dgeometry/tst_qquick3dgeometry.cpp

            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