Commit 12edbcd9 authored by Ken Martin's avatar Ken Martin
Browse files

Made some changes to transform getorientation

parent 50651111
......@@ -441,7 +441,8 @@ void vlCamera::CalcPerspectiveTransform ()
float view_ratio;
float distance, distance_old;
float twist;
float *temp;
this->PerspectiveTransform.PostMultiply();
this->PerspectiveTransform.Identity();
......@@ -531,9 +532,10 @@ void vlCamera::CalcPerspectiveTransform ()
this->PerspectiveTransform.Concatenate(matrix);
// now set the orientation
this->PerspectiveTransform.GetOrientation(this->Orientation[0],
this->Orientation[1],
this->Orientation[2]);
temp = this->PerspectiveTransform.GetOrientation();
this->Orientation[0] = temp[0];
this->Orientation[1] = temp[1];
this->Orientation[2] = temp[2];
view_ratio = tan ((fabs (this->ViewAngle) / 2.0) *
(3.1415926 / 180.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