Board index FlightGear Support Flying

How to Center Camera view after looking around the cockpit

Controlling your aircraft, using the autopilot etc.

How to Center Camera view after looking around the cockpit

Postby reece0306 » Tue Apr 16, 2019 4:16 pm

On a Cessna, I can center the view by using Q or using Shift q. I tried that same key on another aircraft and didn't work. My FlightGear Version is 2018.3.2. On the List of controls, I can't see the way to center your view. Please help.
reece0306
 
Posts: 1
Joined: Tue Apr 16, 2019 4:05 pm

Re: How to Center Camera view after looking around the cockp

Postby legoboyvdlp » Tue Apr 16, 2019 5:08 pm

Hi,
I think shift plus up-key might do that, making the view point forwards?
User avatar
legoboyvdlp
 
Posts: 6406
Joined: Sat Jul 26, 2014 1:28 am
Callsign: YV-LEGO
Version: 2018.3.1
OS: Windows 10 HP

Re: How to Center Camera view after looking around the cockp

Postby WoodSTokk » Tue Apr 16, 2019 5:55 pm

Set the view back to default:
- press TAB two times (so you are in mouse-view-mode)
- click left mouse button
- press TAB again (without moving the mouse) to leaf the mouse-view-mode
WoodSTokk
 
Posts: 158
Joined: Tue Oct 17, 2017 2:30 pm
Location: Milky Way/Sol/Earth/Europe
Callsign: OE-WST
IRC name: WoodSTokk
Version: 2018.3.1
OS: Debian Buster/Sid

Re: How to Center Camera view after looking around the cockp

Postby sim » Wed Apr 17, 2019 7:54 am

Or put this code on one of your joystick buttons. Usually the final line (view No "0" works but sometimes doing a lot of different view adjustments can screw your view up completely. This code will fix that!

If you don't have a joystick, you can find an unused key in keyboard.xml and write this code to it :wink:
Code: Select all
<button n="3">
<desc>RESET PILOT VIEW</desc>
    <binding> <command>nasal</command> <script>
setprop("/sim/current-view/goal-pitch-offset-deg", getprop("/sim/view/config/default-pitch-deg"));
setprop("/sim/current-view/goal-heading-offset-deg", getprop("/sim/view/config/default-heading-deg"));
setprop("/sim/current-view/field-of-view", getprop("/sim/view/config/default-field-of-view-deg"));
setprop("/sim/current-view/x-offset-m", getprop("/sim/view/config/x-offset-m"));
setprop("/sim/current-view/y-offset-m", getprop("/sim/view/config/y-offset-m"));
setprop("/sim/current-view/z-offset-m", getprop("/sim/view/config/z-offset-m"));
setprop("/sim/current-view/view-number","0");</script> </binding>
</button>
User avatar
sim
 
Posts: 1410
Joined: Tue Jun 30, 2009 2: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: Bing [Bot] and 2 guests