Qt Custom3DItem setMeshFile not working with Wavefront obj generated by Blender



  • I'm trying to use a different 3D object in Qt for this example: https://doc.qt.io/qt-5/qtdatavisualization-rotations-example.html I've tried to download obj files or to generate new ones using Blender. The example works with any other object present in the other Qt example, but not with Wavefront objects generate by Blender. I also tried a simple cube:
    [0_1499463981457_untitled.obj](Uploading 100%)
    but even the cube is not working. I got the following error in the debug console:

    Debugging starts [07:22:56:07:900][ 1352] IGIESW
    c:\qt\examples\qt-5.9.1\datavisualization\build-rotations-desktop_qt_5_9_1_mingw_32bit-debug\debug\rotations.exe
    found in whitelist: NO [07:22:56:07:957][ 1352] IGIWHW Game
    c:\qt\examples\qt-5.9.1\datavisualization\build-rotations-desktop_qt_5_9_1_mingw_32bit-debug\debug\rotations.exe
    found in whitelist: NO OpenGL version: 4.5.0 NVIDIA 382.05 GLSL
    version: 4.50 NVIDIA ASSERT failure in QVector<T>::operator[]: "index
    out of range", file c:\Users\qt\work\install\include/QtCore/qvector.h,
    line 438 Debugging has finished
    anyone knows how to correctly generate obj for Qt? Thanks


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.