I'm noob with material and stuff like that as I haven't look into it in Irrlicht.
I'm trying to load obj file exported from 3DSMax, but have some issue with it displaying correctly.
Can anyone show me how to do it correctly please.

The mesh file is the path to "media/Robot/Kuko/Axis1.obj"
The code I used is given below:
IAnimatedMesh* mesh = smgr->getMesh(m_meshFile);
IAnimatedMeshSceneNode* node = smgr->addAnimatedMeshSceneNode(mesh);
scene::ITriangleSelector* selector = 0;
if (node)
{
node->setName(name);
node->setMaterialFlag(EMF_LIGHTING, false);
if (pickable == true)
{
selector = smgr->createTriangleSelector(node);
node->setID(ID_PICKABLE);
node->setTriangleSelector(selector);
selector->drop();
}
else
{
node->setID(ID_NOPICK);
}
}
Thanks
Thanh