Projection matrix on Android

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
Post Reply
j1230xz
Gnoblar
Posts: 21
Joined: Mon May 13, 2013 3:21 pm

Projection matrix on Android

Post 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
User avatar
Wolfmanfx
OGRE Team Member
OGRE Team Member
Posts: 1525
Joined: Fri Feb 03, 2006 10:37 pm
Location: Austria - Leoben
x 99
Contact:

Re: Projection matrix on Android

Post by Wolfmanfx »

Set the projection matrix inside the Ogre::Camera
j1230xz
Gnoblar
Posts: 21
Joined: Mon May 13, 2013 3:21 pm

Re: Projection matrix on Android

Post 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?
Post Reply