Jump to content

  • Log In with Google      Sign In   
  • Create Account

Assimp loading indices not properly


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 MasterSporta   Members   -  Reputation: 108

Like
0Likes
Like

Posted 23 July 2013 - 08:57 AM

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! 



Sponsor:

#2 Zaoshi Kaba   Crossbones+   -  Reputation: 4656

Like
0Likes
Like

Posted 23 July 2013 - 09:38 AM

Which flags do you use? You need to triangulate, eliminate lines/points and optimize.



#3 ic0de   Members   -  Reputation: 910

Like
0Likes
Like

Posted 23 July 2013 - 12:34 PM

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


Edited by ic0de, 23 July 2013 - 12:35 PM.

you know you program too much when you start ending sentences with semicolons;


#4 MasterSporta   Members   -  Reputation: 108

Like
1Likes
Like

Posted 23 July 2013 - 01:04 PM

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.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS