# Unknown array of floating point numbers. View matrix?

I want to control the camera in an old game using head tracking (TrackIR, opentrack, etc.), such control was not provided by the game engine. I'm trying to find the camera coordinates and rotation angles in memory so that I can recalculate them with my program. I haven't worked seriously with 3D until now. So far I have found some float array in memory and am trying to figure out how it works.

In the main menu of the game, when the map is not yet loaded, the values are:

In the loaded map, I have screened 3 states when looking parallel to the axes of the map. In a practical way, moving around the map, I found the coordinates X, Y, Z (Z - height)

Googling a bit, I think it's possible "View matrix" or "Rotate matrix". I ask for help from those who understand 3D, did I determine correctly? Links to articles on how it works are welcome :)

• What you are asking is confuse. What is your question ?
– user1703
Commented Apr 4, 2023 at 18:26
• The topic of 3D rotation is not so easy. en.wikipedia.org/wiki/Rotation_matrix#In_three_dimensions In addition to rotation, translations are handled with a $4\times4$ "affine" matrix.
– user1703
Commented Apr 4, 2023 at 18:28

Yep, that looks like a view matrix. A matrix can be stored in either row- or column-major order; that one appears to be column-major. As you’ve identified, the last row / column of it (the values you’ve marked as X, Y, and Z) are the camera position (followed by a 1, for complicated reasons); that would make the other three rows / columns the X, Y, and Z basis vectors (at …98, A8, and B8 respectively).