Strange bugs when using glGetFixed()?
Posted: Wed May 21, 2014 10:14 pm
I've noticed some strange behaviour with glGetFixed() before when using it to fetch the view direction matrix. Feeding it a regular int* n or int* n =nullptr seems to cause a change of state in a completely unrelated member in an unrelated class. "Whatever", I thought. Initializing an int[] to {0,0,0,0,0,0,0,0,0} did the trick.
However, today I also needed the world coordinates of the camera, so I figured I'd try my luck using GL_GET_MATRIX_POSITION. This, however, causes a serious grahical bug; almost as if Vblank/ Hblank is suddenly very confused. Printing the results also doesn't give me the appropriate values. The entire matrix is filled with zeroes, except the first element which is 1000. (My camera's position is definitely not at the origin.)
Does anyone have any clues as to what could be going on here? I'm thoroughly confused at this.
Thanks in advance,
Patrick
However, today I also needed the world coordinates of the camera, so I figured I'd try my luck using GL_GET_MATRIX_POSITION. This, however, causes a serious grahical bug; almost as if Vblank/ Hblank is suddenly very confused. Printing the results also doesn't give me the appropriate values. The entire matrix is filled with zeroes, except the first element which is 1000. (My camera's position is definitely not at the origin.)
Does anyone have any clues as to what could be going on here? I'm thoroughly confused at this.
Thanks in advance,
Patrick