Hi, I’ve been having a little problem with a program I’m working on.
I have made the foundation for a multiplayer game, in which you fly around in space, using a dedicated server.
My problem is that if a player sees another player, he also needs to know how much he is rotated. And as such, an easy way would be for players to send their total rotation-data to the server each time it changes. (e.g. the players turns around)
I have the matrix (I think) that all the scaling, position and rotations are performed on, but I cannot find a way to get the four values that the other players need to apply to the “other-player” object’s matrix to locally rotate it. (using glrotatef)
In short, with the modelview matrix (I think its that one), how do I figure out what four values to pass to glrotatef to make another object, using a clean identity matrix, be oriented the same way? (if this is possible in this way at all)