Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt3D: loading a .mtl file into a QMaterial component?



  • Hello everyone,
    I'm currently developing an application in which I need to load a 3D model, defined by a .obj file that contains the mesh data, and a .mtl file that contains the respective textures description.
    What I want to do is to load the .obj into a QMesh and the .mtl as a QMaterial and set them as components of the same QEntity. The QMesh works fine, but I wanted to know if it is possible to load the .mtl file and how should I do it?


Log in to reply