-#if 0
- double agl = current__view->getAltitudeASL_ft()*SG_FEET_TO_METER
- - current__view->getSGLocation()->get_cur_elev_m();
-
- float scene_nearplane, scene_farplane;
- // XXX Given that the own airplane model is part of the scene
- // graph, should this business be ripped out? The near plane is
- // ignored by setCameraParameters.
- if ( agl > 10.0 ) {
- scene_nearplane = 10.0f;
- scene_farplane = 120000.0f;
- } else {
- scene_nearplane = groundlevel_nearplane->getDoubleValue();
- scene_farplane = 120000.0f;
- }
- setCameraParameters(current__view->get_v_fov(),
- current__view->get_aspect_ratio(),
- scene_nearplane, scene_farplane);
-#endif