I run my application by 1024 * 768 fullscreen mode. The picture is not as clear as I want. The vertical lines looks good, but the horizontal lines looks bad.
And I found that when I show a 1024 * 512 picture, it works well.
I have tried several way to show the background, and the result was same. I use
http://www.ogre3d.org/wiki/index.php/Di ... ackgrounds.
and
http://www.ogre3d.org/wiki/index.php/SpriteManager2d
and also tried to use Overlay.
this is my code. It's modifed from http://www.ogre3d.org/wiki/index.php/Di ... ackgrounds.
MaterialPtr material = MaterialManager::getSingleton().create("Background", "General");
material->getTechnique(0)->getPass(0)->createTextureUnitState("test3.png");
material->getTechnique(0)->getPass(0)->setDepthCheckEnabled(false);
material->getTechnique(0)->getPass(0)->setDepthWriteEnabled(false);
material->getTechnique(0)->getPass(0)->setLightingEnabled(false);
material->getTechnique(0)->getPass(0)->setTextureFiltering(TFO_NONE);
// Create background rectangle covering the whole screen
Rectangle2D* rect = new Rectangle2D(true);
Ogre::RenderSystem * rs = Root::getSingleton().getRenderSystem();
Real a = rs->getHorizontalTexelOffset();
Real hoffset = rs->getHorizontalTexelOffset() / (0.5 * 1024);
Real voffset = rs->getVerticalTexelOffset() / (0.5 * 768);
rect->setCorners(-1 + hoffset, 1 - voffset, 1 + hoffset, -1 - voffset);
rect->setMaterial("Background");
// Render the background before everything else
rect->setRenderQueueGroup(RENDER_QUEUE_BACKGROUND);
// Hacky, but we need to set the bounding box to something big
// NOTE: If you are using Eihort, please see the note below on setting the bounding box
rect->setBoundingBox(AxisAlignedBox(-100000.0*Vector3::UNIT_SCALE, 100000.0*Vector3::UNIT_SCALE));
// Attach background to the scene
SceneNode* node = mSceneMgr->getRootSceneNode()->createChildSceneNode("Background");
node->attachObject(rect);
this the png file

this the screen shot
