Tumle: "no mesh" error on already loaded mesh
Tumle: "no mesh" error on already loaded mesh
Hi people,
after compiling my code without errors or warnings I get this error in runtime:
Loaded mesh: track01.ms3d
Needed 1ms to create OctTree SceneNode.(14 nodes, 650 polys)
TUMLE: passed node has no mesh, passed mesh used to create level collision
Part of my code:
IrrlichtDevice* device = createDevice(video::EDT_DIRECT3D9, core::dimension2d<s32>(320, 240), 16, false, false, true);
IVideoDriver* driver = device->getVideoDriver();
ISceneManager* smgr = device->getSceneManager();
IPhysicsManager *pmgr = createPhysicsManager(device);
IAnimatedMesh* levelMesh = smgr->getMesh("track01.ms3d");
ISceneNode* levelNode = smgr->addOctTreeSceneNode(levelMesh->getMesh(0), 0, -1, 128);
levelMesh->setMaterialFlag(EMF_LIGHTING, false);
IPhysicsNode *physLevelNode = pmgr->addPhysicsLevelNode(levelNode, levelMesh->getMesh(0));
Am I missing something?
after compiling my code without errors or warnings I get this error in runtime:
Loaded mesh: track01.ms3d
Needed 1ms to create OctTree SceneNode.(14 nodes, 650 polys)
TUMLE: passed node has no mesh, passed mesh used to create level collision
Part of my code:
IrrlichtDevice* device = createDevice(video::EDT_DIRECT3D9, core::dimension2d<s32>(320, 240), 16, false, false, true);
IVideoDriver* driver = device->getVideoDriver();
ISceneManager* smgr = device->getSceneManager();
IPhysicsManager *pmgr = createPhysicsManager(device);
IAnimatedMesh* levelMesh = smgr->getMesh("track01.ms3d");
ISceneNode* levelNode = smgr->addOctTreeSceneNode(levelMesh->getMesh(0), 0, -1, 128);
levelMesh->setMaterialFlag(EMF_LIGHTING, false);
IPhysicsNode *physLevelNode = pmgr->addPhysicsLevelNode(levelNode, levelMesh->getMesh(0));
Am I missing something?
-
- Posts: 1186
- Joined: Fri Dec 29, 2006 12:04 am
-
- Admin
- Posts: 3590
- Joined: Mon Oct 09, 2006 9:36 am
- Location: Scotland - gonnae no slag aff mah Engleesh
- Contact:
Before I try to debug a problem in some mystery 3rd party library, please post details of the crash:
Type of crash.
Call stack.
Values of any relevant variables, as shown by your debugger.
Type of crash.
Call stack.
Values of any relevant variables, as shown by your debugger.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
-
- Posts: 153
- Joined: Mon Mar 03, 2008 8:42 am
- Location: Suceava - Romania
- Contact:
I don't see him using a getMesh() in there on a scene node anywhere ... ?night_hawk wrote:I have never used tumle, but I think I see one possible cause for the problem:
ISceneNode* does not have a getMesh() member, and that's why tumle is probably giving you the warning, then crashing.
But I don't know...
What I am curious about though is whether Tumle accepts OctTreeSceneNodes. I'm going to take a guess and say that it is looknig for an IAnimatedMeshSceneNode*, not and IOctTreeSceneNode*.
EDIT:
Yuppers, I was correct. The function addPhysicsLevelNode() is looking for a IAnimatedMeshSceneNode*. If you look at the source, you can specifically see where it is looking for a ESNT_MESH or ESNT_ANIMATED_MESH, and if it isn't either of those then it posts the error message that you received.
I would say that this really was a bad choice on the developers part. He shouldn't accept all scene nodes, and instead should just overload the function, imho.
TheQuestion = 2B || !2B
You're all right! =)
first, this is not the proper place to ask such question, next time I'll post in the correct forum section, with more detailed code. Btw, can I move this topic by myself?
Second, I'll review it's documentation again.
Third, sometimes I, unconsciously, read "tumbler" the last batmobile hehehehh
and I'll review this getMesh() parameters too.
Thank you all.
first, this is not the proper place to ask such question, next time I'll post in the correct forum section, with more detailed code. Btw, can I move this topic by myself?
Second, I'll review it's documentation again.
Third, sometimes I, unconsciously, read "tumbler" the last batmobile hehehehh
and I'll review this getMesh() parameters too.
Thank you all.