Terrain Linking problems

fzh

21-01-2009 14:07:03

Hi, recently I was upgrading my engine to newest bleeding nxogre. Everything was fine until I tried creating the terrain.

String heightmap = terrainCfg->getSetting("Heightmap.image");
NxOgre::Terrain* mTerrain = new NxOgre::Terrain(heightmap, Vector3(6000,400,6000),"","");
mGround = mScene->createActor("terrain", mTerrain, Vector3::ZERO, "static: yes");


error LNK2001: unresolved external symbol "public: __thiscall NxOgre::Terrain::Terrain(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class Ogre::Vector3,class NxOgre::ShapeParams const &,class NxOgre::TerrainParams const &)" (??0Terrain@NxOgre@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@VVector3@Ogre@@ABVShapeParams@1@ABVTerrainParams@1@@Z)

This is the error I get, I'm very sure the library file, and source file are of the same version of nxOgre. Would appreciate if anyone could help with this. Thanks.

BTW, using visual studio 2005 SP1

betajaen

21-01-2009 14:45:01

NxOgre use the Ogre terrain classes, you need to convert your image into a "xhf" (Heightfield) using Flour. Then load it that way.

fzh

22-01-2009 12:06:58

So i've downloaded flour 0.32, converted the heightmap to raw, and used the following command.

flour convert in: map2.raw, into: heightfield, out: map2.xhf, width: 1025, height: 400, depth:16, signed: no

I got the error: FAILURE! Unknown File-Format.

I thought it could be my heightmap, so I used the hftest.raw in example instead, and it returned the same error message.

Not sure whether it could be the problem with my physx SDK, the version I have is 2.8.1, and it seems that flour is for 2.8.0, or is it because the latest stable bleeding from svn is not for 2.8.1?