"collision detection" example of irrlicht

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
misterface
Posts: 17
Joined: Thu Aug 11, 2005 11:57 am

"collision detection" example of irrlicht

Post by misterface »

You all know the example of collision detection that is standard with irrlicht...
I made a modification so I can use a 3ds file instead of a quake3 file. but when I execute my program i get a black screen :( anyone knows what code you have to modify?

this is the code I changed from the original file:

//device->getFileSystem()->addZipFileArchive("c:/eindwerk/code/media/map-20kdm2.pk3");
//scene::IAnimatedMesh* q3levelmesh = smgr->getMesh("20kdm2.bsp");
//scene::ISceneNode* q3node = 0;

scene::IAnimatedMesh* q3levelmesh = smgr->getMesh("c:/eindwerk/code/media/room.3ds");
scene::ISceneNode* q3node = 0;
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

Did you use The setPosition() function from the demo ???
It sets the node far away from the center of the world, because the Quake node is not at position 0,0,0 !!!
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
misterface
Posts: 17
Joined: Thu Aug 11, 2005 11:57 am

Post by misterface »

thank you, it works now!
Post Reply