Problem when trying to load a b3d map with models inside

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
bruno.arruda
Posts: 12
Joined: Thu Jun 12, 2008 12:34 am

Problem when trying to load a b3d map with models inside

Post by bruno.arruda »

Hi ppl,

I´m using the following code to load a b3d map on irrlicht, everything works fine with a basic map created at 3d world studio, but when I add a model inside it I get some problems(you can see at the screenshot). Please let me know if I´m using the correct procedure.

PS.: I have all the textures at the directory and the console tells me everything loaded fine.

Code:

Code: Select all

	// Loading the level Mesh 
	scene::IAnimatedMesh* LevelMesh = irrSceneMgr->getMesh("mapTest.b3d"); 
	//Creating the node 
	scene::ISceneNode* LevelNode = 0; 
	
	if (LevelMesh) 
		LevelNode = irrSceneMgr->addOctTreeSceneNode(LevelMesh->getMesh(0), 0, 0,
		0); 
Image:
http://img139.imageshack.us/my.php?imag ... lemde8.jpg


Thansk a lot in advance,

Best Regards.
bruno.arruda
Posts: 12
Joined: Thu Jun 12, 2008 12:34 am

Post by bruno.arruda »

Hmmm,

something "interisting", I´ve noticed that when I add the model: "earth.x" the b3d file size does not increase, so, I believe that the model is not "inside" the b3d file as I were thinking. So, I´ve put the model at the directory but the same error occurs. THen I trying editing the b3d file at wordpad and no references are being made to "earth.x" , as far as I can see cause it is a compiled file. So, what would be the correct procedure to the b3d file map loads the model?

Thanks again
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

There is no scene support in the b3d loader, I don't even know about a way to add scene support in b3d file format. Better use a real scene format, such as .irr or Collada.
bruno.arruda
Posts: 12
Joined: Thu Jun 12, 2008 12:34 am

Post by bruno.arruda »

Thankyou hybrid, I was starting to guess that, cause I don´t get many examples with maps on b3d. Thanks very much
Post Reply