Linking errors with Static Geomerty D:

danharibo

03-04-2007 17:11:00

------ Build started: Project: POC, Configuration: Debug Win32 ------
Compiling...
Map.cpp
Linking...
Map.obj : error LNK2001: unresolved external symbol "public: void __thiscall nxOgre::staticGeometryBody::build(void)" (?build@staticGeometryBody@nxOgre@@QAEXXZ)
Map.obj : error LNK2001: unresolved external symbol "public: class nxOgre::staticGeometryBody __thiscall nxOgre::staticGeometryBody::add(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class nxOgre::pose)" (?add@staticGeometryBody@nxOgre@@QAE?AV12@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@Vpose@2@@Z)
bin\Debug\POC.exe : fatal error LNK1120: 2 unresolved externals
Build log was saved at "file://c:\Documents and Settings\Dan\My Documents\Visual Studio 2005\Projects\Simufarm\Proof_of_concept\POC\POC\obj\Debug\BuildLog.htm"
POC - 3 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

D: I'm linking to NxOgre, and other Code Builds

betajaen

03-04-2007 17:46:16

The "StaticGeometry" class isn't written, and it's slighty different from the class of the same name in Ogre.

danharibo

03-04-2007 17:59:48

Then how can i make static geometry?

betajaen

03-04-2007 18:24:46

As you would in Ogre, and just make bodies without any entities.

danharibo

03-04-2007 18:31:10

As you would in Ogre, and just make bodies without any entities.Yes, but then i won't collide with it

betajaen

03-04-2007 18:37:52

and just make bodies without any entities.

It will if you create them.

danharibo

03-04-2007 19:11:01

and just make bodies without any entities.

It will if you create them.

I don't think i understand? Create What Entities? Ogre Or NxOgre?

betajaen

03-04-2007 19:39:37

You create the entities and attach them to some static geometry in Ogre, and you create some bodies without any meshnames which use the same meshes as meshShapes in NxOgre.

danharibo

03-04-2007 20:12:47

You create the entities and attach them to some static geometry in Ogre, and you create some bodies without any meshnames which use the same meshes as meshShapes in NxOgre.
so like

Static Geometry...
body* sdkf = scene->createbody("lolmap","",meshshape("WORLD.mesh"),0.0f,offset);
?

betajaen

03-04-2007 20:29:50

Yep, basically.

danharibo

04-04-2007 17:22:43

mWorld = world::getSingletonPtr();
scene* mScene = mWorld->getScene("Main");
mScene->createBody(mesh,"",new meshShape(mesh),0);
//mScene->findBody(mesh)->setGlobalPosition(Offset);
Ogre::StaticGeometry* mMapGeometry = Ogre::Root::getSingleton().getSceneManager("SufSceneMgr")->createStaticGeometry("Map");
Ogre::Entity* mesh2 = Ogre::Root::getSingleton().getSceneManager("SufSceneMgr")->createEntity(mesh,mesh);
mMapGeometry->addEntity(mesh2,Ogre::Vector3::ZERO);
mMapGeometry->build();
I'm using that But Nothing collides with it.

betajaen

04-04-2007 17:44:25

Probably because you have no concept between the difference of static and dynamic bodies.

You want createStaticBody