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 » Wed Aug 07, 2013 4:05 pm

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
0 x

User avatar
Wolfmanfx
OGRE Team Member
OGRE Team Member
Posts: 1525
Joined: Fri Feb 03, 2006 10:37 pm
Location: Austria - Leoben
x 1
Contact:

Re: Projection matrix on Android

Post by Wolfmanfx » Wed Aug 07, 2013 6:10 pm

Set the projection matrix inside the Ogre::Camera
0 x

j1230xz
Gnoblar
Posts: 21
Joined: Mon May 13, 2013 3:21 pm

Re: Projection matrix on Android

Post by j1230xz » Thu Aug 08, 2013 11:58 am

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?
0 x

Post Reply