And what do you get as a Status if you call mesh->status() after assigning the source URL?
And once you see that it is returning Error, then think about why QUrl (and your runtime environment)...
I cannot call any method that belong to Qt3DRender::QGeometry
The error occurs on the call QMesh::geometry();
This code gives "Invalid pointer:
auto *geom = mesh->geometry();
if (geom ==...
I would look at the coordinates of the object you are trying to import and see how those compare with the coordinates you have set for your camera's front and back planes and camera position. Either...
d_stranz Yesterday, 21:51So where does the debugger say it crashes?
You have several places where you access member functions of "mesh" which return pointers. You don't check that those pointers are valid (non-null)...
I try to get the position attribute of a mesh using the following code
....code...
Qt3DRender::QMesh *mesh = new Qt3DRender::QMesh();
mesh->setMeshName("mesh");
// Import...
Qt Centre is a community site devoted to programming in C++ using the Qt framework developed at Digia.
If you have any problems with Qt or its usage, you can get help from the members of Qt community on our forum.
Don't forget to check out our links section for more Qt resources.
Qt is a cross-platform application and UI framework. Using Qt, you can write web-enabled applications once and deploy them across desktop, mobile and embedded operating systems without rewriting the source code.
Rendering a QQuickItem into a QImage (Qt6)
15th March 2023 23:19 by Bilbon