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