Unsolved Moving meshes in Qt 3D
-
Hi, I have a 3d scene that has different objects . This objects are qml items that I have created with Mesh from .obj files. One of these objects is a mouth. I want to be able to move just the corner of the lips, not all the mouth. I don't know if there is an easy way to do be able to that. Any idea?
-
Hi! There is no easy way, unfortunately. You have to implement a custom Geometry and a custom Geometry Renderer.
-
Thank you! Do you have any guide or example of Geometry Renderer. I'm new to Qt and I am finding difficult to program in both C++ and QML
-
I don't have example code at hand right now, sorry. But
Qt3D Extras
includes a couple of Geometries and their corresponding Geomertry Renderers. The source code can be found here: http://code.qt.io/cgit/qt/qt3d.git/tree/src/extras/geometries. I'd suggest to study...- qplanegeometry.cpp
- qplanegeometry.h
- qplanegeometry_p.h
to understand how to implement a
Geometry
, and ...- qplanemesh.cpp
- qplanemesh.h
for the
Geometry Renderer
.Please note that throughout all the sources, classes that implement a Geometry Renderer use the word "mesh" in the class name.