Original Post
I downloaded irrlicht, (via CodeBlocks DevPak plugin), and loaded the sample program. I changed the model used (from an animMesh to a plain mesh), and the texture, however when I run it, I get my mesh uniformly coloured the colour of the first pixel. The source code that I changed was: On a side note, I tried to do a similar thing with Blitz3D, and the same thing happened - I could see my mesh, but it was uniformly the colour of the first pixel of the image. I exported the .3ds file from Blender, and I also have tried this with an exported .x file aswell, with the same result (except a different starting orientation of the mesh). I want to have the whole texture spread over the whole mesh. Any help would be much appreciated.
//IAnimatedMesh* mesh = smgr->getMesh("../../media/sydney.md2");
//IAnimatedMeshSceneNode* node = smgr->addAnimatedMeshSceneNode( mesh );
IMesh* mesh = smgr->getMesh("Castle.3ds");
IMeshSceneNode *node = smgr->addMeshSceneNode(mesh);
if (node)
{
node->setMaterialFlag(EMF_LIGHTING, false);
//node->setFrameLoop(0, 310);
node->setMaterialTexture( 0, driver->getTexture("RedTexture.png") );
}