Board index FlightGear Support Flying

Disabling visible pilot

Controlling your aircraft, using the autopilot etc.

Disabling visible pilot

Postby Silverjake » Sun Jan 14, 2018 6:08 pm

Hello,
I was wondering if there is any way to disable the visible pilot in the cockpit of an aircraft. I'm trying to fly the P-51D, but the pilot's arm is obstructing certain controls such as the rudder and aileron trim. Any help is appreciated, thank you in advance.
Silverjake
 
Posts: 8
Joined: Fri Jan 12, 2018 3:28 am

Re: Disabling visible pilot

Postby wkitty42 » Sun Jan 14, 2018 6:26 pm

look in the F10->p51 menu... there is generally an option in there to turn off the walker characters... you might even find one to turn off the stick/yoke so you have a clear view of the dash board...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9146
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: Disabling visible pilot

Postby Silverjake » Sun Jan 14, 2018 7:00 pm

There is an option that says "pilot enable/disable always visible" but it doesn't seem to change anything.
Silverjake
 
Posts: 8
Joined: Fri Jan 12, 2018 3:28 am

Re: Disabling visible pilot

Postby Thorsten » Sun Jan 14, 2018 7:21 pm

Does it give any error to the console/log when you try to disable it? Options which don't do anything generally are suspicious...

Otherwise: Where did you get the P-51D from?
Thorsten
 
Posts: 12490
Joined: Mon Nov 02, 2009 9:33 am

Re: Disabling visible pilot

Postby Silverjake » Sun Jan 14, 2018 8:05 pm

No, I don't see any errors. I got the plane from the selection in the launcher.
Silverjake
 
Posts: 8
Joined: Fri Jan 12, 2018 3:28 am

Re: Disabling visible pilot

Postby wkitty42 » Sun Jan 14, 2018 8:48 pm

the pilot is only removed from view in the cockpit view... when you use v/V to have other views, the pilot is in the view...

so to test this (as i've just done)... load up the craft and then look downward toward the stick and seat so you can see the pilot's arm and hand holding the stick... in my view, i have the "no hand hold" text at the very top center of the screen... then F10->P-51D and click on that pilot enable option... the pilot will disappear... click on it again and the pilot comes back... right hand on the stick, left hand on the throttle... now hit 'v' (lower case) one time to switch to the helicopter view... move around to the side of the craft, the pilot is in the craft... click the pilot enable again and he does not leave the cockpit but if you hit the 'V' (capital) and go back to the cockpit, you won't see him...

so apparently this pilot toggle option is only for the cockpit view... the pilot will be visible in the other views...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9146
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: Disabling visible pilot

Postby Silverjake » Sun Jan 14, 2018 9:00 pm

Hmm, I tried exactly what you described but the pilot did not disappear. I don't know if its my game or if I have some weird setting that is stopping me from disabling the visible pilot.
Silverjake
 
Posts: 8
Joined: Fri Jan 12, 2018 3:28 am

Re: Disabling visible pilot

Postby Thorsten » Mon Jan 15, 2018 7:16 am

I've just had a look and I can't reproduce that here (fresh svn checkout of the FGAddon P-51D).

The actual code is very simple

Code: Select all
 <animation>
   <type>select</type>
   <object-name>pilot</object-name>
   <condition>
   <or>
       <greater-than>
         <property>/sim/current-view/view-number</property>
         <value>0.0</value>
       </greater-than>
       <greater-than>
         <property>/fdm/jsbsim/systems/pilotAlwaysVisible</property>
         <value>0.0</value>
       </greater-than>
       <!-- so the pilot is always visible on multiplayer -->
       <not-equals>
         <property>/sim/aircraft</property>
         <value>p51d-jsbsim</value>
       </not-equals>           
     </or>
   </condition>
 </animation>


it checks view number, whether you are in the plane or seeing it via MP and the property /fdm/jsbsim/systems/pilotAlwaysVisible which the menu option toggles between 0 and 1.

What does the property do when you switch the option - can you check with the property browser?
Thorsten
 
Posts: 12490
Joined: Mon Nov 02, 2009 9:33 am

Re: Disabling visible pilot

Postby Silverjake » Tue Jan 16, 2018 2:11 am

It toggles between 1 and 0, but the pilot does not disappear.
Silverjake
 
Posts: 8
Joined: Fri Jan 12, 2018 3:28 am

Re: Disabling visible pilot

Postby Richard » Tue Jan 16, 2018 6:22 am

In the F-15D I have fancy logic to disable the pilot model depending on which seat is occupied (pilot or WSO).

Until recently I didn't realise that the F-14 does this much more elegantly by simply having a 1 meter minimum range animation which hides the appropriate model when sitting in that seat.

at the end of pilot..xml:

Code: Select all
  <animation>
        <type>range</type>
        <min-m>1</min-m>
        <max-m>9999</max-m>
    </animation>
Richard
 
Posts: 810
Joined: Sun Nov 02, 2014 11:17 pm
Version: Git
OS: Win10

Re: Disabling visible pilot

Postby Thorsten » Tue Jan 16, 2018 7:14 am

It toggles between 1 and 0, but the pilot does not disappear.


Somewhat mysterious... - and what's /sim/current-view/view-number and /sim/aircraft ?
Thorsten
 
Posts: 12490
Joined: Mon Nov 02, 2009 9:33 am

Re: Disabling visible pilot

Postby Johan G » Sun Apr 28, 2019 11:16 am

Richard wrote in Tue Jan 16, 2018 6:22 am:[...] the F-14 does this [...] elegantly by simply having a 1 meter minimum range animation which hides the appropriate model when sitting in that seat.

That is a very neat trick. :)
Low-level flying — It's all fun and games till someone looses an engine. (Paraphrased from a YouTube video)
Improving the Dassault Mirage F1 (Wiki, Forum, GitLab. Work in slow progress)
Some YouTube videos
Johan G
Moderator
 
Posts: 6629
Joined: Fri Aug 06, 2010 6:33 pm
Location: Sweden
Callsign: SE-JG
IRC name: Johan_G
Version: 2020.3.4
OS: Windows 10, 64 bit

Re: Disabling visible pilot

Postby sim » Wed May 01, 2019 8:30 am

Opposite problem here, pilotless P51d. Flown by a ghost pilot.
Can see pilot from external view but not once inside cockpit. The rudder pedals are visible but no pilot's feet and no hand on throttle ! :wink:
User avatar
sim
 
Posts: 1431
Joined: Tue Jun 30, 2009 3:13 pm
Location: Shropshire England
Callsign: Fly4Fun
Version: 0.9.10 up
OS: 64 Win 10 HD6450


Return to Flying

Who is online

Users browsing this forum: No registered users and 3 guests