loading non-quake maps

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
me_go_fast
Posts: 8
Joined: Fri Jul 23, 2004 2:45 am
Location: Untied States

loading non-quake maps

Post by me_go_fast »

Is it possible to load other map type other than quake maps because i dont have the quake game and everyhting else i have found to compile to a quake .bsp would not work properly. If anyone has any idea on how to do this please let me know!
thanks
bal
Posts: 829
Joined: Fri Jun 18, 2004 5:19 pm
Location: Geluwe, Belgium

Post by bal »

You can load every fileformat as your "map". A map is nothing more than a (big) mesh. You could use .x or .3ds or ... But if you want to import other map formats from games than you'll have to write your own importer.
General Tools List
General FAQ
System: AMD Barton 2600+, 512MB, 9600XT 256MB, WinXP + FC3
me_go_fast
Posts: 8
Joined: Fri Jul 23, 2004 2:45 am
Location: Untied States

Post by me_go_fast »

I tried to load a .3ds mesh but it did not work. It would compile but when i got to the into the game it was all black. The code i used is below:

scene::IAnimatedMesh* mapMesh = smgr->getMesh("map.3ds");
scene::ISceneNode* mapNode = 0;
Rat
Posts: 51
Joined: Wed Mar 10, 2004 7:05 am

Post by Rat »

There is a tutorial on how to load a non quake map that uses the .3ds format for a room. I exported a mesh using the .X file format since I wanted to have doors to open, based off this simple code as a starting point.

Here is the link to the tutorial:
http://irrlicht.sourceforge.net/tut008.html
disanti
Posts: 367
Joined: Sat Jan 17, 2004 1:36 am
Location: California, US
Contact:

Post by disanti »

Replace:
scene::IAnimatedMesh* mapMesh = smgr->getMesh("map.3ds");
scene::ISceneNode* mapNode = 0;

With:
irr::scene::IAnimatedMesh* mapMesh = smgr->getMesh("map.3ds"); //load the mesh
irr::scene::ISceneNode* mapNode = mapMesh->getMesh(0); //make the mesh a node
mapNode->setMaterialFlag(irr::video::EMF_LIGHTING, false); //make the mesh completely lit up

Edit: Why is this in the advanced help when you could have just read a tutorial to fix it? :roll:
________
Essential Vaaapp
Post Reply