OGRE EXCEPTION(4:ItemIdentityException)

rosyU

22-03-2011 16:01:34

I am new to OGRE and NXOGRE.
I tried to do the BloodyMess Tutorial 2 and when I tried to call createBody method at the second time it gives the following error

OGRE EXCEPTION(4:ItemIdentityException): An object of type 'Entity' with name '-Entity' already exists. in SceneManager::createMovableObject at f:\codingextra\ogre\shoggoth_vc9\ogre\ogremain\src\ogrescenemanager.cpp (line 6136).

// Add objects
mCube = mRenderSystem->createBody(new NxOgre::Box(1, 1, 1), NxOgre::Vec3(0, 40, 0), "cube.1m.mesh");
mCubeTwo = mRenderSystem->createBody(new NxOgre::Box(1, 1, 1), NxOgre::Vec3(20, 45, 0), "cube.1m.mesh");


Please could someone help me to find out what the Entity Object is and solution to this problem
Thank you.

betajaen

22-03-2011 17:51:49

You need to upgrade to at least Detritus, preferably BuggySwires.