Commit 48409ded authored by Ken Martin's avatar Ken Martin
Browse files

fixed elevation bug

parent d71ebd1f
......@@ -457,6 +457,7 @@ void vtkCamera::CalcViewTransform()
// Rz just equals the VPN
Rz = this->ViewPlaneNormal;
math.Cross(this->ViewUp,Rz,Rx);
math.Normalize(Rx);
math.Cross(Rz,Rx,Ry);
matrix[0][0] = Rx[0];
......@@ -527,6 +528,7 @@ void vtkCamera::CalcPerspectiveTransform(float aspect,
// Rz just equals the VPN
Rz = this->ViewPlaneNormal;
math.Cross(this->ViewUp,Rz,Rx);
math.Normalize(Rx);
math.Cross(Rz,Rx,Ry);
matrix[0][0] = Rx[0];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment