I am working on a 3D modeling project using Qt and C++ with the project found on GitHub: 3DViewer-Project-in-Qt-CPP. When I run the project and load multiple models, only the first model appears on the screen.
Upon inspecting the code, I found that commenting out the line in mesh.cc:
VAO.release();
allows me to see all loaded models. However, I believe this might not be the correct approach as it could lead to resource leaks.
From my understanding, all objects share a common QOpenGLContext, and I’m unsure how to proceed. I’ve considered two potential solutions: creating a QOpenGLContext for each model or reusing a global one.
Could someone please help me understand how to handle multiple 3D models correctly in this Qt OpenGL project? Any insights or guidance would be greatly appreciated.
Thank you.