when I load an obj file, I get the error "Too many vertices for 16bit index type, render artifacts may occur." (16bit indices limit index count to 65536)
I took a look into the Irrlicht source code and saw, that there's a struct called E_INDEX_TYPE indicating that either 16bits or 32 bits can be used.
This is how I try to get a mesh with 32bit indices:
Code: Select all
IAnimatedMesh* mesh = smgr->getMesh("media/cityModel.obj");
IMeshBuffer* mb = mesh->getMeshBuffer(0);
CDynamicMeshBuffer* dynMeshBuf = new CDynamicMeshBuffer(EVT_STANDARD, EIT_32BIT);
dynMeshBuf->append(mb);
Is this the way to go when you want to load obj files with 32bit indices?