PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

internal Parameters of the camera

Hi Edgelib:

I have the matrix(3X4) of internal parameters of the camera. How can I convert this to Edgelib internal camera? How can I make them the same? Thank you.
Hi Gar,

Can you tell me if it's the projection or the model view matrix?

If it's the modelview matrix you can lock each surface and manually copy the matrix to it and reset the display (world) matrix before rendering.

If it's the projection matrix it's only possible when using OpenGL (ES). Here is a sample to change the projection matrix in OpenGL:

Code:

glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glMultMatrixf((const GLfloat *)yourmatrix);


Please note that matrixes must be converted to 4x4.