Hi,

With the kind of game I'm developing there's a lot of reorientation of the vertical axis. I'm using a quaternion representation of things but gimbal lock is still a problem.The process of deriving euler angles from the quaternion is the problem. I know that if I were able to directly construct a view matrix using my quaternion that this problem could be resolved.

I've tried manually setting the view matrix when the render_sky event (and the others like it) are fired. Unfortunately this only seemed to break rendering of my player character and not affect the world or sky at all. Is it at all possible to override the engine's view matrix at all?

Any help would be really appreciated, this is the last major technical thing to be tackled before the game's done.