On Sat, 23 Feb 2002 13:29:48 -0600, Michael Selig <[EMAIL PROTECTED]> wrote in message <[EMAIL PROTECTED]>:
> 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. > ..so, I can drop the above in @ line no 465 between "FGViewerRPH *pilot_view =" @ line no 448 and "FGVieverLookAt *chase_view =" @ line no 466, to have a "cockpit view"-"tower view"-"chase view" 3 state toggle? ..would I need changes like these below around line nos 1471-1475 in main.cxx? ..like "FGViewerLookAt *tower_view = new FGViewerLookAt; globals->get_viewmangr()->add_view( tower_view );" ...at line no 1473 to decide the toggle state sequence above? ..how about line nos 692-693, which does not mention "chase" view, only "pilot_view" (from the cockpit)??? "Standing on the field", "tower_view" is more different from "chase" than pilot_view"??? -- ..med vennlig hilsen = with Kind Regards from Arnt... ;-) Scenarios always come in sets of three: best case, worst case, and just in case. _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel