yoyopig
26-11-2008 07:05:21
hi! everyone. could someone tell me how to make the heightfield (scale, position etc.) fit with the ogre terrain?

they are all created by the same RAW image. Thank you!
mcaden
26-11-2008 07:34:22
bake it to a .xhf file using flour
yoyopig
26-11-2008 07:51:21
thank you for replying.
bake it to a .xhf file using flour
I sorry, i didn't make my meaning crystal clear.
I mean that the heightfield ( a .xhf created by flour ) using
mNxScene->createActor("terrain_actor", terrain, Ogre::Vector3(0,0,0), "static: yes");
couldn't fit the terrain created by ogre
std::string terrain_cfg("terrain.cfg");
mSceneMgr -> setWorldGeometry( terrain_cfg );
is there any idea to make heightfield fit with the graph?
lonwolf
18-12-2008 18:51:55
try some offsets and rotations when creating the actor. once it's static you can't do things with it. What exactly do you mean by not fitting? as position / rotation or size?
i only had a similar problem but with a trianglemesh shape that didn't fit the entity, and i had to move it a bit around ( the mesh center of object was displaced ). But that was a long long time ago