Load in OBJ as level
Load in OBJ as level
i tried to load an obj file, and it says need 0ms to create Octtree scenenode or something like that, what does this mean..?
asdf
Code: Select all
video::IVideoDriver* driver = device->getVideoDriver();
scene::ISceneManager* smgr = device->getSceneManager();
device->getFileSystem()->addZipFileArchive("media.zip");
scene::IAnimatedMesh* mesh = smgr->getMesh("asdf.ms3d");
scene::ISceneNode* node = 0;
if (mesh)
node = smgr->addOctTreeSceneNode(mesh->getMesh(0));
Re: asdf
asdfasdf wrote:Code: Select all
video::IVideoDriver* driver = device->getVideoDriver(); scene::ISceneManager* smgr = device->getSceneManager(); device->getFileSystem()->addZipFileArchive("media.zip"); scene::IAnimatedMesh* mesh = smgr->getMesh("asdf.ms3d"); scene::ISceneNode* node = 0; if (mesh) node = smgr->addOctTreeSceneNode(mesh->getMesh(0));
Shouldn't your obj file be named as .obj? How do you create that asdv.ms3d by the way?