Hi, I'm newbie in using Irrlicht engine. Currently, I'm doing my assignment project using the engine and I can say that it helps me a lot. However, currently I'm unable to load 3DS file. Or I should say I'm unable to
load the texture into the object. From what I've learned from the forums and stuffs, everyone keeps mentioning that the texture is loaded automatically for 3DS files. Anyway, I'll just show you a part of my code:
Code: Select all
irr::scene::IAnimatedMesh *itemMesh = smgr->getMesh("Model/Items/OLDBOOK.3DS");
irr::scene::IAnimatedMeshSceneNode *itemNode = smgr->addAnimatedMeshSceneNode(itemMesh);
itemNode->setMaterialFlag(video::EMF_LIGHTING, false);
// set item's scale
itemNode->setScale(irr::core::vector3df(1,1,1));
// set item's position
itemNode->setPosition(irr::core::vector3df(10,10,10));
Is there anything wrong with my code? There's no compilation error and I can load the file perfectly with 3D Max Studio 6. Any idea would be appreciated. Thx