QML Mesh loads .obj file failed!
Solved
QML and Qt Quick
-
Hello everyone, now I have exported obj file from 3ds max 2017. However, when I try to use that in the QML Mesh entity, the error is as following:
This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index Qt3D.ObjGeometryLoader: Missing position index
It seems like that the file format is wrong. However, when I use the obj files of the examples of qt, it loads well.
Could anyone tell me the reason? Thanks in advance! -
Hi! Even if the file is broken it shouldn't crash the application. Please go to https://bugreports.qt.io and file a bugreport.
-
@Wieland Now, I know that. The reason is that the obj file can only be produced by blender!