Re: [Flightgear-devel] Tower view configuration

2005-06-30 Thread Jim Wilson
 From: Drew [EMAIL PROTECTED]
 
 Thanks, I'll try that, but I don't understand your description.  The
 view origin is fixed in space as it is.  Since the field of view is
 only 8 degrees horizontally, I figured the .9 degrees would shift the
 target upwards by about 1/6 the height of the image.  That's what I'm
 trying to do, anyway.  In any case, I'll try what you suggested
 tomorrow when I'm at my computer, and see for myself what it does.
 

Hmmm...ok I did not see that.  Now I've got a better idea of what you are 
looking for.  Also I need to retract what I said about the camera angle.  
That's a function of manipulating the origin.  The pitch-offset-deg value will 
have no effect in lookat mode.

Currently the only thing you can do to move the aircraft up higher in the tower 
view is to specify a target-y-offset-m.  This moves the target location.   What 
it won't do is maintain the same angle as the distance to the aircraft changes. 
 Doing that would require a code change that uses new parameters like 
target-pitch-offset-deg and calculates an xyz value dynamically.

Best,

Jim



___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] Tower view configuration

2005-06-30 Thread Drew
 You could write a nasal script that updates target-y-offset-m based on
 the aircraft's distance from the tower. You can get the tower and ac
 position from the property tree, nasal does trig, and that's all you need.
 
 Josh


I'll look into that.  Thanks!

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] Tower view configuration

2005-06-29 Thread Jim Wilson
 From: Drew [EMAIL PROTECTED]
 
 Hey All,
 
 I'm trying to configure a tower view in FlightGear that is offset in
 pitch such that the airplane appears above the center of the screen,
 but still tracks the position of the aircraft.  I can't figure out how
 this is done, as the 'offset-pitch-deg' property seems to have no
 effect.  Here is what I have in preferences.xml.  If anyone knows what
 I'm doing wrong, please let me know.
 

That negative 9 tenths of a degree offset-pitch-deg value is going to be hardly 
noticable.  If I recall correctly,  the offsets in lookat mode still manipulate 
the angle of the camera, but the target is always constant.   Thus  it gives 
you the impression that the camera is teathered to the target, and rotates 
around as if on the inside of a sphere where the target is the center of the 
sphere.  Try some larger numbers (e.g. 35 degrees) and you should see something 
change.

Best,

Jim



___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] Tower view configuration

2005-06-29 Thread Drew
Thanks, I'll try that, but I don't understand your description.  The
view origin is fixed in space as it is.  Since the field of view is
only 8 degrees horizontally, I figured the .9 degrees would shift the
target upwards by about 1/6 the height of the image.  That's what I'm
trying to do, anyway.  In any case, I'll try what you suggested
tomorrow when I'm at my computer, and see for myself what it does.

Drew

On 6/29/05, Jim Wilson [EMAIL PROTECTED] wrote:
  From: Drew [EMAIL PROTECTED]
 
  Hey All,
 
  I'm trying to configure a tower view in FlightGear that is offset in
  pitch such that the airplane appears above the center of the screen,
  but still tracks the position of the aircraft.  I can't figure out how
  this is done, as the 'offset-pitch-deg' property seems to have no
  effect.  Here is what I have in preferences.xml.  If anyone knows what
  I'm doing wrong, please let me know.
 
 
 That negative 9 tenths of a degree offset-pitch-deg value is going to be 
 hardly noticable.  If I recall correctly,  the offsets in lookat mode still 
 manipulate the angle of the camera, but the target is always constant.   Thus 
  it gives you the impression that the camera is teathered to the target, and 
 rotates around as if on the inside of a sphere where the target is the center 
 of the sphere.  Try some larger numbers (e.g. 35 degrees) and you should see 
 something change.
 
 Best,
 
 Jim
 
 
 
 ___
 Flightgear-devel mailing list
 Flightgear-devel@flightgear.org
 http://mail.flightgear.org/mailman/listinfo/flightgear-devel
 2f585eeea02e2c79d7b1d8c4963bae2d


___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] TOWER

2005-06-21 Thread Gerard Robin
Le mardi 21 juin 2005 à 12:20 -0300, [EMAIL PROTECTED] a écrit :
 Hi,
 
 1) I would like to disable the messages that appear on the TOP of screen, the
 tower control.
 
 Is there any property that I could set to disable it on FGFS 0.9.4?
 
 2) I am compiling the FGfs 0.9.8 and I getting errors on JSBSim modules, is
 there anything that I can do to solve it? 
 
 
 Regards,
 
 
 
Which message errors ?
-- 
Gerard


___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] TOWER

2005-06-21 Thread Martin Spott
[EMAIL PROTECTED] wrote:

 1) I would like to disable the messages that appear on the TOP of screen, the
 tower control.

  --prop:/sim/ai-traffic/enabled=false

 2) I am compiling the FGfs 0.9.8 and I getting errors on JSBSim modules, is
 there anything that I can do to solve it? 

Is there any chance that could make us aware of these error messages ?
My augur is currently on vacation,

Martin.
-- 
 Unix _IS_ user friendly - it's just selective about who its friends are !
--

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] TOWER

2005-06-21 Thread Martin Spott
Martin Spott wrote:
 [EMAIL PROTECTED] wrote:

 1) I would like to disable the messages that appear on the TOP of screen, the
 tower control.
 
   --prop:/sim/ai-traffic/enabled=false

Oh, sorry, I picked the wrong one - the correct one has already been
posted,

Martin.
-- 
 Unix _IS_ user friendly - it's just selective about who its friends are !
--

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] Tower View

2002-04-08 Thread Martin Spott

 Thanks to Jim Wilson, we have a working tower view in CVS: [...]

Wow, this one is incredibly good,

Martin.
-- 
 Unix _IS_ user friendly - it's just selective about who its friends are !
--

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



RE: [Flightgear-devel] Tower View

2002-04-06 Thread Paul Deppe

 Thanks to Jim Wilson, we have a working tower view in CVS: the 'v' key
 cycles among pilot view, chase view, and tower view, rather than just
 pilot and chase.  In the future, Jim (or someone else) will probably
 add the ability to specify a tower position; for now, the code just
 makes one up for the initial airport.

 You'll probably want to use the 'x' key to zoom in a bit, since the
 tower can be pretty far away at a large airport.

Nice job!  This could be used to simulate a tracking camera using the zoom
feature (try it with the X15).

However,  I am seeing a strange clipping problem in the tower view mode with
the C172 and C310 models when I use the 'x' key to zoom in (Cygwin/Win2k).
Here's how to duplicate it:

1.  Start FGFS with default options (empty .fgfs_rc).
2.  Switch to tower view ('v' twice).
3.  Zoom in with 'x' until the model fills at least half the screen.
4.  As the aircraft slowly taxis down the runway I see strange polygon
clipping effects in the model.

This looks similar to the effect seen last month when the experiments with
the near and far clipping planes were going on.  Perhaps the near and far
planes will have to be adjusted depending upon the distance to the model
and/or the amount of zoom or the FOV.

Does anyone else see this?

Regards,

Paul

Paul R. Deppe
Veridian Engineering (formerly Calspan)
Flight  Aerospace Research Group
150 North Airport Drive
Buffalo, NY  14225
(716) 631-6898
(716) 631-6990 FAX
[EMAIL PROTECTED]


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



RE: [Flightgear-devel] Tower View

2002-04-06 Thread Jim Wilson

Paul Deppe [EMAIL PROTECTED] said:

 However,  I am seeing a strange clipping problem in the tower view mode with
 the C172 and C310 models when I use the 'x' key to zoom in (Cygwin/Win2k).
 Here's how to duplicate it:
 

Oh yes, I'm seeing it on my voodoo.  What kind of card are you using?  I have
experimented with some buffer settings, but haven't been able to fix it. I'd
say it is likely a problem of the model complexity and the inaccuracy of 16bit
fp (rendering at a distance).  We've got a lot of objects very close together
there.  One idea I had was to make a zoom feature that would push the eye
closer to the object on the lookat axis using an offset value, as opposed to
using the fov to close in like a telescope.  You'll note that the problem
diminishes when the model is reasonably close, so doing something like I just
described would solve the math issue that is causing this.  The only problem
is it wouldn't be very telescope like.

Best,

Jim

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



RE: [Flightgear-devel] Tower View

2002-04-06 Thread David Megginson

Paul Deppe writes:

  This looks similar to the effect seen last month when the experiments with
  the near and far clipping planes were going on.  Perhaps the near and far
  planes will have to be adjusted depending upon the distance to the model
  and/or the amount of zoom or the FOV.

Partly, but partly, I need to use LOD to remove detail (like the
aircraft interior) at a certain distance.


All the best,


David

-- 
David Megginson
[EMAIL PROTECTED]


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



Re: [Flightgear-devel] Tower View preview

2002-04-03 Thread Glen Dimock

Looking good.  From an R/C perspective, it would be great to have an
aircraft shadow for judging altitude.  Having worked mainly on the UIUC/FDM
side of things, I'm not sure how difficult it would be to add this...

Glen

- Original Message -
From: Jim Wilson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, April 03, 2002 9:43 PM
Subject: [Flightgear-devel] Tower View preview


 Here's a series from the tower (aka RC pilot) view.  Note that I really
have
 trouble flying this way.  The last seen is 2.3 seconds before impact :-)

 http://www.spiderbark.com/fgfs/towerpreview.png

 Best,

 Jim

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



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



Re: [Flightgear-devel] Tower View preview

2002-04-03 Thread Jim Wilson

Glen Dimock [EMAIL PROTECTED] said:

 Looking good.  From an R/C perspective, it would be great to have an
 aircraft shadow for judging altitude.  Having worked mainly on the UIUC/FDM
 side of things, I'm not sure how difficult it would be to add this...
 
 Glen
 

This has been discussed...check the archives (within the last couple 
months).  For now the HUD works fine for judging altitude. :-)

Best,

Jim

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



Re: [Flightgear-devel] Tower view

2002-02-25 Thread Martin Dressler


 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.

I have in my mind this Idea, which doesn't need locations of Towers.
Maybe it is from Flight Unlimited II. 
When you switch to tower view( or better ground view) your view point 
initialize at some specified (in cofig file) distance before and left of 
aircraft at specified altitude above ground. And stay here until you switch 
to another view mode.
I look for one moth that I write it, but I still can't get enough time to do 
it.

Reagrds,
Madr

-- 
  Martin Dressler

e-mail: [EMAIL PROTECTED]
http://www.musicabona.com/

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



Re: [Flightgear-devel] Tower view

2002-02-24 Thread Arnt Karlsen

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



Re: [Flightgear-devel] Tower view

2002-02-23 Thread Cameron Moore

* [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.
-- 
Cameron Moore
[ Why is a boxing ring square? ]

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



Re: [Flightgear-devel] Tower view

2002-02-23 Thread Michael Selig

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.




--
Cameron Moore
[ Why is a boxing ring square? ]

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



**
  Prof. Michael S. Selig
  Dept. of Aero/Astro Engineering
  University of Illinois at Urbana-Champaign
  306 Talbot Laboratory
  104 South Wright Street
  Urbana, IL 61801-2935
  (217) 244-5757 (o), (509) 691-1373 (fax)
  mailto:[EMAIL PROTECTED]
  http://www.uiuc.edu/ph/www/m-selig
  http://www.uiuc.edu/ph/www/m-selig/faq.html (FAQ)
**


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



RE: [Flightgear-devel] Tower view

2002-02-23 Thread Boslough, Mark B

There seems to be a vestigial reference to TOWER_VIEW in
0.7.9, but as Michael says, the code section that was in
0.7.8 is no longer there.  This would be a useful feature
for simulating r/c flight.

Mark

 -Original Message-
 From: Michael Selig [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, February 23, 2002 12:30 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [Flightgear-devel] Tower view
 
 
 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.
 
 
 
 
 --
 Cameron Moore
 [ Why is a boxing ring square? ]
 
 ___
 Flightgear-devel mailing list
 [EMAIL PROTECTED]
 http://mail.flightgear.org/mailman/listinfo/flightgear-devel
 
 
 
 **
   Prof. Michael S. Selig
   Dept. of Aero/Astro Engineering
   University of Illinois at Urbana-Champaign
   306 Talbot Laboratory
   104 South Wright Street
   Urbana, IL 61801-2935
   (217) 244-5757 (o), (509) 691-1373 (fax)
   mailto:[EMAIL PROTECTED]
   http://www.uiuc.edu/ph/www/m-selig
   http://www.uiuc.edu/ph/www/m-selig/faq.html (FAQ)
 **
 
 
 ___
 Flightgear-devel mailing list
 [EMAIL PROTECTED]
 http://mail.flightgear.org/mailman/listinfo/flightgear-devel
 


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



Re: [Flightgear-devel] Tower view

2002-02-23 Thread Cameron Moore

* [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



RE: [Flightgear-devel] Tower view

2002-02-23 Thread David Megginson

Boslough, Mark B writes:

  There seems to be a vestigial reference to TOWER_VIEW in
  0.7.9, but as Michael says, the code section that was in
  0.7.8 is no longer there.  This would be a useful feature
  for simulating r/c flight.

There was never any code to support it; Curt just added it to the enum
as a bit of wishful thinking.


All the best,


David

-- 
David Megginson
[EMAIL PROTECTED]


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



Re: [Flightgear-devel] Tower view

2002-02-23 Thread Alex Perry

   There seems to be a vestigial reference to TOWER_VIEW in
   0.7.9, but as Michael says, the code section that was in
   0.7.8 is no longer there.  This would be a useful feature
   for simulating r/c flight.
 There was never any code to support it; Curt just added it to the enum
 as a bit of wishful thinking.

Perhaps we're approaching this the wrong way.  The multiplayer
capability provides a multitude of 'actors' in the virtual world,
all of which have an FDM and one of which is running on this computer.
Why don't we just make the GL rendering occur with respect to
an arbitrary 'actor' ... both in terms of FDM and position viewpoint ?

That would support tower view, instructor look-over-shoulder and
a bunch of other uses.  It may also integrate the multiple-monitor
code and multiple-player code into a more consistent feature set.

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



Re: [Flightgear-devel] Tower view

2002-02-23 Thread Michael Selig



At 2/23/02, you wrote:
* [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.

Hu ...  That's interesting.  I was under the impression that it was 
part of the fgfs CVS.  Its apparently a case of the right hand not knowing 
what the left hand was doing, i.e. I don't know how we got it.

I don't like hacks, but I will tell you I sure like flying from the tower 
view.  As you know it works w/ the 'v' key toggling from cockpit, to 
external view, to tower view.  When I get to the tower I can zoom in w/ 'x' 
to get a better view of the aircraft.

Though I am a glider pilot, I also fly R/C models and the tower view suits 
me best.  A few of the UIUC (Roskam) aircraft models have bad yaw damping 
and/or a dutch roll, and with those I get sick flying from the cockpit.

I sure hope something like this tower view gets to be permanent.

--
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



**
  Prof. Michael S. Selig
  Dept. of Aero/Astro Engineering
  University of Illinois at Urbana-Champaign
  306 Talbot Laboratory
  104 South Wright Street
  Urbana, IL 61801-2935
  (217) 244-5757 (o), (509) 691-1373 (fax)
  mailto:[EMAIL PROTECTED]
  http://www.uiuc.edu/ph/www/m-selig
  http://www.uiuc.edu/ph/www/m-selig/faq.html (FAQ)
**


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



Re: [Flightgear-devel] Tower view

2002-02-23 Thread Cameron Moore

* [EMAIL PROTECTED] (Michael Selig) [2002.02.23 20:08]:
 At 2/23/02, you wrote:
 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.
 
 Hu ...  That's interesting.  I was under the impression that it was 
 part of the fgfs CVS.  Its apparently a case of the right hand not knowing 
 what the left hand was doing, i.e. I don't know how we got it.
 
 I don't like hacks, but I will tell you I sure like flying from the tower 
 view.  As you know it works w/ the 'v' key toggling from cockpit, to 
 external view, to tower view.  When I get to the tower I can zoom in w/ 'x' 
 to get a better view of the aircraft.

There were a couple[1] reasons[2] why I didn't finish this, but I had
planned on adding an auto-zoom feature.  Manual zooming is annoying.

 Though I am a glider pilot, I also fly R/C models and the tower view suits 
 me best.  A few of the UIUC (Roskam) aircraft models have bad yaw damping 
 and/or a dutch roll, and with those I get sick flying from the cockpit.

R/C'ing is the reason I added it in the first place.  Now that I have an
R/C joystick again (see footnote #1), I may try to work on this
viewpoint stuff again if I ever get enough time.

 I sure hope something like this tower view gets to be permanent.

Once someone actually impliments it intelligently, it should be
permanent.  :-)

[1] I had to give back the the transmitter/joystick that comes with the
RealFlight R/C simulator that I was borrowing from a family member.  I
got it back again this weekend.  ;-)
[2] I accidently deleted my development directory and lost a lot of the
code I had written.  I wasn't in the mood to do rewrite after that.  :-/
-- 
Cameron Moore
[ Curiosity killed the cat, but for a while I was a suspect. ]

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