wizumwalt
08-03-2009 01:02:10
Why after running MapSplitter would my file names appear as :
terrain0.0.png
terrain0.1.png
terrain0.2.png
There's no '.' after the name and before the X. I get errors saying that filename terrain.0.0.png is not found, so I have to rename the files.
I've got a 4096x4096 png file that I draw my terrain w/ using GIMP. All of my hills look like a contour map if you saw it from the sky. As you go up a hill, it's like looking at steps as you move up and down. How do I smooth that out so my height elevations don't look like steps? Also, depending on my hills height, it's completely yellow, or some color, but not the color of the texture. Where does that come from?
I've always used the Samples code like below in my frameStarted function to clamp my camera to the terrain. Is there some reason this should be different now and doesn't work?
Any help much appreciated.
terrain0.0.png
terrain0.1.png
terrain0.2.png
There's no '.' after the name and before the X. I get errors saying that filename terrain.0.0.png is not found, so I have to rename the files.
I've got a 4096x4096 png file that I draw my terrain w/ using GIMP. All of my hills look like a contour map if you saw it from the sky. As you go up a hill, it's like looking at steps as you move up and down. How do I smooth that out so my height elevations don't look like steps? Also, depending on my hills height, it's completely yellow, or some color, but not the color of the texture. Where does that come from?
I've always used the Samples code like below in my frameStarted function to clamp my camera to the terrain. Is there some reason this should be different now and doesn't work?
// Clamp to terrain.
static Ray updateRay;
updateRay.setOrigin(mCamera->getPosition());
updateRay.setDirection(Vector3::NEGATIVE_UNIT_Y);
raySceneQuery->setRay(updateRay);
RaySceneQueryResult& qryResult = raySceneQuery->execute();
RaySceneQueryResult::iterator i = qryResult.begin();
if (i != qryResult.end() && i->worldFragment) {
mCamera->setPosition(mCamera->getPosition().x,
i->worldFragment->singleIntersection.y + hover_height,
mCamera->getPosition().z);
}
Any help much appreciated.