Blair
12-08-2010, 01:12 PM
Hi, thanks in advance for taking the time to read this.
Recently I have been trying out PyOpenGL (Gotta use python for first year uni..no idea why I prefer java or C++)
So im writing a 3D maze application (or trying too) and have created a 4 x 4 matrix class with methods for multiplying, transposing etc. But when I try and load this with:
glLoadMatrixd(camera.transpose().getMatrix()
(From the documentation it appears I needed a transpose.
But this does not do anything, using glGet to write out the MODEL_VIEW matrix (even tried the PROJECTION matrix just incase) shows that it is always the same matrix - Nowhere near mine.
Any idea what the issue may be?
Thanks ,
Blair
Recently I have been trying out PyOpenGL (Gotta use python for first year uni..no idea why I prefer java or C++)
So im writing a 3D maze application (or trying too) and have created a 4 x 4 matrix class with methods for multiplying, transposing etc. But when I try and load this with:
glLoadMatrixd(camera.transpose().getMatrix()
(From the documentation it appears I needed a transpose.
But this does not do anything, using glGet to write out the MODEL_VIEW matrix (even tried the PROJECTION matrix just incase) shows that it is always the same matrix - Nowhere near mine.
Any idea what the issue may be?
Thanks ,
Blair