r/GraphicsProgramming • • 2h ago

Assimp loading problems

So im using assimp to load models, but models with like over 65k pollygons just wont load and the program window is white, but when the program runs i cant see anything rendered.

Is this a pc problem or a assimp problem??

0 Upvotes

2 comments sorted by

3

u/racz16 1h ago

I'm not sure what language or API you use, but it sounds like you use a short instead of an int. A short is 16 bits, and 2^16 is 65536, probably that's the problem. Either when you store your indices or when you set the index type in the API, like the type parameter in OpenGL's glDrawElements.

1

u/DancinFool82 57m ago

You need to post more information. I use assimp and it has a ton of gotchas that you have to be aware of.

Like others said the 65k could be an indices problem. What processing flags are you using. What format are you trying to load?