Page 1 of 1

Projection matrix on Android

Posted: Wed Aug 07, 2013 4:05 pm
by j1230xz
It seems that GLES2RenderSystem::_setProjectionMatrix is not working,
this is the implementation

Code: Select all

    void GLES2RenderSystem::_setProjectionMatrix(const Matrix4 &m)
    {
		// Nothing to do but mark clip planes dirty
        if (!mClipPlanes.empty())
            mClipPlanesDirty = true;
    }
it is not setting the requested projection matrix. What is the correct way to set the projection matrix on GLES2 render system? Is there a way?

Thank you,
Nikola

Re: Projection matrix on Android

Posted: Wed Aug 07, 2013 6:10 pm
by Wolfmanfx
Set the projection matrix inside the Ogre::Camera

Re: Projection matrix on Android

Posted: Thu Aug 08, 2013 11:58 am
by j1230xz
Wolfmanfx wrote:Set the projection matrix inside the Ogre::Camera
Actually I need to change the projection matrix only for some objects during the drawing (in preRender method of my Renderable).
If I change it in Ogre:Camera it will be applied to the whole scene
Is there a way?