Jump to content

View more

Image of the Day

Inventory ! Va falloir trouver une autre couleur pour le cadre D: #AzTroScreenshot #screenshotsaturday https://t.co/PvxhGL7cOH
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Assimp loading indices not properly

4: Adsense

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   

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! 



#2 Zaoshi Kaba   Members   

8297
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   

974
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.

Currently working on new DOS game, Chuck Jones: Space Cop of the Future, Check out my Dev Blog
 

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


#4 MasterSporta   Members   

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.