Example model: model.3ds located in ..\data\models\1\ from the binaries with the texture water.jpg located in the same folder.
Code snippet taken from source:
Code: Select all
IAnimatedMesh* mesh = co->GetSMGR()->getMesh(GetObjectPath("model.3ds",get_id));
IAnimatedMeshSceneNode* node = co->GetSMGR()->addAnimatedMeshSceneNode(mesh);
if (node)
{
//node->setMaterialFlag(video::EMF_LIGHTING,true);
node->setMaterialFlag(video::EMF_FOG_ENABLE,true);
node->setPosition(core::vector3df(so->x,so->z,so->y));
node->setScale(core::vector3df(so->size,so->size,so->size));
node->setRotation(core::vector3df(0,so->heading,0));
}
"Could not open file of texture: WATER.JPG"
"Loaded texture: ..\data\models\1\WATER.JPG"
"Loaded mesh: ..\data\models\1\model.3ds"
The first would be the check for if the model is in the local folder failing, but the second obviously works, so why aren't the textures showing up?
I have no problem with textures from .ms3d models using the exact same code.