capture
08-02-2008 01:26:30
I am trying to load a terrain into cake and drop some cubes on it, but i am having trouble. I am trying to use the ogre terrain file from the Ogre samples. I load the terrain with this code
But, this does not seem to be working correctly. When i mess with the scale or the 100 number i end up either making the cubes collide with the terrain above or below where the actually rendered terrain is.
What parameters should i be using for this terrain, or how would i find them out?
<edit>
Never mind. I have figured it out. The 100 is the height of the terrain. And the scale needs to be the PageWorld / PageSize.
mTerrainActor = mScene->createActor("terrain", new TerrainShape("terrain.png",100,"mesh-scale: 2 1 2"),Vector3(0, 0, 0), "static: yes");
But, this does not seem to be working correctly. When i mess with the scale or the 100 number i end up either making the cubes collide with the terrain above or below where the actually rendered terrain is.
What parameters should i be using for this terrain, or how would i find them out?
<edit>
Never mind. I have figured it out. The 100 is the height of the terrain. And the scale needs to be the PageWorld / PageSize.