problem for loading an quake III 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
SilverGrom

problem for loading an quake III map

Post by SilverGrom »

i compile that code and when i run the exe it say
the texture is missed

my code is :
#include <irrlicht.h>
#include <wchar.h>

using namespace irr;

#pragma comment(lib, "Irrlicht.lib")

scene::ICameraSceneNode* camera = 0;

class MyEventReceiver : public IEventReceiver
{
public:
virtual bool OnEvent(SEvent event)
{
if (camera)
return camera->OnEvent(event);

return false;
}
};

int main()
{


MyEventReceiver receiver;

IrrlichtDevice *device =
createDevice(video::DT_OPENGL,
core::dimension2d<s32>(640, 480), 16, false, false, &receiver);

video::IVideoDriver* driver = device->getVideoDriver();
scene::ISceneManager* smgr = device->getSceneManager();

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

scene::IAnimatedMesh* mesh = smgr->getMesh("20kdm2.bsp");
scene::ISceneNode* node = 0;

if (mesh)
node = smgr->addOctTreeSceneNode(mesh->getMesh(0));

if (node)
node->setPosition(core::vector3df(-1300,-144,-1249));

camera = smgr->addCameraSceneNodeFPS();


device->getCursorControl()->setVisible(false);

int lastFPS = -1;

while(device->run())
{
driver->beginScene(true, true, video::SColor(0,100,100,100));
smgr->drawAll();
driver->endScene();

int fps = driver->getFPS();

if (lastFPS != fps)
{
wchar_t tmp[1024];
swprintf(tmp, 1024, L"Quake 3 Map Example - Irrlicht Engine (fps:%d) Triangles:%d",
fps, driver->getPrimitiveCountDrawn());

device->setWindowCaption(tmp);
lastFPS = fps;
}
}

device->drop();

return 0;
}
Someone can help me ?
SilverGrom

Post by SilverGrom »

nobody can help me ?

the eror message is
Image
Guest

Post by Guest »

do you have map-20kdm2.pk3 in the same folder as your project?
[dx/x]=HUNT3R
Posts: 271
Joined: Sat Aug 23, 2003 5:52 pm
Location: Hurricane Central, Florida

Post by [dx/x]=HUNT3R »

I don't ever use a console app but I think that those are all normal missing textures that Irrlicht cannot load. The level still looks ok, right?
Post Reply