PocketMatrix forums

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

Edgelib 3.6 does not play nice with glLoadMatrixf

Hi,
In previous versions of Edgelib, I was able to mix glLoadMatrixf() calls with model.Render() calls to render objects with my own projection and transformation matrices. However, the same code breaks down under Edge 3.6

It's as if the Render() call assumes a different matrix stack and disregards the current ones set using OpenGL. Could you please fix this and expose some methods to set a 4x4 world projection matrix as well as transformation matrices ?
Hi Countzero,

It's possible to modify the matrixes of single surfaces directly. Use E3DSurface::Lock, and modify the matrix in the E3DSURFACEINFO structure. Convert your floating point to fixed point values.

We recommend resetting the world matrix, and use custom matrices on all surfaces. Your projection matrix code should still work.