Board index FlightGear Support

How to set camera position  Topic is solved

All general support: help on flying, installation, hardware, getting online etc. There are lots of users and developers to help you out.
Forum rules
In order to help you, we need to know a lot of information. Make sure to include answers to at least the following questions in your initial post.

- what OS (Windows Xp/Vista, Mac etc.) are you running?
- what FlightGear version do you use?
- what graphics card do you have?
- does the problem occur with any aircraft, at any airport?
- where did you download your aircraft/scenery from?
- is there any output printed to the console (black window)?
- copy&paste your commandline (tick the "Show commandline box on the last page of FGRun or the "Others" section on the Mac launcher).

Please report any bugs not specific to an aircraft on the issue tracker.
To run FlightGear on old computers with bad OpenGL support, please take a look at this wiki article.

Note: If you did not get a reponse, even after 7 days, you may want to check out the FlightGear mailing lists to ask your question there.

How to set camera position

Postby SharjeelHKh » Wed Jan 19, 2011 7:06 am

I m using Flightgear2.0, and able to compile it. I

want to set the camera position at center rather any any pilot or co-pilot view. Does anyone know any command line option or any solution for this...
By the way where can I find the list of all command line options?
SharjeelHKh
 
Posts: 35
Joined: Mon Oct 11, 2010 5:24 am

Re: How to set camera position  

Postby Gijs » Wed Jan 19, 2011 9:36 am

You can change it per aircraft (by modifying the Aircraft/.../...-set.xml file), or through the in-sim View > Adjust View Position dialog.

By the way where can I find the list of all command line options?

http://wiki.flightgear.org/index.php/Co ... ne_options
Airports: EHAM, EHLE, KSFO
Aircraft: 747-400
User avatar
Gijs
Moderator
 
Posts: 9544
Joined: Tue Jul 03, 2007 3:55 pm
Location: Delft, the Netherlands
Callsign: PH-GYS
Version: Git
OS: Windows 10

Re: How to set camera position

Postby SharjeelHKh » Thu Jan 20, 2011 6:43 am

Thanx Gijs, I have done it int Aircraft/.../...-set.xml by setting x-offset-m=0. I knew the View > Adjust View Position dialog but I didnt wanted to do it at run time.
SharjeelHKh
 
Posts: 35
Joined: Mon Oct 11, 2010 5:24 am

Re: How to set camera position

Postby curt » Fri May 06, 2022 9:31 pm

Gijs wrote in Wed Jan 19, 2011 9:36 am:You can change it per aircraft (by modifying the Aircraft/.../...-set.xml file), or through the in-sim View > Adjust View Position dialog.

By the way where can I find the list of all command line options?

http://wiki.flightgear.org/index.php/Co ... ne_options


Hi Gijs,

Is there a way to do this from the command line (using something like: --prop:/sim/view[0]/x-offset-m=5) except this doesn't work. I have a use-case here where it's less convenient to modify the aircraft, and it would be super nice if this could be done from the command line. However that doesn't appear to be possible?

Thanks,

Curt.
Aerospace Engineering and Mechanics
University of Minnesota
curt
Administrator
 
Posts: 1168
Joined: Thu Jan 01, 1970 1:00 am
Location: Minneapolis, MN

Re: How to set camera position

Postby TheEagle » Fri May 06, 2022 11:00 pm

Yeah, this one won't work - it probably gets overwritten by the defs from the aircraft -set.xml file. But you could try a Nasal file in your autosave file defaults.xml:
Code: Select all
<nasal>
    <custom-views>
        <file>Nasal/custom-views.nas</file>
    </custom-views>
</nasal>

Then in $FGDATA/Nasal/custom-views.nas:
Code: Select all
var xpos = getprop("/sim/view[0]/x-offset-m-custom");
if (xpos != nil) {
    setprop("/sim/view[0]/x-offset-m", xpos);
}
Cessna 210 (Wiki)
My other aircraft: my wiki profile !
Other: FGTools (GitHub)
World tour: View on SkyVector
Please consider donating $1 / €1 to help me finance a new camera !
User avatar
TheEagle
 
Posts: 3411
Joined: Sat May 01, 2021 3:27 pm
Location: France
Pronouns: You, he
Callsign: F-EAGLE
IRC name: none
Version: Git next
OS: Ubuntu Studio 22.04


Return to Support

Who is online

Users browsing this forum: No registered users and 9 guests