ironwolf151
27-05-2009 12:52:24
Hi,
Is it possible to use a worldgeometry (like the terrain.cfg in Ogre tutorial) ?
Because i would like to use it and have sphere collisions with it , but i don't find any tutorial to do it with bloodymess.
I found some tutorials with bleeding but it uses terrainShapes and i don't find terrainShapes in BloodyMess.
So how can id o it please if it's possible ?
Thanks
spacegaier
27-05-2009 13:02:12
You can take the texture used in the terrain.cfg as input for flour to create a XHF file (hieghtfield) and then load this as a heightfield in NxOgre.
ResourceSystem::getSingleton()->openArchive("media", "file:D:/Visual Studio 2005 Workspace/Projects/NxOgre Demo/NxOgre Demo/bin/release/media");
HeightField* hf = HeightFieldManager::getSingleton()->load("media:hills_2.xhf");
HeightFieldGeometry* hfg = new HeightFieldGeometry(hf, Real3(10, 10, 10));
hfg->setTerrainCentering(Enums::TerrainCentering_CenterAbove);
m_pScene->createSceneGeometry(hfg);
ironwolf151
27-05-2009 14:15:02
We must usea image to obtain a xhf file ?
Or it's possibleto obtain it with a cfg file ?
Because , the best for me is to use a cfg filewith collisions.
So is it possible to have collisions with a .cfg ?
If yes,how is it possible ?
Thanks.
betajaen
27-05-2009 14:26:20
NxOgre cannot use or read raw used in the cfg files, you must convert them to a NxOgre XHF file using Flour.
ironwolf151
27-05-2009 14:33:14
erf, and i guess it's not possible to convert a cfg file to xhf file ?
So i want to do a map for my game i will need to do it with paint or photoshop to create it ? hard ...
betajaen
27-05-2009 14:39:21
A cfg file is a text file? Which I assume you reference a RAW image for the heightfield? Then just use that.