loading several worlds at once

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
unknown_usr
Posts: 14
Joined: Thu Oct 02, 2003 7:03 pm

loading several worlds at once

Post by unknown_usr »

Code: Select all

ISceneNode *nd = smgr->addAnimatedMeshSceneNode(smgr->getMesh("level.3ds"));
nd->setMaterialTexture(0,driver->getTexture("wall.jpg"));
	
nd = smgr->addAnimatedMeshSceneNode(smgr->getMesh("pole.3ds"));
nd->setMaterialTexture(0,driver->getTexture("wall.jpg"));
nd->setPosition(vector3df(0,0,0));
This code is supposed to load a level from level.3ds and then load a pole and put it at pos 0,0,0. Why doesn the pole show up? I've tried everything. In fact if I write addTestSceneNode() instead of addAnimatedMeshSceneNode() it seems to work just fine. Any sugestions?
Post Reply