* [EMAIL PROTECTED] (Michael Selig) [2002.02.23 13:32]:
> At 2/23/02, you wrote:
> >* [EMAIL PROTECTED] (Boslough, Mark B) [2002.02.22 18:40]:
> >> Is there no longer a tower view option?  0.7.8 could toggle from
> >> pilot to chase to tower view, I believe.  0.7.9 does not seem to
> >> have this feature.
> >
> >I think you're mistaken.  FlightGear has never had a tower view.
> 
> In my 0.7.8 main.cxx I have this snippet of code:
> 
>         // Tower View
>         FGViewerLookAt *tower_view =
>           (FGViewerLookAt *)globals->get_viewmgr()->get_view( 2 );
> 
>         tower_view->set_view_forward( pilot_view->get_view_pos() );
> 
>         if (!tower_view_initialized) {
>           tower_view->set_geod_view_pos( cur_fdm_state->get_Longitude(),
>                                          cur_fdm_state->get_Lat_geocentric(),
>                                          (cur_fdm_state->get_Altitude()+200)*
>                                          SG_FEET_TO_METER );
>           tower_view->set_sea_level_radius( cur_fdm_state->
>                                             get_Sea_level_radius()*
>                                             SG_FEET_TO_METER );
>           tower_view->set_pilot_offset( npo[0], npo[1], npo[2] );
>           tower_view->set_view_up( wup );
>           tower_view_initialized = true;
>         }
> 
> ... and I can toggle the 'v' key to go from cockpit, to external rear view, 
> to a tower view (when flying at the default airport) --- works great.  Is 
> this not part of the standard fgfs?  I mentioned to Mark that we have this 
> working in our fgfs 0.7.8.  I don't see this same piece of code in 0.7.9, 
> however.

Michael,
You had to have put that there yourself because that was never committed
to CVS (I know...I wrote it).  It works, but it's a major hack and
shouldn't be in the official FG source (IMHO).

Someone needs to rewrite the viewer code to allow viewpoints to be added
at runtime; then, we can define a tower position for specific airports
and allow you to switch to the nearest tower.  And as usual, I don't
have the time (much less the programming prowess) to take on such a
task.
-- 
Cameron Moore
[ Would a fly without wings be called a walk? ]

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to