Computing a normal matrix in conjunction with gluLookAt
- by Chris Smith
I have a hand-rolled camera class that converts yaw, pitch, and roll angles into a forward, side, and up vector suitable for calling gluLookAt. Using this camera class I can modify the model-view matrix to move about the 3D world just fine.
However, I am having trouble when using this camera class (and associated model-view matrix) when trying to…