I'm trying to apply a texture to a mesh.
I created a house model in Blender and exported it to .obj format. Then I downloaded a brick.jpg texture.
Now I want to make the walls of my house look like... brick. But I also want to eventually apply a different texture to the floor and roof.
Here is what I'm doing:
//############################################
scene::IMeshSceneNode* node;
scene::IAnimatedMesh* house;
house = smgr->getMesh("./house_Scene.obj");
node = smgr->addMeshSceneNode(house);
node->setMaterialTexture(0,driver->getTexture("graph/brick.jpg"));
//############################################
What I end up with is a completely grey house. I was able to apply a .jpg texture to a boxnode, so I believe my lighting is correct.
I do NOT want to UV map this building, as it is fairly complex.
What am I missing?
Here is a rendering of my Blender model:
[/img]