Cant load my artifex terra 3d scene into ogre

Blender2Ogre

02-09-2012 00:13:54

hi everyone,
i wanted to load my artifex terra scene into ogre but i cant compile it, this is the error i get :
1>IntermediateTutorial1.obj : error LNK2019: unresolved external symbol "public: bool __thiscall ArtifexLoader::loadZone(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,bool,bool,bool,bool,bool,bool,bool,bool,bool)" (?loadZone@ArtifexLoader@@QAE_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_N11111111@Z) referenced in function "protected: virtual void __thiscall IntermediateTutorial1::createScene(void)" (?createScene@IntermediateTutorial1@@MAEXXZ)
1>bin\Debug\\IntermediateTutorial1.exe : fatal error LNK1120: 1 unresolved externals

and the code i used to load the scene is this one :
mArtifexLoader = new ArtifexLoader(*mArtifexLoader);
mArtifexLoader->loadZone(std::string("C:/Users/HDFoiPhoda/Documents/Terrain2"),true,false,false,true,true,true,true,true,true);


any clue why im getting this error?
any help is greatly appreciated!
Romulo Romero

Blender2Ogre

02-09-2012 16:13:03

ok now it works but i cant see the heightmap...anyone know why i cant see the mountains i created and all the other things i sculpt?
this is the code :

mArtifexLoader = new ArtifexLoader(mRoot, mSceneMgr, mSceneMgr->getRootSceneNode()->createChildSceneNode(), mCamera, "C:/Users/HDFoiPhoda/Documents/");
mArtifexLoader->loadZone("Terrain2");


any help is greatly appreciated!
Romulo Romero

EDIT: this is how it looks like a flat terrain..
[/url]

Blender2Ogre

02-09-2012 21:00:28

btw where can i find a tutorial of how to create terrains for artifex terra in ogre, i was using the basic tutorial 3 to load my terrains but i guess that will no longer work, i used it just to see the artifex scene loading into ogre but now i need to find a way to create terrains with artifex terra, can anyone help me out?
thx in advance,
Romulo Romero

PS: maybe this is why the height maps isnt working

Nauk

03-09-2012 01:37:26

I assume you are using ETM? Seems like the loader is loading the ETterrain.png and you only have saved to the binary "artifex_terrain.bin". Delete the "ETterrain.png" file. If that does not work try to load the demozone "normaltest" that comes with Artifex. In case you are working with the normal Ogre Terrain SceneManager (TSM) you only can load from the "ETterrain.png", then you need to open your project again, hit Ctrl+F and Export the heightmap as PNG.

Hope that helps.
//Nauk

Blender2Ogre

03-09-2012 23:53:04

hi Nauk,
first of all i appreciate your reply, and yeah i am using ETM(artifex terra 3d), and i think i am using the ogre terrain scene manager i guess, i am using the basic tutorial 3 method to load the terrain but i really want to use the ETM method of loading terrains, and i wonder if the sample file which contains this method is this one "ArtifexLoaderTerrain.cpp" in the loader folder?? if not can you please point me to a direction and show me how i can learn to load ETM terrains from ogre?
im sorry if that sounds stupid to you but i am still a newbie ...maybe intermediate but i have a lot to learn yet and i appreciate if you can help me with that!
i look forward for a reply and thanks in advance,
Romulo Romero