35 SurveyMapTextureCreator::SurveyMapTextureCreator(Ogre::Real terrain_height) :
38 mTerrainHeight(Math::Clamp(terrain_height + 100.0f, 150.0f, 2500.0f))
51 Ogre::TextureManager::getSingleton().remove(
mTexture);
57 Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, Ogre::TEX_TYPE_2D, res, res,
58 Ogre::TU_RENDERTARGET, Ogre::PF_R8G8B8, Ogre::TU_RENDERTARGET, 0,
false, fsaa);
72 mCamera->setFixedYawAxis(
false);
73 mCamera->setDirection(-Vector3::UNIT_Y);
74 mCamera->setProjectionType(PT_ORTHOGRAPHIC);
75 mCamera->setNearClipDistance(1.0f);
79 mViewport->setBackgroundColour(ColourValue::Black);
80 mViewport->setOverlaysEnabled(
false);
81 mViewport->setShadowsEnabled(
false);
82 mViewport->setSkiesEnabled(
false);
92 mCamera->setOrthoWindow(size.x, size.y);
104 water->SetForcedCameraTransform(
mCamera->getFOVy(),
106 water->UpdateWater();
107 water->ClearForcedCameraTransform();
124 return Ogre::TextureManager::getSingleton().loadImage(texName, rgName, img);