with this code
Code: Select all
Ogre::SceneNode* cameraNode = gameSceneMgr->getSceneNode("basicNode")->createChildSceneNode("cameraNode");
camera = gameSceneMgr->createCamera("gameCamera");
cameraNode->setPosition(Ogre::Vector3(0, GameStates::SIZEY/2, -GameStates::SIZEX*1.2));
cameraNode->attachObject(camera);
camera->lookAt(Ogre::Vector3(0, 0, 50));
camera->setNearClipDistance(1);
camera->setAspectRatio(Ogre::Real(OgreFramework::getSingletonPtr()->m_pViewport->getActualWidth()) /
Ogre::Real(OgreFramework::getSingletonPtr()->m_pViewport->getActualHeight()));
OgreFramework::getSingletonPtr()->m_pViewport->setCamera(camera);
*-*-* OGRE Initialising
*-*-* Version 1.7.3 (Cthugha)
Installing plugin: OpenGL ES 1.x RenderSystem
and in linux normal with openGL render system and ogre version 1.7.3
the results are:

using linux

using iphone
main problem is the orientation of the camera, set position works fine with the players, the soccer map i think i can't visualize correctly because with openglES1 i can't put a texture in a plane, using ogre 1.8 with opengles 2 can correct this? and the gorilla GUI can be corrected turning 270 degree
any idea about how to resolve the camera problem? i tried to use set direction/set orientation/look at methods and i don't have any correct result
i created the viewport with the next lines before making the camera:
Code: Select all
m_pViewport = m_pRenderWnd->addViewport(0);
m_pViewport->setBackgroundColour(ColourValue(0.8, 0.8, 0.8, 1.0));
m_pViewport->setCamera(0);
