Sign in to follow this  
MasterSporta

Assimp loading indices not properly

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this