globals->get_viewmgr()->copyToCurrent();
}
//Set the camera to the cockpit view to get the view of the runway from the cockpit
- ssgSetCamera((sgVec4 *)cockpit_view->get_VIEW());
+ // OSGFIXME
+// ssgSetCamera((sgVec4 *)cockpit_view->get_VIEW());
get_rwy_points(points3d);
//Get the current project matrix
- ssgGetProjectionMatrix(projMat);
+ // OSGFIXME
+// ssgGetProjectionMatrix(projMat);
// const sgVec4 *viewMat = globals->get_current_view()->get_VIEW();
//Get the current model view matrix (cockpit view)
- ssgGetModelviewMatrix(modelView);
+ // OSGFIXME
+// ssgGetModelviewMatrix(modelView);
//Create a rotation matrix to correct for any offsets (other than default offsets) to the model view matrix
sgMat4 xy; //rotation about the Rxy, negate the sin's on Ry
xy[0][0] = cYaw; xy[1][0] = 0.0f; xy[2][0] = -sYaw; xy[3][0] = 0.0f;
curr_view->setGoalPitchOffset_deg(gpo);
}
//Set the camera back to the current view
- ssgSetCamera((sgVec4 *)curr_view);
+ // OSGFIXME
+// ssgSetCamera((sgVec4 *)curr_view);
glPopAttrib();
}//if not broken
}
geo_direct_wgs_84(alt, frontLat, frontLon, runway._heading + 90, width, &tempLat, &tempLon, &az);
sgGeodToCart(tempLat * SG_DEGREES_TO_RADIANS, tempLon * SG_DEGREES_TO_RADIANS, alt, points3d[3]);
-
- //Get the current tile center
- SGVec3d tileCenter = globals->get_scenery()->get_center();
- for (int i = 0; i < 6; i++) {
- points3d[i][0] -= tileCenter.x();
- points3d[i][1] -= tileCenter.y();
- points3d[i][2] -= tileCenter.z();
- }
}