I downloaded a pack of meshes from the internet (with textures) but for some reason, these won't load correctly.
I loaded thousands of other meshes who most of the time load their textures respectively through the .mtl file.
the code i use is:
Code: Select all
IAnimatedMesh *mesh = smgr->getMesh("location/model.?");
IAnimatedMeshSceneNode *node = smgr->addAnimatedMeshSceneNode(mesh);
With some other models i got in the same package, i get the message: "Found no matching material for Group in 3ds file".
I tried converting them to .OBJ format, it ends up loading the mesh but not the textures (even though the .MTL has them assigned)
Then i tried converting it to .X, and i got the same results as with .OBJ
the confusing part is that everything (with textures) looks perfectly in 3DS Max or Blender so it's kinda weird.
Also I tried rescaling everything but it didnt matter, so that's not the problem.
and in the console window it does say "Texture.....loaded!" and "Mesh....loaded!".
I hope you can help me!
Thanks ALOT!