Hi, no your are right..Its triangles that im tryning to render. So i changed aiImportFile to pScene = aiImportFile(cFilename,
aiProcess_JoinIdenticalVertices|
aiProcess_Triangulate|
aiProcess_OptimizeMeshes|
aiProcess_ConvertToLeftHanded
);
First it didnt work, but now for some reason it started to work, maybe some lib wasn't correcly updated in the build process. Any how it works. the for you help beans222
Show differencesHistory of post edits
#2korvax
Posted 28 October 2012 - 02:56 PM
Hi, no your are right..Its triangles that im tryning to render. So i changed aiImportFile to pScene = aiImportFile(cFilename,
aiProcess_JoinIdenticalVertices|
aiProcess_Triangulate|
aiProcess_OptimizeMeshes|
aiProcess_ConvertToLeftHanded
);
My vertex list looks more correct now (compared with the file that is)
but still same problem that nothing is showing up. Getting closer but no cigar right now.
v 1.51758 , -1 , 1
v 1.51758 , -1 , -1
v -0.482425 , -1 , -1
v -0.482424 , -1 , 1
v 1.51758 , 1 , 0.999999
v -0.482424 , 1 , 1
v -0.482425 , 1 , -1
v 1.51758 , 1 , -1
i : 1
i : 0
i : 3
i : 3
i : 2
i : 1
i : 5
i : 4
i : 7
i : 7
i : 6
i : 5
i : 4
i : 0
i : 1
i : 1
i : 7
i : 4
i : 7
i : 1
i : 2
i : 2
i : 6
i : 7
i : 6
i : 2
i : 3
i : 3
i : 5
i : 6
i : 0
i : 4
i : 5
i : 5
i : 3
i : 0
Vetices : 8
Faces : 12
Indices size: 36
I tried to recreate the indicies array and vertices array in the code then I used the same function LoadGeometry as the assimp loader used and then render them with no problem.. Which should point to the my import is working fine but for some reason i cant render them when the data comes from assimp..
aiProcess_JoinIdenticalVertices|
aiProcess_Triangulate|
aiProcess_OptimizeMeshes|
aiProcess_ConvertToLeftHanded
);
My vertex list looks more correct now (compared with the file that is)
but still same problem that nothing is showing up. Getting closer but no cigar right now.
v 1.51758 , -1 , 1
v 1.51758 , -1 , -1
v -0.482425 , -1 , -1
v -0.482424 , -1 , 1
v 1.51758 , 1 , 0.999999
v -0.482424 , 1 , 1
v -0.482425 , 1 , -1
v 1.51758 , 1 , -1
i : 1
i : 0
i : 3
i : 3
i : 2
i : 1
i : 5
i : 4
i : 7
i : 7
i : 6
i : 5
i : 4
i : 0
i : 1
i : 1
i : 7
i : 4
i : 7
i : 1
i : 2
i : 2
i : 6
i : 7
i : 6
i : 2
i : 3
i : 3
i : 5
i : 6
i : 0
i : 4
i : 5
i : 5
i : 3
i : 0
Vetices : 8
Faces : 12
Indices size: 36
I tried to recreate the indicies array and vertices array in the code then I used the same function LoadGeometry as the assimp loader used and then render them with no problem.. Which should point to the my import is working fine but for some reason i cant render them when the data comes from assimp..
#1korvax
Posted 28 October 2012 - 02:10 PM
Hi, no your are right..Its triangles that im tryning to render. So i changed aiImportFile to pScene = aiImportFile(cFilename,
aiProcess_JoinIdenticalVertices|
aiProcess_Triangulate|
aiProcess_OptimizeMeshes|
aiProcess_ConvertToLeftHanded
);
My vertex list looks more correct now (compared with the file that is)
but still same problem that nothing is showing up. Getting closer but no cigar right now.
v 1.51758 , -1 , 1
v 1.51758 , -1 , -1
v -0.482425 , -1 , -1
v -0.482424 , -1 , 1
v 1.51758 , 1 , 0.999999
v -0.482424 , 1 , 1
v -0.482425 , 1 , -1
v 1.51758 , 1 , -1
i : 1
i : 0
i : 3
i : 3
i : 2
i : 1
i : 5
i : 4
i : 7
i : 7
i : 6
i : 5
i : 4
i : 0
i : 1
i : 1
i : 7
i : 4
i : 7
i : 1
i : 2
i : 2
i : 6
i : 7
i : 6
i : 2
i : 3
i : 3
i : 5
i : 6
i : 0
i : 4
i : 5
i : 5
i : 3
i : 0
Vetices : 8
Faces : 12
Indices size: 36
aiProcess_JoinIdenticalVertices|
aiProcess_Triangulate|
aiProcess_OptimizeMeshes|
aiProcess_ConvertToLeftHanded
);
My vertex list looks more correct now (compared with the file that is)
but still same problem that nothing is showing up. Getting closer but no cigar right now.
v 1.51758 , -1 , 1
v 1.51758 , -1 , -1
v -0.482425 , -1 , -1
v -0.482424 , -1 , 1
v 1.51758 , 1 , 0.999999
v -0.482424 , 1 , 1
v -0.482425 , 1 , -1
v 1.51758 , 1 , -1
i : 1
i : 0
i : 3
i : 3
i : 2
i : 1
i : 5
i : 4
i : 7
i : 7
i : 6
i : 5
i : 4
i : 0
i : 1
i : 1
i : 7
i : 4
i : 7
i : 1
i : 2
i : 2
i : 6
i : 7
i : 6
i : 2
i : 3
i : 3
i : 5
i : 6
i : 0
i : 4
i : 5
i : 5
i : 3
i : 0
Vetices : 8
Faces : 12
Indices size: 36