• Advertisement
Sign in to follow this  

Assimp loading indices not properly

This topic is 1673 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi everyone!

I've just tried to load simple mode cube.3ds via assimp into my programm. But when I started loading indices from model into my vector, the next error occurs: my indices vector contain next data: [0, 1, 2, 3, 4, ...]. When I open obj model file, the indices contains different values. So can anyone describe in detail properly algorithm for reading indices from file? Thank's a lot! 

Share this post


Link to post
Share on other sites
Advertisement

make sure to use aiProcess_JoinIdenticalVertices in the flags or else the index buffer will not be necessary.

Edited by ic0de

Share this post


Link to post
Share on other sites

ic0de, thank's a lot!!! I'v just used only aiProcess_Triangulate.  There was my mistake. I've added aiProcess_JoinIdenticalVertices and all works fine.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement