I try to load * .bsp files of cs game, but not display.
why?
thanks!
Why getmesh() cannot load the * .bsp files of cs game?
-
RuggJack93
- Posts: 39
- Joined: Mon Sep 06, 2010 5:09 pm
- Location: Italy
RuggJack93 wrote:Can you be more specific?
What code have you used to load your model?
What does the console say?
By the way, if cs stand for counter strike,i remember that someone succeeded in loading Half-Life maps, just search in the forums.
Code: Select all
scene::IAnimatedMesh* CSlevelmesh = smgr->getMesh("mesh/awp_map.bsp");
scene::ISceneNode* CSlevelnode = 0;
if(CSlevelmesh)
{
CSlevelnode = smgr->addOctreeSceneNode(CSlevelmesh->getMesh(0),0,1);
}
Can you give me a search keywords?
my english is not good
Does it load in the meshviewer (example 09)?
If not - do you get any error-messages on the console?
If not - do you get any error-messages on the console?
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
-
RuggJack93
- Posts: 39
- Joined: Mon Sep 06, 2010 5:09 pm
- Location: Italy
In this topic someone loaded a cs 1.6 bsp map using Crafty. Take a look at it, you might find something useful:
http://irrlicht.sourceforge.net/phpBB2/ ... =half+life
http://irrlicht.sourceforge.net/phpBB2/ ... =half+life
You need to export Counterstrike map with crafty or any other tool that can do that, then load it into irrlicht, It will have some entity brushes that you don't want to see so you'll have to remove them with some kind of modeling tool. Look at the thread posted above, it might help too.
Quake bsp format differs from counter-strike/HalfLife. Thats why it doesn't load properly.
Quake bsp format differs from counter-strike/HalfLife. Thats why it doesn't load properly.
Working on game: Marrbles (Currently stopped).