Hi there,
I’m having an issue loading collada files with the assimp addon.
this the dae file
I’m loading the file correctly but when I try to get the indices, stranger numbers appears.
This code put in the setup function
for (int i=0; i<30; i++){
cout<<model.getMesh(0).getIndex(i) <<" ";
if (i%3 ==2) cout<<endl;
}
give me that :
0 1 2
303 11 0
10 304 0
2 483 0
0 483 303
1 0 304
0 11 10
477 303 476
11 303 477
476 303 483
the correct indices are
47 1223 1224
372 1228 1229
46 1180 1181
1309 1310 410
371 1185 1186
512 1226 1227
49 61 388
425 1221 1222
427 426 411
370 369 359
It seems that assimp is loading the faces and get the indices from faces. And there are not the ones that you can find in the dae file when you edit it with a text editor.
Is there a way to load the correct indices.