Issues with Mesh Loader in a game
Posted: Sun May 15, 2011 4:36 pm
Hey,
I tried to put my own level loader (it is named "ODFL loader") into one of a game a friend of mine wrote. Usually, ODFL loader loads the level with simple irrlicht test programs I wrote. However, with this game, it failed with a memory bug:
The reason is pretty clear: it fails in this line:
My friend was adding an animated mesh, I never did that when I used ODFL loader. I loaded it like this, instead:
"Google"ing tells me that I'll need to provide "joints" for irrlicht. Is this the reason for that segfault? What can I do to fix it?
Thank you a lot for any help!
- Johannes
I tried to put my own level loader (it is named "ODFL loader") into one of a game a friend of mine wrote. Usually, ODFL loader loads the level with simple irrlicht test programs I wrote. However, with this game, it failed with a memory bug:
Code: Select all
==16830== by 0x430A980: irr::scene::CAnimatedMeshSceneNode::setJointMode(irr::scene::E_JOINT_UPDATE_ON_RENDER) (CAnimatedMeshSceneNode.cpp:892)
Code: Select all
scene::IAnimatedMesh *level = smgr->getMesh("testlevel.odfl");
nodeList.push_back(smgr->addAnimatedMeshSceneNode(level)); // <- HERE
Code: Select all
scene::IAnimatedMesh* level = smgr->getMesh("testlevel.odfl");
odflnode = smgr->addOctTreeSceneNode(level->getMesh(0));
Thank you a lot for any help!
- Johannes