i'm working on a game where i want a camera system like in "Sins of a solar empire". But in my settings must be something wrong and i don't get it.
First a picture of what i get:
As you can see, planets on the border of the screen aree looking like pills
Here some code:
/* Setting up the camera */
Code: Select all
m_CameraNode = m_SceneManager->addCameraSceneNode(0, vector3df(0,0,0.0f), vector3df(0,0,200.0f));
m_CameraNode->setFOV(degToRad(90.0f));
m_CameraNode->setNearValue(2.0f);
m_CameraNode->setFarValue(2000.0f);
m_CameraNode->setAspectRatio(CGameManager::GetAspectRatio()); //where aspect ratio = screen width / screen height
Code: Select all
m_VideoDriver->beginScene(true, true, SColor(255,0,0,0));
m_VideoDriver->draw3DLine(m_Ray.start, m_Ray.end, SColor(255,255,255,255));
m_SceneManager->drawAll();
m_GUIEnv->drawAll();
m_VideoDriver->endScene();
Thx in advance!
radical-dev