Can't seem to load bsp mesh

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
etrevino
Posts: 2
Joined: Mon Jul 02, 2007 3:19 am

Can't seem to load bsp mesh

Post by etrevino »

Trying to load a Quake 3 level and I continually get the following error:

Code: Select all

Irrlicht Engine version 1.0
Darwin Kernel Version 8.9.0: Thu Feb 22 20:54:07 PST 2007; root:xnu-792.17.14~1/RELEASE_PPC
Using renderer: OpenGL 1.5
OpenGL driver version is 1.2 or better.
Multittexturing active.
Loaded texture: #DefaultFont
[b]Could not load mesh, because file could not be opened.: pdmq3paper2.bsp[/b]
This is my code, which is directly from the Quake 3 tutorial on the irrlicht page:

Code: Select all

    // start up the engine using Open GL
	IrrlichtDevice *device = createDevice(video::EDT_OPENGL,core::dimension2d<s32>(1280,854),32,true);
	video::IVideoDriver* driver = device->getVideoDriver();
	scene::ISceneManager* smgr = device->getSceneManager();

	device->getFileSystem()->addZipFileArchive("map-pdmq3paper2c.pk3");



	scene::IAnimatedMesh* q3levelmesh = smgr->getMesh("pdmq3paper2.bsp");

	scene::ISceneNode* q3node = 0;	



Can anyone give me a clue what's going wrong? Is it because I'm using Irrlicht 1.0?
Dances
Posts: 454
Joined: Sat Jul 02, 2005 1:45 am
Location: Canada
Contact:

Re: Can't seem to load bsp mesh

Post by Dances »

etrevino wrote:Trying to load a Quake 3 level and I continually get the following error:

Code: Select all

Irrlicht Engine version 1.0
Darwin Kernel Version 8.9.0: Thu Feb 22 20:54:07 PST 2007; root:xnu-792.17.14~1/RELEASE_PPC
Using renderer: OpenGL 1.5
OpenGL driver version is 1.2 or better.
Multittexturing active.
Loaded texture: #DefaultFont
[b]Could not load mesh, because file could not be opened.: pdmq3paper2.bsp[/b]
This is my code, which is directly from the Quake 3 tutorial on the irrlicht page:

Code: Select all

    // start up the engine using Open GL
	IrrlichtDevice *device = createDevice(video::EDT_OPENGL,core::dimension2d<s32>(1280,854),32,true);
	video::IVideoDriver* driver = device->getVideoDriver();
	scene::ISceneManager* smgr = device->getSceneManager();

	device->getFileSystem()->addZipFileArchive("map-pdmq3paper2c.pk3");



	scene::IAnimatedMesh* q3levelmesh = smgr->getMesh("pdmq3paper2.bsp");

	scene::ISceneNode* q3node = 0;	



Can anyone give me a clue what's going wrong? Is it because I'm using Irrlicht 1.0?
Is your bsp actually in a pk3 file? Is the pk3 file in the same directory as your application?
etrevino
Posts: 2
Joined: Mon Jul 02, 2007 3:19 am

Post by etrevino »

It's all there. When I swap in the default pk3 file included with the Irrlicht distribution, that works. I'm sorry I didn't think to do that earlier, but I'm still unsure what the problem is. I can't figure out why one would work and two others won't.
Post Reply