BloodyMess Tutorial 5

Pakaffy

14-06-2009 04:23:53

Hey all,

Just started trying to learn BloodyMess, seems that there are only about two tutorials for the latest version, should I be using an older version to learn?
Anyway I have just tried to copy paste the example 5 tutorial as it's geared for my version of nx and now have a few errors. I am guessing the fault is mine and I have done something wrong here? Has anyone had this before?

Error 4 error LNK2019: unresolved external symbol "public: __thiscall OGRE3DRenderSystem::OGRE3DRenderSystem(class NxOgre::Scene *,class Ogre::SceneManager *)" (??0OGRE3DRenderSystem@@QAE@PAVScene@NxOgre@@PAVSceneManager@Ogre@@@Z) referenced in function "protected: virtual void __thiscall BloodyMessTutorial5::createScene(void)" (?createScene@BloodyMessTutorial5@@MAEXXZ) simple_sample.obj

Error 2 error LNK2019: unresolved external symbol "public: class OGRE3DBody * __thiscall OGRE3DRenderSystem::createBody(class NxOgre::Shape *,class NxOgre::Real3,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class NxOgre::RigidBodyDescription const &)" (?createBody@OGRE3DRenderSystem@@QAEPAVOGRE3DBody@@PAVShape@NxOgre@@VReal3@4@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABVRigidBodyDescription@4@@Z) referenced in function "protected: virtual void __thiscall BloodyMessTutorial5::createScene(void)" (?createScene@BloodyMessTutorial5@@MAEXXZ) simple_sample.obj

Error 3 error LNK2019: unresolved external symbol "public: class OGRE3DKinematicBody * __thiscall OGRE3DRenderSystem::createKinematicBody(class NxOgre::Shape *,class NxOgre::Real3,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class NxOgre::RigidBodyDescription const &)" (?createKinematicBody@OGRE3DRenderSystem@@QAEPAVOGRE3DKinematicBody@@PAVShape@NxOgre@@VReal3@4@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABVRigidBodyDescription@4@@Z) referenced in function "protected: virtual void __thiscall BloodyMessTutorial5::createScene(void)" (?createScene@BloodyMessTutorial5@@MAEXXZ) simple_sample.obj

spacegaier

14-06-2009 20:25:11

there are only about two tutorials for the latest version
I already wrote five and more are to come (No. 6 is already in a good shape).

Your problem looks very much as if you forgot to link to the NxOgreOGRE3D.lib (or its debug version). This is needed as you want to use functions provided by the OGRE3DRenderSystem. Add this dependency in the linker settings and you should be fine.

Pakaffy

15-06-2009 08:21:13

Thanks alot spacegaier, for some reason it wanted the release libs in the debug folder so when I put them in there everything ran peachy keen. Also found your other tutorials, much love for those.

Sorry to bother you all again, but after running the tutorial I came up with a blank screen that crashed out to a 'Ogre exception; An Object of type Entity with name -entity already exists. in SceneManager::CreateMovableObject at (url to ogrescenemaager)' Have had a look around to see if anyone has encountered a similar problem but I wasn't able to find any answers that helped. Has anyone come across this particular error? I am thinking it is something fundamental again, but I have gone through recompiled and reinstalled Nx and still the problem persists.

spacegaier

15-06-2009 09:26:09

Well, that's an Ogre error telling you that you are trying to create two Entites with the same name which isn't allowed in Ogre since the name serves as the primary identification key.

Pakaffy

15-06-2009 09:39:47

EDIT; Nevermind! I fixed it! Thanks again!


I got the error from this;
mCube = mRenderSystem->createBody(new NxOgre::Box(1, 1, 1), NxOgre::Real3(0, 40, 0), "cube.mesh");
mCubeTwo = mRenderSystem->createBody(new NxOgre::Box(1, 1, 1), NxOgre::Real3(20, 45, 0), "cube.mesh");
mCubeTwo->addForce(NxOgre::Real3(-800, -200, 0), NxOgre::Enums::ForceMode_Force);

I commented out the mCube and everything rendered fine?