So I added the texture code and it still doesn't work...perhaps it is now brown coloured...
here's my code
Code: Select all
scene::IMesh *boxMesh = smgr->getMesh("resource/wall.b3d");
scene::IMeshSceneNode *box = smgr->addMeshSceneNode(boxMesh);
smgr->addCameraSceneNode(0, core::vector3df(0, -5, 0), core::vector3df(0, 0, 0), -1, true);
if(box){
box->setMaterialFlag(video::EMF_LIGHTING, false);
box->setMaterialTexture(0, driver->getTexture("resource/texwall.jpg"));
box->setPosition(core::vector3df(0, 0, 0));
}
What's my problem?