Load in OBJ as level

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
myselff

Load in OBJ as level

Post by myselff »

i tried to load an obj file, and it says need 0ms to create Octtree scenenode or something like that, what does this mean..?
asdfasdf

my bad

Post by asdfasdf »

i meant ms3d format...
bal
Posts: 829
Joined: Fri Jun 18, 2004 5:19 pm
Location: Geluwe, Belgium

Post by bal »

Maybe the path to the mesh is wrong. Could you post your code, please?
General Tools List
General FAQ
System: AMD Barton 2600+, 512MB, 9600XT 256MB, WinXP + FC3
asdfasdf

asdf

Post by asdfasdf »

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));
asdfasdf

asdf

Post by asdfasdf »

theres my code in the adove post
Guest

Re: asdf

Post by Guest »

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?
eeheeehe
Posts: 22
Joined: Tue Sep 28, 2004 3:33 am

Post by eeheeehe »

that is a Milkshape3D file. Its a 3D Software file.
Post Reply