Loading a quake 3 map

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
Guest

Loading a quake 3 map

Post by Guest »

Hi guys,

I have a quick question. I'm able to load maps from random websites, and the tutorial. What I have a problem in doing is creating map which I myself can load.

When I load my map I get errors loading textures, but the biggest concern I have is the last line

"Needed 0ms to create OctTree SceneNode. (0 nodes, 0 polys)

Any ideas?
Thanks for taking the time to look into this!
mesklinite
Posts: 11
Joined: Wed Jan 25, 2006 12:45 am

Post by mesklinite »

My bad for not login in!
MikeR
Posts: 767
Joined: Sun Dec 26, 2004 4:03 pm
Location: Northern California USA
Contact:

Post by MikeR »

"Needed 0ms to create OctTree SceneNode. (0 nodes, 0 polys)
Tha'ts not an error. That's telling you how long it took to load your map. With those numbers tho, it didn't load your map.

If you post some code, mabe we can help you.

Are your textures in the proper folder?
Are you using a pk3 file? If not, are your textures in the same folder as your map file?
If it exists in the real world, it can be created in 3d

Sys specs:
AMD 3700+ 64 processor
1.0 gb ram
e-Geforce 6600 graphics 256 mb onboard ram
Guest

Post by Guest »

This is the code that I have to load the level

Code: Select all

        device->getFileSystem()->addZipFileArchive("../../media/level1.pk3");


	scene::IAnimatedMesh* mesh = smgr->getMesh("level1.bsp");
	scene::ISceneNode* node = 0;
	
	if (mesh)
		node = smgr->addOctTreeSceneNode(mesh->getMesh(0));
The map is in a pk3 file
This file have 4 folders:

If the textures aren't included would this prevent the polygons with those specific textures from appearing? I just thought of this.

textures/
scripts/level1.arena.txt
maps/level1.bsp
levelshots/
MikeR
Posts: 767
Joined: Sun Dec 26, 2004 4:03 pm
Location: Northern California USA
Contact:

Post by MikeR »

Yes. In Irrlicht, you must have the textures in the texture folder for the object to render, so that's your problem here.
If it exists in the real world, it can be created in 3d

Sys specs:
AMD 3700+ 64 processor
1.0 gb ram
e-Geforce 6600 graphics 256 mb onboard ram
Post Reply