Why getmesh() cannot load the * .bsp files of cs game?

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
klikli234
Posts: 97
Joined: Tue Sep 07, 2010 10:52 am

Why getmesh() cannot load the * .bsp files of cs game?

Post by klikli234 »

I try to load * .bsp files of cs game, but not display.
why?
thanks!
RuggJack93
Posts: 39
Joined: Mon Sep 06, 2010 5:09 pm
Location: Italy

Post by RuggJack93 »

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.
klikli234
Posts: 97
Joined: Tue Sep 07, 2010 10:52 am

Post by klikli234 »

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);
	}
yes!cs stand for counter strike

Can you give me a search keywords?
my english is not good
CuteAlien
Admin
Posts: 9988
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

Does it load in the meshviewer (example 09)?
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
klikli234
Posts: 97
Joined: Tue Sep 07, 2010 10:52 am

Post by klikli234 »

CuteAlien wrote:Does it load in the meshviewer (example 09)?
If not - do you get any error-messages on the console?
it can't be load in the meshviewer

it said not a supported file format
RuggJack93
Posts: 39
Joined: Mon Sep 06, 2010 5:09 pm
Location: Italy

Post by RuggJack93 »

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
serengeor
Posts: 1712
Joined: Tue Jan 13, 2009 7:34 pm
Location: Lithuania

Post by serengeor »

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.
Working on game: Marrbles (Currently stopped).
klikli234
Posts: 97
Joined: Tue Sep 07, 2010 10:52 am

Post by klikli234 »

Thank you!
Post Reply