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
loading non-quake maps
-
- Posts: 8
- Joined: Fri Jul 23, 2004 2:45 am
- Location: Untied States
-
- Posts: 8
- Joined: Fri Jul 23, 2004 2:45 am
- Location: Untied States
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
Here is the link to the tutorial:
http://irrlicht.sourceforge.net/tut008.html
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?
________
Essential Vaaapp
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?
________
Essential Vaaapp